From b0b9eb0113850371ce0e2930d3fda96791d62f55 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 20 Jan 2023 16:50:12 +0000 Subject: [PATCH] feat: [dialogflow-cx] Update Compute Engine API to revision 20221224 (#760) (#8985) - [ ] Regenerate this pull request now. Source-Link: https://togithub.com/googleapis/googleapis/commit/17d56133af13ea8e541f646095f3621b61ac4948 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/42cd552fa5be95be5ce5136ba93e83388b7591d8 Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93LWN4Ly5Pd2xCb3QueWFtbCIsImgiOiI0MmNkNTUyZmE1YmU5NWJlNWNlNTEzNmJhOTNlODMzODhiNzU5MWQ4In0= BEGIN_NESTED_COMMIT chore(bazel): [dialogflow-cx] update protobuf to v3.21.12 PiperOrigin-RevId: 503267695 Source-Link: https://togithub.com/googleapis/googleapis/commit/c79059008c6d2e66d4cc65a1a7d8bee7160e3f83 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/b98230b9e68a3828cf138296e9a20e03749ae0a0 Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93LWN4Ly5Pd2xCb3QueWFtbCIsImgiOiJiOTgyMzBiOWU2OGEzODI4Y2YxMzgyOTZlOWEyMGUwMzc0OWFlMGEwIn0= END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: [dialogflow-cx] ResponseMessage proto contains channel information docs: updated go library package PiperOrigin-RevId: 501638939 Source-Link: https://togithub.com/googleapis/googleapis/commit/529c07a642e26b46f7907c8c37f7bef8826b7461 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/6dc5598facecce2e5204c35acbe2e460f9eca71c Copy-Tag: eyJwIjoiamF2YS1kaWFsb2dmbG93LWN4Ly5Pd2xCb3QueWFtbCIsImgiOiI2ZGM1NTk4ZmFjZWNjZTJlNTIwNGMzNWFjYmUyZTQ2MGY5ZWNhNzFjIn0= END_NESTED_COMMIT --- java-dialogflow-cx/README.md | 6 +- .../cloud/dialogflow/cx/v3/AgentsGrpc.java | 12 +- .../dialogflow/cx/v3/DeploymentsGrpc.java | 24 +- .../dialogflow/cx/v3/EnvironmentsGrpc.java | 159 ++- .../dialogflow/cx/v3/ExperimentsGrpc.java | 96 +- .../cloud/dialogflow/cx/v3/FlowsGrpc.java | 24 +- .../cx/v3/SecuritySettingsServiceGrpc.java | 44 +- .../cx/v3/SessionEntityTypesGrpc.java | 15 +- .../cloud/dialogflow/cx/v3/SessionsGrpc.java | 65 +- .../cloud/dialogflow/cx/v3/TestCasesGrpc.java | 96 +- .../cx/v3/TransitionRouteGroupsGrpc.java | 67 +- .../cloud/dialogflow/cx/v3/VersionsGrpc.java | 36 +- .../dialogflow/cx/v3/AdvancedSettings.java | 104 +- .../cx/v3/AdvancedSettingsProto.java | 11 +- .../google/cloud/dialogflow/cx/v3/Agent.java | 531 +++++---- .../dialogflow/cx/v3/AgentOrBuilder.java | 51 +- .../cloud/dialogflow/cx/v3/AgentProto.java | 12 +- .../cx/v3/AgentValidationResult.java | 62 +- .../dialogflow/cx/v3/AudioConfigProto.java | 15 +- .../cloud/dialogflow/cx/v3/AudioInput.java | 98 +- .../dialogflow/cx/v3/AudioInputOrBuilder.java | 5 +- .../cx/v3/BatchDeleteTestCasesRequest.java | 59 +- .../cx/v3/BatchRunTestCasesMetadata.java | 30 +- .../cx/v3/BatchRunTestCasesRequest.java | 198 ++-- .../v3/BatchRunTestCasesRequestOrBuilder.java | 36 +- .../cx/v3/BatchRunTestCasesResponse.java | 141 ++- .../BatchRunTestCasesResponseOrBuilder.java | 25 +- .../cx/v3/CalculateCoverageRequest.java | 55 +- .../cx/v3/CalculateCoverageResponse.java | 73 +- .../cloud/dialogflow/cx/v3/Changelog.java | 169 +-- .../dialogflow/cx/v3/ChangelogProto.java | 12 +- .../cx/v3/CompareVersionsRequest.java | 98 +- .../v3/CompareVersionsRequestOrBuilder.java | 8 +- .../cx/v3/CompareVersionsResponse.java | 106 +- .../cx/v3/ContinuousTestResult.java | 124 +- .../dialogflow/cx/v3/ConversationTurn.java | 901 +++++++------- .../dialogflow/cx/v3/CreateAgentRequest.java | 87 +- .../cx/v3/CreateEntityTypeRequest.java | 107 +- .../cx/v3/CreateEnvironmentRequest.java | 125 +- .../v3/CreateEnvironmentRequestOrBuilder.java | 10 +- .../cx/v3/CreateExperimentRequest.java | 124 +- .../v3/CreateExperimentRequestOrBuilder.java | 10 +- .../dialogflow/cx/v3/CreateFlowRequest.java | 105 +- .../dialogflow/cx/v3/CreateIntentRequest.java | 107 +- .../dialogflow/cx/v3/CreatePageRequest.java | 105 +- .../cx/v3/CreateSecuritySettingsRequest.java | 107 +- ...reateSecuritySettingsRequestOrBuilder.java | 6 +- .../cx/v3/CreateSessionEntityTypeRequest.java | 94 +- .../cx/v3/CreateTestCaseRequest.java | 89 +- .../v3/CreateTransitionRouteGroupRequest.java | 148 ++- ...eTransitionRouteGroupRequestOrBuilder.java | 10 +- .../cx/v3/CreateVersionOperationMetadata.java | 29 +- .../cx/v3/CreateVersionRequest.java | 124 +- .../cx/v3/CreateVersionRequestOrBuilder.java | 10 +- .../cx/v3/CreateWebhookRequest.java | 89 +- .../dialogflow/cx/v3/DeleteAgentRequest.java | 34 +- .../cx/v3/DeleteEntityTypeRequest.java | 78 +- .../v3/DeleteEntityTypeRequestOrBuilder.java | 8 +- .../cx/v3/DeleteEnvironmentRequest.java | 69 +- .../v3/DeleteEnvironmentRequestOrBuilder.java | 10 +- .../cx/v3/DeleteExperimentRequest.java | 69 +- .../v3/DeleteExperimentRequestOrBuilder.java | 10 +- .../dialogflow/cx/v3/DeleteFlowRequest.java | 46 +- .../dialogflow/cx/v3/DeleteIntentRequest.java | 34 +- .../dialogflow/cx/v3/DeletePageRequest.java | 46 +- .../cx/v3/DeleteSecuritySettingsRequest.java | 64 +- ...eleteSecuritySettingsRequestOrBuilder.java | 10 +- .../cx/v3/DeleteSessionEntityTypeRequest.java | 35 +- .../v3/DeleteTransitionRouteGroupRequest.java | 103 +- ...eTransitionRouteGroupRequestOrBuilder.java | 16 +- .../cx/v3/DeleteVersionRequest.java | 76 +- .../cx/v3/DeleteVersionRequestOrBuilder.java | 12 +- .../cx/v3/DeleteWebhookRequest.java | 74 +- .../cx/v3/DeleteWebhookRequestOrBuilder.java | 7 +- .../dialogflow/cx/v3/DeployFlowMetadata.java | 30 +- .../dialogflow/cx/v3/DeployFlowRequest.java | 52 +- .../dialogflow/cx/v3/DeployFlowResponse.java | 125 +- .../cx/v3/DeployFlowResponseOrBuilder.java | 10 +- .../cloud/dialogflow/cx/v3/Deployment.java | 267 +++-- .../dialogflow/cx/v3/DeploymentProto.java | 12 +- .../dialogflow/cx/v3/DetectIntentRequest.java | 203 ++-- .../cx/v3/DetectIntentResponse.java | 216 ++-- .../cx/v3/DetectIntentResponseOrBuilder.java | 6 +- .../cloud/dialogflow/cx/v3/DtmfInput.java | 46 +- .../cloud/dialogflow/cx/v3/EntityType.java | 291 +++-- .../dialogflow/cx/v3/EntityTypeOrBuilder.java | 12 +- .../dialogflow/cx/v3/EntityTypeProto.java | 11 +- .../cloud/dialogflow/cx/v3/Environment.java | 644 +++++----- .../cx/v3/EnvironmentOrBuilder.java | 28 +- .../dialogflow/cx/v3/EnvironmentProto.java | 11 +- .../cloud/dialogflow/cx/v3/EventHandler.java | 154 ++- .../cloud/dialogflow/cx/v3/EventInput.java | 28 +- .../cloud/dialogflow/cx/v3/Experiment.java | 1037 +++++++++-------- .../dialogflow/cx/v3/ExperimentOrBuilder.java | 8 +- .../dialogflow/cx/v3/ExperimentProto.java | 10 +- .../dialogflow/cx/v3/ExportAgentRequest.java | 168 +-- .../cx/v3/ExportAgentRequestOrBuilder.java | 22 +- .../dialogflow/cx/v3/ExportAgentResponse.java | 54 +- .../cx/v3/ExportAgentResponseOrBuilder.java | 9 +- .../dialogflow/cx/v3/ExportFlowRequest.java | 120 +- .../cx/v3/ExportFlowRequestOrBuilder.java | 16 +- .../dialogflow/cx/v3/ExportFlowResponse.java | 54 +- .../cx/v3/ExportFlowResponseOrBuilder.java | 9 +- .../cx/v3/ExportTestCasesMetadata.java | 12 +- .../cx/v3/ExportTestCasesRequest.java | 83 +- .../cx/v3/ExportTestCasesResponse.java | 28 +- .../google/cloud/dialogflow/cx/v3/Flow.java | 344 +++--- .../cloud/dialogflow/cx/v3/FlowOrBuilder.java | 35 +- .../cloud/dialogflow/cx/v3/FlowProto.java | 10 +- .../cx/v3/FlowValidationResult.java | 113 +- .../google/cloud/dialogflow/cx/v3/Form.java | 343 +++--- .../cx/v3/FulfillIntentRequest.java | 185 +-- .../cx/v3/FulfillIntentResponse.java | 182 +-- .../cx/v3/FulfillIntentResponseOrBuilder.java | 6 +- .../cloud/dialogflow/cx/v3/Fulfillment.java | 350 ++++-- .../cx/v3/FulfillmentOrBuilder.java | 6 +- .../dialogflow/cx/v3/FulfillmentProto.java | 10 +- .../dialogflow/cx/v3/GetAgentRequest.java | 34 +- .../v3/GetAgentValidationResultRequest.java | 53 +- .../dialogflow/cx/v3/GetChangelogRequest.java | 34 +- .../cx/v3/GetDeploymentRequest.java | 69 +- .../cx/v3/GetDeploymentRequestOrBuilder.java | 10 +- .../cx/v3/GetEntityTypeRequest.java | 52 +- .../cx/v3/GetEnvironmentRequest.java | 69 +- .../cx/v3/GetEnvironmentRequestOrBuilder.java | 10 +- .../cx/v3/GetExperimentRequest.java | 69 +- .../cx/v3/GetExperimentRequestOrBuilder.java | 10 +- .../dialogflow/cx/v3/GetFlowRequest.java | 52 +- .../cx/v3/GetFlowValidationResultRequest.java | 53 +- .../dialogflow/cx/v3/GetIntentRequest.java | 52 +- .../dialogflow/cx/v3/GetPageRequest.java | 52 +- .../cx/v3/GetSecuritySettingsRequest.java | 35 +- .../cx/v3/GetSessionEntityTypeRequest.java | 35 +- .../dialogflow/cx/v3/GetTestCaseRequest.java | 34 +- .../cx/v3/GetTestCaseResultRequest.java | 34 +- .../cx/v3/GetTransitionRouteGroupRequest.java | 74 +- ...tTransitionRouteGroupRequestOrBuilder.java | 6 +- .../dialogflow/cx/v3/GetVersionRequest.java | 34 +- .../dialogflow/cx/v3/GetWebhookRequest.java | 34 +- .../dialogflow/cx/v3/ImportFlowRequest.java | 66 +- .../dialogflow/cx/v3/ImportFlowResponse.java | 34 +- .../cx/v3/ImportTestCasesMetadata.java | 30 +- .../cx/v3/ImportTestCasesRequest.java | 46 +- .../cx/v3/ImportTestCasesResponse.java | 26 +- .../dialogflow/cx/v3/InputAudioConfig.java | 191 +-- .../cx/v3/InputAudioConfigOrBuilder.java | 16 +- .../google/cloud/dialogflow/cx/v3/Intent.java | 615 ++++++---- .../dialogflow/cx/v3/IntentCoverage.java | 72 +- .../cloud/dialogflow/cx/v3/IntentInput.java | 28 +- .../dialogflow/cx/v3/IntentOrBuilder.java | 11 +- .../cloud/dialogflow/cx/v3/IntentProto.java | 11 +- .../dialogflow/cx/v3/ListAgentsRequest.java | 64 +- .../dialogflow/cx/v3/ListAgentsResponse.java | 44 +- .../cx/v3/ListChangelogsRequest.java | 82 +- .../cx/v3/ListChangelogsResponse.java | 44 +- .../v3/ListContinuousTestResultsRequest.java | 65 +- .../v3/ListContinuousTestResultsResponse.java | 39 +- .../cx/v3/ListDeploymentsRequest.java | 113 +- .../v3/ListDeploymentsRequestOrBuilder.java | 14 +- .../cx/v3/ListDeploymentsResponse.java | 44 +- .../cx/v3/ListEntityTypesRequest.java | 82 +- .../cx/v3/ListEntityTypesResponse.java | 44 +- .../cx/v3/ListEnvironmentsRequest.java | 99 +- .../v3/ListEnvironmentsRequestOrBuilder.java | 10 +- .../cx/v3/ListEnvironmentsResponse.java | 44 +- .../cx/v3/ListExperimentsRequest.java | 113 +- .../v3/ListExperimentsRequestOrBuilder.java | 14 +- .../cx/v3/ListExperimentsResponse.java | 44 +- .../dialogflow/cx/v3/ListFlowsRequest.java | 82 +- .../dialogflow/cx/v3/ListFlowsResponse.java | 44 +- .../dialogflow/cx/v3/ListIntentsRequest.java | 103 +- .../dialogflow/cx/v3/ListIntentsResponse.java | 44 +- .../dialogflow/cx/v3/ListPagesRequest.java | 82 +- .../dialogflow/cx/v3/ListPagesResponse.java | 44 +- .../cx/v3/ListSecuritySettingsRequest.java | 59 +- .../cx/v3/ListSecuritySettingsResponse.java | 39 +- .../cx/v3/ListSessionEntityTypesRequest.java | 65 +- .../cx/v3/ListSessionEntityTypesResponse.java | 45 +- .../cx/v3/ListTestCaseResultsRequest.java | 83 +- .../cx/v3/ListTestCaseResultsResponse.java | 45 +- .../cx/v3/ListTestCasesRequest.java | 85 +- .../cx/v3/ListTestCasesResponse.java | 44 +- .../v3/ListTransitionRouteGroupsRequest.java | 83 +- .../v3/ListTransitionRouteGroupsResponse.java | 45 +- .../dialogflow/cx/v3/ListVersionsRequest.java | 106 +- .../cx/v3/ListVersionsRequestOrBuilder.java | 12 +- .../cx/v3/ListVersionsResponse.java | 44 +- .../dialogflow/cx/v3/ListWebhooksRequest.java | 64 +- .../cx/v3/ListWebhooksResponse.java | 44 +- .../dialogflow/cx/v3/LoadVersionRequest.java | 88 +- .../cx/v3/LoadVersionRequestOrBuilder.java | 12 +- .../v3/LookupEnvironmentHistoryRequest.java | 65 +- .../v3/LookupEnvironmentHistoryResponse.java | 114 +- ...upEnvironmentHistoryResponseOrBuilder.java | 15 +- .../google/cloud/dialogflow/cx/v3/Match.java | 292 ++--- .../dialogflow/cx/v3/MatchIntentRequest.java | 142 +-- .../dialogflow/cx/v3/MatchIntentResponse.java | 322 ++--- .../cx/v3/MatchIntentResponseOrBuilder.java | 66 +- .../dialogflow/cx/v3/MatchOrBuilder.java | 27 +- .../cloud/dialogflow/cx/v3/NluSettings.java | 65 +- .../dialogflow/cx/v3/OutputAudioConfig.java | 103 +- .../google/cloud/dialogflow/cx/v3/Page.java | 672 ++++++----- .../cloud/dialogflow/cx/v3/PageInfo.java | 925 +++++++++------ .../dialogflow/cx/v3/PageInfoOrBuilder.java | 44 +- .../cloud/dialogflow/cx/v3/PageOrBuilder.java | 107 +- .../cloud/dialogflow/cx/v3/PageProto.java | 10 +- .../cloud/dialogflow/cx/v3/QueryInput.java | 84 +- .../dialogflow/cx/v3/QueryParameters.java | 631 +++++++--- .../cx/v3/QueryParametersOrBuilder.java | 68 +- .../cloud/dialogflow/cx/v3/QueryResult.java | 1018 ++++++++-------- .../cx/v3/QueryResultOrBuilder.java | 149 ++- .../cloud/dialogflow/cx/v3/ResourceName.java | 46 +- .../dialogflow/cx/v3/ResponseMessage.java | 962 +++++++++------ .../cx/v3/ResponseMessageOrBuilder.java | 82 +- .../cx/v3/ResponseMessageProto.java | 49 +- .../dialogflow/cx/v3/RestoreAgentRequest.java | 67 +- .../cloud/dialogflow/cx/v3/RolloutConfig.java | 153 ++- .../cloud/dialogflow/cx/v3/RolloutState.java | 91 +- .../cx/v3/RunContinuousTestMetadata.java | 30 +- .../cx/v3/RunContinuousTestRequest.java | 62 +- .../v3/RunContinuousTestRequestOrBuilder.java | 8 +- .../cx/v3/RunContinuousTestResponse.java | 76 +- .../dialogflow/cx/v3/RunTestCaseMetadata.java | 10 +- .../dialogflow/cx/v3/RunTestCaseRequest.java | 80 +- .../cx/v3/RunTestCaseRequestOrBuilder.java | 8 +- .../dialogflow/cx/v3/RunTestCaseResponse.java | 71 +- .../dialogflow/cx/v3/SecuritySettings.java | 684 ++++++----- .../cx/v3/SecuritySettingsOrBuilder.java | 78 +- .../cx/v3/SecuritySettingsProto.java | 32 +- .../cx/v3/SentimentAnalysisResult.java | 34 +- .../dialogflow/cx/v3/SessionEntityType.java | 219 ++-- .../cx/v3/SessionEntityTypeOrBuilder.java | 28 +- .../cx/v3/SessionEntityTypeProto.java | 12 +- .../cloud/dialogflow/cx/v3/SessionInfo.java | 260 +++-- .../cx/v3/SessionInfoOrBuilder.java | 85 +- .../cloud/dialogflow/cx/v3/SessionProto.java | 231 ++-- .../dialogflow/cx/v3/SpeechModelVariant.java | 11 +- .../cx/v3/SpeechToTextSettings.java | 22 +- .../dialogflow/cx/v3/SpeechWordInfo.java | 145 +-- .../cx/v3/StartExperimentRequest.java | 34 +- .../cx/v3/StopExperimentRequest.java | 34 +- .../cx/v3/StreamingDetectIntentRequest.java | 270 +++-- .../cx/v3/StreamingDetectIntentResponse.java | 73 +- .../cx/v3/StreamingRecognitionResult.java | 265 +++-- .../StreamingRecognitionResultOrBuilder.java | 15 +- .../cx/v3/SynthesizeSpeechConfig.java | 126 +- .../cloud/dialogflow/cx/v3/TestCase.java | 340 +++--- .../cloud/dialogflow/cx/v3/TestCaseError.java | 117 +- .../dialogflow/cx/v3/TestCaseOrBuilder.java | 18 +- .../cloud/dialogflow/cx/v3/TestCaseProto.java | 10 +- .../dialogflow/cx/v3/TestCaseResult.java | 146 ++- .../cloud/dialogflow/cx/v3/TestConfig.java | 55 +- .../cloud/dialogflow/cx/v3/TestError.java | 131 ++- .../dialogflow/cx/v3/TestRunDifference.java | 49 +- .../cloud/dialogflow/cx/v3/TextInput.java | 56 +- .../dialogflow/cx/v3/TextInputOrBuilder.java | 8 +- .../dialogflow/cx/v3/TrainFlowRequest.java | 34 +- .../dialogflow/cx/v3/TransitionCoverage.java | 370 +++--- .../dialogflow/cx/v3/TransitionRoute.java | 215 ++-- .../cx/v3/TransitionRouteGroup.java | 233 ++-- .../cx/v3/TransitionRouteGroupCoverage.java | 224 ++-- .../cx/v3/TransitionRouteGroupOrBuilder.java | 39 +- .../cx/v3/TransitionRouteGroupProto.java | 11 +- .../cx/v3/TransitionRouteOrBuilder.java | 10 +- .../dialogflow/cx/v3/UpdateAgentRequest.java | 122 +- .../cx/v3/UpdateEntityTypeRequest.java | 142 +-- .../cx/v3/UpdateEnvironmentRequest.java | 125 +- .../cx/v3/UpdateExperimentRequest.java | 124 +- .../dialogflow/cx/v3/UpdateFlowRequest.java | 140 +-- .../dialogflow/cx/v3/UpdateIntentRequest.java | 142 +-- .../dialogflow/cx/v3/UpdatePageRequest.java | 140 +-- .../cx/v3/UpdateSecuritySettingsRequest.java | 175 +-- ...pdateSecuritySettingsRequestOrBuilder.java | 12 +- .../cx/v3/UpdateSessionEntityTypeRequest.java | 129 +- .../cx/v3/UpdateTestCaseRequest.java | 160 +-- .../cx/v3/UpdateTestCaseRequestOrBuilder.java | 9 +- .../v3/UpdateTransitionRouteGroupRequest.java | 148 +-- .../cx/v3/UpdateVersionRequest.java | 172 +-- .../cx/v3/UpdateVersionRequestOrBuilder.java | 12 +- .../cx/v3/UpdateWebhookRequest.java | 124 +- .../cx/v3/ValidateAgentRequest.java | 52 +- .../dialogflow/cx/v3/ValidateFlowRequest.java | 52 +- .../dialogflow/cx/v3/ValidationMessage.java | 114 +- .../cx/v3/ValidationMessageProto.java | 12 +- .../dialogflow/cx/v3/VariantsHistory.java | 79 +- .../cloud/dialogflow/cx/v3/Version.java | 222 ++-- .../dialogflow/cx/v3/VersionOrBuilder.java | 8 +- .../cloud/dialogflow/cx/v3/VersionProto.java | 11 +- .../dialogflow/cx/v3/VersionVariants.java | 72 +- .../cx/v3/VoiceSelectionParams.java | 105 +- .../cx/v3/VoiceSelectionParamsOrBuilder.java | 16 +- .../cloud/dialogflow/cx/v3/Webhook.java | 649 ++++++----- .../dialogflow/cx/v3/WebhookOrBuilder.java | 20 +- .../cloud/dialogflow/cx/v3/WebhookProto.java | 17 +- .../dialogflow/cx/v3/WebhookRequest.java | 1013 +++++++++------- .../cx/v3/WebhookRequestOrBuilder.java | 70 +- .../dialogflow/cx/v3/WebhookResponse.java | 324 ++--- .../cx/v3/WebhookResponseOrBuilder.java | 9 +- .../dialogflow/cx/v3/advanced_settings.proto | 2 +- .../google/cloud/dialogflow/cx/v3/agent.proto | 102 +- .../cloud/dialogflow/cx/v3/audio_config.proto | 33 +- .../cloud/dialogflow/cx/v3/changelog.proto | 11 +- .../cloud/dialogflow/cx/v3/deployment.proto | 47 +- .../cloud/dialogflow/cx/v3/entity_type.proto | 44 +- .../cloud/dialogflow/cx/v3/environment.proto | 185 +-- .../cloud/dialogflow/cx/v3/experiment.proto | 89 +- .../google/cloud/dialogflow/cx/v3/flow.proto | 104 +- .../cloud/dialogflow/cx/v3/fulfillment.proto | 21 +- .../cloud/dialogflow/cx/v3/intent.proto | 44 +- .../google/cloud/dialogflow/cx/v3/page.proto | 147 ++- .../dialogflow/cx/v3/response_message.proto | 74 +- .../dialogflow/cx/v3/security_settings.proto | 94 +- .../cloud/dialogflow/cx/v3/session.proto | 220 ++-- .../cx/v3/session_entity_type.proto | 69 +- .../cloud/dialogflow/cx/v3/test_case.proto | 230 ++-- .../cx/v3/transition_route_group.proto | 91 +- .../dialogflow/cx/v3/validation_message.proto | 2 +- .../cloud/dialogflow/cx/v3/version.proto | 89 +- .../cloud/dialogflow/cx/v3/webhook.proto | 205 ++-- .../cx/v3beta1/AdvancedSettings.java | 105 +- .../cloud/dialogflow/cx/v3beta1/Agent.java | 331 +++--- .../cx/v3beta1/AgentValidationResult.java | 57 +- .../dialogflow/cx/v3beta1/AudioInput.java | 79 +- .../v3beta1/BatchDeleteTestCasesRequest.java | 53 +- .../cx/v3beta1/BatchRunTestCasesMetadata.java | 21 +- .../cx/v3beta1/BatchRunTestCasesRequest.java | 71 +- .../cx/v3beta1/BatchRunTestCasesResponse.java | 21 +- .../cx/v3beta1/CalculateCoverageRequest.java | 51 +- .../cx/v3beta1/CalculateCoverageResponse.java | 68 +- .../dialogflow/cx/v3beta1/Changelog.java | 169 +-- .../cx/v3beta1/CompareVersionsRequest.java | 65 +- .../cx/v3beta1/CompareVersionsResponse.java | 101 +- .../cx/v3beta1/ContinuousTestResult.java | 126 +- .../cx/v3beta1/ConversationTurn.java | 624 +++++----- .../cx/v3beta1/CreateAgentRequest.java | 83 +- .../cx/v3beta1/CreateEntityTypeRequest.java | 103 +- .../cx/v3beta1/CreateEnvironmentRequest.java | 86 +- .../cx/v3beta1/CreateExperimentRequest.java | 85 +- .../cx/v3beta1/CreateFlowRequest.java | 99 +- .../cx/v3beta1/CreateIntentRequest.java | 101 +- .../cx/v3beta1/CreatePageRequest.java | 99 +- .../CreateSecuritySettingsRequest.java | 86 +- .../CreateSessionEntityTypeRequest.java | 89 +- .../cx/v3beta1/CreateTestCaseRequest.java | 84 +- .../CreateTransitionRouteGroupRequest.java | 108 +- .../CreateVersionOperationMetadata.java | 29 +- .../cx/v3beta1/CreateVersionRequest.java | 83 +- .../cx/v3beta1/CreateWebhookRequest.java | 83 +- .../cx/v3beta1/DeleteAgentRequest.java | 28 +- .../cx/v3beta1/DeleteEntityTypeRequest.java | 41 +- .../cx/v3beta1/DeleteEnvironmentRequest.java | 29 +- .../cx/v3beta1/DeleteExperimentRequest.java | 29 +- .../cx/v3beta1/DeleteFlowRequest.java | 40 +- .../cx/v3beta1/DeleteIntentRequest.java | 28 +- .../cx/v3beta1/DeletePageRequest.java | 40 +- .../DeleteSecuritySettingsRequest.java | 29 +- .../DeleteSessionEntityTypeRequest.java | 29 +- .../DeleteTransitionRouteGroupRequest.java | 41 +- .../cx/v3beta1/DeleteVersionRequest.java | 28 +- .../cx/v3beta1/DeleteWebhookRequest.java | 40 +- .../cx/v3beta1/DeployFlowMetadata.java | 20 +- .../cx/v3beta1/DeployFlowRequest.java | 46 +- .../cx/v3beta1/DeployFlowResponse.java | 85 +- .../dialogflow/cx/v3beta1/Deployment.java | 267 +++-- .../cx/v3beta1/DetectIntentRequest.java | 205 ++-- .../cx/v3beta1/DetectIntentResponse.java | 193 +-- .../dialogflow/cx/v3beta1/DtmfInput.java | 46 +- .../dialogflow/cx/v3beta1/EntityType.java | 241 ++-- .../dialogflow/cx/v3beta1/Environment.java | 356 +++--- .../dialogflow/cx/v3beta1/EventHandler.java | 116 +- .../dialogflow/cx/v3beta1/EventInput.java | 28 +- .../dialogflow/cx/v3beta1/Experiment.java | 1013 ++++++++-------- .../cx/v3beta1/ExportAgentRequest.java | 86 +- .../cx/v3beta1/ExportAgentResponse.java | 22 +- .../cx/v3beta1/ExportFlowRequest.java | 58 +- .../cx/v3beta1/ExportFlowResponse.java | 22 +- .../cx/v3beta1/ExportTestCasesRequest.java | 77 +- .../cx/v3beta1/ExportTestCasesResponse.java | 23 +- .../cloud/dialogflow/cx/v3beta1/Flow.java | 184 +-- .../cx/v3beta1/FlowValidationResult.java | 107 +- .../cloud/dialogflow/cx/v3beta1/Form.java | 313 ++--- .../cx/v3beta1/FulfillIntentRequest.java | 189 +-- .../cx/v3beta1/FulfillIntentResponse.java | 161 +-- .../dialogflow/cx/v3beta1/Fulfillment.java | 306 +++-- .../cx/v3beta1/GetAgentRequest.java | 28 +- .../GetAgentValidationResultRequest.java | 47 +- .../cx/v3beta1/GetChangelogRequest.java | 28 +- .../cx/v3beta1/GetDeploymentRequest.java | 28 +- .../cx/v3beta1/GetEntityTypeRequest.java | 46 +- .../cx/v3beta1/GetEnvironmentRequest.java | 29 +- .../cx/v3beta1/GetExperimentRequest.java | 28 +- .../dialogflow/cx/v3beta1/GetFlowRequest.java | 46 +- .../GetFlowValidationResultRequest.java | 47 +- .../cx/v3beta1/GetIntentRequest.java | 46 +- .../dialogflow/cx/v3beta1/GetPageRequest.java | 46 +- .../v3beta1/GetSecuritySettingsRequest.java | 29 +- .../v3beta1/GetSessionEntityTypeRequest.java | 29 +- .../cx/v3beta1/GetTestCaseRequest.java | 28 +- .../cx/v3beta1/GetTestCaseResultRequest.java | 29 +- .../GetTransitionRouteGroupRequest.java | 47 +- .../cx/v3beta1/GetVersionRequest.java | 28 +- .../cx/v3beta1/GetWebhookRequest.java | 28 +- .../cx/v3beta1/ImportFlowRequest.java | 61 +- .../cx/v3beta1/ImportFlowResponse.java | 28 +- .../cx/v3beta1/ImportTestCasesMetadata.java | 21 +- .../cx/v3beta1/ImportTestCasesRequest.java | 41 +- .../cx/v3beta1/ImportTestCasesResponse.java | 21 +- .../cx/v3beta1/InputAudioConfig.java | 130 ++- .../cloud/dialogflow/cx/v3beta1/Intent.java | 350 ++++-- .../dialogflow/cx/v3beta1/IntentCoverage.java | 73 +- .../dialogflow/cx/v3beta1/IntentInput.java | 28 +- .../cx/v3beta1/IntentOrBuilder.java | 1 - .../cx/v3beta1/ListAgentsRequest.java | 58 +- .../cx/v3beta1/ListAgentsResponse.java | 38 +- .../cx/v3beta1/ListChangelogsRequest.java | 77 +- .../cx/v3beta1/ListChangelogsResponse.java | 39 +- .../ListContinuousTestResultsRequest.java | 59 +- .../ListContinuousTestResultsResponse.java | 39 +- .../cx/v3beta1/ListDeploymentsRequest.java | 59 +- .../cx/v3beta1/ListDeploymentsResponse.java | 39 +- .../cx/v3beta1/ListEntityTypesRequest.java | 77 +- .../cx/v3beta1/ListEntityTypesResponse.java | 39 +- .../cx/v3beta1/ListEnvironmentsRequest.java | 59 +- .../cx/v3beta1/ListEnvironmentsResponse.java | 39 +- .../cx/v3beta1/ListExperimentsRequest.java | 59 +- .../cx/v3beta1/ListExperimentsResponse.java | 39 +- .../cx/v3beta1/ListFlowsRequest.java | 76 +- .../cx/v3beta1/ListFlowsResponse.java | 38 +- .../cx/v3beta1/ListIntentsRequest.java | 97 +- .../cx/v3beta1/ListIntentsResponse.java | 38 +- .../cx/v3beta1/ListPagesRequest.java | 76 +- .../cx/v3beta1/ListPagesResponse.java | 38 +- .../v3beta1/ListSecuritySettingsRequest.java | 59 +- .../v3beta1/ListSecuritySettingsResponse.java | 39 +- .../ListSessionEntityTypesRequest.java | 59 +- .../ListSessionEntityTypesResponse.java | 39 +- .../v3beta1/ListTestCaseResultsRequest.java | 77 +- .../v3beta1/ListTestCaseResultsResponse.java | 39 +- .../cx/v3beta1/ListTestCasesRequest.java | 79 +- .../cx/v3beta1/ListTestCasesResponse.java | 39 +- .../ListTransitionRouteGroupsRequest.java | 77 +- .../ListTransitionRouteGroupsResponse.java | 39 +- .../cx/v3beta1/ListVersionsRequest.java | 58 +- .../cx/v3beta1/ListVersionsResponse.java | 38 +- .../cx/v3beta1/ListWebhooksRequest.java | 58 +- .../cx/v3beta1/ListWebhooksResponse.java | 38 +- .../cx/v3beta1/LoadVersionRequest.java | 40 +- .../LookupEnvironmentHistoryRequest.java | 59 +- .../LookupEnvironmentHistoryResponse.java | 39 +- .../cloud/dialogflow/cx/v3beta1/Match.java | 187 +-- .../cx/v3beta1/MatchIntentRequest.java | 143 +-- .../cx/v3beta1/MatchIntentResponse.java | 110 +- .../dialogflow/cx/v3beta1/NluSettings.java | 64 +- .../cx/v3beta1/OutputAudioConfig.java | 104 +- .../cloud/dialogflow/cx/v3beta1/Page.java | 221 ++-- .../cloud/dialogflow/cx/v3beta1/PageInfo.java | 246 ++-- .../dialogflow/cx/v3beta1/QueryInput.java | 84 +- .../cx/v3beta1/QueryParameters.java | 320 ++--- .../cx/v3beta1/QueryParametersOrBuilder.java | 1 - .../dialogflow/cx/v3beta1/QueryResult.java | 470 ++++---- .../dialogflow/cx/v3beta1/ResourceName.java | 46 +- .../cx/v3beta1/ResponseMessage.java | 429 ++++--- .../cx/v3beta1/RestoreAgentRequest.java | 61 +- .../dialogflow/cx/v3beta1/RolloutConfig.java | 153 ++- .../dialogflow/cx/v3beta1/RolloutState.java | 91 +- .../cx/v3beta1/RunContinuousTestMetadata.java | 21 +- .../cx/v3beta1/RunContinuousTestRequest.java | 29 +- .../cx/v3beta1/RunContinuousTestResponse.java | 72 +- .../cx/v3beta1/RunTestCaseRequest.java | 46 +- .../cx/v3beta1/RunTestCaseResponse.java | 66 +- .../cx/v3beta1/SecuritySettings.java | 387 +++--- .../cx/v3beta1/SentimentAnalysisResult.java | 35 +- .../cx/v3beta1/SessionEntityType.java | 77 +- .../dialogflow/cx/v3beta1/SessionInfo.java | 57 +- .../cx/v3beta1/SessionInfoOrBuilder.java | 1 - .../cx/v3beta1/SpeechToTextSettings.java | 22 +- .../dialogflow/cx/v3beta1/SpeechWordInfo.java | 145 +-- .../cx/v3beta1/StartExperimentRequest.java | 29 +- .../cx/v3beta1/StopExperimentRequest.java | 29 +- .../v3beta1/StreamingDetectIntentRequest.java | 218 ++-- .../StreamingDetectIntentResponse.java | 39 +- .../v3beta1/StreamingRecognitionResult.java | 188 +-- .../cx/v3beta1/SynthesizeSpeechConfig.java | 128 +- .../cloud/dialogflow/cx/v3beta1/TestCase.java | 279 +++-- .../dialogflow/cx/v3beta1/TestCaseError.java | 117 +- .../dialogflow/cx/v3beta1/TestCaseResult.java | 146 ++- .../dialogflow/cx/v3beta1/TestConfig.java | 56 +- .../dialogflow/cx/v3beta1/TestError.java | 131 ++- .../cx/v3beta1/TestRunDifference.java | 49 +- .../dialogflow/cx/v3beta1/TextInput.java | 28 +- .../cx/v3beta1/TrainFlowRequest.java | 28 +- .../cx/v3beta1/TransitionCoverage.java | 252 ++-- .../cx/v3beta1/TransitionRoute.java | 134 ++- .../cx/v3beta1/TransitionRouteGroup.java | 74 +- .../v3beta1/TransitionRouteGroupCoverage.java | 227 ++-- .../cx/v3beta1/UpdateAgentRequest.java | 118 +- .../cx/v3beta1/UpdateEntityTypeRequest.java | 138 ++- .../cx/v3beta1/UpdateEnvironmentRequest.java | 121 +- .../cx/v3beta1/UpdateExperimentRequest.java | 120 +- .../cx/v3beta1/UpdateFlowRequest.java | 134 ++- .../cx/v3beta1/UpdateIntentRequest.java | 136 ++- .../cx/v3beta1/UpdatePageRequest.java | 134 ++- .../UpdateSecuritySettingsRequest.java | 121 +- .../UpdateSessionEntityTypeRequest.java | 124 +- .../cx/v3beta1/UpdateTestCaseRequest.java | 119 +- .../UpdateTransitionRouteGroupRequest.java | 143 +-- .../cx/v3beta1/UpdateVersionRequest.java | 118 +- .../cx/v3beta1/UpdateWebhookRequest.java | 118 +- .../cx/v3beta1/ValidateAgentRequest.java | 46 +- .../cx/v3beta1/ValidateFlowRequest.java | 46 +- .../cx/v3beta1/ValidationMessage.java | 114 +- .../cx/v3beta1/VariantsHistory.java | 79 +- .../cloud/dialogflow/cx/v3beta1/Version.java | 195 ++-- .../cx/v3beta1/VersionVariants.java | 73 +- .../cx/v3beta1/VoiceSelectionParams.java | 49 +- .../cloud/dialogflow/cx/v3beta1/Webhook.java | 347 +++--- .../dialogflow/cx/v3beta1/WebhookRequest.java | 674 ++++++----- .../cx/v3beta1/WebhookResponse.java | 290 ++--- 518 files changed, 32337 insertions(+), 21785 deletions(-) diff --git a/java-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index 730b3c3bca5e..762ab841eeb4 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-dialogflow-cx - 0.18.0 + 0.19.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.18.0' +implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.19.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.18.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.19.0" ``` ## Authentication diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsGrpc.java index ade2858518b8..f8242977d61d 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsGrpc.java @@ -572,7 +572,8 @@ public void deleteAgent( * The returned `Operation` type has the following method-specific fields: * - `metadata`: An empty [Struct * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - * - `response`: [ExportAgentResponse][google.cloud.dialogflow.cx.v3.ExportAgentResponse] + * - `response`: + * [ExportAgentResponse][google.cloud.dialogflow.cx.v3.ExportAgentResponse] * */ public void exportAgent( @@ -815,7 +816,8 @@ public void deleteAgent( * The returned `Operation` type has the following method-specific fields: * - `metadata`: An empty [Struct * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - * - `response`: [ExportAgentResponse][google.cloud.dialogflow.cx.v3.ExportAgentResponse] + * - `response`: + * [ExportAgentResponse][google.cloud.dialogflow.cx.v3.ExportAgentResponse] * */ public void exportAgent( @@ -992,7 +994,8 @@ public com.google.protobuf.Empty deleteAgent( * The returned `Operation` type has the following method-specific fields: * - `metadata`: An empty [Struct * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - * - `response`: [ExportAgentResponse][google.cloud.dialogflow.cx.v3.ExportAgentResponse] + * - `response`: + * [ExportAgentResponse][google.cloud.dialogflow.cx.v3.ExportAgentResponse] * */ public com.google.longrunning.Operation exportAgent( @@ -1159,7 +1162,8 @@ protected AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * The returned `Operation` type has the following method-specific fields: * - `metadata`: An empty [Struct * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - * - `response`: [ExportAgentResponse][google.cloud.dialogflow.cx.v3.ExportAgentResponse] + * - `response`: + * [ExportAgentResponse][google.cloud.dialogflow.cx.v3.ExportAgentResponse] * */ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsGrpc.java index 4df7ddbf8137..6fa107f293ed 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsGrpc.java @@ -180,7 +180,8 @@ public abstract static class DeploymentsImplBase implements io.grpc.BindableServ * * *
-     * Returns the list of all deployments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Returns the list of all deployments in the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public void listDeployments( @@ -195,7 +196,8 @@ public void listDeployments( * * *
-     * Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+     * Retrieves the specified
+     * [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
      * 
*/ public void getDeployment( @@ -248,7 +250,8 @@ protected DeploymentsStub build(io.grpc.Channel channel, io.grpc.CallOptions cal * * *
-     * Returns the list of all deployments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Returns the list of all deployments in the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public void listDeployments( @@ -265,7 +268,8 @@ public void listDeployments( * * *
-     * Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+     * Retrieves the specified
+     * [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
      * 
*/ public void getDeployment( @@ -302,7 +306,8 @@ protected DeploymentsBlockingStub build( * * *
-     * Returns the list of all deployments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Returns the list of all deployments in the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse listDeployments( @@ -315,7 +320,8 @@ public com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse listDeployments * * *
-     * Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+     * Retrieves the specified
+     * [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
      * 
*/ public com.google.cloud.dialogflow.cx.v3.Deployment getDeployment( @@ -348,7 +354,8 @@ protected DeploymentsFutureStub build( * * *
-     * Returns the list of all deployments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Returns the list of all deployments in the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -362,7 +369,8 @@ protected DeploymentsFutureStub build( * * *
-     * Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
+     * Retrieves the specified
+     * [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsGrpc.java index fa70a0aded55..d57d05e574e5 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsGrpc.java @@ -21,7 +21,8 @@ * * *
- * Service for managing [Environments][google.cloud.dialogflow.cx.v3.Environment].
+ * Service for managing
+ * [Environments][google.cloud.dialogflow.cx.v3.Environment].
  * 
*/ @javax.annotation.Generated( @@ -497,7 +498,8 @@ public EnvironmentsFutureStub newStub( * * *
-   * Service for managing [Environments][google.cloud.dialogflow.cx.v3.Environment].
+   * Service for managing
+   * [Environments][google.cloud.dialogflow.cx.v3.Environment].
    * 
*/ public abstract static class EnvironmentsImplBase implements io.grpc.BindableService { @@ -506,7 +508,8 @@ public abstract static class EnvironmentsImplBase implements io.grpc.BindableSer * * *
-     * Returns the list of all environments in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent].
+     * Returns the list of all environments in the specified
+     * [Agent][google.cloud.dialogflow.cx.v3.Agent].
      * 
*/ public void listEnvironments( @@ -521,7 +524,8 @@ public void listEnvironments( * * *
-     * Retrieves the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Retrieves the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public void getEnvironment( @@ -536,7 +540,8 @@ public void getEnvironment( * * *
-     * Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent].
+     * Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the
+     * specified [Agent][google.cloud.dialogflow.cx.v3.Agent].
      * This method is a [long-running
      * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
      * The returned `Operation` type has the following method-specific fields:
@@ -556,7 +561,8 @@ public void createEnvironment(
      *
      *
      * 
-     * Updates the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Updates the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * This method is a [long-running
      * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
      * The returned `Operation` type has the following method-specific fields:
@@ -576,7 +582,8 @@ public void updateEnvironment(
      *
      *
      * 
-     * Deletes the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Deletes the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public void deleteEnvironment( @@ -590,7 +597,8 @@ public void deleteEnvironment( * * *
-     * Looks up the history of the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Looks up the history of the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public void lookupEnvironmentHistory( @@ -606,12 +614,15 @@ public void lookupEnvironmentHistory( * * *
-     * Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Kicks off a continuous test under the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * This method is a [long-running
      * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
      * The returned `Operation` type has the following method-specific fields:
-     * - `metadata`: [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata]
-     * - `response`: [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3.RunContinuousTestResponse]
+     * - `metadata`:
+     * [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata]
+     * - `response`:
+     * [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3.RunContinuousTestResponse]
      * 
*/ public void runContinuousTest( @@ -641,12 +652,15 @@ public void listContinuousTestResults( * * *
-     * Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Deploys a flow to the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * This method is a [long-running
      * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
      * The returned `Operation` type has the following method-specific fields:
-     * - `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3.DeployFlowMetadata]
-     * - `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3.DeployFlowResponse]
+     * - `metadata`:
+     * [DeployFlowMetadata][google.cloud.dialogflow.cx.v3.DeployFlowMetadata]
+     * - `response`:
+     * [DeployFlowResponse][google.cloud.dialogflow.cx.v3.DeployFlowResponse]
      * 
*/ public void deployFlow( @@ -724,7 +738,8 @@ public final io.grpc.ServerServiceDefinition bindService() { * * *
-   * Service for managing [Environments][google.cloud.dialogflow.cx.v3.Environment].
+   * Service for managing
+   * [Environments][google.cloud.dialogflow.cx.v3.Environment].
    * 
*/ public static final class EnvironmentsStub @@ -742,7 +757,8 @@ protected EnvironmentsStub build(io.grpc.Channel channel, io.grpc.CallOptions ca * * *
-     * Returns the list of all environments in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent].
+     * Returns the list of all environments in the specified
+     * [Agent][google.cloud.dialogflow.cx.v3.Agent].
      * 
*/ public void listEnvironments( @@ -759,7 +775,8 @@ public void listEnvironments( * * *
-     * Retrieves the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Retrieves the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public void getEnvironment( @@ -776,7 +793,8 @@ public void getEnvironment( * * *
-     * Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent].
+     * Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the
+     * specified [Agent][google.cloud.dialogflow.cx.v3.Agent].
      * This method is a [long-running
      * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
      * The returned `Operation` type has the following method-specific fields:
@@ -798,7 +816,8 @@ public void createEnvironment(
      *
      *
      * 
-     * Updates the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Updates the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * This method is a [long-running
      * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
      * The returned `Operation` type has the following method-specific fields:
@@ -820,7 +839,8 @@ public void updateEnvironment(
      *
      *
      * 
-     * Deletes the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Deletes the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public void deleteEnvironment( @@ -836,7 +856,8 @@ public void deleteEnvironment( * * *
-     * Looks up the history of the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Looks up the history of the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public void lookupEnvironmentHistory( @@ -854,12 +875,15 @@ public void lookupEnvironmentHistory( * * *
-     * Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Kicks off a continuous test under the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * This method is a [long-running
      * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
      * The returned `Operation` type has the following method-specific fields:
-     * - `metadata`: [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata]
-     * - `response`: [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3.RunContinuousTestResponse]
+     * - `metadata`:
+     * [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata]
+     * - `response`:
+     * [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3.RunContinuousTestResponse]
      * 
*/ public void runContinuousTest( @@ -893,12 +917,15 @@ public void listContinuousTestResults( * * *
-     * Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Deploys a flow to the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * This method is a [long-running
      * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
      * The returned `Operation` type has the following method-specific fields:
-     * - `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3.DeployFlowMetadata]
-     * - `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3.DeployFlowResponse]
+     * - `metadata`:
+     * [DeployFlowMetadata][google.cloud.dialogflow.cx.v3.DeployFlowMetadata]
+     * - `response`:
+     * [DeployFlowResponse][google.cloud.dialogflow.cx.v3.DeployFlowResponse]
      * 
*/ public void deployFlow( @@ -913,7 +940,8 @@ public void deployFlow( * * *
-   * Service for managing [Environments][google.cloud.dialogflow.cx.v3.Environment].
+   * Service for managing
+   * [Environments][google.cloud.dialogflow.cx.v3.Environment].
    * 
*/ public static final class EnvironmentsBlockingStub @@ -932,7 +960,8 @@ protected EnvironmentsBlockingStub build( * * *
-     * Returns the list of all environments in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent].
+     * Returns the list of all environments in the specified
+     * [Agent][google.cloud.dialogflow.cx.v3.Agent].
      * 
*/ public com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse listEnvironments( @@ -945,7 +974,8 @@ public com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse listEnvironmen * * *
-     * Retrieves the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Retrieves the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public com.google.cloud.dialogflow.cx.v3.Environment getEnvironment( @@ -958,7 +988,8 @@ public com.google.cloud.dialogflow.cx.v3.Environment getEnvironment( * * *
-     * Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent].
+     * Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the
+     * specified [Agent][google.cloud.dialogflow.cx.v3.Agent].
      * This method is a [long-running
      * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
      * The returned `Operation` type has the following method-specific fields:
@@ -977,7 +1008,8 @@ public com.google.longrunning.Operation createEnvironment(
      *
      *
      * 
-     * Updates the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Updates the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * This method is a [long-running
      * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
      * The returned `Operation` type has the following method-specific fields:
@@ -996,7 +1028,8 @@ public com.google.longrunning.Operation updateEnvironment(
      *
      *
      * 
-     * Deletes the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Deletes the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public com.google.protobuf.Empty deleteEnvironment( @@ -1009,7 +1042,8 @@ public com.google.protobuf.Empty deleteEnvironment( * * *
-     * Looks up the history of the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Looks up the history of the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse @@ -1023,12 +1057,15 @@ public com.google.protobuf.Empty deleteEnvironment( * * *
-     * Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Kicks off a continuous test under the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * This method is a [long-running
      * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
      * The returned `Operation` type has the following method-specific fields:
-     * - `metadata`: [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata]
-     * - `response`: [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3.RunContinuousTestResponse]
+     * - `metadata`:
+     * [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata]
+     * - `response`:
+     * [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3.RunContinuousTestResponse]
      * 
*/ public com.google.longrunning.Operation runContinuousTest( @@ -1055,12 +1092,15 @@ public com.google.longrunning.Operation runContinuousTest( * * *
-     * Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Deploys a flow to the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * This method is a [long-running
      * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
      * The returned `Operation` type has the following method-specific fields:
-     * - `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3.DeployFlowMetadata]
-     * - `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3.DeployFlowResponse]
+     * - `metadata`:
+     * [DeployFlowMetadata][google.cloud.dialogflow.cx.v3.DeployFlowMetadata]
+     * - `response`:
+     * [DeployFlowResponse][google.cloud.dialogflow.cx.v3.DeployFlowResponse]
      * 
*/ public com.google.longrunning.Operation deployFlow( @@ -1074,7 +1114,8 @@ public com.google.longrunning.Operation deployFlow( * * *
-   * Service for managing [Environments][google.cloud.dialogflow.cx.v3.Environment].
+   * Service for managing
+   * [Environments][google.cloud.dialogflow.cx.v3.Environment].
    * 
*/ public static final class EnvironmentsFutureStub @@ -1093,7 +1134,8 @@ protected EnvironmentsFutureStub build( * * *
-     * Returns the list of all environments in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent].
+     * Returns the list of all environments in the specified
+     * [Agent][google.cloud.dialogflow.cx.v3.Agent].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1107,7 +1149,8 @@ protected EnvironmentsFutureStub build( * * *
-     * Retrieves the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Retrieves the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1121,7 +1164,8 @@ protected EnvironmentsFutureStub build( * * *
-     * Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent].
+     * Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the
+     * specified [Agent][google.cloud.dialogflow.cx.v3.Agent].
      * This method is a [long-running
      * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
      * The returned `Operation` type has the following method-specific fields:
@@ -1140,7 +1184,8 @@ protected EnvironmentsFutureStub build(
      *
      *
      * 
-     * Updates the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Updates the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * This method is a [long-running
      * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
      * The returned `Operation` type has the following method-specific fields:
@@ -1159,7 +1204,8 @@ protected EnvironmentsFutureStub build(
      *
      *
      * 
-     * Deletes the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Deletes the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -1172,7 +1218,8 @@ protected EnvironmentsFutureStub build( * * *
-     * Looks up the history of the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Looks up the history of the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1187,12 +1234,15 @@ protected EnvironmentsFutureStub build( * * *
-     * Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Kicks off a continuous test under the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * This method is a [long-running
      * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
      * The returned `Operation` type has the following method-specific fields:
-     * - `metadata`: [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata]
-     * - `response`: [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3.RunContinuousTestResponse]
+     * - `metadata`:
+     * [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata]
+     * - `response`:
+     * [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3.RunContinuousTestResponse]
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -1220,12 +1270,15 @@ protected EnvironmentsFutureStub build( * * *
-     * Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Deploys a flow to the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * This method is a [long-running
      * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
      * The returned `Operation` type has the following method-specific fields:
-     * - `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3.DeployFlowMetadata]
-     * - `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3.DeployFlowResponse]
+     * - `metadata`:
+     * [DeployFlowMetadata][google.cloud.dialogflow.cx.v3.DeployFlowMetadata]
+     * - `response`:
+     * [DeployFlowResponse][google.cloud.dialogflow.cx.v3.DeployFlowResponse]
      * 
*/ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsGrpc.java index 00b424a9f763..827e2a9354fb 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsGrpc.java @@ -407,7 +407,8 @@ public abstract static class ExperimentsImplBase implements io.grpc.BindableServ * * *
-     * Returns the list of all experiments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Returns the list of all experiments in the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public void listExperiments( @@ -422,7 +423,8 @@ public void listExperiments( * * *
-     * Retrieves the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
+     * Retrieves the specified
+     * [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
      * 
*/ public void getExperiment( @@ -437,7 +439,8 @@ public void getExperiment( * * *
-     * Creates an [Experiment][google.cloud.dialogflow.cx.v3.Experiment] in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Creates an [Experiment][google.cloud.dialogflow.cx.v3.Experiment] in the
+     * specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public void createExperiment( @@ -452,7 +455,8 @@ public void createExperiment( * * *
-     * Updates the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
+     * Updates the specified
+     * [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
      * 
*/ public void updateExperiment( @@ -467,7 +471,8 @@ public void updateExperiment( * * *
-     * Deletes the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
+     * Deletes the specified
+     * [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
      * 
*/ public void deleteExperiment( @@ -481,8 +486,9 @@ public void deleteExperiment( * * *
-     * Starts the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only changes the state of
-     * experiment from PENDING to RUNNING.
+     * Starts the specified
+     * [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only
+     * changes the state of experiment from PENDING to RUNNING.
      * 
*/ public void startExperiment( @@ -497,8 +503,8 @@ public void startExperiment( * * *
-     * Stops the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only changes the state of
-     * experiment from RUNNING to DONE.
+     * Stops the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
+     * This rpc only changes the state of experiment from RUNNING to DONE.
      * 
*/ public void stopExperiment( @@ -585,7 +591,8 @@ protected ExperimentsStub build(io.grpc.Channel channel, io.grpc.CallOptions cal * * *
-     * Returns the list of all experiments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Returns the list of all experiments in the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public void listExperiments( @@ -602,7 +609,8 @@ public void listExperiments( * * *
-     * Retrieves the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
+     * Retrieves the specified
+     * [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
      * 
*/ public void getExperiment( @@ -619,7 +627,8 @@ public void getExperiment( * * *
-     * Creates an [Experiment][google.cloud.dialogflow.cx.v3.Experiment] in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Creates an [Experiment][google.cloud.dialogflow.cx.v3.Experiment] in the
+     * specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public void createExperiment( @@ -636,7 +645,8 @@ public void createExperiment( * * *
-     * Updates the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
+     * Updates the specified
+     * [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
      * 
*/ public void updateExperiment( @@ -653,7 +663,8 @@ public void updateExperiment( * * *
-     * Deletes the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
+     * Deletes the specified
+     * [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
      * 
*/ public void deleteExperiment( @@ -669,8 +680,9 @@ public void deleteExperiment( * * *
-     * Starts the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only changes the state of
-     * experiment from PENDING to RUNNING.
+     * Starts the specified
+     * [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only
+     * changes the state of experiment from PENDING to RUNNING.
      * 
*/ public void startExperiment( @@ -687,8 +699,8 @@ public void startExperiment( * * *
-     * Stops the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only changes the state of
-     * experiment from RUNNING to DONE.
+     * Stops the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
+     * This rpc only changes the state of experiment from RUNNING to DONE.
      * 
*/ public void stopExperiment( @@ -725,7 +737,8 @@ protected ExperimentsBlockingStub build( * * *
-     * Returns the list of all experiments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Returns the list of all experiments in the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public com.google.cloud.dialogflow.cx.v3.ListExperimentsResponse listExperiments( @@ -738,7 +751,8 @@ public com.google.cloud.dialogflow.cx.v3.ListExperimentsResponse listExperiments * * *
-     * Retrieves the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
+     * Retrieves the specified
+     * [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
      * 
*/ public com.google.cloud.dialogflow.cx.v3.Experiment getExperiment( @@ -751,7 +765,8 @@ public com.google.cloud.dialogflow.cx.v3.Experiment getExperiment( * * *
-     * Creates an [Experiment][google.cloud.dialogflow.cx.v3.Experiment] in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Creates an [Experiment][google.cloud.dialogflow.cx.v3.Experiment] in the
+     * specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public com.google.cloud.dialogflow.cx.v3.Experiment createExperiment( @@ -764,7 +779,8 @@ public com.google.cloud.dialogflow.cx.v3.Experiment createExperiment( * * *
-     * Updates the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
+     * Updates the specified
+     * [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
      * 
*/ public com.google.cloud.dialogflow.cx.v3.Experiment updateExperiment( @@ -777,7 +793,8 @@ public com.google.cloud.dialogflow.cx.v3.Experiment updateExperiment( * * *
-     * Deletes the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
+     * Deletes the specified
+     * [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
      * 
*/ public com.google.protobuf.Empty deleteExperiment( @@ -790,8 +807,9 @@ public com.google.protobuf.Empty deleteExperiment( * * *
-     * Starts the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only changes the state of
-     * experiment from PENDING to RUNNING.
+     * Starts the specified
+     * [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only
+     * changes the state of experiment from PENDING to RUNNING.
      * 
*/ public com.google.cloud.dialogflow.cx.v3.Experiment startExperiment( @@ -804,8 +822,8 @@ public com.google.cloud.dialogflow.cx.v3.Experiment startExperiment( * * *
-     * Stops the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only changes the state of
-     * experiment from RUNNING to DONE.
+     * Stops the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
+     * This rpc only changes the state of experiment from RUNNING to DONE.
      * 
*/ public com.google.cloud.dialogflow.cx.v3.Experiment stopExperiment( @@ -838,7 +856,8 @@ protected ExperimentsFutureStub build( * * *
-     * Returns the list of all experiments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Returns the list of all experiments in the specified
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -852,7 +871,8 @@ protected ExperimentsFutureStub build( * * *
-     * Retrieves the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
+     * Retrieves the specified
+     * [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -866,7 +886,8 @@ protected ExperimentsFutureStub build( * * *
-     * Creates an [Experiment][google.cloud.dialogflow.cx.v3.Experiment] in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
+     * Creates an [Experiment][google.cloud.dialogflow.cx.v3.Experiment] in the
+     * specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -880,7 +901,8 @@ protected ExperimentsFutureStub build( * * *
-     * Updates the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
+     * Updates the specified
+     * [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -894,7 +916,8 @@ protected ExperimentsFutureStub build( * * *
-     * Deletes the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
+     * Deletes the specified
+     * [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -907,8 +930,9 @@ protected ExperimentsFutureStub build( * * *
-     * Starts the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only changes the state of
-     * experiment from PENDING to RUNNING.
+     * Starts the specified
+     * [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only
+     * changes the state of experiment from PENDING to RUNNING.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -922,8 +946,8 @@ protected ExperimentsFutureStub build( * * *
-     * Stops the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only changes the state of
-     * experiment from RUNNING to DONE.
+     * Stops the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment].
+     * This rpc only changes the state of experiment from RUNNING to DONE.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsGrpc.java index 893d5819a46e..e4fc97a7ee20 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsGrpc.java @@ -664,7 +664,8 @@ public void getFlowValidationResult( * The returned `Operation` type has the following method-specific fields: * - `metadata`: An empty [Struct * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - * - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3.ImportFlowResponse] + * - `response`: + * [ImportFlowResponse][google.cloud.dialogflow.cx.v3.ImportFlowResponse] * Note: You should always train a flow prior to sending it queries. See the * [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). @@ -686,7 +687,8 @@ public void importFlow( * The returned `Operation` type has the following method-specific fields: * - `metadata`: An empty [Struct * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - * - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3.ExportFlowResponse] + * - `response`: + * [ExportFlowResponse][google.cloud.dialogflow.cx.v3.ExportFlowResponse] * Note that resources (e.g. intents, entities, webhooks) that the flow * references will also be exported. *
@@ -933,7 +935,8 @@ public void getFlowValidationResult( * The returned `Operation` type has the following method-specific fields: * - `metadata`: An empty [Struct * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - * - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3.ImportFlowResponse] + * - `response`: + * [ImportFlowResponse][google.cloud.dialogflow.cx.v3.ImportFlowResponse] * Note: You should always train a flow prior to sending it queries. See the * [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). @@ -956,7 +959,8 @@ public void importFlow( * The returned `Operation` type has the following method-specific fields: * - `metadata`: An empty [Struct * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - * - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3.ExportFlowResponse] + * - `response`: + * [ExportFlowResponse][google.cloud.dialogflow.cx.v3.ExportFlowResponse] * Note that resources (e.g. intents, entities, webhooks) that the flow * references will also be exported. *
@@ -1121,7 +1125,8 @@ public com.google.cloud.dialogflow.cx.v3.FlowValidationResult getFlowValidationR * The returned `Operation` type has the following method-specific fields: * - `metadata`: An empty [Struct * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - * - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3.ImportFlowResponse] + * - `response`: + * [ImportFlowResponse][google.cloud.dialogflow.cx.v3.ImportFlowResponse] * Note: You should always train a flow prior to sending it queries. See the * [training * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). @@ -1143,7 +1148,8 @@ public com.google.longrunning.Operation importFlow( * The returned `Operation` type has the following method-specific fields: * - `metadata`: An empty [Struct * message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - * - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3.ExportFlowResponse] + * - `response`: + * [ExportFlowResponse][google.cloud.dialogflow.cx.v3.ExportFlowResponse] * Note that resources (e.g. intents, entities, webhooks) that the flow * references will also be exported. *
@@ -1314,7 +1320,8 @@ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceGrpc.java index ee0c0221ab27..2f0577584235 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceGrpc.java @@ -366,8 +366,9 @@ public void createSecuritySettings( * * *
-     * Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
-     * The returned settings may be stale by up to 1 minute.
+     * Retrieves the specified
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. The
+     * returned settings may be stale by up to 1 minute.
      * 
*/ public void getSecuritySettings( @@ -382,7 +383,8 @@ public void getSecuritySettings( * * *
-     * Updates the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
+     * Updates the specified
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
      * 
*/ public void updateSecuritySettings( @@ -412,7 +414,8 @@ public void listSecuritySettings( * * *
-     * Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
+     * Deletes the specified
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
      * 
*/ public void deleteSecuritySettings( @@ -503,8 +506,9 @@ public void createSecuritySettings( * * *
-     * Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
-     * The returned settings may be stale by up to 1 minute.
+     * Retrieves the specified
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. The
+     * returned settings may be stale by up to 1 minute.
      * 
*/ public void getSecuritySettings( @@ -521,7 +525,8 @@ public void getSecuritySettings( * * *
-     * Updates the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
+     * Updates the specified
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
      * 
*/ public void updateSecuritySettings( @@ -555,7 +560,8 @@ public void listSecuritySettings( * * *
-     * Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
+     * Deletes the specified
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
      * 
*/ public void deleteSecuritySettings( @@ -605,8 +611,9 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings createSecuritySettings * * *
-     * Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
-     * The returned settings may be stale by up to 1 minute.
+     * Retrieves the specified
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. The
+     * returned settings may be stale by up to 1 minute.
      * 
*/ public com.google.cloud.dialogflow.cx.v3.SecuritySettings getSecuritySettings( @@ -619,7 +626,8 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings getSecuritySettings( * * *
-     * Updates the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
+     * Updates the specified
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
      * 
*/ public com.google.cloud.dialogflow.cx.v3.SecuritySettings updateSecuritySettings( @@ -645,7 +653,8 @@ public com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse listSecuri * * *
-     * Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
+     * Deletes the specified
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
      * 
*/ public com.google.protobuf.Empty deleteSecuritySettings( @@ -694,8 +703,9 @@ protected SecuritySettingsServiceFutureStub build( * * *
-     * Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
-     * The returned settings may be stale by up to 1 minute.
+     * Retrieves the specified
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. The
+     * returned settings may be stale by up to 1 minute.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -709,7 +719,8 @@ protected SecuritySettingsServiceFutureStub build( * * *
-     * Updates the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
+     * Updates the specified
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -739,7 +750,8 @@ protected SecuritySettingsServiceFutureStub build( * * *
-     * Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
+     * Deletes the specified
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesGrpc.java index 386651e389a9..d1e6354c94ca 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesGrpc.java @@ -21,7 +21,8 @@ * * *
- * Service for managing [SessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityType].
+ * Service for managing
+ * [SessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityType].
  * 
*/ @javax.annotation.Generated( @@ -333,7 +334,8 @@ public SessionEntityTypesFutureStub newStub( * * *
-   * Service for managing [SessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityType].
+   * Service for managing
+   * [SessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityType].
    * 
*/ public abstract static class SessionEntityTypesImplBase implements io.grpc.BindableService { @@ -458,7 +460,8 @@ public final io.grpc.ServerServiceDefinition bindService() { * * *
-   * Service for managing [SessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityType].
+   * Service for managing
+   * [SessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityType].
    * 
*/ public static final class SessionEntityTypesStub @@ -563,7 +566,8 @@ public void deleteSessionEntityType( * * *
-   * Service for managing [SessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityType].
+   * Service for managing
+   * [SessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityType].
    * 
*/ public static final class SessionEntityTypesBlockingStub @@ -649,7 +653,8 @@ public com.google.protobuf.Empty deleteSessionEntityType( * * *
-   * Service for managing [SessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityType].
+   * Service for managing
+   * [SessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityType].
    * 
*/ public static final class SessionEntityTypesFutureStub diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsGrpc.java index 3c57c2fec736..3d294774ebee 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsGrpc.java @@ -22,8 +22,9 @@ * *
  * A session represents an interaction with a user. You retrieve user input
- * and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to determine
- * user intent and respond.
+ * and pass it to the
+ * [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to
+ * determine user intent and respond.
  * 
*/ @javax.annotation.Generated( @@ -269,8 +270,9 @@ public SessionsFutureStub newStub( * *
    * A session represents an interaction with a user. You retrieve user input
-   * and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to determine
-   * user intent and respond.
+   * and pass it to the
+   * [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to
+   * determine user intent and respond.
    * 
*/ public abstract static class SessionsImplBase implements io.grpc.BindableService { @@ -338,9 +340,13 @@ public void matchIntent( * * *
-     * Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent].
-     * Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with input from
-     * [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse]. Otherwise, the behavior is undefined.
+     * Fulfills a matched intent returned by
+     * [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent]. Must be
+     * called after
+     * [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with
+     * input from
+     * [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse].
+     * Otherwise, the behavior is undefined.
      * 
*/ public void fulfillIntent( @@ -391,8 +397,9 @@ public final io.grpc.ServerServiceDefinition bindService() { * *
    * A session represents an interaction with a user. You retrieve user input
-   * and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to determine
-   * user intent and respond.
+   * and pass it to the
+   * [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to
+   * determine user intent and respond.
    * 
*/ public static final class SessionsStub extends io.grpc.stub.AbstractAsyncStub { @@ -473,9 +480,13 @@ public void matchIntent( * * *
-     * Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent].
-     * Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with input from
-     * [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse]. Otherwise, the behavior is undefined.
+     * Fulfills a matched intent returned by
+     * [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent]. Must be
+     * called after
+     * [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with
+     * input from
+     * [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse].
+     * Otherwise, the behavior is undefined.
      * 
*/ public void fulfillIntent( @@ -494,8 +505,9 @@ public void fulfillIntent( * *
    * A session represents an interaction with a user. You retrieve user input
-   * and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to determine
-   * user intent and respond.
+   * and pass it to the
+   * [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to
+   * determine user intent and respond.
    * 
*/ public static final class SessionsBlockingStub @@ -546,9 +558,13 @@ public com.google.cloud.dialogflow.cx.v3.MatchIntentResponse matchIntent( * * *
-     * Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent].
-     * Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with input from
-     * [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse]. Otherwise, the behavior is undefined.
+     * Fulfills a matched intent returned by
+     * [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent]. Must be
+     * called after
+     * [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with
+     * input from
+     * [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse].
+     * Otherwise, the behavior is undefined.
      * 
*/ public com.google.cloud.dialogflow.cx.v3.FulfillIntentResponse fulfillIntent( @@ -563,8 +579,9 @@ public com.google.cloud.dialogflow.cx.v3.FulfillIntentResponse fulfillIntent( * *
    * A session represents an interaction with a user. You retrieve user input
-   * and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to determine
-   * user intent and respond.
+   * and pass it to the
+   * [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to
+   * determine user intent and respond.
    * 
*/ public static final class SessionsFutureStub @@ -617,9 +634,13 @@ protected SessionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * * *
-     * Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent].
-     * Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with input from
-     * [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse]. Otherwise, the behavior is undefined.
+     * Fulfills a matched intent returned by
+     * [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent]. Must be
+     * called after
+     * [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with
+     * input from
+     * [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse].
+     * Otherwise, the behavior is undefined.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesGrpc.java index 79ba1eb655c7..924654226f98 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesGrpc.java @@ -711,8 +711,10 @@ public void updateTestCase( * This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: - * - `metadata`: [RunTestCaseMetadata][google.cloud.dialogflow.cx.v3.RunTestCaseMetadata] - * - `response`: [RunTestCaseResponse][google.cloud.dialogflow.cx.v3.RunTestCaseResponse] + * - `metadata`: + * [RunTestCaseMetadata][google.cloud.dialogflow.cx.v3.RunTestCaseMetadata] + * - `response`: + * [RunTestCaseResponse][google.cloud.dialogflow.cx.v3.RunTestCaseResponse] *
*/ public void runTestCase( @@ -730,8 +732,10 @@ public void runTestCase( * This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: - * - `metadata`: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata] - * - `response`: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse] + * - `metadata`: + * [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata] + * - `response`: + * [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse] *
*/ public void batchRunTestCases( @@ -766,8 +770,10 @@ public void calculateCoverage( * This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: - * - `metadata`: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata] - * - `response`: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse] + * - `metadata`: + * [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata] + * - `response`: + * [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse] *
*/ public void importTestCases( @@ -786,8 +792,10 @@ public void importTestCases( * This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: - * - `metadata`: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata] - * - `response`: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse] + * - `metadata`: + * [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata] + * - `response`: + * [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse] *
*/ public void exportTestCases( @@ -1017,8 +1025,10 @@ public void updateTestCase( * This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: - * - `metadata`: [RunTestCaseMetadata][google.cloud.dialogflow.cx.v3.RunTestCaseMetadata] - * - `response`: [RunTestCaseResponse][google.cloud.dialogflow.cx.v3.RunTestCaseResponse] + * - `metadata`: + * [RunTestCaseMetadata][google.cloud.dialogflow.cx.v3.RunTestCaseMetadata] + * - `response`: + * [RunTestCaseResponse][google.cloud.dialogflow.cx.v3.RunTestCaseResponse] *
*/ public void runTestCase( @@ -1038,8 +1048,10 @@ public void runTestCase( * This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: - * - `metadata`: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata] - * - `response`: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse] + * - `metadata`: + * [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata] + * - `response`: + * [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse] * */ public void batchRunTestCases( @@ -1078,8 +1090,10 @@ public void calculateCoverage( * This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: - * - `metadata`: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata] - * - `response`: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse] + * - `metadata`: + * [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata] + * - `response`: + * [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse] * */ public void importTestCases( @@ -1100,8 +1114,10 @@ public void importTestCases( * This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: - * - `metadata`: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata] - * - `response`: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse] + * - `metadata`: + * [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata] + * - `response`: + * [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse] * */ public void exportTestCases( @@ -1241,8 +1257,10 @@ public com.google.cloud.dialogflow.cx.v3.TestCase updateTestCase( * This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: - * - `metadata`: [RunTestCaseMetadata][google.cloud.dialogflow.cx.v3.RunTestCaseMetadata] - * - `response`: [RunTestCaseResponse][google.cloud.dialogflow.cx.v3.RunTestCaseResponse] + * - `metadata`: + * [RunTestCaseMetadata][google.cloud.dialogflow.cx.v3.RunTestCaseMetadata] + * - `response`: + * [RunTestCaseResponse][google.cloud.dialogflow.cx.v3.RunTestCaseResponse] * */ public com.google.longrunning.Operation runTestCase( @@ -1259,8 +1277,10 @@ public com.google.longrunning.Operation runTestCase( * This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: - * - `metadata`: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata] - * - `response`: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse] + * - `metadata`: + * [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata] + * - `response`: + * [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse] * */ public com.google.longrunning.Operation batchRunTestCases( @@ -1292,8 +1312,10 @@ public com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse calculateCove * This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: - * - `metadata`: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata] - * - `response`: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse] + * - `metadata`: + * [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata] + * - `response`: + * [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse] * */ public com.google.longrunning.Operation importTestCases( @@ -1311,8 +1333,10 @@ public com.google.longrunning.Operation importTestCases( * This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: - * - `metadata`: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata] - * - `response`: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse] + * - `metadata`: + * [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata] + * - `response`: + * [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse] * */ public com.google.longrunning.Operation exportTestCases( @@ -1445,8 +1469,10 @@ protected TestCasesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: - * - `metadata`: [RunTestCaseMetadata][google.cloud.dialogflow.cx.v3.RunTestCaseMetadata] - * - `response`: [RunTestCaseResponse][google.cloud.dialogflow.cx.v3.RunTestCaseResponse] + * - `metadata`: + * [RunTestCaseMetadata][google.cloud.dialogflow.cx.v3.RunTestCaseMetadata] + * - `response`: + * [RunTestCaseResponse][google.cloud.dialogflow.cx.v3.RunTestCaseResponse] * */ public com.google.common.util.concurrent.ListenableFuture @@ -1463,8 +1489,10 @@ protected TestCasesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: - * - `metadata`: [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata] - * - `response`: [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse] + * - `metadata`: + * [BatchRunTestCasesMetadata][google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata] + * - `response`: + * [BatchRunTestCasesResponse][google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse] * */ public com.google.common.util.concurrent.ListenableFuture @@ -1497,8 +1525,10 @@ protected TestCasesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: - * - `metadata`: [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata] - * - `response`: [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse] + * - `metadata`: + * [ImportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata] + * - `response`: + * [ImportTestCasesResponse][google.cloud.dialogflow.cx.v3.ImportTestCasesResponse] * */ public com.google.common.util.concurrent.ListenableFuture @@ -1516,8 +1546,10 @@ protected TestCasesFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * This method is a [long-running * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). * The returned `Operation` type has the following method-specific fields: - * - `metadata`: [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata] - * - `response`: [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse] + * - `metadata`: + * [ExportTestCasesMetadata][google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata] + * - `response`: + * [ExportTestCasesResponse][google.cloud.dialogflow.cx.v3.ExportTestCasesResponse] * */ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsGrpc.java index f4dd552f5777..f43f9083392b 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsGrpc.java +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsGrpc.java @@ -21,7 +21,8 @@ * * *
- * Service for managing [TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+ * Service for managing
+ * [TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
  * 
*/ @javax.annotation.Generated( @@ -344,7 +345,8 @@ public TransitionRouteGroupsFutureStub newStub( * * *
-   * Service for managing [TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+   * Service for managing
+   * [TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
    * 
*/ public abstract static class TransitionRouteGroupsImplBase implements io.grpc.BindableService { @@ -369,7 +371,8 @@ public void listTransitionRouteGroups( * * *
-     * Retrieves the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Retrieves the specified
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
*/ public void getTransitionRouteGroup( @@ -384,7 +387,9 @@ public void getTransitionRouteGroup( * * *
-     * Creates an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] in the specified flow.
+     * Creates an
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * in the specified flow.
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -402,7 +407,8 @@ public void createTransitionRouteGroup(
      *
      *
      * 
-     * Updates the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Updates the specified
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -420,7 +426,8 @@ public void updateTransitionRouteGroup(
      *
      *
      * 
-     * Deletes the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Deletes the specified
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -478,7 +485,8 @@ public final io.grpc.ServerServiceDefinition bindService() {
    *
    *
    * 
-   * Service for managing [TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+   * Service for managing
+   * [TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
    * 
*/ public static final class TransitionRouteGroupsStub @@ -515,7 +523,8 @@ public void listTransitionRouteGroups( * * *
-     * Retrieves the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Retrieves the specified
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
*/ public void getTransitionRouteGroup( @@ -532,7 +541,9 @@ public void getTransitionRouteGroup( * * *
-     * Creates an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] in the specified flow.
+     * Creates an
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * in the specified flow.
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -552,7 +563,8 @@ public void createTransitionRouteGroup(
      *
      *
      * 
-     * Updates the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Updates the specified
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -572,7 +584,8 @@ public void updateTransitionRouteGroup(
      *
      *
      * 
-     * Deletes the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Deletes the specified
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -592,7 +605,8 @@ public void deleteTransitionRouteGroup(
    *
    *
    * 
-   * Service for managing [TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+   * Service for managing
+   * [TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
    * 
*/ public static final class TransitionRouteGroupsBlockingStub @@ -626,7 +640,8 @@ protected TransitionRouteGroupsBlockingStub build( * * *
-     * Retrieves the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Retrieves the specified
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
*/ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup getTransitionRouteGroup( @@ -639,7 +654,9 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup getTransitionRoute * * *
-     * Creates an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] in the specified flow.
+     * Creates an
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * in the specified flow.
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -655,7 +672,8 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup createTransitionRo
      *
      *
      * 
-     * Updates the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Updates the specified
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -671,7 +689,8 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup updateTransitionRo
      *
      *
      * 
-     * Deletes the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Deletes the specified
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -688,7 +707,8 @@ public com.google.protobuf.Empty deleteTransitionRouteGroup(
    *
    *
    * 
-   * Service for managing [TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+   * Service for managing
+   * [TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
    * 
*/ public static final class TransitionRouteGroupsFutureStub @@ -723,7 +743,8 @@ protected TransitionRouteGroupsFutureStub build( * * *
-     * Retrieves the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Retrieves the specified
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -738,7 +759,9 @@ protected TransitionRouteGroupsFutureStub build( * * *
-     * Creates an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] in the specified flow.
+     * Creates an
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * in the specified flow.
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -756,7 +779,8 @@ protected TransitionRouteGroupsFutureStub build(
      *
      *
      * 
-     * Updates the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Updates the specified
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -774,7 +798,8 @@ protected TransitionRouteGroupsFutureStub build(
      *
      *
      * 
-     * Deletes the specified [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Deletes the specified
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * Note: You should always train a flow prior to sending it queries. See the
      * [training
      * documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsGrpc.java b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsGrpc.java
index e3f655762ba2..352102b0fba3 100644
--- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsGrpc.java
+++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsGrpc.java
@@ -397,7 +397,8 @@ public abstract static class VersionsImplBase implements io.grpc.BindableService
      *
      *
      * 
-     * Returns the list of all versions in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
+     * Returns the list of all versions in the specified
+     * [Flow][google.cloud.dialogflow.cx.v3.Flow].
      * 
*/ public void listVersions( @@ -425,11 +426,13 @@ public void getVersion( * * *
-     * Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
+     * Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified
+     * [Flow][google.cloud.dialogflow.cx.v3.Flow].
      * This method is a [long-running
      * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
      * The returned `Operation` type has the following method-specific fields:
-     * - `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata]
+     * - `metadata`:
+     * [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata]
      * - `response`: [Version][google.cloud.dialogflow.cx.v3.Version]
      * 
*/ @@ -576,7 +579,8 @@ protected VersionsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOp * * *
-     * Returns the list of all versions in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
+     * Returns the list of all versions in the specified
+     * [Flow][google.cloud.dialogflow.cx.v3.Flow].
      * 
*/ public void listVersions( @@ -607,11 +611,13 @@ public void getVersion( * * *
-     * Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
+     * Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified
+     * [Flow][google.cloud.dialogflow.cx.v3.Flow].
      * This method is a [long-running
      * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
      * The returned `Operation` type has the following method-specific fields:
-     * - `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata]
+     * - `metadata`:
+     * [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata]
      * - `response`: [Version][google.cloud.dialogflow.cx.v3.Version]
      * 
*/ @@ -719,7 +725,8 @@ protected VersionsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOption * * *
-     * Returns the list of all versions in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
+     * Returns the list of all versions in the specified
+     * [Flow][google.cloud.dialogflow.cx.v3.Flow].
      * 
*/ public com.google.cloud.dialogflow.cx.v3.ListVersionsResponse listVersions( @@ -745,11 +752,13 @@ public com.google.cloud.dialogflow.cx.v3.Version getVersion( * * *
-     * Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
+     * Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified
+     * [Flow][google.cloud.dialogflow.cx.v3.Flow].
      * This method is a [long-running
      * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
      * The returned `Operation` type has the following method-specific fields:
-     * - `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata]
+     * - `metadata`:
+     * [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata]
      * - `response`: [Version][google.cloud.dialogflow.cx.v3.Version]
      * 
*/ @@ -841,7 +850,8 @@ protected VersionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * * *
-     * Returns the list of all versions in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
+     * Returns the list of all versions in the specified
+     * [Flow][google.cloud.dialogflow.cx.v3.Flow].
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -869,11 +879,13 @@ protected VersionsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions * * *
-     * Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
+     * Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified
+     * [Flow][google.cloud.dialogflow.cx.v3.Flow].
      * This method is a [long-running
      * operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
      * The returned `Operation` type has the following method-specific fields:
-     * - `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata]
+     * - `metadata`:
+     * [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata]
      * - `response`: [Version][google.cloud.dialogflow.cx.v3.Version]
      * 
*/ diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettings.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettings.java index 74928a286738..819dc11d4ca0 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettings.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettings.java @@ -152,7 +152,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENABLE_STACKDRIVER_LOGGING_FIELD_NUMBER = 2; - private boolean enableStackdriverLogging_; + private boolean enableStackdriverLogging_ = false; /** * * @@ -170,7 +170,7 @@ public boolean getEnableStackdriverLogging() { } public static final int ENABLE_INTERACTION_LOGGING_FIELD_NUMBER = 3; - private boolean enableInteractionLogging_; + private boolean enableInteractionLogging_ = false; /** * * @@ -398,10 +398,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; enableStackdriverLogging_ = false; - enableInteractionLogging_ = false; - return this; } @@ -431,12 +430,24 @@ public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings build( public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings buildPartial() { com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings result = new com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings(this); - result.enableStackdriverLogging_ = enableStackdriverLogging_; - result.enableInteractionLogging_ = enableInteractionLogging_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableStackdriverLogging_ = enableStackdriverLogging_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableInteractionLogging_ = enableInteractionLogging_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -523,13 +534,13 @@ public Builder mergeFrom( case 16: { enableStackdriverLogging_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 16 case 24: { enableInteractionLogging_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 24 default: @@ -549,6 +560,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean enableStackdriverLogging_; /** * @@ -580,6 +593,7 @@ public boolean getEnableStackdriverLogging() { public Builder setEnableStackdriverLogging(boolean value) { enableStackdriverLogging_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -595,7 +609,7 @@ public Builder setEnableStackdriverLogging(boolean value) { * @return This builder for chaining. */ public Builder clearEnableStackdriverLogging() { - + bitField0_ = (bitField0_ & ~0x00000001); enableStackdriverLogging_ = false; onChanged(); return this; @@ -632,6 +646,7 @@ public boolean getEnableInteractionLogging() { public Builder setEnableInteractionLogging(boolean value) { enableInteractionLogging_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -647,7 +662,7 @@ public Builder setEnableInteractionLogging(boolean value) { * @return This builder for chaining. */ public Builder clearEnableInteractionLogging() { - + bitField0_ = (bitField0_ & ~0x00000002); enableInteractionLogging_ = false; onChanged(); return this; @@ -781,7 +796,9 @@ public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings getLog @java.lang.Override public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettingsOrBuilder getLoggingSettingsOrBuilder() { - return getLoggingSettings(); + return loggingSettings_ == null + ? com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings.getDefaultInstance() + : loggingSettings_; } private byte memoizedIsInitialized = -1; @@ -994,10 +1011,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (loggingSettingsBuilder_ == null) { - loggingSettings_ = null; - } else { - loggingSettings_ = null; + bitField0_ = 0; + loggingSettings_ = null; + if (loggingSettingsBuilder_ != null) { + loggingSettingsBuilder_.dispose(); loggingSettingsBuilder_ = null; } return this; @@ -1027,15 +1044,21 @@ public com.google.cloud.dialogflow.cx.v3.AdvancedSettings build() { public com.google.cloud.dialogflow.cx.v3.AdvancedSettings buildPartial() { com.google.cloud.dialogflow.cx.v3.AdvancedSettings result = new com.google.cloud.dialogflow.cx.v3.AdvancedSettings(this); - if (loggingSettingsBuilder_ == null) { - result.loggingSettings_ = loggingSettings_; - } else { - result.loggingSettings_ = loggingSettingsBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.AdvancedSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.loggingSettings_ = + loggingSettingsBuilder_ == null ? loggingSettings_ : loggingSettingsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1114,7 +1137,7 @@ public Builder mergeFrom( case 50: { input.readMessage(getLoggingSettingsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 50 default: @@ -1134,6 +1157,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings loggingSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings, @@ -1157,7 +1182,7 @@ public Builder mergeFrom( * @return Whether the loggingSettings field is set. */ public boolean hasLoggingSettings() { - return loggingSettingsBuilder_ != null || loggingSettings_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1206,11 +1231,11 @@ public Builder setLoggingSettings( throw new NullPointerException(); } loggingSettings_ = value; - onChanged(); } else { loggingSettingsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1232,11 +1257,11 @@ public Builder setLoggingSettings( builderForValue) { if (loggingSettingsBuilder_ == null) { loggingSettings_ = builderForValue.build(); - onChanged(); } else { loggingSettingsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1256,20 +1281,20 @@ public Builder setLoggingSettings( public Builder mergeLoggingSettings( com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings value) { if (loggingSettingsBuilder_ == null) { - if (loggingSettings_ != null) { - loggingSettings_ = - com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings.newBuilder( - loggingSettings_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && loggingSettings_ != null + && loggingSettings_ + != com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings + .getDefaultInstance()) { + getLoggingSettingsBuilder().mergeFrom(value); } else { loggingSettings_ = value; } - onChanged(); } else { loggingSettingsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1287,14 +1312,13 @@ public Builder mergeLoggingSettings( * */ public Builder clearLoggingSettings() { - if (loggingSettingsBuilder_ == null) { - loggingSettings_ = null; - onChanged(); - } else { - loggingSettings_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + loggingSettings_ = null; + if (loggingSettingsBuilder_ != null) { + loggingSettingsBuilder_.dispose(); loggingSettingsBuilder_ = null; } - + onChanged(); return this; } /** @@ -1313,7 +1337,7 @@ public Builder clearLoggingSettings() { */ public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings.Builder getLoggingSettingsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getLoggingSettingsFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettingsProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettingsProto.java index 37292395ab6a..c566855b0f05 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettingsProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AdvancedSettingsProto.java @@ -52,12 +52,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "dvancedSettings.LoggingSettings\032Y\n\017Loggi" + "ngSettings\022\"\n\032enable_stackdriver_logging" + "\030\002 \001(\010\022\"\n\032enable_interaction_logging\030\003 \001" - + "(\010B\311\001\n!com.google.cloud.dialogflow.cx.v3" - + "B\025AdvancedSettingsProtoP\001Z?google.golang" - + ".org/genproto/googleapis/cloud/dialogflo" - + "w/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialog" - + "flow.Cx.V3\352\002!Google::Cloud::Dialogflow::" - + "CX::V3b\006proto3" + + "(\010B\273\001\n!com.google.cloud.dialogflow.cx.v3" + + "B\025AdvancedSettingsProtoP\001Z1cloud.google." + + "com/go/dialogflow/cx/apiv3/cxpb;cxpb\370\001\001\242" + + "\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx.V3\352\002!G" + + "oogle::Cloud::Dialogflow::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Agent.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Agent.java index fee08d58738b..6daf6fe443d8 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Agent.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Agent.java @@ -26,9 +26,13 @@ * that transform user requests into actionable data. You can include agents * in your app, product, or service to determine user intent and respond to the * user in a natural way. - * After you create an agent, you can add [Intents][google.cloud.dialogflow.cx.v3.Intent], - * [Entity Types][google.cloud.dialogflow.cx.v3.EntityType], [Flows][google.cloud.dialogflow.cx.v3.Flow], [Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment], - * [Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and so on to manage the conversation flows.. + * After you create an agent, you can add + * [Intents][google.cloud.dialogflow.cx.v3.Intent], [Entity + * Types][google.cloud.dialogflow.cx.v3.EntityType], + * [Flows][google.cloud.dialogflow.cx.v3.Flow], + * [Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment], + * [Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and so on to manage the + * conversation flows.. *
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.Agent} @@ -82,13 +86,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
    * The unique identifier of the agent.
-   * Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
+   * Required for the
+   * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
+   * method.
+   * [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
    * populates the name automatically.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
    * 
@@ -114,7 +123,10 @@ public java.lang.String getName() { * *
    * The unique identifier of the agent.
-   * Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
+   * Required for the
+   * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
+   * method.
+   * [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
    * populates the name automatically.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
    * 
@@ -137,7 +149,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -186,7 +200,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DEFAULT_LANGUAGE_CODE_FIELD_NUMBER = 3; - private volatile java.lang.Object defaultLanguageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultLanguageCode_ = ""; /** * * @@ -195,7 +211,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * See [Language * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) * for a list of the currently supported language codes. - * This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. + * This field cannot be set by the + * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] + * method. *
* * @@ -224,7 +242,9 @@ public java.lang.String getDefaultLanguageCode() { * See [Language * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) * for a list of the currently supported language codes. - * This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. + * This field cannot be set by the + * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] + * method. *
* * @@ -247,6 +267,8 @@ public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() { } public static final int SUPPORTED_LANGUAGE_CODES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList supportedLanguageCodes_; /** * @@ -312,7 +334,9 @@ public com.google.protobuf.ByteString getSupportedLanguageCodesBytes(int index) } public static final int TIME_ZONE_FIELD_NUMBER = 5; - private volatile java.lang.Object timeZone_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeZone_ = ""; /** * * @@ -365,7 +389,9 @@ public com.google.protobuf.ByteString getTimeZoneBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 6; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -416,7 +442,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int AVATAR_URI_FIELD_NUMBER = 7; - private volatile java.lang.Object avatarUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object avatarUri_ = ""; /** * * @@ -516,20 +544,23 @@ public com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings getSpeechToTextSet @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SpeechToTextSettingsOrBuilder getSpeechToTextSettingsOrBuilder() { - return getSpeechToTextSettings(); + return speechToTextSettings_ == null + ? com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.getDefaultInstance() + : speechToTextSettings_; } public static final int START_FLOW_FIELD_NUMBER = 16; - private volatile java.lang.Object startFlow_; + + @SuppressWarnings("serial") + private volatile java.lang.Object startFlow_ = ""; /** * * *
-   * Immutable. Name of the start flow in this agent. A start flow will be automatically
-   * created when the agent is created, and can only be deleted by deleting the
-   * agent.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>`.
+   * Immutable. Name of the start flow in this agent. A start flow will be
+   * automatically created when the agent is created, and can only be deleted by
+   * deleting the agent. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>`.
    * 
* * @@ -554,11 +585,10 @@ public java.lang.String getStartFlow() { * * *
-   * Immutable. Name of the start flow in this agent. A start flow will be automatically
-   * created when the agent is created, and can only be deleted by deleting the
-   * agent.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>`.
+   * Immutable. Name of the start flow in this agent. A start flow will be
+   * automatically created when the agent is created, and can only be deleted by
+   * deleting the agent. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>`.
    * 
* * @@ -581,13 +611,16 @@ public com.google.protobuf.ByteString getStartFlowBytes() { } public static final int SECURITY_SETTINGS_FIELD_NUMBER = 17; - private volatile java.lang.Object securitySettings_; + + @SuppressWarnings("serial") + private volatile java.lang.Object securitySettings_ = ""; /** * * *
-   * Name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] reference for the agent.
-   * Format: `projects/<Project ID>/locations/<Location
+   * Name of the
+   * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]
+   * reference for the agent. Format: `projects/<Project ID>/locations/<Location
    * ID>/securitySettings/<Security Settings ID>`.
    * 
* @@ -611,8 +644,9 @@ public java.lang.String getSecuritySettings() { * * *
-   * Name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] reference for the agent.
-   * Format: `projects/<Project ID>/locations/<Location
+   * Name of the
+   * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]
+   * reference for the agent. Format: `projects/<Project ID>/locations/<Location
    * ID>/securitySettings/<Security Settings ID>`.
    * 
* @@ -634,20 +668,21 @@ public com.google.protobuf.ByteString getSecuritySettingsBytes() { } public static final int ENABLE_STACKDRIVER_LOGGING_FIELD_NUMBER = 18; - private boolean enableStackdriverLogging_; + private boolean enableStackdriverLogging_ = false; /** * * *
    * Indicates if stackdriver logging is enabled for the agent.
-   * Please use [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings]
+   * Please use
+   * [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings]
    * instead.
    * 
* * bool enable_stackdriver_logging = 18 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Agent.enable_stackdriver_logging is deprecated. See - * google/cloud/dialogflow/cx/v3/agent.proto;l=245 + * google/cloud/dialogflow/cx/v3/agent.proto;l=255 * @return The enableStackdriverLogging. */ @java.lang.Override @@ -657,7 +692,7 @@ public boolean getEnableStackdriverLogging() { } public static final int ENABLE_SPELL_CORRECTION_FIELD_NUMBER = 20; - private boolean enableSpellCorrection_; + private boolean enableSpellCorrection_ = false; /** * * @@ -676,7 +711,7 @@ public boolean getEnableSpellCorrection() { } public static final int LOCKED_FIELD_NUMBER = 27; - private boolean locked_; + private boolean locked_ = false; /** * * @@ -743,7 +778,9 @@ public com.google.cloud.dialogflow.cx.v3.AdvancedSettings getAdvancedSettings() @java.lang.Override public com.google.cloud.dialogflow.cx.v3.AdvancedSettingsOrBuilder getAdvancedSettingsOrBuilder() { - return getAdvancedSettings(); + return advancedSettings_ == null + ? com.google.cloud.dialogflow.cx.v3.AdvancedSettings.getDefaultInstance() + : advancedSettings_; } private byte memoizedIsInitialized = -1; @@ -1049,9 +1086,13 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * that transform user requests into actionable data. You can include agents * in your app, product, or service to determine user intent and respond to the * user in a natural way. - * After you create an agent, you can add [Intents][google.cloud.dialogflow.cx.v3.Intent], - * [Entity Types][google.cloud.dialogflow.cx.v3.EntityType], [Flows][google.cloud.dialogflow.cx.v3.Flow], [Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment], - * [Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and so on to manage the conversation flows.. + * After you create an agent, you can add + * [Intents][google.cloud.dialogflow.cx.v3.Intent], [Entity + * Types][google.cloud.dialogflow.cx.v3.EntityType], + * [Flows][google.cloud.dialogflow.cx.v3.Flow], + * [Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment], + * [Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and so on to manage the + * conversation flows.. *
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.Agent} @@ -1085,40 +1126,28 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - defaultLanguageCode_ = ""; - supportedLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); timeZone_ = ""; - description_ = ""; - avatarUri_ = ""; - - if (speechToTextSettingsBuilder_ == null) { - speechToTextSettings_ = null; - } else { - speechToTextSettings_ = null; + speechToTextSettings_ = null; + if (speechToTextSettingsBuilder_ != null) { + speechToTextSettingsBuilder_.dispose(); speechToTextSettingsBuilder_ = null; } startFlow_ = ""; - securitySettings_ = ""; - enableStackdriverLogging_ = false; - enableSpellCorrection_ = false; - locked_ = false; - - if (advancedSettingsBuilder_ == null) { - advancedSettings_ = null; - } else { - advancedSettings_ = null; + advancedSettings_ = null; + if (advancedSettingsBuilder_ != null) { + advancedSettingsBuilder_.dispose(); advancedSettingsBuilder_ = null; } return this; @@ -1148,35 +1177,67 @@ public com.google.cloud.dialogflow.cx.v3.Agent build() { public com.google.cloud.dialogflow.cx.v3.Agent buildPartial() { com.google.cloud.dialogflow.cx.v3.Agent result = new com.google.cloud.dialogflow.cx.v3.Agent(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.defaultLanguageCode_ = defaultLanguageCode_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.Agent result) { + if (((bitField0_ & 0x00000008) != 0)) { supportedLanguageCodes_ = supportedLanguageCodes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.supportedLanguageCodes_ = supportedLanguageCodes_; - result.timeZone_ = timeZone_; - result.description_ = description_; - result.avatarUri_ = avatarUri_; - if (speechToTextSettingsBuilder_ == null) { - result.speechToTextSettings_ = speechToTextSettings_; - } else { - result.speechToTextSettings_ = speechToTextSettingsBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Agent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - result.startFlow_ = startFlow_; - result.securitySettings_ = securitySettings_; - result.enableStackdriverLogging_ = enableStackdriverLogging_; - result.enableSpellCorrection_ = enableSpellCorrection_; - result.locked_ = locked_; - if (advancedSettingsBuilder_ == null) { - result.advancedSettings_ = advancedSettings_; - } else { - result.advancedSettings_ = advancedSettingsBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.defaultLanguageCode_ = defaultLanguageCode_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.timeZone_ = timeZone_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.avatarUri_ = avatarUri_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.speechToTextSettings_ = + speechToTextSettingsBuilder_ == null + ? speechToTextSettings_ + : speechToTextSettingsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.startFlow_ = startFlow_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.securitySettings_ = securitySettings_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.enableStackdriverLogging_ = enableStackdriverLogging_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.enableSpellCorrection_ = enableSpellCorrection_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.locked_ = locked_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.advancedSettings_ = + advancedSettingsBuilder_ == null ? advancedSettings_ : advancedSettingsBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -1226,20 +1287,23 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Agent other) { if (other == com.google.cloud.dialogflow.cx.v3.Agent.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDefaultLanguageCode().isEmpty()) { defaultLanguageCode_ = other.defaultLanguageCode_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.supportedLanguageCodes_.isEmpty()) { if (supportedLanguageCodes_.isEmpty()) { supportedLanguageCodes_ = other.supportedLanguageCodes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureSupportedLanguageCodesIsMutable(); supportedLanguageCodes_.addAll(other.supportedLanguageCodes_); @@ -1248,14 +1312,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Agent other) { } if (!other.getTimeZone().isEmpty()) { timeZone_ = other.timeZone_; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getAvatarUri().isEmpty()) { avatarUri_ = other.avatarUri_; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasSpeechToTextSettings()) { @@ -1263,10 +1330,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Agent other) { } if (!other.getStartFlow().isEmpty()) { startFlow_ = other.startFlow_; + bitField0_ |= 0x00000100; onChanged(); } if (!other.getSecuritySettings().isEmpty()) { securitySettings_ = other.securitySettings_; + bitField0_ |= 0x00000200; onChanged(); } if (other.getEnableStackdriverLogging() != false) { @@ -1310,19 +1379,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { defaultLanguageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: @@ -1335,63 +1404,63 @@ public Builder mergeFrom( case 42: { timeZone_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 case 58: { avatarUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 58 case 106: { input.readMessage( getSpeechToTextSettingsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 106 case 130: { startFlow_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 130 case 138: { securitySettings_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000200; break; } // case 138 case 144: { enableStackdriverLogging_ = input.readBool(); - + bitField0_ |= 0x00000400; break; } // case 144 case 160: { enableSpellCorrection_ = input.readBool(); - + bitField0_ |= 0x00000800; break; } // case 160 case 178: { input.readMessage( getAdvancedSettingsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00002000; break; } // case 178 case 216: { locked_ = input.readBool(); - + bitField0_ |= 0x00001000; break; } // case 216 default: @@ -1419,7 +1488,10 @@ public Builder mergeFrom( * *
      * The unique identifier of the agent.
-     * Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
+     * Required for the
+     * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
+     * method.
+     * [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
      * populates the name automatically.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
      * 
@@ -1444,7 +1516,10 @@ public java.lang.String getName() { * *
      * The unique identifier of the agent.
-     * Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
+     * Required for the
+     * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
+     * method.
+     * [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
      * populates the name automatically.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
      * 
@@ -1469,7 +1544,10 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * The unique identifier of the agent.
-     * Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
+     * Required for the
+     * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
+     * method.
+     * [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
      * populates the name automatically.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
      * 
@@ -1483,8 +1561,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1493,7 +1571,10 @@ public Builder setName(java.lang.String value) { * *
      * The unique identifier of the agent.
-     * Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
+     * Required for the
+     * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
+     * method.
+     * [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
      * populates the name automatically.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
      * 
@@ -1503,8 +1584,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1513,7 +1594,10 @@ public Builder clearName() { * *
      * The unique identifier of the agent.
-     * Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
+     * Required for the
+     * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
+     * method.
+     * [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
      * populates the name automatically.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
      * 
@@ -1528,8 +1612,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1595,8 +1679,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1612,8 +1696,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1634,8 +1718,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1649,7 +1733,9 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * See [Language * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) * for a list of the currently supported language codes. - * This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. + * This field cannot be set by the + * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] + * method. *
* * @@ -1677,7 +1763,9 @@ public java.lang.String getDefaultLanguageCode() { * See [Language * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) * for a list of the currently supported language codes. - * This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. + * This field cannot be set by the + * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] + * method. *
* * @@ -1705,7 +1793,9 @@ public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() { * See [Language * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) * for a list of the currently supported language codes. - * This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. + * This field cannot be set by the + * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] + * method. *
* * @@ -1719,8 +1809,8 @@ public Builder setDefaultLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - defaultLanguageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1732,7 +1822,9 @@ public Builder setDefaultLanguageCode(java.lang.String value) { * See [Language * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) * for a list of the currently supported language codes. - * This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. + * This field cannot be set by the + * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] + * method. *
* * @@ -1742,8 +1834,8 @@ public Builder setDefaultLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDefaultLanguageCode() { - defaultLanguageCode_ = getDefaultInstance().getDefaultLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1755,7 +1847,9 @@ public Builder clearDefaultLanguageCode() { * See [Language * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) * for a list of the currently supported language codes. - * This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. + * This field cannot be set by the + * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] + * method. *
* * @@ -1770,8 +1864,8 @@ public Builder setDefaultLanguageCodeBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - defaultLanguageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1780,10 +1874,10 @@ public Builder setDefaultLanguageCodeBytes(com.google.protobuf.ByteString value) com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSupportedLanguageCodesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { supportedLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(supportedLanguageCodes_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } /** @@ -1926,7 +2020,7 @@ public Builder addAllSupportedLanguageCodes(java.lang.Iterable */ public Builder clearSupportedLanguageCodes() { supportedLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2021,8 +2115,8 @@ public Builder setTimeZone(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeZone_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2040,8 +2134,8 @@ public Builder setTimeZone(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeZone() { - timeZone_ = getDefaultInstance().getTimeZone(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2064,8 +2158,8 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeZone_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2134,8 +2228,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2152,8 +2246,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2175,8 +2269,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2251,8 +2345,8 @@ public Builder setAvatarUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - avatarUri_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2271,8 +2365,8 @@ public Builder setAvatarUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAvatarUri() { - avatarUri_ = getDefaultInstance().getAvatarUri(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2296,8 +2390,8 @@ public Builder setAvatarUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - avatarUri_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2321,7 +2415,7 @@ public Builder setAvatarUriBytes(com.google.protobuf.ByteString value) { * @return Whether the speechToTextSettings field is set. */ public boolean hasSpeechToTextSettings() { - return speechToTextSettingsBuilder_ != null || speechToTextSettings_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2361,11 +2455,11 @@ public Builder setSpeechToTextSettings( throw new NullPointerException(); } speechToTextSettings_ = value; - onChanged(); } else { speechToTextSettingsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2382,11 +2476,11 @@ public Builder setSpeechToTextSettings( com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.Builder builderForValue) { if (speechToTextSettingsBuilder_ == null) { speechToTextSettings_ = builderForValue.build(); - onChanged(); } else { speechToTextSettingsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2402,20 +2496,19 @@ public Builder setSpeechToTextSettings( public Builder mergeSpeechToTextSettings( com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings value) { if (speechToTextSettingsBuilder_ == null) { - if (speechToTextSettings_ != null) { - speechToTextSettings_ = - com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.newBuilder( - speechToTextSettings_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && speechToTextSettings_ != null + && speechToTextSettings_ + != com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.getDefaultInstance()) { + getSpeechToTextSettingsBuilder().mergeFrom(value); } else { speechToTextSettings_ = value; } - onChanged(); } else { speechToTextSettingsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2429,14 +2522,13 @@ public Builder mergeSpeechToTextSettings( * */ public Builder clearSpeechToTextSettings() { - if (speechToTextSettingsBuilder_ == null) { - speechToTextSettings_ = null; - onChanged(); - } else { - speechToTextSettings_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + speechToTextSettings_ = null; + if (speechToTextSettingsBuilder_ != null) { + speechToTextSettingsBuilder_.dispose(); speechToTextSettingsBuilder_ = null; } - + onChanged(); return this; } /** @@ -2451,7 +2543,7 @@ public Builder clearSpeechToTextSettings() { */ public com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings.Builder getSpeechToTextSettingsBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getSpeechToTextSettingsFieldBuilder().getBuilder(); } @@ -2507,11 +2599,10 @@ public Builder clearSpeechToTextSettings() { * * *
-     * Immutable. Name of the start flow in this agent. A start flow will be automatically
-     * created when the agent is created, and can only be deleted by deleting the
-     * agent.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>`.
+     * Immutable. Name of the start flow in this agent. A start flow will be
+     * automatically created when the agent is created, and can only be deleted by
+     * deleting the agent. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>`.
      * 
* * @@ -2535,11 +2626,10 @@ public java.lang.String getStartFlow() { * * *
-     * Immutable. Name of the start flow in this agent. A start flow will be automatically
-     * created when the agent is created, and can only be deleted by deleting the
-     * agent.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>`.
+     * Immutable. Name of the start flow in this agent. A start flow will be
+     * automatically created when the agent is created, and can only be deleted by
+     * deleting the agent. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>`.
      * 
* * @@ -2563,11 +2653,10 @@ public com.google.protobuf.ByteString getStartFlowBytes() { * * *
-     * Immutable. Name of the start flow in this agent. A start flow will be automatically
-     * created when the agent is created, and can only be deleted by deleting the
-     * agent.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>`.
+     * Immutable. Name of the start flow in this agent. A start flow will be
+     * automatically created when the agent is created, and can only be deleted by
+     * deleting the agent. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>`.
      * 
* * @@ -2581,8 +2670,8 @@ public Builder setStartFlow(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - startFlow_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2590,11 +2679,10 @@ public Builder setStartFlow(java.lang.String value) { * * *
-     * Immutable. Name of the start flow in this agent. A start flow will be automatically
-     * created when the agent is created, and can only be deleted by deleting the
-     * agent.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>`.
+     * Immutable. Name of the start flow in this agent. A start flow will be
+     * automatically created when the agent is created, and can only be deleted by
+     * deleting the agent. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>`.
      * 
* * @@ -2604,8 +2692,8 @@ public Builder setStartFlow(java.lang.String value) { * @return This builder for chaining. */ public Builder clearStartFlow() { - startFlow_ = getDefaultInstance().getStartFlow(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2613,11 +2701,10 @@ public Builder clearStartFlow() { * * *
-     * Immutable. Name of the start flow in this agent. A start flow will be automatically
-     * created when the agent is created, and can only be deleted by deleting the
-     * agent.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>`.
+     * Immutable. Name of the start flow in this agent. A start flow will be
+     * automatically created when the agent is created, and can only be deleted by
+     * deleting the agent. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>`.
      * 
* * @@ -2632,8 +2719,8 @@ public Builder setStartFlowBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - startFlow_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2643,8 +2730,9 @@ public Builder setStartFlowBytes(com.google.protobuf.ByteString value) { * * *
-     * Name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] reference for the agent.
-     * Format: `projects/<Project ID>/locations/<Location
+     * Name of the
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]
+     * reference for the agent. Format: `projects/<Project ID>/locations/<Location
      * ID>/securitySettings/<Security Settings ID>`.
      * 
* @@ -2667,8 +2755,9 @@ public java.lang.String getSecuritySettings() { * * *
-     * Name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] reference for the agent.
-     * Format: `projects/<Project ID>/locations/<Location
+     * Name of the
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]
+     * reference for the agent. Format: `projects/<Project ID>/locations/<Location
      * ID>/securitySettings/<Security Settings ID>`.
      * 
* @@ -2691,8 +2780,9 @@ public com.google.protobuf.ByteString getSecuritySettingsBytes() { * * *
-     * Name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] reference for the agent.
-     * Format: `projects/<Project ID>/locations/<Location
+     * Name of the
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]
+     * reference for the agent. Format: `projects/<Project ID>/locations/<Location
      * ID>/securitySettings/<Security Settings ID>`.
      * 
* @@ -2705,8 +2795,8 @@ public Builder setSecuritySettings(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - securitySettings_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2714,8 +2804,9 @@ public Builder setSecuritySettings(java.lang.String value) { * * *
-     * Name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] reference for the agent.
-     * Format: `projects/<Project ID>/locations/<Location
+     * Name of the
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]
+     * reference for the agent. Format: `projects/<Project ID>/locations/<Location
      * ID>/securitySettings/<Security Settings ID>`.
      * 
* @@ -2724,8 +2815,8 @@ public Builder setSecuritySettings(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSecuritySettings() { - securitySettings_ = getDefaultInstance().getSecuritySettings(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -2733,8 +2824,9 @@ public Builder clearSecuritySettings() { * * *
-     * Name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] reference for the agent.
-     * Format: `projects/<Project ID>/locations/<Location
+     * Name of the
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]
+     * reference for the agent. Format: `projects/<Project ID>/locations/<Location
      * ID>/securitySettings/<Security Settings ID>`.
      * 
* @@ -2748,8 +2840,8 @@ public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - securitySettings_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2760,14 +2852,15 @@ public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) { * *
      * Indicates if stackdriver logging is enabled for the agent.
-     * Please use [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings]
+     * Please use
+     * [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings]
      * instead.
      * 
* * bool enable_stackdriver_logging = 18 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Agent.enable_stackdriver_logging is deprecated. See - * google/cloud/dialogflow/cx/v3/agent.proto;l=245 + * google/cloud/dialogflow/cx/v3/agent.proto;l=255 * @return The enableStackdriverLogging. */ @java.lang.Override @@ -2780,14 +2873,15 @@ public boolean getEnableStackdriverLogging() { * *
      * Indicates if stackdriver logging is enabled for the agent.
-     * Please use [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings]
+     * Please use
+     * [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings]
      * instead.
      * 
* * bool enable_stackdriver_logging = 18 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Agent.enable_stackdriver_logging is deprecated. See - * google/cloud/dialogflow/cx/v3/agent.proto;l=245 + * google/cloud/dialogflow/cx/v3/agent.proto;l=255 * @param value The enableStackdriverLogging to set. * @return This builder for chaining. */ @@ -2795,6 +2889,7 @@ public boolean getEnableStackdriverLogging() { public Builder setEnableStackdriverLogging(boolean value) { enableStackdriverLogging_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2803,19 +2898,20 @@ public Builder setEnableStackdriverLogging(boolean value) { * *
      * Indicates if stackdriver logging is enabled for the agent.
-     * Please use [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings]
+     * Please use
+     * [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings]
      * instead.
      * 
* * bool enable_stackdriver_logging = 18 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Agent.enable_stackdriver_logging is deprecated. See - * google/cloud/dialogflow/cx/v3/agent.proto;l=245 + * google/cloud/dialogflow/cx/v3/agent.proto;l=255 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearEnableStackdriverLogging() { - + bitField0_ = (bitField0_ & ~0x00000400); enableStackdriverLogging_ = false; onChanged(); return this; @@ -2854,6 +2950,7 @@ public boolean getEnableSpellCorrection() { public Builder setEnableSpellCorrection(boolean value) { enableSpellCorrection_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -2870,7 +2967,7 @@ public Builder setEnableSpellCorrection(boolean value) { * @return This builder for chaining. */ public Builder clearEnableSpellCorrection() { - + bitField0_ = (bitField0_ & ~0x00000800); enableSpellCorrection_ = false; onChanged(); return this; @@ -2909,6 +3006,7 @@ public boolean getLocked() { public Builder setLocked(boolean value) { locked_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -2925,7 +3023,7 @@ public Builder setLocked(boolean value) { * @return This builder for chaining. */ public Builder clearLocked() { - + bitField0_ = (bitField0_ & ~0x00001000); locked_ = false; onChanged(); return this; @@ -2950,7 +3048,7 @@ public Builder clearLocked() { * @return Whether the advancedSettings field is set. */ public boolean hasAdvancedSettings() { - return advancedSettingsBuilder_ != null || advancedSettings_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -2989,11 +3087,11 @@ public Builder setAdvancedSettings(com.google.cloud.dialogflow.cx.v3.AdvancedSet throw new NullPointerException(); } advancedSettings_ = value; - onChanged(); } else { advancedSettingsBuilder_.setMessage(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3010,11 +3108,11 @@ public Builder setAdvancedSettings( com.google.cloud.dialogflow.cx.v3.AdvancedSettings.Builder builderForValue) { if (advancedSettingsBuilder_ == null) { advancedSettings_ = builderForValue.build(); - onChanged(); } else { advancedSettingsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3029,19 +3127,19 @@ public Builder setAdvancedSettings( */ public Builder mergeAdvancedSettings(com.google.cloud.dialogflow.cx.v3.AdvancedSettings value) { if (advancedSettingsBuilder_ == null) { - if (advancedSettings_ != null) { - advancedSettings_ = - com.google.cloud.dialogflow.cx.v3.AdvancedSettings.newBuilder(advancedSettings_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00002000) != 0) + && advancedSettings_ != null + && advancedSettings_ + != com.google.cloud.dialogflow.cx.v3.AdvancedSettings.getDefaultInstance()) { + getAdvancedSettingsBuilder().mergeFrom(value); } else { advancedSettings_ = value; } - onChanged(); } else { advancedSettingsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3055,14 +3153,13 @@ public Builder mergeAdvancedSettings(com.google.cloud.dialogflow.cx.v3.AdvancedS * .google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22; */ public Builder clearAdvancedSettings() { - if (advancedSettingsBuilder_ == null) { - advancedSettings_ = null; - onChanged(); - } else { - advancedSettings_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + advancedSettings_ = null; + if (advancedSettingsBuilder_ != null) { + advancedSettingsBuilder_.dispose(); advancedSettingsBuilder_ = null; } - + onChanged(); return this; } /** @@ -3076,7 +3173,7 @@ public Builder clearAdvancedSettings() { * .google.cloud.dialogflow.cx.v3.AdvancedSettings advanced_settings = 22; */ public com.google.cloud.dialogflow.cx.v3.AdvancedSettings.Builder getAdvancedSettingsBuilder() { - + bitField0_ |= 0x00002000; onChanged(); return getAdvancedSettingsFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentOrBuilder.java index f2146133bd8d..2fc1c56eae90 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentOrBuilder.java @@ -28,7 +28,10 @@ public interface AgentOrBuilder * *
    * The unique identifier of the agent.
-   * Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
+   * Required for the
+   * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
+   * method.
+   * [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
    * populates the name automatically.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
    * 
@@ -43,7 +46,10 @@ public interface AgentOrBuilder * *
    * The unique identifier of the agent.
-   * Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
+   * Required for the
+   * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]
+   * method.
+   * [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]
    * populates the name automatically.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
    * 
@@ -87,7 +93,9 @@ public interface AgentOrBuilder * See [Language * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) * for a list of the currently supported language codes. - * This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. + * This field cannot be set by the + * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] + * method. *
* * @@ -105,7 +113,9 @@ public interface AgentOrBuilder * See [Language * Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) * for a list of the currently supported language codes. - * This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. + * This field cannot be set by the + * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] + * method. *
* * @@ -298,11 +308,10 @@ public interface AgentOrBuilder * * *
-   * Immutable. Name of the start flow in this agent. A start flow will be automatically
-   * created when the agent is created, and can only be deleted by deleting the
-   * agent.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>`.
+   * Immutable. Name of the start flow in this agent. A start flow will be
+   * automatically created when the agent is created, and can only be deleted by
+   * deleting the agent. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>`.
    * 
* * @@ -316,11 +325,10 @@ public interface AgentOrBuilder * * *
-   * Immutable. Name of the start flow in this agent. A start flow will be automatically
-   * created when the agent is created, and can only be deleted by deleting the
-   * agent.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>`.
+   * Immutable. Name of the start flow in this agent. A start flow will be
+   * automatically created when the agent is created, and can only be deleted by
+   * deleting the agent. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>`.
    * 
* * @@ -335,8 +343,9 @@ public interface AgentOrBuilder * * *
-   * Name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] reference for the agent.
-   * Format: `projects/<Project ID>/locations/<Location
+   * Name of the
+   * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]
+   * reference for the agent. Format: `projects/<Project ID>/locations/<Location
    * ID>/securitySettings/<Security Settings ID>`.
    * 
* @@ -349,8 +358,9 @@ public interface AgentOrBuilder * * *
-   * Name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] reference for the agent.
-   * Format: `projects/<Project ID>/locations/<Location
+   * Name of the
+   * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]
+   * reference for the agent. Format: `projects/<Project ID>/locations/<Location
    * ID>/securitySettings/<Security Settings ID>`.
    * 
* @@ -365,14 +375,15 @@ public interface AgentOrBuilder * *
    * Indicates if stackdriver logging is enabled for the agent.
-   * Please use [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings]
+   * Please use
+   * [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings]
    * instead.
    * 
* * bool enable_stackdriver_logging = 18 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Agent.enable_stackdriver_logging is deprecated. See - * google/cloud/dialogflow/cx/v3/agent.proto;l=245 + * google/cloud/dialogflow/cx/v3/agent.proto;l=255 * @return The enableStackdriverLogging. */ @java.lang.Deprecated diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentProto.java index dee3df74c385..b56caec5dfcd 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentProto.java @@ -210,12 +210,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tionResult}\332A\004name\032x\312A\031dialogflow.google" + "apis.com\322AYhttps://www.googleapis.com/au" + "th/cloud-platform,https://www.googleapis" - + ".com/auth/dialogflowB\276\001\n!com.google.clou" - + "d.dialogflow.cx.v3B\nAgentProtoP\001Z?google" - + ".golang.org/genproto/googleapis/cloud/di" - + "alogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud" - + ".Dialogflow.Cx.V3\352\002!Google::Cloud::Dialo" - + "gflow::CX::V3b\006proto3" + + ".com/auth/dialogflowB\260\001\n!com.google.clou" + + "d.dialogflow.cx.v3B\nAgentProtoP\001Z1cloud." + + "google.com/go/dialogflow/cx/apiv3/cxpb;c" + + "xpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx" + + ".V3\352\002!Google::Cloud::Dialogflow::CX::V3b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentValidationResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentValidationResult.java index e6c06124ca84..67a70c4a457d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentValidationResult.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentValidationResult.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult].
+ * The response message for
+ * [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.AgentValidationResult} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -122,6 +125,8 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FLOW_VALIDATION_RESULTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List flowValidationResults_; /** @@ -376,7 +381,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult].
+   * The response message for
+   * [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.AgentValidationResult} @@ -410,15 +416,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - if (flowValidationResultsBuilder_ == null) { flowValidationResults_ = java.util.Collections.emptyList(); } else { flowValidationResults_ = null; flowValidationResultsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -446,19 +452,32 @@ public com.google.cloud.dialogflow.cx.v3.AgentValidationResult build() { public com.google.cloud.dialogflow.cx.v3.AgentValidationResult buildPartial() { com.google.cloud.dialogflow.cx.v3.AgentValidationResult result = new com.google.cloud.dialogflow.cx.v3.AgentValidationResult(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.AgentValidationResult result) { if (flowValidationResultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { flowValidationResults_ = java.util.Collections.unmodifiableList(flowValidationResults_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.flowValidationResults_ = flowValidationResults_; } else { result.flowValidationResults_ = flowValidationResultsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.AgentValidationResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } } @java.lang.Override @@ -509,13 +528,14 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.AgentValidationResult return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (flowValidationResultsBuilder_ == null) { if (!other.flowValidationResults_.isEmpty()) { if (flowValidationResults_.isEmpty()) { flowValidationResults_ = other.flowValidationResults_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFlowValidationResultsIsMutable(); flowValidationResults_.addAll(other.flowValidationResults_); @@ -528,7 +548,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.AgentValidationResult flowValidationResultsBuilder_.dispose(); flowValidationResultsBuilder_ = null; flowValidationResults_ = other.flowValidationResults_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); flowValidationResultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFlowValidationResultsFieldBuilder() @@ -567,7 +587,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -670,8 +690,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -689,8 +709,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -713,8 +733,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -723,11 +743,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { flowValidationResults_ = java.util.Collections.emptyList(); private void ensureFlowValidationResultsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { flowValidationResults_ = new java.util.ArrayList( flowValidationResults_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -971,7 +991,7 @@ public Builder addAllFlowValidationResults( public Builder clearFlowValidationResults() { if (flowValidationResultsBuilder_ == null) { flowValidationResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { flowValidationResultsBuilder_.clear(); @@ -1113,7 +1133,7 @@ public Builder removeFlowValidationResults(int index) { com.google.cloud.dialogflow.cx.v3.FlowValidationResult.Builder, com.google.cloud.dialogflow.cx.v3.FlowValidationResultOrBuilder>( flowValidationResults_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); flowValidationResults_ = null; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AudioConfigProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AudioConfigProto.java index ff6fc606433d..ccc339a2678c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AudioConfigProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AudioConfigProto.java @@ -102,15 +102,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ODING_LINEAR_16\020\001\022\035\n\031OUTPUT_AUDIO_ENCODI" + "NG_MP3\020\002\022%\n!OUTPUT_AUDIO_ENCODING_MP3_64" + "_KBPS\020\004\022\"\n\036OUTPUT_AUDIO_ENCODING_OGG_OPU" - + "S\020\003\022\037\n\033OUTPUT_AUDIO_ENCODING_MULAW\020\005B\234\002\n" + + "S\020\003\022\037\n\033OUTPUT_AUDIO_ENCODING_MULAW\020\005B\216\002\n" + "!com.google.cloud.dialogflow.cx.v3B\020Audi" - + "oConfigProtoP\001Z?google.golang.org/genpro" - + "to/googleapis/cloud/dialogflow/cx/v3;cx\370" - + "\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx.V3\352" - + "\002!Google::Cloud::Dialogflow::CX::V3\352AU\n\033" - + "automl.googleapis.com/Model\0226projects/{p" - + "roject}/locations/{location}/models/{mod" - + "el}b\006proto3" + + "oConfigProtoP\001Z1cloud.google.com/go/dial" + + "ogflow/cx/apiv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Goog" + + "le.Cloud.Dialogflow.Cx.V3\352\002!Google::Clou" + + "d::Dialogflow::CX::V3\352AU\n\033automl.googlea" + + "pis.com/Model\0226projects/{project}/locati" + + "ons/{location}/models/{model}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AudioInput.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AudioInput.java index b1f70c7b8e62..141ec21ad724 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AudioInput.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AudioInput.java @@ -118,19 +118,22 @@ public com.google.cloud.dialogflow.cx.v3.InputAudioConfig getConfig() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.InputAudioConfigOrBuilder getConfigOrBuilder() { - return getConfig(); + return config_ == null + ? com.google.cloud.dialogflow.cx.v3.InputAudioConfig.getDefaultInstance() + : config_; } public static final int AUDIO_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString audio_; + private com.google.protobuf.ByteString audio_ = com.google.protobuf.ByteString.EMPTY; /** * * *
    * The natural language speech audio to be processed.
    * A single request can contain up to 1 minute of speech audio data.
-   * The [transcribed text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain more than 256
-   * bytes.
+   * The [transcribed
+   * text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain
+   * more than 256 bytes.
    * For non-streaming audio detect intent, both `config` and `audio` must be
    * provided.
    * For streaming audio detect intent, `config` must be provided in
@@ -357,14 +360,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     @java.lang.Override
     public Builder clear() {
       super.clear();
-      if (configBuilder_ == null) {
-        config_ = null;
-      } else {
-        config_ = null;
+      bitField0_ = 0;
+      config_ = null;
+      if (configBuilder_ != null) {
+        configBuilder_.dispose();
         configBuilder_ = null;
       }
       audio_ = com.google.protobuf.ByteString.EMPTY;
-
       return this;
     }
 
@@ -392,16 +394,23 @@ public com.google.cloud.dialogflow.cx.v3.AudioInput build() {
     public com.google.cloud.dialogflow.cx.v3.AudioInput buildPartial() {
       com.google.cloud.dialogflow.cx.v3.AudioInput result =
           new com.google.cloud.dialogflow.cx.v3.AudioInput(this);
-      if (configBuilder_ == null) {
-        result.config_ = config_;
-      } else {
-        result.config_ = configBuilder_.build();
+      if (bitField0_ != 0) {
+        buildPartial0(result);
       }
-      result.audio_ = audio_;
       onBuilt();
       return result;
     }
 
+    private void buildPartial0(com.google.cloud.dialogflow.cx.v3.AudioInput result) {
+      int from_bitField0_ = bitField0_;
+      if (((from_bitField0_ & 0x00000001) != 0)) {
+        result.config_ = configBuilder_ == null ? config_ : configBuilder_.build();
+      }
+      if (((from_bitField0_ & 0x00000002) != 0)) {
+        result.audio_ = audio_;
+      }
+    }
+
     @java.lang.Override
     public Builder clone() {
       return super.clone();
@@ -482,13 +491,13 @@ public Builder mergeFrom(
             case 10:
               {
                 input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry);
-
+                bitField0_ |= 0x00000001;
                 break;
               } // case 10
             case 18:
               {
                 audio_ = input.readBytes();
-
+                bitField0_ |= 0x00000002;
                 break;
               } // case 18
             default:
@@ -508,6 +517,8 @@ public Builder mergeFrom(
       return this;
     }
 
+    private int bitField0_;
+
     private com.google.cloud.dialogflow.cx.v3.InputAudioConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
             com.google.cloud.dialogflow.cx.v3.InputAudioConfig,
@@ -528,7 +539,7 @@ public Builder mergeFrom(
      * @return Whether the config field is set.
      */
     public boolean hasConfig() {
-      return configBuilder_ != null || config_ != null;
+      return ((bitField0_ & 0x00000001) != 0);
     }
     /**
      *
@@ -569,11 +580,11 @@ public Builder setConfig(com.google.cloud.dialogflow.cx.v3.InputAudioConfig valu
           throw new NullPointerException();
         }
         config_ = value;
-        onChanged();
       } else {
         configBuilder_.setMessage(value);
       }
-
+      bitField0_ |= 0x00000001;
+      onChanged();
       return this;
     }
     /**
@@ -591,11 +602,11 @@ public Builder setConfig(
         com.google.cloud.dialogflow.cx.v3.InputAudioConfig.Builder builderForValue) {
       if (configBuilder_ == null) {
         config_ = builderForValue.build();
-        onChanged();
       } else {
         configBuilder_.setMessage(builderForValue.build());
       }
-
+      bitField0_ |= 0x00000001;
+      onChanged();
       return this;
     }
     /**
@@ -611,19 +622,18 @@ public Builder setConfig(
      */
     public Builder mergeConfig(com.google.cloud.dialogflow.cx.v3.InputAudioConfig value) {
       if (configBuilder_ == null) {
-        if (config_ != null) {
-          config_ =
-              com.google.cloud.dialogflow.cx.v3.InputAudioConfig.newBuilder(config_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (((bitField0_ & 0x00000001) != 0)
+            && config_ != null
+            && config_ != com.google.cloud.dialogflow.cx.v3.InputAudioConfig.getDefaultInstance()) {
+          getConfigBuilder().mergeFrom(value);
         } else {
           config_ = value;
         }
-        onChanged();
       } else {
         configBuilder_.mergeFrom(value);
       }
-
+      bitField0_ |= 0x00000001;
+      onChanged();
       return this;
     }
     /**
@@ -638,14 +648,13 @@ public Builder mergeConfig(com.google.cloud.dialogflow.cx.v3.InputAudioConfig va
      * 
      */
     public Builder clearConfig() {
-      if (configBuilder_ == null) {
-        config_ = null;
-        onChanged();
-      } else {
-        config_ = null;
+      bitField0_ = (bitField0_ & ~0x00000001);
+      config_ = null;
+      if (configBuilder_ != null) {
+        configBuilder_.dispose();
         configBuilder_ = null;
       }
-
+      onChanged();
       return this;
     }
     /**
@@ -660,7 +669,7 @@ public Builder clearConfig() {
      * 
      */
     public com.google.cloud.dialogflow.cx.v3.InputAudioConfig.Builder getConfigBuilder() {
-
+      bitField0_ |= 0x00000001;
       onChanged();
       return getConfigFieldBuilder().getBuilder();
     }
@@ -719,8 +728,9 @@ public com.google.cloud.dialogflow.cx.v3.InputAudioConfigOrBuilder getConfigOrBu
      * 
      * The natural language speech audio to be processed.
      * A single request can contain up to 1 minute of speech audio data.
-     * The [transcribed text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain more than 256
-     * bytes.
+     * The [transcribed
+     * text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain
+     * more than 256 bytes.
      * For non-streaming audio detect intent, both `config` and `audio` must be
      * provided.
      * For streaming audio detect intent, `config` must be provided in
@@ -741,8 +751,9 @@ public com.google.protobuf.ByteString getAudio() {
      * 
      * The natural language speech audio to be processed.
      * A single request can contain up to 1 minute of speech audio data.
-     * The [transcribed text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain more than 256
-     * bytes.
+     * The [transcribed
+     * text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain
+     * more than 256 bytes.
      * For non-streaming audio detect intent, both `config` and `audio` must be
      * provided.
      * For streaming audio detect intent, `config` must be provided in
@@ -758,8 +769,8 @@ public Builder setAudio(com.google.protobuf.ByteString value) {
       if (value == null) {
         throw new NullPointerException();
       }
-
       audio_ = value;
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -769,8 +780,9 @@ public Builder setAudio(com.google.protobuf.ByteString value) {
      * 
      * The natural language speech audio to be processed.
      * A single request can contain up to 1 minute of speech audio data.
-     * The [transcribed text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain more than 256
-     * bytes.
+     * The [transcribed
+     * text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain
+     * more than 256 bytes.
      * For non-streaming audio detect intent, both `config` and `audio` must be
      * provided.
      * For streaming audio detect intent, `config` must be provided in
@@ -782,7 +794,7 @@ public Builder setAudio(com.google.protobuf.ByteString value) {
      * @return This builder for chaining.
      */
     public Builder clearAudio() {
-
+      bitField0_ = (bitField0_ & ~0x00000002);
       audio_ = getDefaultInstance().getAudio();
       onChanged();
       return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AudioInputOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AudioInputOrBuilder.java
index a8e337ffc3cc..6700e8ef056e 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AudioInputOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AudioInputOrBuilder.java
@@ -70,8 +70,9 @@ public interface AudioInputOrBuilder
    * 
    * The natural language speech audio to be processed.
    * A single request can contain up to 1 minute of speech audio data.
-   * The [transcribed text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain more than 256
-   * bytes.
+   * The [transcribed
+   * text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain
+   * more than 256 bytes.
    * For non-streaming audio detect intent, both `config` and `audio` must be
    * provided.
    * For streaming audio detect intent, `config` must be provided in
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchDeleteTestCasesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchDeleteTestCasesRequest.java
index 077c78f7eb3d..431037699cb1 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchDeleteTestCasesRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchDeleteTestCasesRequest.java
@@ -22,7 +22,8 @@
  *
  *
  * 
- * The request message for [TestCases.BatchDeleteTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCases].
+ * The request message for
+ * [TestCases.BatchDeleteTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCases].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -124,6 +127,8 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int NAMES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList names_; /** * @@ -376,7 +381,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [TestCases.BatchDeleteTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCases].
+   * The request message for
+   * [TestCases.BatchDeleteTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCases].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest} @@ -410,10 +416,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -442,17 +448,31 @@ public com.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest build() { public com.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest result = new com.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; - if (((bitField0_ & 0x00000001) != 0)) { - names_ = names_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.names_ = names_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { + names_ = names_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.names_ = names_; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -502,12 +522,13 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.BatchDeleteTestCasesR return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.names_.isEmpty()) { if (names_.isEmpty()) { names_ = other.names_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureNamesIsMutable(); names_.addAll(other.names_); @@ -543,7 +564,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: @@ -642,8 +663,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -662,8 +683,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -687,8 +708,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -697,9 +718,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNamesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { names_ = new com.google.protobuf.LazyStringArrayList(names_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -858,7 +879,7 @@ public Builder addAllNames(java.lang.Iterable values) { */ public Builder clearNames() { names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesMetadata.java index b90857b3f195..2c5856d6f365 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesMetadata.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesMetadata.java @@ -22,8 +22,9 @@ * * *
- * Metadata returned for the [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases] long running
- * operation.
+ * Metadata returned for the
+ * [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases]
+ * long running operation.
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} @@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ERRORS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List errors_; /** * @@ -303,8 +306,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Metadata returned for the [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases] long running
-   * operation.
+   * Metadata returned for the
+   * [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases]
+   * long running operation.
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata} @@ -338,6 +342,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (errorsBuilder_ == null) { errors_ = java.util.Collections.emptyList(); } else { @@ -372,7 +377,16 @@ public com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata build() { public com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata buildPartial() { com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata result = new com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata result) { if (errorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -382,8 +396,10 @@ public com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata buildPartial( } else { result.errors_ = errorsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesMetadata result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesRequest.java index 12cea7fc8ec1..a911ff99901f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases].
+ * The request message for
+ * [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} @@ -70,13 +71,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * *
-   * Required. Agent name. Format: `projects/<Project ID>/locations/<Location ID>/agents/
-   * <AgentID>`.
+   * Required. Agent name. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/ <AgentID>`.
    * 
* * @@ -101,8 +104,8 @@ public java.lang.String getParent() { * * *
-   * Required. Agent name. Format: `projects/<Project ID>/locations/<Location ID>/agents/
-   * <AgentID>`.
+   * Required. Agent name. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/ <AgentID>`.
    * 
* * @@ -125,14 +128,16 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int ENVIRONMENT_FIELD_NUMBER = 2; - private volatile java.lang.Object environment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object environment_ = ""; /** * * *
-   * Optional. If not set, draft environment is assumed. Format: `projects/<Project
-   * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
-   * ID>`.
+   * Optional. If not set, draft environment is assumed. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>`.
    * 
* * @@ -157,9 +162,9 @@ public java.lang.String getEnvironment() { * * *
-   * Optional. If not set, draft environment is assumed. Format: `projects/<Project
-   * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
-   * ID>`.
+   * Optional. If not set, draft environment is assumed. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>`.
    * 
* * @@ -182,13 +187,15 @@ public com.google.protobuf.ByteString getEnvironmentBytes() { } public static final int TEST_CASES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList testCases_; /** * * *
-   * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/testCases/<TestCase ID>`.
+   * Required. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
    * 
* * @@ -204,8 +211,8 @@ public com.google.protobuf.ProtocolStringList getTestCasesList() { * * *
-   * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/testCases/<TestCase ID>`.
+   * Required. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
    * 
* * @@ -221,8 +228,8 @@ public int getTestCasesCount() { * * *
-   * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/testCases/<TestCase ID>`.
+   * Required. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
    * 
* * @@ -239,8 +246,8 @@ public java.lang.String getTestCases(int index) { * * *
-   * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/testCases/<TestCase ID>`.
+   * Required. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
    * 
* * @@ -443,7 +450,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases].
+   * The request message for
+   * [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest} @@ -477,12 +485,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - environment_ = ""; - testCases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -510,18 +517,33 @@ public com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest build() { public com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest result = new com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; - result.environment_ = environment_; - if (((bitField0_ & 0x00000001) != 0)) { - testCases_ = testCases_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.testCases_ = testCases_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest result) { + if (((bitField0_ & 0x00000004) != 0)) { + testCases_ = testCases_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.testCases_ = testCases_; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.environment_ = environment_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -570,16 +592,18 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesRequ return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getEnvironment().isEmpty()) { environment_ = other.environment_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.testCases_.isEmpty()) { if (testCases_.isEmpty()) { testCases_ = other.testCases_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTestCasesIsMutable(); testCases_.addAll(other.testCases_); @@ -615,13 +639,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { environment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -655,8 +679,8 @@ public Builder mergeFrom( * * *
-     * Required. Agent name. Format: `projects/<Project ID>/locations/<Location ID>/agents/
-     * <AgentID>`.
+     * Required. Agent name. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/ <AgentID>`.
      * 
* * @@ -680,8 +704,8 @@ public java.lang.String getParent() { * * *
-     * Required. Agent name. Format: `projects/<Project ID>/locations/<Location ID>/agents/
-     * <AgentID>`.
+     * Required. Agent name. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/ <AgentID>`.
      * 
* * @@ -705,8 +729,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. Agent name. Format: `projects/<Project ID>/locations/<Location ID>/agents/
-     * <AgentID>`.
+     * Required. Agent name. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/ <AgentID>`.
      * 
* * @@ -720,8 +744,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -729,8 +753,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. Agent name. Format: `projects/<Project ID>/locations/<Location ID>/agents/
-     * <AgentID>`.
+     * Required. Agent name. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/ <AgentID>`.
      * 
* * @@ -740,8 +764,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -749,8 +773,8 @@ public Builder clearParent() { * * *
-     * Required. Agent name. Format: `projects/<Project ID>/locations/<Location ID>/agents/
-     * <AgentID>`.
+     * Required. Agent name. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/ <AgentID>`.
      * 
* * @@ -765,8 +789,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -776,9 +800,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. If not set, draft environment is assumed. Format: `projects/<Project
-     * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
-     * ID>`.
+     * Optional. If not set, draft environment is assumed. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>`.
      * 
* * @@ -802,9 +826,9 @@ public java.lang.String getEnvironment() { * * *
-     * Optional. If not set, draft environment is assumed. Format: `projects/<Project
-     * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
-     * ID>`.
+     * Optional. If not set, draft environment is assumed. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>`.
      * 
* * @@ -828,9 +852,9 @@ public com.google.protobuf.ByteString getEnvironmentBytes() { * * *
-     * Optional. If not set, draft environment is assumed. Format: `projects/<Project
-     * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
-     * ID>`.
+     * Optional. If not set, draft environment is assumed. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>`.
      * 
* * @@ -844,8 +868,8 @@ public Builder setEnvironment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - environment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -853,9 +877,9 @@ public Builder setEnvironment(java.lang.String value) { * * *
-     * Optional. If not set, draft environment is assumed. Format: `projects/<Project
-     * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
-     * ID>`.
+     * Optional. If not set, draft environment is assumed. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>`.
      * 
* * @@ -865,8 +889,8 @@ public Builder setEnvironment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEnvironment() { - environment_ = getDefaultInstance().getEnvironment(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -874,9 +898,9 @@ public Builder clearEnvironment() { * * *
-     * Optional. If not set, draft environment is assumed. Format: `projects/<Project
-     * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
-     * ID>`.
+     * Optional. If not set, draft environment is assumed. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * ID>/environments/<Environment ID>`.
      * 
* * @@ -891,8 +915,8 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - environment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -901,17 +925,17 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTestCasesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { testCases_ = new com.google.protobuf.LazyStringArrayList(testCases_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } /** * * *
-     * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/testCases/<TestCase ID>`.
+     * Required. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
      * 
* * @@ -927,8 +951,8 @@ public com.google.protobuf.ProtocolStringList getTestCasesList() { * * *
-     * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/testCases/<TestCase ID>`.
+     * Required. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
      * 
* * @@ -944,8 +968,8 @@ public int getTestCasesCount() { * * *
-     * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/testCases/<TestCase ID>`.
+     * Required. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
      * 
* * @@ -962,8 +986,8 @@ public java.lang.String getTestCases(int index) { * * *
-     * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/testCases/<TestCase ID>`.
+     * Required. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
      * 
* * @@ -980,8 +1004,8 @@ public com.google.protobuf.ByteString getTestCasesBytes(int index) { * * *
-     * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/testCases/<TestCase ID>`.
+     * Required. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
      * 
* * @@ -1005,8 +1029,8 @@ public Builder setTestCases(int index, java.lang.String value) { * * *
-     * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/testCases/<TestCase ID>`.
+     * Required. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
      * 
* * @@ -1029,8 +1053,8 @@ public Builder addTestCases(java.lang.String value) { * * *
-     * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/testCases/<TestCase ID>`.
+     * Required. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
      * 
* * @@ -1050,8 +1074,8 @@ public Builder addAllTestCases(java.lang.Iterable values) { * * *
-     * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/testCases/<TestCase ID>`.
+     * Required. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
      * 
* * @@ -1062,7 +1086,7 @@ public Builder addAllTestCases(java.lang.Iterable values) { */ public Builder clearTestCases() { testCases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1070,8 +1094,8 @@ public Builder clearTestCases() { * * *
-     * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/testCases/<TestCase ID>`.
+     * Required. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
      * 
* * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesRequestOrBuilder.java index d0defb82d87d..580b55f96e9f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface BatchRunTestCasesRequestOrBuilder * * *
-   * Required. Agent name. Format: `projects/<Project ID>/locations/<Location ID>/agents/
-   * <AgentID>`.
+   * Required. Agent name. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/ <AgentID>`.
    * 
* * @@ -42,8 +42,8 @@ public interface BatchRunTestCasesRequestOrBuilder * * *
-   * Required. Agent name. Format: `projects/<Project ID>/locations/<Location ID>/agents/
-   * <AgentID>`.
+   * Required. Agent name. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/ <AgentID>`.
    * 
* * @@ -58,9 +58,9 @@ public interface BatchRunTestCasesRequestOrBuilder * * *
-   * Optional. If not set, draft environment is assumed. Format: `projects/<Project
-   * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
-   * ID>`.
+   * Optional. If not set, draft environment is assumed. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>`.
    * 
* * @@ -74,9 +74,9 @@ public interface BatchRunTestCasesRequestOrBuilder * * *
-   * Optional. If not set, draft environment is assumed. Format: `projects/<Project
-   * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
-   * ID>`.
+   * Optional. If not set, draft environment is assumed. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * ID>/environments/<Environment ID>`.
    * 
* * @@ -91,8 +91,8 @@ public interface BatchRunTestCasesRequestOrBuilder * * *
-   * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/testCases/<TestCase ID>`.
+   * Required. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
    * 
* * @@ -106,8 +106,8 @@ public interface BatchRunTestCasesRequestOrBuilder * * *
-   * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/testCases/<TestCase ID>`.
+   * Required. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
    * 
* * @@ -121,8 +121,8 @@ public interface BatchRunTestCasesRequestOrBuilder * * *
-   * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/testCases/<TestCase ID>`.
+   * Required. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
    * 
* * @@ -137,8 +137,8 @@ public interface BatchRunTestCasesRequestOrBuilder * * *
-   * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/testCases/<TestCase ID>`.
+   * Required. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/testCases/<TestCase ID>`.
    * 
* * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesResponse.java index d9f8d86adf91..cf03f71a503c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases].
+ * The response message for
+ * [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} @@ -68,14 +69,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int RESULTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List results_; /** * * *
    * The test case results. The detailed
-   * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-   * response.
+   * [conversation
+   * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+   * empty in this response.
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -89,8 +93,9 @@ public java.util.List getResul * *
    * The test case results. The detailed
-   * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-   * response.
+   * [conversation
+   * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+   * empty in this response.
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -105,8 +110,9 @@ public java.util.List getResul * *
    * The test case results. The detailed
-   * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-   * response.
+   * [conversation
+   * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+   * empty in this response.
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -120,8 +126,9 @@ public int getResultsCount() { * *
    * The test case results. The detailed
-   * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-   * response.
+   * [conversation
+   * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+   * empty in this response.
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -135,8 +142,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseResult getResults(int index) { * *
    * The test case results. The detailed
-   * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-   * response.
+   * [conversation
+   * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+   * empty in this response.
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -312,7 +320,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases].
+   * The response message for
+   * [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse} @@ -346,6 +355,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); } else { @@ -380,7 +390,16 @@ public com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse build() { public com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse result = new com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse result) { if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { results_ = java.util.Collections.unmodifiableList(results_); @@ -390,8 +409,10 @@ public com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse buildPartial( } else { result.results_ = resultsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.BatchRunTestCasesResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -548,8 +569,9 @@ private void ensureResultsIsMutable() { * *
      * The test case results. The detailed
-     * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-     * response.
+     * [conversation
+     * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+     * empty in this response.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -566,8 +588,9 @@ public java.util.List getResul * *
      * The test case results. The detailed
-     * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-     * response.
+     * [conversation
+     * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+     * empty in this response.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -584,8 +607,9 @@ public int getResultsCount() { * *
      * The test case results. The detailed
-     * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-     * response.
+     * [conversation
+     * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+     * empty in this response.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -602,8 +626,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseResult getResults(int index) { * *
      * The test case results. The detailed
-     * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-     * response.
+     * [conversation
+     * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+     * empty in this response.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -626,8 +651,9 @@ public Builder setResults(int index, com.google.cloud.dialogflow.cx.v3.TestCaseR * *
      * The test case results. The detailed
-     * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-     * response.
+     * [conversation
+     * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+     * empty in this response.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -648,8 +674,9 @@ public Builder setResults( * *
      * The test case results. The detailed
-     * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-     * response.
+     * [conversation
+     * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+     * empty in this response.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -672,8 +699,9 @@ public Builder addResults(com.google.cloud.dialogflow.cx.v3.TestCaseResult value * *
      * The test case results. The detailed
-     * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-     * response.
+     * [conversation
+     * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+     * empty in this response.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -696,8 +724,9 @@ public Builder addResults(int index, com.google.cloud.dialogflow.cx.v3.TestCaseR * *
      * The test case results. The detailed
-     * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-     * response.
+     * [conversation
+     * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+     * empty in this response.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -718,8 +747,9 @@ public Builder addResults( * *
      * The test case results. The detailed
-     * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-     * response.
+     * [conversation
+     * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+     * empty in this response.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -740,8 +770,9 @@ public Builder addResults( * *
      * The test case results. The detailed
-     * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-     * response.
+     * [conversation
+     * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+     * empty in this response.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -762,8 +793,9 @@ public Builder addAllResults( * *
      * The test case results. The detailed
-     * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-     * response.
+     * [conversation
+     * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+     * empty in this response.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -783,8 +815,9 @@ public Builder clearResults() { * *
      * The test case results. The detailed
-     * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-     * response.
+     * [conversation
+     * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+     * empty in this response.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -804,8 +837,9 @@ public Builder removeResults(int index) { * *
      * The test case results. The detailed
-     * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-     * response.
+     * [conversation
+     * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+     * empty in this response.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -818,8 +852,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseResult.Builder getResultsBuilde * *
      * The test case results. The detailed
-     * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-     * response.
+     * [conversation
+     * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+     * empty in this response.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -837,8 +872,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseResultOrBuilder getResultsOrBui * *
      * The test case results. The detailed
-     * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-     * response.
+     * [conversation
+     * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+     * empty in this response.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -856,8 +892,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseResultOrBuilder getResultsOrBui * *
      * The test case results. The detailed
-     * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-     * response.
+     * [conversation
+     * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+     * empty in this response.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -871,8 +908,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseResult.Builder addResultsBuilde * *
      * The test case results. The detailed
-     * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-     * response.
+     * [conversation
+     * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+     * empty in this response.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -886,8 +924,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseResult.Builder addResultsBuilde * *
      * The test case results. The detailed
-     * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-     * response.
+     * [conversation
+     * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+     * empty in this response.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesResponseOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesResponseOrBuilder.java index a7d732aef3a3..0b0fcbb6e9d1 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesResponseOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/BatchRunTestCasesResponseOrBuilder.java @@ -28,8 +28,9 @@ public interface BatchRunTestCasesResponseOrBuilder * *
    * The test case results. The detailed
-   * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-   * response.
+   * [conversation
+   * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+   * empty in this response.
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -40,8 +41,9 @@ public interface BatchRunTestCasesResponseOrBuilder * *
    * The test case results. The detailed
-   * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-   * response.
+   * [conversation
+   * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+   * empty in this response.
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -52,8 +54,9 @@ public interface BatchRunTestCasesResponseOrBuilder * *
    * The test case results. The detailed
-   * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-   * response.
+   * [conversation
+   * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+   * empty in this response.
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -64,8 +67,9 @@ public interface BatchRunTestCasesResponseOrBuilder * *
    * The test case results. The detailed
-   * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-   * response.
+   * [conversation
+   * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+   * empty in this response.
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; @@ -77,8 +81,9 @@ public interface BatchRunTestCasesResponseOrBuilder * *
    * The test case results. The detailed
-   * [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this
-   * response.
+   * [conversation
+   * turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are
+   * empty in this response.
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TestCaseResult results = 1; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CalculateCoverageRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CalculateCoverageRequest.java index 93326cec4948..63445ff52e69 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CalculateCoverageRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CalculateCoverageRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [TestCases.CalculateCoverage][google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverage].
+ * The request message for
+ * [TestCases.CalculateCoverage][google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverage].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} @@ -250,7 +251,9 @@ private CoverageType(int value) { } public static final int AGENT_FIELD_NUMBER = 3; - private volatile java.lang.Object agent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object agent_ = ""; /** * * @@ -305,7 +308,7 @@ public com.google.protobuf.ByteString getAgentBytes() { } public static final int TYPE_FIELD_NUMBER = 2; - private int type_; + private int type_ = 0; /** * * @@ -338,9 +341,8 @@ public int getTypeValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType getType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType result = - com.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType.valueOf(type_); + com.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType.forNumber(type_); return result == null ? com.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType.UNRECOGNIZED : result; @@ -525,7 +527,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [TestCases.CalculateCoverage][google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverage].
+   * The request message for
+   * [TestCases.CalculateCoverage][google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverage].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CalculateCoverageRequest} @@ -559,10 +562,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; agent_ = ""; - type_ = 0; - return this; } @@ -590,12 +592,23 @@ public com.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest build() { public com.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest result = new com.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest(this); - result.agent_ = agent_; - result.type_ = type_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agent_ = agent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -644,6 +657,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CalculateCoverageRequ return this; if (!other.getAgent().isEmpty()) { agent_ = other.agent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.type_ != 0) { @@ -678,13 +692,13 @@ public Builder mergeFrom( case 16: { type_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { agent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 26 default: @@ -704,6 +718,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object agent_ = ""; /** * @@ -774,8 +790,8 @@ public Builder setAgent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - agent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -794,8 +810,8 @@ public Builder setAgent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAgent() { - agent_ = getDefaultInstance().getAgent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -819,8 +835,8 @@ public Builder setAgentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - agent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -858,8 +874,8 @@ public int getTypeValue() { * @return This builder for chaining. */ public Builder setTypeValue(int value) { - type_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -878,9 +894,8 @@ public Builder setTypeValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType getType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType result = - com.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType.valueOf(type_); + com.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType.forNumber(type_); return result == null ? com.google.cloud.dialogflow.cx.v3.CalculateCoverageRequest.CoverageType.UNRECOGNIZED : result; @@ -904,7 +919,7 @@ public Builder setType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; type_ = value.getNumber(); onChanged(); return this; @@ -923,7 +938,7 @@ public Builder setType( * @return This builder for chaining. */ public Builder clearType() { - + bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CalculateCoverageResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CalculateCoverageResponse.java index a216579b40d4..88cf05ca2ac5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CalculateCoverageResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CalculateCoverageResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [TestCases.CalculateCoverage][google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverage].
+ * The response message for
+ * [TestCases.CalculateCoverage][google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverage].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} @@ -118,7 +119,9 @@ public CoverageTypeCase getCoverageTypeCase() { } public static final int AGENT_FIELD_NUMBER = 5; - private volatile java.lang.Object agent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object agent_ = ""; /** * * @@ -545,7 +548,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [TestCases.CalculateCoverage][google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverage].
+   * The response message for
+   * [TestCases.CalculateCoverage][google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverage].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CalculateCoverageResponse} @@ -579,8 +583,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; agent_ = ""; - if (intentCoverageBuilder_ != null) { intentCoverageBuilder_.clear(); } @@ -619,33 +623,36 @@ public com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse build() { public com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse result = new com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse(this); - result.agent_ = agent_; - if (coverageTypeCase_ == 2) { - if (intentCoverageBuilder_ == null) { - result.coverageType_ = coverageType_; - } else { - result.coverageType_ = intentCoverageBuilder_.build(); - } - } - if (coverageTypeCase_ == 4) { - if (transitionCoverageBuilder_ == null) { - result.coverageType_ = coverageType_; - } else { - result.coverageType_ = transitionCoverageBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (coverageTypeCase_ == 6) { - if (routeGroupCoverageBuilder_ == null) { - result.coverageType_ = coverageType_; - } else { - result.coverageType_ = routeGroupCoverageBuilder_.build(); - } - } - result.coverageTypeCase_ = coverageTypeCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agent_ = agent_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3.CalculateCoverageResponse result) { + result.coverageTypeCase_ = coverageTypeCase_; + result.coverageType_ = this.coverageType_; + if (coverageTypeCase_ == 2 && intentCoverageBuilder_ != null) { + result.coverageType_ = intentCoverageBuilder_.build(); + } + if (coverageTypeCase_ == 4 && transitionCoverageBuilder_ != null) { + result.coverageType_ = transitionCoverageBuilder_.build(); + } + if (coverageTypeCase_ == 6 && routeGroupCoverageBuilder_ != null) { + result.coverageType_ = routeGroupCoverageBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -694,6 +701,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CalculateCoverageResp return this; if (!other.getAgent().isEmpty()) { agent_ = other.agent_; + bitField0_ |= 0x00000001; onChanged(); } switch (other.getCoverageTypeCase()) { @@ -759,7 +767,7 @@ public Builder mergeFrom( case 42: { agent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 42 case 50: @@ -800,6 +808,8 @@ public Builder clearCoverageType() { return this; } + private int bitField0_; + private java.lang.Object agent_ = ""; /** * @@ -864,8 +874,8 @@ public Builder setAgent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - agent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -882,8 +892,8 @@ public Builder setAgent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAgent() { - agent_ = getDefaultInstance().getAgent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -905,8 +915,8 @@ public Builder setAgentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - agent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1118,7 +1128,6 @@ public com.google.cloud.dialogflow.cx.v3.IntentCoverageOrBuilder getIntentCovera } coverageTypeCase_ = 2; onChanged(); - ; return intentCoverageBuilder_; } @@ -1333,7 +1342,6 @@ public Builder clearTransitionCoverage() { } coverageTypeCase_ = 4; onChanged(); - ; return transitionCoverageBuilder_; } @@ -1560,7 +1568,6 @@ public Builder clearRouteGroupCoverage() { } coverageTypeCase_ = 6; onChanged(); - ; return routeGroupCoverageBuilder_; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Changelog.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Changelog.java index e0cadfe0fd9a..c68fea32029c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Changelog.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Changelog.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int USER_EMAIL_FIELD_NUMBER = 2; - private volatile java.lang.Object userEmail_; + + @SuppressWarnings("serial") + private volatile java.lang.Object userEmail_ = ""; /** * * @@ -175,7 +179,9 @@ public com.google.protobuf.ByteString getUserEmailBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -224,7 +230,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int ACTION_FIELD_NUMBER = 11; - private volatile java.lang.Object action_; + + @SuppressWarnings("serial") + private volatile java.lang.Object action_ = ""; /** * * @@ -273,7 +281,9 @@ public com.google.protobuf.ByteString getActionBytes() { } public static final int TYPE_FIELD_NUMBER = 8; - private volatile java.lang.Object type_; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; /** * * @@ -322,7 +332,9 @@ public com.google.protobuf.ByteString getTypeBytes() { } public static final int RESOURCE_FIELD_NUMBER = 3; - private volatile java.lang.Object resource_; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; /** * * @@ -413,7 +425,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } private byte memoizedIsInitialized = -1; @@ -672,22 +684,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - userEmail_ = ""; - displayName_ = ""; - action_ = ""; - type_ = ""; - resource_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } return this; @@ -717,21 +723,38 @@ public com.google.cloud.dialogflow.cx.v3.Changelog build() { public com.google.cloud.dialogflow.cx.v3.Changelog buildPartial() { com.google.cloud.dialogflow.cx.v3.Changelog result = new com.google.cloud.dialogflow.cx.v3.Changelog(this); - result.name_ = name_; - result.userEmail_ = userEmail_; - result.displayName_ = displayName_; - result.action_ = action_; - result.type_ = type_; - result.resource_ = resource_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Changelog result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userEmail_ = userEmail_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.action_ = action_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.resource_ = resource_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -779,26 +802,32 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Changelog other) { if (other == com.google.cloud.dialogflow.cx.v3.Changelog.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getUserEmail().isEmpty()) { userEmail_ = other.userEmail_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getAction().isEmpty()) { action_ = other.action_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getType().isEmpty()) { type_ = other.type_; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getResource().isEmpty()) { resource_ = other.resource_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasCreateTime()) { @@ -833,43 +862,43 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { userEmail_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { resource_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 26 case 34: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 34 case 58: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 58 case 66: { type_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 66 case 90: { action_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 90 default: @@ -889,6 +918,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -956,8 +987,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -975,8 +1006,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -999,8 +1030,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1066,8 +1097,8 @@ public Builder setUserEmail(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - userEmail_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1083,8 +1114,8 @@ public Builder setUserEmail(java.lang.String value) { * @return This builder for chaining. */ public Builder clearUserEmail() { - userEmail_ = getDefaultInstance().getUserEmail(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1105,8 +1136,8 @@ public Builder setUserEmailBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - userEmail_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1172,8 +1203,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1189,8 +1220,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1211,8 +1242,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1278,8 +1309,8 @@ public Builder setAction(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - action_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1295,8 +1326,8 @@ public Builder setAction(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAction() { - action_ = getDefaultInstance().getAction(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1317,8 +1348,8 @@ public Builder setActionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - action_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1384,8 +1415,8 @@ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - type_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1401,8 +1432,8 @@ public Builder setType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearType() { - type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1423,8 +1454,8 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - type_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1490,8 +1521,8 @@ public Builder setResource(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - resource_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1507,8 +1538,8 @@ public Builder setResource(java.lang.String value) { * @return This builder for chaining. */ public Builder clearResource() { - resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1529,8 +1560,8 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - resource_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1553,7 +1584,7 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -1590,11 +1621,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -1609,11 +1640,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -1627,17 +1658,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -1650,14 +1682,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp create_time = 4; */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1670,7 +1701,7 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 4; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogProto.java index dfc3d94fab3d..3eabec48221e 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogProto.java @@ -86,12 +86,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "s/*}\332A\004name\032x\312A\031dialogflow.googleapis.co" + "m\322AYhttps://www.googleapis.com/auth/clou" + "d-platform,https://www.googleapis.com/au" - + "th/dialogflowB\302\001\n!com.google.cloud.dialo" - + "gflow.cx.v3B\016ChangelogProtoP\001Z?google.go" - + "lang.org/genproto/googleapis/cloud/dialo" - + "gflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Di" - + "alogflow.Cx.V3\352\002!Google::Cloud::Dialogfl" - + "ow::CX::V3b\006proto3" + + "th/dialogflowB\264\001\n!com.google.cloud.dialo" + + "gflow.cx.v3B\016ChangelogProtoP\001Z1cloud.goo" + + "gle.com/go/dialogflow/cx/apiv3/cxpb;cxpb" + + "\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx.V3" + + "\352\002!Google::Cloud::Dialogflow::CX::V3b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsRequest.java index 5dc731d0f29f..ed60438234f4 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions].
+ * The request message for
+ * [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CompareVersionsRequest} @@ -70,13 +71,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int BASE_VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object baseVersion_; + + @SuppressWarnings("serial") + private volatile java.lang.Object baseVersion_ = ""; /** * * *
-   * Required. Name of the base flow version to compare with the target version. Use
-   * version ID `0` to indicate the draft version of the specified flow.
+   * Required. Name of the base flow version to compare with the target version.
+   * Use version ID `0` to indicate the draft version of the specified flow.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/
    * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
    * 
@@ -103,8 +106,8 @@ public java.lang.String getBaseVersion() { * * *
-   * Required. Name of the base flow version to compare with the target version. Use
-   * version ID `0` to indicate the draft version of the specified flow.
+   * Required. Name of the base flow version to compare with the target version.
+   * Use version ID `0` to indicate the draft version of the specified flow.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/
    * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
    * 
@@ -129,7 +132,9 @@ public com.google.protobuf.ByteString getBaseVersionBytes() { } public static final int TARGET_VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object targetVersion_; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetVersion_ = ""; /** * * @@ -188,7 +193,9 @@ public com.google.protobuf.ByteString getTargetVersionBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -428,7 +435,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions].
+   * The request message for
+   * [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CompareVersionsRequest} @@ -462,12 +470,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; baseVersion_ = ""; - targetVersion_ = ""; - languageCode_ = ""; - return this; } @@ -495,13 +501,26 @@ public com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest build() { public com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest result = new com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest(this); - result.baseVersion_ = baseVersion_; - result.targetVersion_ = targetVersion_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.CompareVersionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.baseVersion_ = baseVersion_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.targetVersion_ = targetVersion_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -550,14 +569,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CompareVersionsReques return this; if (!other.getBaseVersion().isEmpty()) { baseVersion_ = other.baseVersion_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getTargetVersion().isEmpty()) { targetVersion_ = other.targetVersion_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -589,19 +611,19 @@ public Builder mergeFrom( case 10: { baseVersion_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { targetVersion_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -621,13 +643,15 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object baseVersion_ = ""; /** * * *
-     * Required. Name of the base flow version to compare with the target version. Use
-     * version ID `0` to indicate the draft version of the specified flow.
+     * Required. Name of the base flow version to compare with the target version.
+     * Use version ID `0` to indicate the draft version of the specified flow.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/
      * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
      * 
@@ -653,8 +677,8 @@ public java.lang.String getBaseVersion() { * * *
-     * Required. Name of the base flow version to compare with the target version. Use
-     * version ID `0` to indicate the draft version of the specified flow.
+     * Required. Name of the base flow version to compare with the target version.
+     * Use version ID `0` to indicate the draft version of the specified flow.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/
      * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
      * 
@@ -680,8 +704,8 @@ public com.google.protobuf.ByteString getBaseVersionBytes() { * * *
-     * Required. Name of the base flow version to compare with the target version. Use
-     * version ID `0` to indicate the draft version of the specified flow.
+     * Required. Name of the base flow version to compare with the target version.
+     * Use version ID `0` to indicate the draft version of the specified flow.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/
      * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
      * 
@@ -697,8 +721,8 @@ public Builder setBaseVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - baseVersion_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -706,8 +730,8 @@ public Builder setBaseVersion(java.lang.String value) { * * *
-     * Required. Name of the base flow version to compare with the target version. Use
-     * version ID `0` to indicate the draft version of the specified flow.
+     * Required. Name of the base flow version to compare with the target version.
+     * Use version ID `0` to indicate the draft version of the specified flow.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/
      * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
      * 
@@ -719,8 +743,8 @@ public Builder setBaseVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearBaseVersion() { - baseVersion_ = getDefaultInstance().getBaseVersion(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -728,8 +752,8 @@ public Builder clearBaseVersion() { * * *
-     * Required. Name of the base flow version to compare with the target version. Use
-     * version ID `0` to indicate the draft version of the specified flow.
+     * Required. Name of the base flow version to compare with the target version.
+     * Use version ID `0` to indicate the draft version of the specified flow.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/
      * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
      * 
@@ -746,8 +770,8 @@ public Builder setBaseVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - baseVersion_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -828,8 +852,8 @@ public Builder setTargetVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - targetVersion_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -850,8 +874,8 @@ public Builder setTargetVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTargetVersion() { - targetVersion_ = getDefaultInstance().getTargetVersion(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -877,8 +901,8 @@ public Builder setTargetVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - targetVersion_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -959,8 +983,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -981,8 +1005,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1008,8 +1032,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsRequestOrBuilder.java index 03f828e8aad5..8c5e8a4990de 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface CompareVersionsRequestOrBuilder * * *
-   * Required. Name of the base flow version to compare with the target version. Use
-   * version ID `0` to indicate the draft version of the specified flow.
+   * Required. Name of the base flow version to compare with the target version.
+   * Use version ID `0` to indicate the draft version of the specified flow.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/
    * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
    * 
@@ -44,8 +44,8 @@ public interface CompareVersionsRequestOrBuilder * * *
-   * Required. Name of the base flow version to compare with the target version. Use
-   * version ID `0` to indicate the draft version of the specified flow.
+   * Required. Name of the base flow version to compare with the target version.
+   * Use version ID `0` to indicate the draft version of the specified flow.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/
    * <Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
    * 
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsResponse.java index b39a80a5cee6..bc27e9832e1a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CompareVersionsResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions].
+ * The response message for
+ * [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CompareVersionsResponse} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int BASE_VERSION_CONTENT_JSON_FIELD_NUMBER = 1; - private volatile java.lang.Object baseVersionContentJson_; + + @SuppressWarnings("serial") + private volatile java.lang.Object baseVersionContentJson_ = ""; /** * * @@ -118,7 +121,9 @@ public com.google.protobuf.ByteString getBaseVersionContentJsonBytes() { } public static final int TARGET_VERSION_CONTENT_JSON_FIELD_NUMBER = 2; - private volatile java.lang.Object targetVersionContentJson_; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetVersionContentJson_ = ""; /** * * @@ -209,7 +214,7 @@ public com.google.protobuf.Timestamp getCompareTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCompareTimeOrBuilder() { - return getCompareTime(); + return compareTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : compareTime_; } private byte memoizedIsInitialized = -1; @@ -400,7 +405,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions].
+   * The response message for
+   * [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CompareVersionsResponse} @@ -434,14 +440,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; baseVersionContentJson_ = ""; - targetVersionContentJson_ = ""; - - if (compareTimeBuilder_ == null) { - compareTime_ = null; - } else { - compareTime_ = null; + compareTime_ = null; + if (compareTimeBuilder_ != null) { + compareTimeBuilder_.dispose(); compareTimeBuilder_ = null; } return this; @@ -471,17 +475,27 @@ public com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse build() { public com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse result = new com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse(this); - result.baseVersionContentJson_ = baseVersionContentJson_; - result.targetVersionContentJson_ = targetVersionContentJson_; - if (compareTimeBuilder_ == null) { - result.compareTime_ = compareTime_; - } else { - result.compareTime_ = compareTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.CompareVersionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.baseVersionContentJson_ = baseVersionContentJson_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.targetVersionContentJson_ = targetVersionContentJson_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.compareTime_ = + compareTimeBuilder_ == null ? compareTime_ : compareTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -530,10 +544,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CompareVersionsRespon return this; if (!other.getBaseVersionContentJson().isEmpty()) { baseVersionContentJson_ = other.baseVersionContentJson_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getTargetVersionContentJson().isEmpty()) { targetVersionContentJson_ = other.targetVersionContentJson_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasCompareTime()) { @@ -568,19 +584,19 @@ public Builder mergeFrom( case 10: { baseVersionContentJson_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { targetVersionContentJson_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getCompareTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -600,6 +616,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object baseVersionContentJson_ = ""; /** * @@ -661,8 +679,8 @@ public Builder setBaseVersionContentJson(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - baseVersionContentJson_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -678,8 +696,8 @@ public Builder setBaseVersionContentJson(java.lang.String value) { * @return This builder for chaining. */ public Builder clearBaseVersionContentJson() { - baseVersionContentJson_ = getDefaultInstance().getBaseVersionContentJson(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -700,8 +718,8 @@ public Builder setBaseVersionContentJsonBytes(com.google.protobuf.ByteString val throw new NullPointerException(); } checkByteStringIsUtf8(value); - baseVersionContentJson_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -767,8 +785,8 @@ public Builder setTargetVersionContentJson(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - targetVersionContentJson_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -784,8 +802,8 @@ public Builder setTargetVersionContentJson(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTargetVersionContentJson() { - targetVersionContentJson_ = getDefaultInstance().getTargetVersionContentJson(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -806,8 +824,8 @@ public Builder setTargetVersionContentJsonBytes(com.google.protobuf.ByteString v throw new NullPointerException(); } checkByteStringIsUtf8(value); - targetVersionContentJson_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -830,7 +848,7 @@ public Builder setTargetVersionContentJsonBytes(com.google.protobuf.ByteString v * @return Whether the compareTime field is set. */ public boolean hasCompareTime() { - return compareTimeBuilder_ != null || compareTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -867,11 +885,11 @@ public Builder setCompareTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } compareTime_ = value; - onChanged(); } else { compareTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -886,11 +904,11 @@ public Builder setCompareTime(com.google.protobuf.Timestamp value) { public Builder setCompareTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (compareTimeBuilder_ == null) { compareTime_ = builderForValue.build(); - onChanged(); } else { compareTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -904,19 +922,18 @@ public Builder setCompareTime(com.google.protobuf.Timestamp.Builder builderForVa */ public Builder mergeCompareTime(com.google.protobuf.Timestamp value) { if (compareTimeBuilder_ == null) { - if (compareTime_ != null) { - compareTime_ = - com.google.protobuf.Timestamp.newBuilder(compareTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && compareTime_ != null + && compareTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCompareTimeBuilder().mergeFrom(value); } else { compareTime_ = value; } - onChanged(); } else { compareTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -929,14 +946,13 @@ public Builder mergeCompareTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp compare_time = 3; */ public Builder clearCompareTime() { - if (compareTimeBuilder_ == null) { - compareTime_ = null; - onChanged(); - } else { - compareTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + compareTime_ = null; + if (compareTimeBuilder_ != null) { + compareTimeBuilder_.dispose(); compareTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -949,7 +965,7 @@ public Builder clearCompareTime() { * .google.protobuf.Timestamp compare_time = 3; */ public com.google.protobuf.Timestamp.Builder getCompareTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getCompareTimeFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResult.java index dd9a7338e699..94913b97402c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResult.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ContinuousTestResult.java @@ -232,7 +232,9 @@ private AggregatedTestResult(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -287,7 +289,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int RESULT_FIELD_NUMBER = 2; - private int result_; + private int result_ = 0; /** * * @@ -320,9 +322,8 @@ public int getResultValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult getResult() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult result = - com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult.valueOf( + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult.forNumber( result_); return result == null ? com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult.UNRECOGNIZED @@ -330,6 +331,8 @@ public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResu } public static final int TEST_CASE_RESULTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList testCaseResults_; /** * @@ -433,7 +436,7 @@ public com.google.protobuf.Timestamp getRunTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() { - return getRunTime(); + return runTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : runTime_; } private byte memoizedIsInitialized = -1; @@ -679,16 +682,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - result_ = 0; - testCaseResults_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (runTimeBuilder_ == null) { - runTime_ = null; - } else { - runTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + runTime_ = null; + if (runTimeBuilder_ != null) { + runTimeBuilder_.dispose(); runTimeBuilder_ = null; } return this; @@ -718,21 +719,34 @@ public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult build() { public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult buildPartial() { com.google.cloud.dialogflow.cx.v3.ContinuousTestResult result = new com.google.cloud.dialogflow.cx.v3.ContinuousTestResult(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.result_ = result_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult result) { + if (((bitField0_ & 0x00000004) != 0)) { testCaseResults_ = testCaseResults_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.testCaseResults_ = testCaseResults_; - if (runTimeBuilder_ == null) { - result.runTime_ = runTime_; - } else { - result.runTime_ = runTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ContinuousTestResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.result_ = result_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.runTime_ = runTimeBuilder_ == null ? runTime_ : runTimeBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -783,6 +797,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ContinuousTestResult return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.result_ != 0) { @@ -791,7 +806,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ContinuousTestResult if (!other.testCaseResults_.isEmpty()) { if (testCaseResults_.isEmpty()) { testCaseResults_ = other.testCaseResults_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTestCaseResultsIsMutable(); testCaseResults_.addAll(other.testCaseResults_); @@ -830,13 +845,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { result_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: @@ -849,7 +864,7 @@ public Builder mergeFrom( case 34: { input.readMessage(getRunTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -941,8 +956,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -961,8 +976,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -986,8 +1001,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1025,8 +1040,8 @@ public int getResultValue() { * @return This builder for chaining. */ public Builder setResultValue(int value) { - result_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1045,9 +1060,8 @@ public Builder setResultValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult getResult() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult result = - com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult.valueOf( + com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult.forNumber( result_); return result == null ? com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.AggregatedTestResult.UNRECOGNIZED @@ -1072,7 +1086,7 @@ public Builder setResult( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; result_ = value.getNumber(); onChanged(); return this; @@ -1091,7 +1105,7 @@ public Builder setResult( * @return This builder for chaining. */ public Builder clearResult() { - + bitField0_ = (bitField0_ & ~0x00000002); result_ = 0; onChanged(); return this; @@ -1101,9 +1115,9 @@ public Builder clearResult() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTestCaseResultsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { testCaseResults_ = new com.google.protobuf.LazyStringArrayList(testCaseResults_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } /** @@ -1246,7 +1260,7 @@ public Builder addAllTestCaseResults(java.lang.Iterable values */ public Builder clearTestCaseResults() { testCaseResults_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1292,7 +1306,7 @@ public Builder addTestCaseResultsBytes(com.google.protobuf.ByteString value) { * @return Whether the runTime field is set. */ public boolean hasRunTime() { - return runTimeBuilder_ != null || runTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1327,11 +1341,11 @@ public Builder setRunTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } runTime_ = value; - onChanged(); } else { runTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1346,11 +1360,11 @@ public Builder setRunTime(com.google.protobuf.Timestamp value) { public Builder setRunTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (runTimeBuilder_ == null) { runTime_ = builderForValue.build(); - onChanged(); } else { runTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1364,17 +1378,18 @@ public Builder setRunTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeRunTime(com.google.protobuf.Timestamp value) { if (runTimeBuilder_ == null) { - if (runTime_ != null) { - runTime_ = - com.google.protobuf.Timestamp.newBuilder(runTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && runTime_ != null + && runTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getRunTimeBuilder().mergeFrom(value); } else { runTime_ = value; } - onChanged(); } else { runTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1387,14 +1402,13 @@ public Builder mergeRunTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp run_time = 4; */ public Builder clearRunTime() { - if (runTimeBuilder_ == null) { - runTime_ = null; - onChanged(); - } else { - runTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + runTime_ = null; + if (runTimeBuilder_ != null) { + runTimeBuilder_.dispose(); runTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1407,7 +1421,7 @@ public Builder clearRunTime() { * .google.protobuf.Timestamp run_time = 4; */ public com.google.protobuf.Timestamp.Builder getRunTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getRunTimeFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ConversationTurn.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ConversationTurn.java index 2a6621215e28..e8d7af339a47 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ConversationTurn.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ConversationTurn.java @@ -75,8 +75,9 @@ public interface UserInputOrBuilder * * *
-     * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
-     * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
+     * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text],
+     * [event input][google.cloud.dialogflow.cx.v3.QueryInput.event], [dtmf
+     * input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
      * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; @@ -88,8 +89,9 @@ public interface UserInputOrBuilder * * *
-     * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
-     * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
+     * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text],
+     * [event input][google.cloud.dialogflow.cx.v3.QueryInput.event], [dtmf
+     * input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
      * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; @@ -101,8 +103,9 @@ public interface UserInputOrBuilder * * *
-     * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
-     * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
+     * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text],
+     * [event input][google.cloud.dialogflow.cx.v3.QueryInput.event], [dtmf
+     * input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
      * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; @@ -228,8 +231,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-     * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
-     * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
+     * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text],
+     * [event input][google.cloud.dialogflow.cx.v3.QueryInput.event], [dtmf
+     * input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
      * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; @@ -244,8 +248,9 @@ public boolean hasInput() { * * *
-     * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
-     * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
+     * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text],
+     * [event input][google.cloud.dialogflow.cx.v3.QueryInput.event], [dtmf
+     * input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
      * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; @@ -262,15 +267,18 @@ public com.google.cloud.dialogflow.cx.v3.QueryInput getInput() { * * *
-     * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
-     * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
+     * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text],
+     * [event input][google.cloud.dialogflow.cx.v3.QueryInput.event], [dtmf
+     * input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
      * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.QueryInputOrBuilder getInputOrBuilder() { - return getInput(); + return input_ == null + ? com.google.cloud.dialogflow.cx.v3.QueryInput.getDefaultInstance() + : input_; } public static final int INJECTED_PARAMETERS_FIELD_NUMBER = 2; @@ -321,11 +329,13 @@ public com.google.protobuf.Struct getInjectedParameters() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getInjectedParametersOrBuilder() { - return getInjectedParameters(); + return injectedParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : injectedParameters_; } public static final int IS_WEBHOOK_ENABLED_FIELD_NUMBER = 3; - private boolean isWebhookEnabled_; + private boolean isWebhookEnabled_ = false; /** * * @@ -345,7 +355,7 @@ public boolean getIsWebhookEnabled() { } public static final int ENABLE_SENTIMENT_ANALYSIS_FIELD_NUMBER = 7; - private boolean enableSentimentAnalysis_; + private boolean enableSentimentAnalysis_ = false; /** * * @@ -600,22 +610,19 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputBuilder_ == null) { - input_ = null; - } else { - input_ = null; + bitField0_ = 0; + input_ = null; + if (inputBuilder_ != null) { + inputBuilder_.dispose(); inputBuilder_ = null; } - if (injectedParametersBuilder_ == null) { - injectedParameters_ = null; - } else { - injectedParameters_ = null; + injectedParameters_ = null; + if (injectedParametersBuilder_ != null) { + injectedParametersBuilder_.dispose(); injectedParametersBuilder_ = null; } isWebhookEnabled_ = false; - enableSentimentAnalysis_ = false; - return this; } @@ -644,22 +651,33 @@ public com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput build() { public com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput buildPartial() { com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput result = new com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput(this); - if (inputBuilder_ == null) { - result.input_ = input_; - } else { - result.input_ = inputBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (injectedParametersBuilder_ == null) { - result.injectedParameters_ = injectedParameters_; - } else { - result.injectedParameters_ = injectedParametersBuilder_.build(); - } - result.isWebhookEnabled_ = isWebhookEnabled_; - result.enableSentimentAnalysis_ = enableSentimentAnalysis_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.input_ = inputBuilder_ == null ? input_ : inputBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.injectedParameters_ = + injectedParametersBuilder_ == null + ? injectedParameters_ + : injectedParametersBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isWebhookEnabled_ = isWebhookEnabled_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.enableSentimentAnalysis_ = enableSentimentAnalysis_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -751,25 +769,25 @@ public Builder mergeFrom( { input.readMessage( getInjectedParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { isWebhookEnabled_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 case 42: { input.readMessage(getInputFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 42 case 56: { enableSentimentAnalysis_ = input.readBool(); - + bitField0_ |= 0x00000008; break; } // case 56 default: @@ -789,6 +807,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.QueryInput input_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.QueryInput, @@ -799,8 +819,9 @@ public Builder mergeFrom( * * *
-       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
-       * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
+       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text],
+       * [event input][google.cloud.dialogflow.cx.v3.QueryInput.event], [dtmf
+       * input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
        * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; @@ -808,14 +829,15 @@ public Builder mergeFrom( * @return Whether the input field is set. */ public boolean hasInput() { - return inputBuilder_ != null || input_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * * *
-       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
-       * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
+       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text],
+       * [event input][google.cloud.dialogflow.cx.v3.QueryInput.event], [dtmf
+       * input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
        * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; @@ -835,8 +857,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryInput getInput() { * * *
-       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
-       * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
+       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text],
+       * [event input][google.cloud.dialogflow.cx.v3.QueryInput.event], [dtmf
+       * input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
        * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; @@ -847,19 +870,20 @@ public Builder setInput(com.google.cloud.dialogflow.cx.v3.QueryInput value) { throw new NullPointerException(); } input_ = value; - onChanged(); } else { inputBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** * * *
-       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
-       * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
+       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text],
+       * [event input][google.cloud.dialogflow.cx.v3.QueryInput.event], [dtmf
+       * input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
        * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; @@ -868,73 +892,74 @@ public Builder setInput( com.google.cloud.dialogflow.cx.v3.QueryInput.Builder builderForValue) { if (inputBuilder_ == null) { input_ = builderForValue.build(); - onChanged(); } else { inputBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** * * *
-       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
-       * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
+       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text],
+       * [event input][google.cloud.dialogflow.cx.v3.QueryInput.event], [dtmf
+       * input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
        * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; */ public Builder mergeInput(com.google.cloud.dialogflow.cx.v3.QueryInput value) { if (inputBuilder_ == null) { - if (input_ != null) { - input_ = - com.google.cloud.dialogflow.cx.v3.QueryInput.newBuilder(input_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && input_ != null + && input_ != com.google.cloud.dialogflow.cx.v3.QueryInput.getDefaultInstance()) { + getInputBuilder().mergeFrom(value); } else { input_ = value; } - onChanged(); } else { inputBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** * * *
-       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
-       * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
+       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text],
+       * [event input][google.cloud.dialogflow.cx.v3.QueryInput.event], [dtmf
+       * input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
        * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; */ public Builder clearInput() { - if (inputBuilder_ == null) { - input_ = null; - onChanged(); - } else { - input_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + input_ = null; + if (inputBuilder_ != null) { + inputBuilder_.dispose(); inputBuilder_ = null; } - + onChanged(); return this; } /** * * *
-       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
-       * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
+       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text],
+       * [event input][google.cloud.dialogflow.cx.v3.QueryInput.event], [dtmf
+       * input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
        * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; */ public com.google.cloud.dialogflow.cx.v3.QueryInput.Builder getInputBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputFieldBuilder().getBuilder(); } @@ -942,8 +967,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryInput.Builder getInputBuilder() { * * *
-       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
-       * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
+       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text],
+       * [event input][google.cloud.dialogflow.cx.v3.QueryInput.event], [dtmf
+       * input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
        * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; @@ -961,8 +987,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryInputOrBuilder getInputOrBuilder() * * *
-       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text], [event input][google.cloud.dialogflow.cx.v3.QueryInput.event],
-       * [dtmf input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
+       * Supports [text input][google.cloud.dialogflow.cx.v3.QueryInput.text],
+       * [event input][google.cloud.dialogflow.cx.v3.QueryInput.event], [dtmf
+       * input][google.cloud.dialogflow.cx.v3.QueryInput.dtmf] in the test case.
        * 
* * .google.cloud.dialogflow.cx.v3.QueryInput input = 5; @@ -1003,7 +1030,7 @@ public com.google.cloud.dialogflow.cx.v3.QueryInputOrBuilder getInputOrBuilder() * @return Whether the injectedParameters field is set. */ public boolean hasInjectedParameters() { - return injectedParametersBuilder_ != null || injectedParameters_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1042,11 +1069,11 @@ public Builder setInjectedParameters(com.google.protobuf.Struct value) { throw new NullPointerException(); } injectedParameters_ = value; - onChanged(); } else { injectedParametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1062,11 +1089,11 @@ public Builder setInjectedParameters(com.google.protobuf.Struct value) { public Builder setInjectedParameters(com.google.protobuf.Struct.Builder builderForValue) { if (injectedParametersBuilder_ == null) { injectedParameters_ = builderForValue.build(); - onChanged(); } else { injectedParametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1081,19 +1108,18 @@ public Builder setInjectedParameters(com.google.protobuf.Struct.Builder builderF */ public Builder mergeInjectedParameters(com.google.protobuf.Struct value) { if (injectedParametersBuilder_ == null) { - if (injectedParameters_ != null) { - injectedParameters_ = - com.google.protobuf.Struct.newBuilder(injectedParameters_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && injectedParameters_ != null + && injectedParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getInjectedParametersBuilder().mergeFrom(value); } else { injectedParameters_ = value; } - onChanged(); } else { injectedParametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1107,14 +1133,13 @@ public Builder mergeInjectedParameters(com.google.protobuf.Struct value) { * .google.protobuf.Struct injected_parameters = 2; */ public Builder clearInjectedParameters() { - if (injectedParametersBuilder_ == null) { - injectedParameters_ = null; - onChanged(); - } else { - injectedParameters_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + injectedParameters_ = null; + if (injectedParametersBuilder_ != null) { + injectedParametersBuilder_.dispose(); injectedParametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -1128,7 +1153,7 @@ public Builder clearInjectedParameters() { * .google.protobuf.Struct injected_parameters = 2; */ public com.google.protobuf.Struct.Builder getInjectedParametersBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getInjectedParametersFieldBuilder().getBuilder(); } @@ -1213,6 +1238,7 @@ public boolean getIsWebhookEnabled() { public Builder setIsWebhookEnabled(boolean value) { isWebhookEnabled_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1230,7 +1256,7 @@ public Builder setIsWebhookEnabled(boolean value) { * @return This builder for chaining. */ public Builder clearIsWebhookEnabled() { - + bitField0_ = (bitField0_ & ~0x00000004); isWebhookEnabled_ = false; onChanged(); return this; @@ -1267,6 +1293,7 @@ public boolean getEnableSentimentAnalysis() { public Builder setEnableSentimentAnalysis(boolean value) { enableSentimentAnalysis_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1282,7 +1309,7 @@ public Builder setEnableSentimentAnalysis(boolean value) { * @return This builder for chaining. */ public Builder clearEnableSentimentAnalysis() { - + bitField0_ = (bitField0_ & ~0x00000008); enableSentimentAnalysis_ = false; onChanged(); return this; @@ -1518,8 +1545,8 @@ public interface VirtualAgentOutputOrBuilder * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
-     * will be set.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the
+     * response. Only name and displayName will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; @@ -1531,8 +1558,8 @@ public interface VirtualAgentOutputOrBuilder * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
-     * will be set.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the
+     * response. Only name and displayName will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; @@ -1544,8 +1571,8 @@ public interface VirtualAgentOutputOrBuilder * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
-     * will be set.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the
+     * response. Only name and displayName will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; @@ -1556,8 +1583,8 @@ public interface VirtualAgentOutputOrBuilder * * *
-     * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
-     * will be set.
+     * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was
+     * spoken. Only name and displayName will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; @@ -1569,8 +1596,8 @@ public interface VirtualAgentOutputOrBuilder * * *
-     * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
-     * will be set.
+     * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was
+     * spoken. Only name and displayName will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; @@ -1582,8 +1609,8 @@ public interface VirtualAgentOutputOrBuilder * * *
-     * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
-     * will be set.
+     * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was
+     * spoken. Only name and displayName will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; @@ -1594,7 +1621,8 @@ public interface VirtualAgentOutputOrBuilder * * *
-     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+     * from the agent for the turn.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -1604,7 +1632,8 @@ public interface VirtualAgentOutputOrBuilder * * *
-     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+     * from the agent for the turn.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -1614,7 +1643,8 @@ public interface VirtualAgentOutputOrBuilder * * *
-     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+     * from the agent for the turn.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -1624,7 +1654,8 @@ public interface VirtualAgentOutputOrBuilder * * *
-     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+     * from the agent for the turn.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -1635,7 +1666,8 @@ public interface VirtualAgentOutputOrBuilder * * *
-     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+     * from the agent for the turn.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -1776,10 +1808,14 @@ public com.google.protobuf.Struct getSessionParameters() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getSessionParametersOrBuilder() { - return getSessionParameters(); + return sessionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : sessionParameters_; } public static final int DIFFERENCES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private java.util.List differences_; /** * @@ -1927,7 +1963,9 @@ public com.google.protobuf.Struct getDiagnosticInfo() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() { - return getDiagnosticInfo(); + return diagnosticInfo_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : diagnosticInfo_; } public static final int TRIGGERED_INTENT_FIELD_NUMBER = 7; @@ -1936,8 +1974,8 @@ public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() { * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
-     * will be set.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the
+     * response. Only name and displayName will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; @@ -1952,8 +1990,8 @@ public boolean hasTriggeredIntent() { * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
-     * will be set.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the
+     * response. Only name and displayName will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; @@ -1970,15 +2008,17 @@ public com.google.cloud.dialogflow.cx.v3.Intent getTriggeredIntent() { * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
-     * will be set.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the
+     * response. Only name and displayName will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getTriggeredIntentOrBuilder() { - return getTriggeredIntent(); + return triggeredIntent_ == null + ? com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance() + : triggeredIntent_; } public static final int CURRENT_PAGE_FIELD_NUMBER = 8; @@ -1987,8 +2027,8 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getTriggeredIntentOrBui * * *
-     * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
-     * will be set.
+     * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was
+     * spoken. Only name and displayName will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; @@ -2003,8 +2043,8 @@ public boolean hasCurrentPage() { * * *
-     * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
-     * will be set.
+     * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was
+     * spoken. Only name and displayName will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; @@ -2021,24 +2061,29 @@ public com.google.cloud.dialogflow.cx.v3.Page getCurrentPage() { * * *
-     * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
-     * will be set.
+     * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was
+     * spoken. Only name and displayName will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getCurrentPageOrBuilder() { - return getCurrentPage(); + return currentPage_ == null + ? com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance() + : currentPage_; } public static final int TEXT_RESPONSES_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") private java.util.List textResponses_; /** * * *
-     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+     * from the agent for the turn.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -2052,7 +2097,8 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getCurrentPageOrBuilder() * * *
-     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+     * from the agent for the turn.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -2066,7 +2112,8 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getCurrentPageOrBuilder() * * *
-     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+     * from the agent for the turn.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -2079,7 +2126,8 @@ public int getTextResponsesCount() { * * *
-     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+     * from the agent for the turn.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -2092,7 +2140,8 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text getTextResponses(i * * *
-     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+     * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+     * from the agent for the turn.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -2149,7 +2198,7 @@ public com.google.rpc.Status getStatus() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - return getStatus(); + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } private byte memoizedIsInitialized = -1; @@ -2438,10 +2487,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (sessionParametersBuilder_ == null) { - sessionParameters_ = null; - } else { - sessionParameters_ = null; + bitField0_ = 0; + sessionParameters_ = null; + if (sessionParametersBuilder_ != null) { + sessionParametersBuilder_.dispose(); sessionParametersBuilder_ = null; } if (differencesBuilder_ == null) { @@ -2450,23 +2499,20 @@ public Builder clear() { differences_ = null; differencesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (diagnosticInfoBuilder_ == null) { - diagnosticInfo_ = null; - } else { - diagnosticInfo_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + diagnosticInfo_ = null; + if (diagnosticInfoBuilder_ != null) { + diagnosticInfoBuilder_.dispose(); diagnosticInfoBuilder_ = null; } - if (triggeredIntentBuilder_ == null) { - triggeredIntent_ = null; - } else { - triggeredIntent_ = null; + triggeredIntent_ = null; + if (triggeredIntentBuilder_ != null) { + triggeredIntentBuilder_.dispose(); triggeredIntentBuilder_ = null; } - if (currentPageBuilder_ == null) { - currentPage_ = null; - } else { - currentPage_ = null; + currentPage_ = null; + if (currentPageBuilder_ != null) { + currentPageBuilder_.dispose(); currentPageBuilder_ = null; } if (textResponsesBuilder_ == null) { @@ -2475,11 +2521,10 @@ public Builder clear() { textResponses_ = null; textResponsesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); - if (statusBuilder_ == null) { - status_ = null; - } else { - status_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); statusBuilder_ = null; } return this; @@ -2512,52 +2557,60 @@ public com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput bui public com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput buildPartial() { com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput result = new com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput(this); - int from_bitField0_ = bitField0_; - if (sessionParametersBuilder_ == null) { - result.sessionParameters_ = sessionParameters_; - } else { - result.sessionParameters_ = sessionParametersBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput result) { if (differencesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { differences_ = java.util.Collections.unmodifiableList(differences_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.differences_ = differences_; } else { result.differences_ = differencesBuilder_.build(); } - if (diagnosticInfoBuilder_ == null) { - result.diagnosticInfo_ = diagnosticInfo_; - } else { - result.diagnosticInfo_ = diagnosticInfoBuilder_.build(); - } - if (triggeredIntentBuilder_ == null) { - result.triggeredIntent_ = triggeredIntent_; - } else { - result.triggeredIntent_ = triggeredIntentBuilder_.build(); - } - if (currentPageBuilder_ == null) { - result.currentPage_ = currentPage_; - } else { - result.currentPage_ = currentPageBuilder_.build(); - } if (textResponsesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { textResponses_ = java.util.Collections.unmodifiableList(textResponses_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } result.textResponses_ = textResponses_; } else { result.textResponses_ = textResponsesBuilder_.build(); } - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sessionParameters_ = + sessionParametersBuilder_ == null + ? sessionParameters_ + : sessionParametersBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.diagnosticInfo_ = + diagnosticInfoBuilder_ == null ? diagnosticInfo_ : diagnosticInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.triggeredIntent_ = + triggeredIntentBuilder_ == null ? triggeredIntent_ : triggeredIntentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.currentPage_ = + currentPageBuilder_ == null ? currentPage_ : currentPageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -2619,7 +2672,7 @@ public Builder mergeFrom( if (!other.differences_.isEmpty()) { if (differences_.isEmpty()) { differences_ = other.differences_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDifferencesIsMutable(); differences_.addAll(other.differences_); @@ -2632,7 +2685,7 @@ public Builder mergeFrom( differencesBuilder_.dispose(); differencesBuilder_ = null; differences_ = other.differences_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); differencesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDifferencesFieldBuilder() @@ -2655,7 +2708,7 @@ public Builder mergeFrom( if (!other.textResponses_.isEmpty()) { if (textResponses_.isEmpty()) { textResponses_ = other.textResponses_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureTextResponsesIsMutable(); textResponses_.addAll(other.textResponses_); @@ -2668,7 +2721,7 @@ public Builder mergeFrom( textResponsesBuilder_.dispose(); textResponsesBuilder_ = null; textResponses_ = other.textResponses_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); textResponsesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTextResponsesFieldBuilder() @@ -2711,7 +2764,7 @@ public Builder mergeFrom( { input.readMessage( getSessionParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 34 case 42: @@ -2732,20 +2785,20 @@ public Builder mergeFrom( { input.readMessage( getDiagnosticInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 50 case 58: { input.readMessage( getTriggeredIntentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 58 case 66: { input.readMessage(getCurrentPageFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 66 case 74: @@ -2765,7 +2818,7 @@ public Builder mergeFrom( case 82: { input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 82 default: @@ -2805,7 +2858,7 @@ public Builder mergeFrom( * @return Whether the sessionParameters field is set. */ public boolean hasSessionParameters() { - return sessionParametersBuilder_ != null || sessionParameters_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -2842,11 +2895,11 @@ public Builder setSessionParameters(com.google.protobuf.Struct value) { throw new NullPointerException(); } sessionParameters_ = value; - onChanged(); } else { sessionParametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2861,11 +2914,11 @@ public Builder setSessionParameters(com.google.protobuf.Struct value) { public Builder setSessionParameters(com.google.protobuf.Struct.Builder builderForValue) { if (sessionParametersBuilder_ == null) { sessionParameters_ = builderForValue.build(); - onChanged(); } else { sessionParametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2879,19 +2932,18 @@ public Builder setSessionParameters(com.google.protobuf.Struct.Builder builderFo */ public Builder mergeSessionParameters(com.google.protobuf.Struct value) { if (sessionParametersBuilder_ == null) { - if (sessionParameters_ != null) { - sessionParameters_ = - com.google.protobuf.Struct.newBuilder(sessionParameters_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && sessionParameters_ != null + && sessionParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getSessionParametersBuilder().mergeFrom(value); } else { sessionParameters_ = value; } - onChanged(); } else { sessionParametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2904,14 +2956,13 @@ public Builder mergeSessionParameters(com.google.protobuf.Struct value) { * .google.protobuf.Struct session_parameters = 4; */ public Builder clearSessionParameters() { - if (sessionParametersBuilder_ == null) { - sessionParameters_ = null; - onChanged(); - } else { - sessionParameters_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + sessionParameters_ = null; + if (sessionParametersBuilder_ != null) { + sessionParametersBuilder_.dispose(); sessionParametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -2924,7 +2975,7 @@ public Builder clearSessionParameters() { * .google.protobuf.Struct session_parameters = 4; */ public com.google.protobuf.Struct.Builder getSessionParametersBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getSessionParametersFieldBuilder().getBuilder(); } @@ -2976,11 +3027,11 @@ public com.google.protobuf.StructOrBuilder getSessionParametersOrBuilder() { java.util.Collections.emptyList(); private void ensureDifferencesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { differences_ = new java.util.ArrayList( differences_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -3244,7 +3295,7 @@ public Builder addAllDifferences( public Builder clearDifferences() { if (differencesBuilder_ == null) { differences_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { differencesBuilder_.clear(); @@ -3399,7 +3450,7 @@ public com.google.cloud.dialogflow.cx.v3.TestRunDifference.Builder addDifference com.google.cloud.dialogflow.cx.v3.TestRunDifference.Builder, com.google.cloud.dialogflow.cx.v3.TestRunDifferenceOrBuilder>( differences_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); differences_ = null; @@ -3429,7 +3480,7 @@ public com.google.cloud.dialogflow.cx.v3.TestRunDifference.Builder addDifference * @return Whether the diagnosticInfo field is set. */ public boolean hasDiagnosticInfo() { - return diagnosticInfoBuilder_ != null || diagnosticInfo_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -3474,11 +3525,11 @@ public Builder setDiagnosticInfo(com.google.protobuf.Struct value) { throw new NullPointerException(); } diagnosticInfo_ = value; - onChanged(); } else { diagnosticInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3497,11 +3548,11 @@ public Builder setDiagnosticInfo(com.google.protobuf.Struct value) { public Builder setDiagnosticInfo(com.google.protobuf.Struct.Builder builderForValue) { if (diagnosticInfoBuilder_ == null) { diagnosticInfo_ = builderForValue.build(); - onChanged(); } else { diagnosticInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3519,19 +3570,18 @@ public Builder setDiagnosticInfo(com.google.protobuf.Struct.Builder builderForVa */ public Builder mergeDiagnosticInfo(com.google.protobuf.Struct value) { if (diagnosticInfoBuilder_ == null) { - if (diagnosticInfo_ != null) { - diagnosticInfo_ = - com.google.protobuf.Struct.newBuilder(diagnosticInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && diagnosticInfo_ != null + && diagnosticInfo_ != com.google.protobuf.Struct.getDefaultInstance()) { + getDiagnosticInfoBuilder().mergeFrom(value); } else { diagnosticInfo_ = value; } - onChanged(); } else { diagnosticInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3548,14 +3598,13 @@ public Builder mergeDiagnosticInfo(com.google.protobuf.Struct value) { *
*/ public Builder clearDiagnosticInfo() { - if (diagnosticInfoBuilder_ == null) { - diagnosticInfo_ = null; - onChanged(); - } else { - diagnosticInfo_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + diagnosticInfo_ = null; + if (diagnosticInfoBuilder_ != null) { + diagnosticInfoBuilder_.dispose(); diagnosticInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -3572,7 +3621,7 @@ public Builder clearDiagnosticInfo() { *
*/ public com.google.protobuf.Struct.Builder getDiagnosticInfoBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getDiagnosticInfoFieldBuilder().getBuilder(); } @@ -3638,8 +3687,8 @@ public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() { * * *
-       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
-       * will be set.
+       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the
+       * response. Only name and displayName will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; @@ -3647,14 +3696,14 @@ public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() { * @return Whether the triggeredIntent field is set. */ public boolean hasTriggeredIntent() { - return triggeredIntentBuilder_ != null || triggeredIntent_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * * *
-       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
-       * will be set.
+       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the
+       * response. Only name and displayName will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; @@ -3674,8 +3723,8 @@ public com.google.cloud.dialogflow.cx.v3.Intent getTriggeredIntent() { * * *
-       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
-       * will be set.
+       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the
+       * response. Only name and displayName will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; @@ -3686,19 +3735,19 @@ public Builder setTriggeredIntent(com.google.cloud.dialogflow.cx.v3.Intent value throw new NullPointerException(); } triggeredIntent_ = value; - onChanged(); } else { triggeredIntentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** * * *
-       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
-       * will be set.
+       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the
+       * response. Only name and displayName will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; @@ -3707,73 +3756,72 @@ public Builder setTriggeredIntent( com.google.cloud.dialogflow.cx.v3.Intent.Builder builderForValue) { if (triggeredIntentBuilder_ == null) { triggeredIntent_ = builderForValue.build(); - onChanged(); } else { triggeredIntentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** * * *
-       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
-       * will be set.
+       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the
+       * response. Only name and displayName will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; */ public Builder mergeTriggeredIntent(com.google.cloud.dialogflow.cx.v3.Intent value) { if (triggeredIntentBuilder_ == null) { - if (triggeredIntent_ != null) { - triggeredIntent_ = - com.google.cloud.dialogflow.cx.v3.Intent.newBuilder(triggeredIntent_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && triggeredIntent_ != null + && triggeredIntent_ + != com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance()) { + getTriggeredIntentBuilder().mergeFrom(value); } else { triggeredIntent_ = value; } - onChanged(); } else { triggeredIntentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** * * *
-       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
-       * will be set.
+       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the
+       * response. Only name and displayName will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; */ public Builder clearTriggeredIntent() { - if (triggeredIntentBuilder_ == null) { - triggeredIntent_ = null; - onChanged(); - } else { - triggeredIntent_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + triggeredIntent_ = null; + if (triggeredIntentBuilder_ != null) { + triggeredIntentBuilder_.dispose(); triggeredIntentBuilder_ = null; } - + onChanged(); return this; } /** * * *
-       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
-       * will be set.
+       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the
+       * response. Only name and displayName will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; */ public com.google.cloud.dialogflow.cx.v3.Intent.Builder getTriggeredIntentBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getTriggeredIntentFieldBuilder().getBuilder(); } @@ -3781,8 +3829,8 @@ public com.google.cloud.dialogflow.cx.v3.Intent.Builder getTriggeredIntentBuilde * * *
-       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
-       * will be set.
+       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the
+       * response. Only name and displayName will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; @@ -3800,8 +3848,8 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getTriggeredIntentOrBui * * *
-       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the response. Only name and displayName
-       * will be set.
+       * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that triggered the
+       * response. Only name and displayName will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7; @@ -3833,8 +3881,8 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getTriggeredIntentOrBui * * *
-       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
-       * will be set.
+       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was
+       * spoken. Only name and displayName will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; @@ -3842,14 +3890,14 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getTriggeredIntentOrBui * @return Whether the currentPage field is set. */ public boolean hasCurrentPage() { - return currentPageBuilder_ != null || currentPage_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * * *
-       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
-       * will be set.
+       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was
+       * spoken. Only name and displayName will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; @@ -3869,8 +3917,8 @@ public com.google.cloud.dialogflow.cx.v3.Page getCurrentPage() { * * *
-       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
-       * will be set.
+       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was
+       * spoken. Only name and displayName will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; @@ -3881,19 +3929,19 @@ public Builder setCurrentPage(com.google.cloud.dialogflow.cx.v3.Page value) { throw new NullPointerException(); } currentPage_ = value; - onChanged(); } else { currentPageBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** * * *
-       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
-       * will be set.
+       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was
+       * spoken. Only name and displayName will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; @@ -3902,73 +3950,71 @@ public Builder setCurrentPage( com.google.cloud.dialogflow.cx.v3.Page.Builder builderForValue) { if (currentPageBuilder_ == null) { currentPage_ = builderForValue.build(); - onChanged(); } else { currentPageBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** * * *
-       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
-       * will be set.
+       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was
+       * spoken. Only name and displayName will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; */ public Builder mergeCurrentPage(com.google.cloud.dialogflow.cx.v3.Page value) { if (currentPageBuilder_ == null) { - if (currentPage_ != null) { - currentPage_ = - com.google.cloud.dialogflow.cx.v3.Page.newBuilder(currentPage_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && currentPage_ != null + && currentPage_ != com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance()) { + getCurrentPageBuilder().mergeFrom(value); } else { currentPage_ = value; } - onChanged(); } else { currentPageBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** * * *
-       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
-       * will be set.
+       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was
+       * spoken. Only name and displayName will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; */ public Builder clearCurrentPage() { - if (currentPageBuilder_ == null) { - currentPage_ = null; - onChanged(); - } else { - currentPage_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + currentPage_ = null; + if (currentPageBuilder_ != null) { + currentPageBuilder_.dispose(); currentPageBuilder_ = null; } - + onChanged(); return this; } /** * * *
-       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
-       * will be set.
+       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was
+       * spoken. Only name and displayName will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; */ public com.google.cloud.dialogflow.cx.v3.Page.Builder getCurrentPageBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getCurrentPageFieldBuilder().getBuilder(); } @@ -3976,8 +4022,8 @@ public com.google.cloud.dialogflow.cx.v3.Page.Builder getCurrentPageBuilder() { * * *
-       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
-       * will be set.
+       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was
+       * spoken. Only name and displayName will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; @@ -3995,8 +4041,8 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getCurrentPageOrBuilder() * * *
-       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was spoken. Only name and displayName
-       * will be set.
+       * The [Page][google.cloud.dialogflow.cx.v3.Page] on which the utterance was
+       * spoken. Only name and displayName will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 8; @@ -4022,11 +4068,11 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getCurrentPageOrBuilder() textResponses_ = java.util.Collections.emptyList(); private void ensureTextResponsesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { textResponses_ = new java.util.ArrayList( textResponses_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000020; } } @@ -4040,7 +4086,8 @@ private void ensureTextResponsesIsMutable() { * * *
-       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+       * from the agent for the turn.
        * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -4058,7 +4105,8 @@ private void ensureTextResponsesIsMutable() { * * *
-       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+       * from the agent for the turn.
        * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -4075,7 +4123,8 @@ public int getTextResponsesCount() { * * *
-       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+       * from the agent for the turn.
        * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -4092,7 +4141,8 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text getTextResponses(i * * *
-       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+       * from the agent for the turn.
        * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -4116,7 +4166,8 @@ public Builder setTextResponses( * * *
-       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+       * from the agent for the turn.
        * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -4138,7 +4189,8 @@ public Builder setTextResponses( * * *
-       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+       * from the agent for the turn.
        * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -4162,7 +4214,8 @@ public Builder addTextResponses( * * *
-       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+       * from the agent for the turn.
        * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -4186,7 +4239,8 @@ public Builder addTextResponses( * * *
-       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+       * from the agent for the turn.
        * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -4207,7 +4261,8 @@ public Builder addTextResponses( * * *
-       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+       * from the agent for the turn.
        * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -4229,7 +4284,8 @@ public Builder addTextResponses( * * *
-       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+       * from the agent for the turn.
        * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -4251,7 +4307,8 @@ public Builder addAllTextResponses( * * *
-       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+       * from the agent for the turn.
        * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -4260,7 +4317,7 @@ public Builder addAllTextResponses( public Builder clearTextResponses() { if (textResponsesBuilder_ == null) { textResponses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { textResponsesBuilder_.clear(); @@ -4271,7 +4328,8 @@ public Builder clearTextResponses() { * * *
-       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+       * from the agent for the turn.
        * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -4291,7 +4349,8 @@ public Builder removeTextResponses(int index) { * * *
-       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+       * from the agent for the turn.
        * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -4305,7 +4364,8 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.Builder getTextRes * * *
-       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+       * from the agent for the turn.
        * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -4323,7 +4383,8 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.Builder getTextRes * * *
-       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+       * from the agent for the turn.
        * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -4342,7 +4403,8 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.Builder getTextRes * * *
-       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+       * from the agent for the turn.
        * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -4358,7 +4420,8 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.Builder getTextRes * * *
-       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+       * from the agent for the turn.
        * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -4374,7 +4437,8 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.Builder addTextRes * * *
-       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses from the agent for the turn.
+       * The [text][google.cloud.dialogflow.cx.v3.ResponseMessage.Text] responses
+       * from the agent for the turn.
        * 
* * repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9; @@ -4397,7 +4461,7 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.Builder addTextRes com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.Builder, com.google.cloud.dialogflow.cx.v3.ResponseMessage.TextOrBuilder>( textResponses_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); textResponses_ = null; @@ -4422,7 +4486,7 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.Builder addTextRes * @return Whether the status field is set. */ public boolean hasStatus() { - return statusBuilder_ != null || status_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -4459,11 +4523,11 @@ public Builder setStatus(com.google.rpc.Status value) { throw new NullPointerException(); } status_ = value; - onChanged(); } else { statusBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -4479,11 +4543,11 @@ public Builder setStatus(com.google.rpc.Status value) { public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); - onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -4498,16 +4562,18 @@ 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(); + if (((bitField0_ & 0x00000040) != 0) + && status_ != null + && status_ != com.google.rpc.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); } else { status_ = value; } - onChanged(); } else { statusBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -4521,14 +4587,13 @@ public Builder mergeStatus(com.google.rpc.Status value) { * .google.rpc.Status status = 10; */ public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; - onChanged(); - } else { - status_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); statusBuilder_ = null; } - + onChanged(); return this; } /** @@ -4542,7 +4607,7 @@ public Builder clearStatus() { * .google.rpc.Status status = 10; */ public com.google.rpc.Status.Builder getStatusBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getStatusFieldBuilder().getBuilder(); } @@ -4701,7 +4766,9 @@ public com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput getUserInput @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInputOrBuilder getUserInputOrBuilder() { - return getUserInput(); + return userInput_ == null + ? com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.getDefaultInstance() + : userInput_; } public static final int VIRTUAL_AGENT_OUTPUT_FIELD_NUMBER = 2; @@ -4757,7 +4824,9 @@ public boolean hasVirtualAgentOutput() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutputOrBuilder getVirtualAgentOutputOrBuilder() { - return getVirtualAgentOutput(); + return virtualAgentOutput_ == null + ? com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.getDefaultInstance() + : virtualAgentOutput_; } private byte memoizedIsInitialized = -1; @@ -4977,16 +5046,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (userInputBuilder_ == null) { - userInput_ = null; - } else { - userInput_ = null; + bitField0_ = 0; + userInput_ = null; + if (userInputBuilder_ != null) { + userInputBuilder_.dispose(); userInputBuilder_ = null; } - if (virtualAgentOutputBuilder_ == null) { - virtualAgentOutput_ = null; - } else { - virtualAgentOutput_ = null; + virtualAgentOutput_ = null; + if (virtualAgentOutputBuilder_ != null) { + virtualAgentOutputBuilder_.dispose(); virtualAgentOutputBuilder_ = null; } return this; @@ -5016,20 +5084,26 @@ public com.google.cloud.dialogflow.cx.v3.ConversationTurn build() { public com.google.cloud.dialogflow.cx.v3.ConversationTurn buildPartial() { com.google.cloud.dialogflow.cx.v3.ConversationTurn result = new com.google.cloud.dialogflow.cx.v3.ConversationTurn(this); - if (userInputBuilder_ == null) { - result.userInput_ = userInput_; - } else { - result.userInput_ = userInputBuilder_.build(); - } - if (virtualAgentOutputBuilder_ == null) { - result.virtualAgentOutput_ = virtualAgentOutput_; - } else { - result.virtualAgentOutput_ = virtualAgentOutputBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ConversationTurn result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userInput_ = userInputBuilder_ == null ? userInput_ : userInputBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.virtualAgentOutput_ = + virtualAgentOutputBuilder_ == null + ? virtualAgentOutput_ + : virtualAgentOutputBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -5111,14 +5185,14 @@ public Builder mergeFrom( case 10: { input.readMessage(getUserInputFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getVirtualAgentOutputFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -5138,6 +5212,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput userInput_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput, @@ -5156,7 +5232,7 @@ public Builder mergeFrom( * @return Whether the userInput field is set. */ public boolean hasUserInput() { - return userInputBuilder_ != null || userInput_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -5194,11 +5270,11 @@ public Builder setUserInput( throw new NullPointerException(); } userInput_ = value; - onChanged(); } else { userInputBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -5214,11 +5290,11 @@ public Builder setUserInput( com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.Builder builderForValue) { if (userInputBuilder_ == null) { userInput_ = builderForValue.build(); - onChanged(); } else { userInputBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -5233,19 +5309,20 @@ public Builder setUserInput( public Builder mergeUserInput( com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput value) { if (userInputBuilder_ == null) { - if (userInput_ != null) { - userInput_ = - com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.newBuilder(userInput_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && userInput_ != null + && userInput_ + != com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput + .getDefaultInstance()) { + getUserInputBuilder().mergeFrom(value); } else { userInput_ = value; } - onChanged(); } else { userInputBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -5258,14 +5335,13 @@ public Builder mergeUserInput( * .google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput user_input = 1; */ public Builder clearUserInput() { - if (userInputBuilder_ == null) { - userInput_ = null; - onChanged(); - } else { - userInput_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + userInput_ = null; + if (userInputBuilder_ != null) { + userInputBuilder_.dispose(); userInputBuilder_ = null; } - + onChanged(); return this; } /** @@ -5279,7 +5355,7 @@ public Builder clearUserInput() { */ public com.google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput.Builder getUserInputBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getUserInputFieldBuilder().getBuilder(); } @@ -5349,7 +5425,7 @@ public Builder clearUserInput() { * @return Whether the virtualAgentOutput field is set. */ public boolean hasVirtualAgentOutput() { - return virtualAgentOutputBuilder_ != null || virtualAgentOutput_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -5393,11 +5469,11 @@ public Builder setVirtualAgentOutput( throw new NullPointerException(); } virtualAgentOutput_ = value; - onChanged(); } else { virtualAgentOutputBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -5416,11 +5492,11 @@ public Builder setVirtualAgentOutput( builderForValue) { if (virtualAgentOutputBuilder_ == null) { virtualAgentOutput_ = builderForValue.build(); - onChanged(); } else { virtualAgentOutputBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -5437,20 +5513,20 @@ public Builder setVirtualAgentOutput( public Builder mergeVirtualAgentOutput( com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput value) { if (virtualAgentOutputBuilder_ == null) { - if (virtualAgentOutput_ != null) { - virtualAgentOutput_ = - com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.newBuilder( - virtualAgentOutput_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && virtualAgentOutput_ != null + && virtualAgentOutput_ + != com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput + .getDefaultInstance()) { + getVirtualAgentOutputBuilder().mergeFrom(value); } else { virtualAgentOutput_ = value; } - onChanged(); } else { virtualAgentOutputBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -5465,14 +5541,13 @@ public Builder mergeVirtualAgentOutput( * */ public Builder clearVirtualAgentOutput() { - if (virtualAgentOutputBuilder_ == null) { - virtualAgentOutput_ = null; - onChanged(); - } else { - virtualAgentOutput_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + virtualAgentOutput_ = null; + if (virtualAgentOutputBuilder_ != null) { + virtualAgentOutputBuilder_.dispose(); virtualAgentOutputBuilder_ = null; } - + onChanged(); return this; } /** @@ -5488,7 +5563,7 @@ public Builder clearVirtualAgentOutput() { */ public com.google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput.Builder getVirtualAgentOutputBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getVirtualAgentOutputFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateAgentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateAgentRequest.java index a23a3f033414..121880712d92 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateAgentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateAgentRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent].
+ * The request message for
+ * [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateAgentRequest} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -168,7 +171,7 @@ public com.google.cloud.dialogflow.cx.v3.Agent getAgent() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.AgentOrBuilder getAgentOrBuilder() { - return getAgent(); + return agent_ == null ? com.google.cloud.dialogflow.cx.v3.Agent.getDefaultInstance() : agent_; } private byte memoizedIsInitialized = -1; @@ -348,7 +351,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent].
+   * The request message for
+   * [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateAgentRequest} @@ -382,12 +386,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (agentBuilder_ == null) { - agent_ = null; - } else { - agent_ = null; + agent_ = null; + if (agentBuilder_ != null) { + agentBuilder_.dispose(); agentBuilder_ = null; } return this; @@ -417,16 +420,23 @@ public com.google.cloud.dialogflow.cx.v3.CreateAgentRequest build() { public com.google.cloud.dialogflow.cx.v3.CreateAgentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.CreateAgentRequest result = new com.google.cloud.dialogflow.cx.v3.CreateAgentRequest(this); - result.parent_ = parent_; - if (agentBuilder_ == null) { - result.agent_ = agent_; - } else { - result.agent_ = agentBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.CreateAgentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.agent_ = agentBuilder_ == null ? agent_ : agentBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -475,6 +485,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CreateAgentRequest ot return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasAgent()) { @@ -509,13 +520,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getAgentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -535,6 +546,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -605,8 +618,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -625,8 +638,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -650,8 +663,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -676,7 +689,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the agent field is set. */ public boolean hasAgent() { - return agentBuilder_ != null || agent_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -717,11 +730,11 @@ public Builder setAgent(com.google.cloud.dialogflow.cx.v3.Agent value) { throw new NullPointerException(); } agent_ = value; - onChanged(); } else { agentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -738,11 +751,11 @@ public Builder setAgent(com.google.cloud.dialogflow.cx.v3.Agent value) { public Builder setAgent(com.google.cloud.dialogflow.cx.v3.Agent.Builder builderForValue) { if (agentBuilder_ == null) { agent_ = builderForValue.build(); - onChanged(); } else { agentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -758,19 +771,18 @@ public Builder setAgent(com.google.cloud.dialogflow.cx.v3.Agent.Builder builderF */ public Builder mergeAgent(com.google.cloud.dialogflow.cx.v3.Agent value) { if (agentBuilder_ == null) { - if (agent_ != null) { - agent_ = - com.google.cloud.dialogflow.cx.v3.Agent.newBuilder(agent_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && agent_ != null + && agent_ != com.google.cloud.dialogflow.cx.v3.Agent.getDefaultInstance()) { + getAgentBuilder().mergeFrom(value); } else { agent_ = value; } - onChanged(); } else { agentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -785,14 +797,13 @@ public Builder mergeAgent(com.google.cloud.dialogflow.cx.v3.Agent value) { *
*/ public Builder clearAgent() { - if (agentBuilder_ == null) { - agent_ = null; - onChanged(); - } else { - agent_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + agent_ = null; + if (agentBuilder_ != null) { + agentBuilder_.dispose(); agentBuilder_ = null; } - + onChanged(); return this; } /** @@ -807,7 +818,7 @@ public Builder clearAgent() { *
*/ public com.google.cloud.dialogflow.cx.v3.Agent.Builder getAgentBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getAgentFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateEntityTypeRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateEntityTypeRequest.java index f9508f50b859..882d8412e280 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateEntityTypeRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateEntityTypeRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [EntityTypes.CreateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.CreateEntityType].
+ * The request message for
+ * [EntityTypes.CreateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.CreateEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -174,11 +177,15 @@ public com.google.cloud.dialogflow.cx.v3.EntityType getEntityType() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.EntityTypeOrBuilder getEntityTypeOrBuilder() { - return getEntityType(); + return entityType_ == null + ? com.google.cloud.dialogflow.cx.v3.EntityType.getDefaultInstance() + : entityType_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -429,7 +436,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [EntityTypes.CreateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.CreateEntityType].
+   * The request message for
+   * [EntityTypes.CreateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.CreateEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest} @@ -463,16 +471,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (entityTypeBuilder_ == null) { - entityType_ = null; - } else { - entityType_ = null; + entityType_ = null; + if (entityTypeBuilder_ != null) { + entityTypeBuilder_.dispose(); entityTypeBuilder_ = null; } languageCode_ = ""; - return this; } @@ -500,17 +506,26 @@ public com.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest build() { public com.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest result = new com.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest(this); - result.parent_ = parent_; - if (entityTypeBuilder_ == null) { - result.entityType_ = entityType_; - } else { - result.entityType_ = entityTypeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.languageCode_ = languageCode_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.CreateEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entityType_ = entityTypeBuilder_ == null ? entityType_ : entityTypeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -559,6 +574,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CreateEntityTypeReque return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasEntityType()) { @@ -566,6 +582,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CreateEntityTypeReque } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -597,19 +614,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getEntityTypeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -629,6 +646,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -699,8 +718,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -719,8 +738,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -744,8 +763,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -770,7 +789,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the entityType field is set. */ public boolean hasEntityType() { - return entityTypeBuilder_ != null || entityType_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -811,11 +830,11 @@ public Builder setEntityType(com.google.cloud.dialogflow.cx.v3.EntityType value) throw new NullPointerException(); } entityType_ = value; - onChanged(); } else { entityTypeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -833,11 +852,11 @@ public Builder setEntityType( com.google.cloud.dialogflow.cx.v3.EntityType.Builder builderForValue) { if (entityTypeBuilder_ == null) { entityType_ = builderForValue.build(); - onChanged(); } else { entityTypeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -853,19 +872,18 @@ public Builder setEntityType( */ public Builder mergeEntityType(com.google.cloud.dialogflow.cx.v3.EntityType value) { if (entityTypeBuilder_ == null) { - if (entityType_ != null) { - entityType_ = - com.google.cloud.dialogflow.cx.v3.EntityType.newBuilder(entityType_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && entityType_ != null + && entityType_ != com.google.cloud.dialogflow.cx.v3.EntityType.getDefaultInstance()) { + getEntityTypeBuilder().mergeFrom(value); } else { entityType_ = value; } - onChanged(); } else { entityTypeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -880,14 +898,13 @@ public Builder mergeEntityType(com.google.cloud.dialogflow.cx.v3.EntityType valu *
*/ public Builder clearEntityType() { - if (entityTypeBuilder_ == null) { - entityType_ = null; - onChanged(); - } else { - entityType_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + entityType_ = null; + if (entityTypeBuilder_ != null) { + entityTypeBuilder_.dispose(); entityTypeBuilder_ = null; } - + onChanged(); return this; } /** @@ -902,7 +919,7 @@ public Builder clearEntityType() { *
*/ public com.google.cloud.dialogflow.cx.v3.EntityType.Builder getEntityTypeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getEntityTypeFieldBuilder().getBuilder(); } @@ -1039,8 +1056,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1064,8 +1081,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1094,8 +1111,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateEnvironmentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateEnvironmentRequest.java index cf12f3636181..5f6e26531d3a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateEnvironmentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateEnvironmentRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Environments.CreateEnvironment][google.cloud.dialogflow.cx.v3.Environments.CreateEnvironment].
+ * The request message for
+ * [Environments.CreateEnvironment][google.cloud.dialogflow.cx.v3.Environments.CreateEnvironment].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest} @@ -68,13 +69,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * *
-   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment] for. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
    * 
* * @@ -99,8 +103,9 @@ public java.lang.String getParent() { * * *
-   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment] for. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
    * 
* * @@ -173,7 +178,9 @@ public com.google.cloud.dialogflow.cx.v3.Environment getEnvironment() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder getEnvironmentOrBuilder() { - return getEnvironment(); + return environment_ == null + ? com.google.cloud.dialogflow.cx.v3.Environment.getDefaultInstance() + : environment_; } private byte memoizedIsInitialized = -1; @@ -354,7 +361,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Environments.CreateEnvironment][google.cloud.dialogflow.cx.v3.Environments.CreateEnvironment].
+   * The request message for
+   * [Environments.CreateEnvironment][google.cloud.dialogflow.cx.v3.Environments.CreateEnvironment].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest} @@ -388,12 +396,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (environmentBuilder_ == null) { - environment_ = null; - } else { - environment_ = null; + environment_ = null; + if (environmentBuilder_ != null) { + environmentBuilder_.dispose(); environmentBuilder_ = null; } return this; @@ -423,16 +430,24 @@ public com.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest build() { public com.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest result = new com.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest(this); - result.parent_ = parent_; - if (environmentBuilder_ == null) { - result.environment_ = environment_; - } else { - result.environment_ = environmentBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.environment_ = + environmentBuilder_ == null ? environment_ : environmentBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -481,6 +496,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CreateEnvironmentRequ return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasEnvironment()) { @@ -515,13 +531,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getEnvironmentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -541,13 +557,16 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * * *
-     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment] for. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
      * 
* * @@ -571,8 +590,9 @@ public java.lang.String getParent() { * * *
-     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment] for. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
      * 
* * @@ -596,8 +616,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment] for. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
      * 
* * @@ -611,8 +632,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -620,8 +641,9 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment] for. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
      * 
* * @@ -631,8 +653,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -640,8 +662,9 @@ public Builder clearParent() { * * *
-     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment] for. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
      * 
* * @@ -656,8 +679,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -682,7 +705,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the environment field is set. */ public boolean hasEnvironment() { - return environmentBuilder_ != null || environment_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -723,11 +746,11 @@ public Builder setEnvironment(com.google.cloud.dialogflow.cx.v3.Environment valu throw new NullPointerException(); } environment_ = value; - onChanged(); } else { environmentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -745,11 +768,11 @@ public Builder setEnvironment( com.google.cloud.dialogflow.cx.v3.Environment.Builder builderForValue) { if (environmentBuilder_ == null) { environment_ = builderForValue.build(); - onChanged(); } else { environmentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -765,19 +788,18 @@ public Builder setEnvironment( */ public Builder mergeEnvironment(com.google.cloud.dialogflow.cx.v3.Environment value) { if (environmentBuilder_ == null) { - if (environment_ != null) { - environment_ = - com.google.cloud.dialogflow.cx.v3.Environment.newBuilder(environment_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && environment_ != null + && environment_ != com.google.cloud.dialogflow.cx.v3.Environment.getDefaultInstance()) { + getEnvironmentBuilder().mergeFrom(value); } else { environment_ = value; } - onChanged(); } else { environmentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -792,14 +814,13 @@ public Builder mergeEnvironment(com.google.cloud.dialogflow.cx.v3.Environment va * */ public Builder clearEnvironment() { - if (environmentBuilder_ == null) { - environment_ = null; - onChanged(); - } else { - environment_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + environment_ = null; + if (environmentBuilder_ != null) { + environmentBuilder_.dispose(); environmentBuilder_ = null; } - + onChanged(); return this; } /** @@ -814,7 +835,7 @@ public Builder clearEnvironment() { *
*/ public com.google.cloud.dialogflow.cx.v3.Environment.Builder getEnvironmentBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getEnvironmentFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateEnvironmentRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateEnvironmentRequestOrBuilder.java index 4e3c2ad92ed3..132025de8a63 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateEnvironmentRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateEnvironmentRequestOrBuilder.java @@ -27,8 +27,9 @@ public interface CreateEnvironmentRequestOrBuilder * * *
-   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment] for. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
    * 
* * @@ -42,8 +43,9 @@ public interface CreateEnvironmentRequestOrBuilder * * *
-   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment] for. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
    * 
* * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateExperimentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateExperimentRequest.java index a6a3242545d9..827d3127c6ca 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateExperimentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateExperimentRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Experiments.CreateExperiment][google.cloud.dialogflow.cx.v3.Experiments.CreateExperiment].
+ * The request message for
+ * [Experiments.CreateExperiment][google.cloud.dialogflow.cx.v3.Experiments.CreateExperiment].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateExperimentRequest} @@ -68,13 +69,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * *
-   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment] for. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>`.
    * 
* @@ -100,8 +104,9 @@ public java.lang.String getParent() { * * *
-   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment] for. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>`.
    * 
* @@ -175,7 +180,9 @@ public com.google.cloud.dialogflow.cx.v3.Experiment getExperiment() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ExperimentOrBuilder getExperimentOrBuilder() { - return getExperiment(); + return experiment_ == null + ? com.google.cloud.dialogflow.cx.v3.Experiment.getDefaultInstance() + : experiment_; } private byte memoizedIsInitialized = -1; @@ -356,7 +363,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Experiments.CreateExperiment][google.cloud.dialogflow.cx.v3.Experiments.CreateExperiment].
+   * The request message for
+   * [Experiments.CreateExperiment][google.cloud.dialogflow.cx.v3.Experiments.CreateExperiment].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateExperimentRequest} @@ -390,12 +398,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (experimentBuilder_ == null) { - experiment_ = null; - } else { - experiment_ = null; + experiment_ = null; + if (experimentBuilder_ != null) { + experimentBuilder_.dispose(); experimentBuilder_ = null; } return this; @@ -425,16 +432,23 @@ public com.google.cloud.dialogflow.cx.v3.CreateExperimentRequest build() { public com.google.cloud.dialogflow.cx.v3.CreateExperimentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.CreateExperimentRequest result = new com.google.cloud.dialogflow.cx.v3.CreateExperimentRequest(this); - result.parent_ = parent_; - if (experimentBuilder_ == null) { - result.experiment_ = experiment_; - } else { - result.experiment_ = experimentBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.CreateExperimentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.experiment_ = experimentBuilder_ == null ? experiment_ : experimentBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -483,6 +497,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CreateExperimentReque return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasExperiment()) { @@ -517,13 +532,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getExperimentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -543,13 +558,16 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * * *
-     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment] for. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>`.
      * 
* @@ -574,8 +592,9 @@ public java.lang.String getParent() { * * *
-     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment] for. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>`.
      * 
* @@ -600,8 +619,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment] for. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>`.
      * 
* @@ -616,8 +636,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -625,8 +645,9 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment] for. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>`.
      * 
* @@ -637,8 +658,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -646,8 +667,9 @@ public Builder clearParent() { * * *
-     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment] for. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>`.
      * 
* @@ -663,8 +685,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -689,7 +711,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the experiment field is set. */ public boolean hasExperiment() { - return experimentBuilder_ != null || experiment_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -730,11 +752,11 @@ public Builder setExperiment(com.google.cloud.dialogflow.cx.v3.Experiment value) throw new NullPointerException(); } experiment_ = value; - onChanged(); } else { experimentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -752,11 +774,11 @@ public Builder setExperiment( com.google.cloud.dialogflow.cx.v3.Experiment.Builder builderForValue) { if (experimentBuilder_ == null) { experiment_ = builderForValue.build(); - onChanged(); } else { experimentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -772,19 +794,18 @@ public Builder setExperiment( */ public Builder mergeExperiment(com.google.cloud.dialogflow.cx.v3.Experiment value) { if (experimentBuilder_ == null) { - if (experiment_ != null) { - experiment_ = - com.google.cloud.dialogflow.cx.v3.Experiment.newBuilder(experiment_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && experiment_ != null + && experiment_ != com.google.cloud.dialogflow.cx.v3.Experiment.getDefaultInstance()) { + getExperimentBuilder().mergeFrom(value); } else { experiment_ = value; } - onChanged(); } else { experimentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -799,14 +820,13 @@ public Builder mergeExperiment(com.google.cloud.dialogflow.cx.v3.Experiment valu *
*/ public Builder clearExperiment() { - if (experimentBuilder_ == null) { - experiment_ = null; - onChanged(); - } else { - experiment_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + experiment_ = null; + if (experimentBuilder_ != null) { + experimentBuilder_.dispose(); experimentBuilder_ = null; } - + onChanged(); return this; } /** @@ -821,7 +841,7 @@ public Builder clearExperiment() { *
*/ public com.google.cloud.dialogflow.cx.v3.Experiment.Builder getExperimentBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getExperimentFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateExperimentRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateExperimentRequestOrBuilder.java index 4c293ace0730..884ae1740c9a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateExperimentRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateExperimentRequestOrBuilder.java @@ -27,8 +27,9 @@ public interface CreateExperimentRequestOrBuilder * * *
-   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment] for. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>`.
    * 
* @@ -43,8 +44,9 @@ public interface CreateExperimentRequestOrBuilder * * *
-   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment] for. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>`.
    * 
* diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateFlowRequest.java index 255eed5af88b..d661c4bb9a0c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateFlowRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateFlowRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Flows.CreateFlow][google.cloud.dialogflow.cx.v3.Flows.CreateFlow].
+ * The request message for
+ * [Flows.CreateFlow][google.cloud.dialogflow.cx.v3.Flows.CreateFlow].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateFlowRequest} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -169,11 +172,13 @@ public com.google.cloud.dialogflow.cx.v3.Flow getFlow() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.FlowOrBuilder getFlowOrBuilder() { - return getFlow(); + return flow_ == null ? com.google.cloud.dialogflow.cx.v3.Flow.getDefaultInstance() : flow_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -425,7 +430,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Flows.CreateFlow][google.cloud.dialogflow.cx.v3.Flows.CreateFlow].
+   * The request message for
+   * [Flows.CreateFlow][google.cloud.dialogflow.cx.v3.Flows.CreateFlow].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateFlowRequest} @@ -459,16 +465,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (flowBuilder_ == null) { - flow_ = null; - } else { - flow_ = null; + flow_ = null; + if (flowBuilder_ != null) { + flowBuilder_.dispose(); flowBuilder_ = null; } languageCode_ = ""; - return this; } @@ -496,17 +500,26 @@ public com.google.cloud.dialogflow.cx.v3.CreateFlowRequest build() { public com.google.cloud.dialogflow.cx.v3.CreateFlowRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.CreateFlowRequest result = new com.google.cloud.dialogflow.cx.v3.CreateFlowRequest(this); - result.parent_ = parent_; - if (flowBuilder_ == null) { - result.flow_ = flow_; - } else { - result.flow_ = flowBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.languageCode_ = languageCode_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.CreateFlowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.flow_ = flowBuilder_ == null ? flow_ : flowBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -555,6 +568,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CreateFlowRequest oth return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasFlow()) { @@ -562,6 +576,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CreateFlowRequest oth } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -593,19 +608,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getFlowFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -625,6 +640,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -695,8 +712,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -715,8 +732,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -740,8 +757,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -765,7 +782,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the flow field is set. */ public boolean hasFlow() { - return flowBuilder_ != null || flow_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -802,11 +819,11 @@ public Builder setFlow(com.google.cloud.dialogflow.cx.v3.Flow value) { throw new NullPointerException(); } flow_ = value; - onChanged(); } else { flowBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -822,11 +839,11 @@ public Builder setFlow(com.google.cloud.dialogflow.cx.v3.Flow value) { public Builder setFlow(com.google.cloud.dialogflow.cx.v3.Flow.Builder builderForValue) { if (flowBuilder_ == null) { flow_ = builderForValue.build(); - onChanged(); } else { flowBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -841,19 +858,18 @@ public Builder setFlow(com.google.cloud.dialogflow.cx.v3.Flow.Builder builderFor */ public Builder mergeFlow(com.google.cloud.dialogflow.cx.v3.Flow value) { if (flowBuilder_ == null) { - if (flow_ != null) { - flow_ = - com.google.cloud.dialogflow.cx.v3.Flow.newBuilder(flow_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && flow_ != null + && flow_ != com.google.cloud.dialogflow.cx.v3.Flow.getDefaultInstance()) { + getFlowBuilder().mergeFrom(value); } else { flow_ = value; } - onChanged(); } else { flowBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -867,14 +883,13 @@ public Builder mergeFlow(com.google.cloud.dialogflow.cx.v3.Flow value) { *
*/ public Builder clearFlow() { - if (flowBuilder_ == null) { - flow_ = null; - onChanged(); - } else { - flow_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + flow_ = null; + if (flowBuilder_ != null) { + flowBuilder_.dispose(); flowBuilder_ = null; } - + onChanged(); return this; } /** @@ -888,7 +903,7 @@ public Builder clearFlow() { *
*/ public com.google.cloud.dialogflow.cx.v3.Flow.Builder getFlowBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getFlowFieldBuilder().getBuilder(); } @@ -1024,8 +1039,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1050,8 +1065,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1081,8 +1096,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateIntentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateIntentRequest.java index 75905d0cd526..62062b35490a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateIntentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateIntentRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent].
+ * The request message for
+ * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateIntentRequest} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -174,11 +177,15 @@ public com.google.cloud.dialogflow.cx.v3.Intent getIntent() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() { - return getIntent(); + return intent_ == null + ? com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance() + : intent_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -425,7 +432,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent].
+   * The request message for
+   * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateIntentRequest} @@ -459,16 +467,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (intentBuilder_ == null) { - intent_ = null; - } else { - intent_ = null; + intent_ = null; + if (intentBuilder_ != null) { + intentBuilder_.dispose(); intentBuilder_ = null; } languageCode_ = ""; - return this; } @@ -496,17 +502,26 @@ public com.google.cloud.dialogflow.cx.v3.CreateIntentRequest build() { public com.google.cloud.dialogflow.cx.v3.CreateIntentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.CreateIntentRequest result = new com.google.cloud.dialogflow.cx.v3.CreateIntentRequest(this); - result.parent_ = parent_; - if (intentBuilder_ == null) { - result.intent_ = intent_; - } else { - result.intent_ = intentBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.languageCode_ = languageCode_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.CreateIntentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.intent_ = intentBuilder_ == null ? intent_ : intentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -555,6 +570,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CreateIntentRequest o return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasIntent()) { @@ -562,6 +578,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CreateIntentRequest o } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -593,19 +610,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getIntentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -625,6 +642,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -695,8 +714,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -715,8 +734,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -740,8 +759,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -766,7 +785,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the intent field is set. */ public boolean hasIntent() { - return intentBuilder_ != null || intent_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -807,11 +826,11 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent value) { throw new NullPointerException(); } intent_ = value; - onChanged(); } else { intentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -828,11 +847,11 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent value) { public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent.Builder builderForValue) { if (intentBuilder_ == null) { intent_ = builderForValue.build(); - onChanged(); } else { intentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -848,19 +867,18 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent.Builder builde */ public Builder mergeIntent(com.google.cloud.dialogflow.cx.v3.Intent value) { if (intentBuilder_ == null) { - if (intent_ != null) { - intent_ = - com.google.cloud.dialogflow.cx.v3.Intent.newBuilder(intent_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && intent_ != null + && intent_ != com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance()) { + getIntentBuilder().mergeFrom(value); } else { intent_ = value; } - onChanged(); } else { intentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -875,14 +893,13 @@ public Builder mergeIntent(com.google.cloud.dialogflow.cx.v3.Intent value) { *
*/ public Builder clearIntent() { - if (intentBuilder_ == null) { - intent_ = null; - onChanged(); - } else { - intent_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + intent_ = null; + if (intentBuilder_ != null) { + intentBuilder_.dispose(); intentBuilder_ = null; } - + onChanged(); return this; } /** @@ -897,7 +914,7 @@ public Builder clearIntent() { *
*/ public com.google.cloud.dialogflow.cx.v3.Intent.Builder getIntentBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getIntentFieldBuilder().getBuilder(); } @@ -1028,8 +1045,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1051,8 +1068,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1079,8 +1096,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreatePageRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreatePageRequest.java index 0050236ee15f..b69713e34557 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreatePageRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreatePageRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage].
+ * The request message for
+ * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreatePageRequest} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -171,11 +174,13 @@ public com.google.cloud.dialogflow.cx.v3.Page getPage() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getPageOrBuilder() { - return getPage(); + return page_ == null ? com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance() : page_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -443,7 +448,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage].
+   * The request message for
+   * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreatePageRequest} @@ -477,16 +483,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (pageBuilder_ == null) { - page_ = null; - } else { - page_ = null; + page_ = null; + if (pageBuilder_ != null) { + pageBuilder_.dispose(); pageBuilder_ = null; } languageCode_ = ""; - return this; } @@ -514,17 +518,26 @@ public com.google.cloud.dialogflow.cx.v3.CreatePageRequest build() { public com.google.cloud.dialogflow.cx.v3.CreatePageRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.CreatePageRequest result = new com.google.cloud.dialogflow.cx.v3.CreatePageRequest(this); - result.parent_ = parent_; - if (pageBuilder_ == null) { - result.page_ = page_; - } else { - result.page_ = pageBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.languageCode_ = languageCode_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.CreatePageRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.page_ = pageBuilder_ == null ? page_ : pageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -573,6 +586,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CreatePageRequest oth return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasPage()) { @@ -580,6 +594,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CreatePageRequest oth } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -611,19 +626,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getPageFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -643,6 +658,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -716,8 +733,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -737,8 +754,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -763,8 +780,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -788,7 +805,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the page field is set. */ public boolean hasPage() { - return pageBuilder_ != null || page_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -825,11 +842,11 @@ public Builder setPage(com.google.cloud.dialogflow.cx.v3.Page value) { throw new NullPointerException(); } page_ = value; - onChanged(); } else { pageBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -845,11 +862,11 @@ public Builder setPage(com.google.cloud.dialogflow.cx.v3.Page value) { public Builder setPage(com.google.cloud.dialogflow.cx.v3.Page.Builder builderForValue) { if (pageBuilder_ == null) { page_ = builderForValue.build(); - onChanged(); } else { pageBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -864,19 +881,18 @@ public Builder setPage(com.google.cloud.dialogflow.cx.v3.Page.Builder builderFor */ public Builder mergePage(com.google.cloud.dialogflow.cx.v3.Page value) { if (pageBuilder_ == null) { - if (page_ != null) { - page_ = - com.google.cloud.dialogflow.cx.v3.Page.newBuilder(page_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && page_ != null + && page_ != com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance()) { + getPageBuilder().mergeFrom(value); } else { page_ = value; } - onChanged(); } else { pageBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -890,14 +906,13 @@ public Builder mergePage(com.google.cloud.dialogflow.cx.v3.Page value) { *
*/ public Builder clearPage() { - if (pageBuilder_ == null) { - page_ = null; - onChanged(); - } else { - page_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + page_ = null; + if (pageBuilder_ != null) { + pageBuilder_.dispose(); pageBuilder_ = null; } - + onChanged(); return this; } /** @@ -911,7 +926,7 @@ public Builder clearPage() { *
*/ public com.google.cloud.dialogflow.cx.v3.Page.Builder getPageBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getPageFieldBuilder().getBuilder(); } @@ -1071,8 +1086,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1105,8 +1120,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1144,8 +1159,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateSecuritySettingsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateSecuritySettingsRequest.java index 9075cd73ed16..159e6020d408 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateSecuritySettingsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateSecuritySettingsRequest.java @@ -68,12 +68,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * *
-   * Required. The location to create an [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
+   * Required. The location to create an
+   * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
    * Format: `projects/<Project ID>/locations/<Location ID>`.
    * 
* @@ -99,7 +102,8 @@ public java.lang.String getParent() { * * *
-   * Required. The location to create an [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
+   * Required. The location to create an
+   * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
    * Format: `projects/<Project ID>/locations/<Location ID>`.
    * 
* @@ -174,7 +178,9 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings getSecuritySettings() @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettingsOrBuilder getSecuritySettingsOrBuilder() { - return getSecuritySettings(); + return securitySettings_ == null + ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.getDefaultInstance() + : securitySettings_; } private byte memoizedIsInitialized = -1; @@ -389,12 +395,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (securitySettingsBuilder_ == null) { - securitySettings_ = null; - } else { - securitySettings_ = null; + securitySettings_ = null; + if (securitySettingsBuilder_ != null) { + securitySettingsBuilder_.dispose(); securitySettingsBuilder_ = null; } return this; @@ -425,16 +430,25 @@ public com.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest build() { public com.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest result = new com.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest(this); - result.parent_ = parent_; - if (securitySettingsBuilder_ == null) { - result.securitySettings_ = securitySettings_; - } else { - result.securitySettings_ = securitySettingsBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.securitySettings_ = + securitySettingsBuilder_ == null ? securitySettings_ : securitySettingsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -485,6 +499,7 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasSecuritySettings()) { @@ -519,14 +534,14 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getSecuritySettingsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -546,12 +561,15 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * * *
-     * Required. The location to create an [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
+     * Required. The location to create an
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
      * Format: `projects/<Project ID>/locations/<Location ID>`.
      * 
* @@ -576,7 +594,8 @@ public java.lang.String getParent() { * * *
-     * Required. The location to create an [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
+     * Required. The location to create an
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
      * Format: `projects/<Project ID>/locations/<Location ID>`.
      * 
* @@ -601,7 +620,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The location to create an [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
+     * Required. The location to create an
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
      * Format: `projects/<Project ID>/locations/<Location ID>`.
      * 
* @@ -616,8 +636,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -625,7 +645,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The location to create an [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
+     * Required. The location to create an
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
      * Format: `projects/<Project ID>/locations/<Location ID>`.
      * 
* @@ -636,8 +657,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -645,7 +666,8 @@ public Builder clearParent() { * * *
-     * Required. The location to create an [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
+     * Required. The location to create an
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
      * Format: `projects/<Project ID>/locations/<Location ID>`.
      * 
* @@ -661,8 +683,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -687,7 +709,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the securitySettings field is set. */ public boolean hasSecuritySettings() { - return securitySettingsBuilder_ != null || securitySettings_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -728,11 +750,11 @@ public Builder setSecuritySettings(com.google.cloud.dialogflow.cx.v3.SecuritySet throw new NullPointerException(); } securitySettings_ = value; - onChanged(); } else { securitySettingsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -750,11 +772,11 @@ public Builder setSecuritySettings( com.google.cloud.dialogflow.cx.v3.SecuritySettings.Builder builderForValue) { if (securitySettingsBuilder_ == null) { securitySettings_ = builderForValue.build(); - onChanged(); } else { securitySettingsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -770,19 +792,19 @@ public Builder setSecuritySettings( */ public Builder mergeSecuritySettings(com.google.cloud.dialogflow.cx.v3.SecuritySettings value) { if (securitySettingsBuilder_ == null) { - if (securitySettings_ != null) { - securitySettings_ = - com.google.cloud.dialogflow.cx.v3.SecuritySettings.newBuilder(securitySettings_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && securitySettings_ != null + && securitySettings_ + != com.google.cloud.dialogflow.cx.v3.SecuritySettings.getDefaultInstance()) { + getSecuritySettingsBuilder().mergeFrom(value); } else { securitySettings_ = value; } - onChanged(); } else { securitySettingsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -797,14 +819,13 @@ public Builder mergeSecuritySettings(com.google.cloud.dialogflow.cx.v3.SecurityS *
*/ public Builder clearSecuritySettings() { - if (securitySettingsBuilder_ == null) { - securitySettings_ = null; - onChanged(); - } else { - securitySettings_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + securitySettings_ = null; + if (securitySettingsBuilder_ != null) { + securitySettingsBuilder_.dispose(); securitySettingsBuilder_ = null; } - + onChanged(); return this; } /** @@ -819,7 +840,7 @@ public Builder clearSecuritySettings() { *
*/ public com.google.cloud.dialogflow.cx.v3.SecuritySettings.Builder getSecuritySettingsBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getSecuritySettingsFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateSecuritySettingsRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateSecuritySettingsRequestOrBuilder.java index 50399480d920..49f28560da1d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateSecuritySettingsRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateSecuritySettingsRequestOrBuilder.java @@ -27,7 +27,8 @@ public interface CreateSecuritySettingsRequestOrBuilder * * *
-   * Required. The location to create an [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
+   * Required. The location to create an
+   * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
    * Format: `projects/<Project ID>/locations/<Location ID>`.
    * 
* @@ -42,7 +43,8 @@ public interface CreateSecuritySettingsRequestOrBuilder * * *
-   * Required. The location to create an [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
+   * Required. The location to create an
+   * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] for.
    * Format: `projects/<Project ID>/locations/<Location ID>`.
    * 
* diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateSessionEntityTypeRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateSessionEntityTypeRequest.java index bff93da2b3e3..e0512e990157 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateSessionEntityTypeRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateSessionEntityTypeRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityType].
+ * The request message for
+ * [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -183,7 +186,9 @@ public com.google.cloud.dialogflow.cx.v3.SessionEntityType getSessionEntityType( @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SessionEntityTypeOrBuilder getSessionEntityTypeOrBuilder() { - return getSessionEntityType(); + return sessionEntityType_ == null + ? com.google.cloud.dialogflow.cx.v3.SessionEntityType.getDefaultInstance() + : sessionEntityType_; } private byte memoizedIsInitialized = -1; @@ -364,7 +369,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityType].
+   * The request message for
+   * [SessionEntityTypes.CreateSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.CreateSessionEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest} @@ -398,12 +404,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (sessionEntityTypeBuilder_ == null) { - sessionEntityType_ = null; - } else { - sessionEntityType_ = null; + sessionEntityType_ = null; + if (sessionEntityTypeBuilder_ != null) { + sessionEntityTypeBuilder_.dispose(); sessionEntityTypeBuilder_ = null; } return this; @@ -434,16 +439,27 @@ public com.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest build() public com.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest result = new com.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest(this); - result.parent_ = parent_; - if (sessionEntityTypeBuilder_ == null) { - result.sessionEntityType_ = sessionEntityType_; - } else { - result.sessionEntityType_ = sessionEntityTypeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.CreateSessionEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sessionEntityType_ = + sessionEntityTypeBuilder_ == null + ? sessionEntityType_ + : sessionEntityTypeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -494,6 +510,7 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasSessionEntityType()) { @@ -528,14 +545,14 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getSessionEntityTypeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -555,6 +572,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -637,8 +656,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -661,8 +680,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -690,8 +709,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -716,7 +735,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the sessionEntityType field is set. */ public boolean hasSessionEntityType() { - return sessionEntityTypeBuilder_ != null || sessionEntityType_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -757,11 +776,11 @@ public Builder setSessionEntityType(com.google.cloud.dialogflow.cx.v3.SessionEnt throw new NullPointerException(); } sessionEntityType_ = value; - onChanged(); } else { sessionEntityTypeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -779,11 +798,11 @@ public Builder setSessionEntityType( com.google.cloud.dialogflow.cx.v3.SessionEntityType.Builder builderForValue) { if (sessionEntityTypeBuilder_ == null) { sessionEntityType_ = builderForValue.build(); - onChanged(); } else { sessionEntityTypeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -800,19 +819,19 @@ public Builder setSessionEntityType( public Builder mergeSessionEntityType( com.google.cloud.dialogflow.cx.v3.SessionEntityType value) { if (sessionEntityTypeBuilder_ == null) { - if (sessionEntityType_ != null) { - sessionEntityType_ = - com.google.cloud.dialogflow.cx.v3.SessionEntityType.newBuilder(sessionEntityType_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && sessionEntityType_ != null + && sessionEntityType_ + != com.google.cloud.dialogflow.cx.v3.SessionEntityType.getDefaultInstance()) { + getSessionEntityTypeBuilder().mergeFrom(value); } else { sessionEntityType_ = value; } - onChanged(); } else { sessionEntityTypeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -827,14 +846,13 @@ public Builder mergeSessionEntityType( *
*/ public Builder clearSessionEntityType() { - if (sessionEntityTypeBuilder_ == null) { - sessionEntityType_ = null; - onChanged(); - } else { - sessionEntityType_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + sessionEntityType_ = null; + if (sessionEntityTypeBuilder_ != null) { + sessionEntityTypeBuilder_.dispose(); sessionEntityTypeBuilder_ = null; } - + onChanged(); return this; } /** @@ -850,7 +868,7 @@ public Builder clearSessionEntityType() { */ public com.google.cloud.dialogflow.cx.v3.SessionEntityType.Builder getSessionEntityTypeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getSessionEntityTypeFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateTestCaseRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateTestCaseRequest.java index b3e6eca3623a..4e6b45d56c35 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateTestCaseRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateTestCaseRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase].
+ * The request message for
+ * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -173,7 +176,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCase getTestCase() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TestCaseOrBuilder getTestCaseOrBuilder() { - return getTestCase(); + return testCase_ == null + ? com.google.cloud.dialogflow.cx.v3.TestCase.getDefaultInstance() + : testCase_; } private byte memoizedIsInitialized = -1; @@ -354,7 +359,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase].
+   * The request message for
+   * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateTestCaseRequest} @@ -388,12 +394,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (testCaseBuilder_ == null) { - testCase_ = null; - } else { - testCase_ = null; + testCase_ = null; + if (testCaseBuilder_ != null) { + testCaseBuilder_.dispose(); testCaseBuilder_ = null; } return this; @@ -423,16 +428,23 @@ public com.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest build() { public com.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest result = new com.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest(this); - result.parent_ = parent_; - if (testCaseBuilder_ == null) { - result.testCase_ = testCase_; - } else { - result.testCase_ = testCaseBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.testCase_ = testCaseBuilder_ == null ? testCase_ : testCaseBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -481,6 +493,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CreateTestCaseRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTestCase()) { @@ -515,13 +528,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getTestCaseFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -541,6 +554,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -611,8 +626,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -631,8 +646,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -656,8 +671,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -682,7 +697,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the testCase field is set. */ public boolean hasTestCase() { - return testCaseBuilder_ != null || testCase_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -723,11 +738,11 @@ public Builder setTestCase(com.google.cloud.dialogflow.cx.v3.TestCase value) { throw new NullPointerException(); } testCase_ = value; - onChanged(); } else { testCaseBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -744,11 +759,11 @@ public Builder setTestCase(com.google.cloud.dialogflow.cx.v3.TestCase value) { public Builder setTestCase(com.google.cloud.dialogflow.cx.v3.TestCase.Builder builderForValue) { if (testCaseBuilder_ == null) { testCase_ = builderForValue.build(); - onChanged(); } else { testCaseBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -764,19 +779,18 @@ public Builder setTestCase(com.google.cloud.dialogflow.cx.v3.TestCase.Builder bu */ public Builder mergeTestCase(com.google.cloud.dialogflow.cx.v3.TestCase value) { if (testCaseBuilder_ == null) { - if (testCase_ != null) { - testCase_ = - com.google.cloud.dialogflow.cx.v3.TestCase.newBuilder(testCase_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && testCase_ != null + && testCase_ != com.google.cloud.dialogflow.cx.v3.TestCase.getDefaultInstance()) { + getTestCaseBuilder().mergeFrom(value); } else { testCase_ = value; } - onChanged(); } else { testCaseBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -791,14 +805,13 @@ public Builder mergeTestCase(com.google.cloud.dialogflow.cx.v3.TestCase value) { *
*/ public Builder clearTestCase() { - if (testCaseBuilder_ == null) { - testCase_ = null; - onChanged(); - } else { - testCase_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + testCase_ = null; + if (testCaseBuilder_ != null) { + testCaseBuilder_.dispose(); testCaseBuilder_ = null; } - + onChanged(); return this; } /** @@ -813,7 +826,7 @@ public Builder clearTestCase() { *
*/ public com.google.cloud.dialogflow.cx.v3.TestCase.Builder getTestCaseBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTestCaseFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateTransitionRouteGroupRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateTransitionRouteGroupRequest.java index fec2a21d7870..6ce74845f055 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateTransitionRouteGroupRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateTransitionRouteGroupRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup].
+ * The request message for
+ * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} @@ -70,13 +71,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * *
-   * Required. The flow to create an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The flow to create an
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+   * for. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/flows/<Flow ID>`.
    * 
* @@ -102,8 +106,9 @@ public java.lang.String getParent() { * * *
-   * Required. The flow to create an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The flow to create an
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+   * for. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/flows/<Flow ID>`.
    * 
* @@ -178,11 +183,15 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup getTransitionRoute @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupOrBuilder getTransitionRouteGroupOrBuilder() { - return getTransitionRouteGroup(); + return transitionRouteGroup_ == null + ? com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.getDefaultInstance() + : transitionRouteGroup_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -435,7 +444,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup].
+   * The request message for
+   * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest} @@ -470,16 +480,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (transitionRouteGroupBuilder_ == null) { - transitionRouteGroup_ = null; - } else { - transitionRouteGroup_ = null; + transitionRouteGroup_ = null; + if (transitionRouteGroupBuilder_ != null) { + transitionRouteGroupBuilder_.dispose(); transitionRouteGroupBuilder_ = null; } languageCode_ = ""; - return this; } @@ -509,17 +517,30 @@ public com.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest build public com.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest result = new com.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest(this); - result.parent_ = parent_; - if (transitionRouteGroupBuilder_ == null) { - result.transitionRouteGroup_ = transitionRouteGroup_; - } else { - result.transitionRouteGroup_ = transitionRouteGroupBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.languageCode_ = languageCode_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.CreateTransitionRouteGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.transitionRouteGroup_ = + transitionRouteGroupBuilder_ == null + ? transitionRouteGroup_ + : transitionRouteGroupBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -571,6 +592,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTransitionRouteGroup()) { @@ -578,6 +600,7 @@ public Builder mergeFrom( } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -609,20 +632,20 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTransitionRouteGroupFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -642,13 +665,16 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * * *
-     * Required. The flow to create an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The flow to create an
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * for. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>`.
      * 
* @@ -673,8 +699,9 @@ public java.lang.String getParent() { * * *
-     * Required. The flow to create an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The flow to create an
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * for. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>`.
      * 
* @@ -699,8 +726,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The flow to create an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The flow to create an
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * for. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>`.
      * 
* @@ -715,8 +743,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -724,8 +752,9 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The flow to create an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The flow to create an
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * for. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>`.
      * 
* @@ -736,8 +765,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -745,8 +774,9 @@ public Builder clearParent() { * * *
-     * Required. The flow to create an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The flow to create an
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * for. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>`.
      * 
* @@ -762,8 +792,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -788,7 +818,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the transitionRouteGroup field is set. */ public boolean hasTransitionRouteGroup() { - return transitionRouteGroupBuilder_ != null || transitionRouteGroup_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -830,11 +860,11 @@ public Builder setTransitionRouteGroup( throw new NullPointerException(); } transitionRouteGroup_ = value; - onChanged(); } else { transitionRouteGroupBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -852,11 +882,11 @@ public Builder setTransitionRouteGroup( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.Builder builderForValue) { if (transitionRouteGroupBuilder_ == null) { transitionRouteGroup_ = builderForValue.build(); - onChanged(); } else { transitionRouteGroupBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -873,20 +903,19 @@ public Builder setTransitionRouteGroup( public Builder mergeTransitionRouteGroup( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup value) { if (transitionRouteGroupBuilder_ == null) { - if (transitionRouteGroup_ != null) { - transitionRouteGroup_ = - com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.newBuilder( - transitionRouteGroup_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && transitionRouteGroup_ != null + && transitionRouteGroup_ + != com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.getDefaultInstance()) { + getTransitionRouteGroupBuilder().mergeFrom(value); } else { transitionRouteGroup_ = value; } - onChanged(); } else { transitionRouteGroupBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -901,14 +930,13 @@ public Builder mergeTransitionRouteGroup( *
*/ public Builder clearTransitionRouteGroup() { - if (transitionRouteGroupBuilder_ == null) { - transitionRouteGroup_ = null; - onChanged(); - } else { - transitionRouteGroup_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + transitionRouteGroup_ = null; + if (transitionRouteGroupBuilder_ != null) { + transitionRouteGroupBuilder_.dispose(); transitionRouteGroupBuilder_ = null; } - + onChanged(); return this; } /** @@ -924,7 +952,7 @@ public Builder clearTransitionRouteGroup() { */ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.Builder getTransitionRouteGroupBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTransitionRouteGroupFieldBuilder().getBuilder(); } @@ -1062,8 +1090,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1087,8 +1115,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1117,8 +1145,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateTransitionRouteGroupRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateTransitionRouteGroupRequestOrBuilder.java index a49fcdf01d56..e423142659bd 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateTransitionRouteGroupRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateTransitionRouteGroupRequestOrBuilder.java @@ -27,8 +27,9 @@ public interface CreateTransitionRouteGroupRequestOrBuilder * * *
-   * Required. The flow to create an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The flow to create an
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+   * for. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/flows/<Flow ID>`.
    * 
* @@ -43,8 +44,9 @@ public interface CreateTransitionRouteGroupRequestOrBuilder * * *
-   * Required. The flow to create an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The flow to create an
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+   * for. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/flows/<Flow ID>`.
    * 
* diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateVersionOperationMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateVersionOperationMetadata.java index bf8d34a3c4f3..e37b24d7553a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateVersionOperationMetadata.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateVersionOperationMetadata.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object version_; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; /** * * @@ -321,8 +323,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; version_ = ""; - return this; } @@ -351,11 +353,21 @@ public com.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata build() public com.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata buildPartial() { com.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata result = new com.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata(this); - result.version_ = version_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +418,7 @@ public Builder mergeFrom( return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +450,7 @@ public Builder mergeFrom( case 10: { version_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +470,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object version_ = ""; /** * @@ -524,8 +539,8 @@ public Builder setVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - version_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -543,8 +558,8 @@ public Builder setVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -567,8 +582,8 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - version_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateVersionRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateVersionRequest.java index c895ee6abe2d..2a106bf61b97 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateVersionRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateVersionRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Versions.CreateVersion][google.cloud.dialogflow.cx.v3.Versions.CreateVersion].
+ * The request message for
+ * [Versions.CreateVersion][google.cloud.dialogflow.cx.v3.Versions.CreateVersion].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateVersionRequest} @@ -68,13 +69,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * *
-   * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an [Version][google.cloud.dialogflow.cx.v3.Version] for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an
+   * [Version][google.cloud.dialogflow.cx.v3.Version] for. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/flows/<Flow ID>`.
    * 
* @@ -100,8 +104,9 @@ public java.lang.String getParent() { * * *
-   * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an [Version][google.cloud.dialogflow.cx.v3.Version] for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an
+   * [Version][google.cloud.dialogflow.cx.v3.Version] for. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/flows/<Flow ID>`.
    * 
* @@ -175,7 +180,9 @@ public com.google.cloud.dialogflow.cx.v3.Version getVersion() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.VersionOrBuilder getVersionOrBuilder() { - return getVersion(); + return version_ == null + ? com.google.cloud.dialogflow.cx.v3.Version.getDefaultInstance() + : version_; } private byte memoizedIsInitialized = -1; @@ -356,7 +363,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Versions.CreateVersion][google.cloud.dialogflow.cx.v3.Versions.CreateVersion].
+   * The request message for
+   * [Versions.CreateVersion][google.cloud.dialogflow.cx.v3.Versions.CreateVersion].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateVersionRequest} @@ -390,12 +398,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (versionBuilder_ == null) { - version_ = null; - } else { - version_ = null; + version_ = null; + if (versionBuilder_ != null) { + versionBuilder_.dispose(); versionBuilder_ = null; } return this; @@ -425,16 +432,23 @@ public com.google.cloud.dialogflow.cx.v3.CreateVersionRequest build() { public com.google.cloud.dialogflow.cx.v3.CreateVersionRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.CreateVersionRequest result = new com.google.cloud.dialogflow.cx.v3.CreateVersionRequest(this); - result.parent_ = parent_; - if (versionBuilder_ == null) { - result.version_ = version_; - } else { - result.version_ = versionBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.CreateVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.version_ = versionBuilder_ == null ? version_ : versionBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -483,6 +497,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CreateVersionRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasVersion()) { @@ -517,13 +532,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getVersionFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -543,13 +558,16 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * * *
-     * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an [Version][google.cloud.dialogflow.cx.v3.Version] for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an
+     * [Version][google.cloud.dialogflow.cx.v3.Version] for. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>`.
      * 
* @@ -574,8 +592,9 @@ public java.lang.String getParent() { * * *
-     * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an [Version][google.cloud.dialogflow.cx.v3.Version] for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an
+     * [Version][google.cloud.dialogflow.cx.v3.Version] for. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>`.
      * 
* @@ -600,8 +619,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an [Version][google.cloud.dialogflow.cx.v3.Version] for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an
+     * [Version][google.cloud.dialogflow.cx.v3.Version] for. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>`.
      * 
* @@ -616,8 +636,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -625,8 +645,9 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an [Version][google.cloud.dialogflow.cx.v3.Version] for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an
+     * [Version][google.cloud.dialogflow.cx.v3.Version] for. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>`.
      * 
* @@ -637,8 +658,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -646,8 +667,9 @@ public Builder clearParent() { * * *
-     * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an [Version][google.cloud.dialogflow.cx.v3.Version] for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an
+     * [Version][google.cloud.dialogflow.cx.v3.Version] for. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>`.
      * 
* @@ -663,8 +685,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -689,7 +711,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the version field is set. */ public boolean hasVersion() { - return versionBuilder_ != null || version_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -730,11 +752,11 @@ public Builder setVersion(com.google.cloud.dialogflow.cx.v3.Version value) { throw new NullPointerException(); } version_ = value; - onChanged(); } else { versionBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -751,11 +773,11 @@ public Builder setVersion(com.google.cloud.dialogflow.cx.v3.Version value) { public Builder setVersion(com.google.cloud.dialogflow.cx.v3.Version.Builder builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); - onChanged(); } else { versionBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -771,19 +793,18 @@ public Builder setVersion(com.google.cloud.dialogflow.cx.v3.Version.Builder buil */ public Builder mergeVersion(com.google.cloud.dialogflow.cx.v3.Version value) { if (versionBuilder_ == null) { - if (version_ != null) { - version_ = - com.google.cloud.dialogflow.cx.v3.Version.newBuilder(version_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && version_ != null + && version_ != com.google.cloud.dialogflow.cx.v3.Version.getDefaultInstance()) { + getVersionBuilder().mergeFrom(value); } else { version_ = value; } - onChanged(); } else { versionBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -798,14 +819,13 @@ public Builder mergeVersion(com.google.cloud.dialogflow.cx.v3.Version value) { *
*/ public Builder clearVersion() { - if (versionBuilder_ == null) { - version_ = null; - onChanged(); - } else { - version_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + version_ = null; + if (versionBuilder_ != null) { + versionBuilder_.dispose(); versionBuilder_ = null; } - + onChanged(); return this; } /** @@ -820,7 +840,7 @@ public Builder clearVersion() { *
*/ public com.google.cloud.dialogflow.cx.v3.Version.Builder getVersionBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getVersionFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateVersionRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateVersionRequestOrBuilder.java index 39aac7d6947a..5733c124e6a8 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateVersionRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateVersionRequestOrBuilder.java @@ -27,8 +27,9 @@ public interface CreateVersionRequestOrBuilder * * *
-   * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an [Version][google.cloud.dialogflow.cx.v3.Version] for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an
+   * [Version][google.cloud.dialogflow.cx.v3.Version] for. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/flows/<Flow ID>`.
    * 
* @@ -43,8 +44,9 @@ public interface CreateVersionRequestOrBuilder * * *
-   * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an [Version][google.cloud.dialogflow.cx.v3.Version] for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an
+   * [Version][google.cloud.dialogflow.cx.v3.Version] for. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/flows/<Flow ID>`.
    * 
* diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateWebhookRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateWebhookRequest.java index b263075f6d0b..73bdf037d0af 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateWebhookRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/CreateWebhookRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook].
+ * The request message for
+ * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateWebhookRequest} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -173,7 +176,9 @@ public com.google.cloud.dialogflow.cx.v3.Webhook getWebhook() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookOrBuilder getWebhookOrBuilder() { - return getWebhook(); + return webhook_ == null + ? com.google.cloud.dialogflow.cx.v3.Webhook.getDefaultInstance() + : webhook_; } private byte memoizedIsInitialized = -1; @@ -354,7 +359,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook].
+   * The request message for
+   * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.CreateWebhookRequest} @@ -388,12 +394,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (webhookBuilder_ == null) { - webhook_ = null; - } else { - webhook_ = null; + webhook_ = null; + if (webhookBuilder_ != null) { + webhookBuilder_.dispose(); webhookBuilder_ = null; } return this; @@ -423,16 +428,23 @@ public com.google.cloud.dialogflow.cx.v3.CreateWebhookRequest build() { public com.google.cloud.dialogflow.cx.v3.CreateWebhookRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.CreateWebhookRequest result = new com.google.cloud.dialogflow.cx.v3.CreateWebhookRequest(this); - result.parent_ = parent_; - if (webhookBuilder_ == null) { - result.webhook_ = webhook_; - } else { - result.webhook_ = webhookBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.CreateWebhookRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.webhook_ = webhookBuilder_ == null ? webhook_ : webhookBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -481,6 +493,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.CreateWebhookRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasWebhook()) { @@ -515,13 +528,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getWebhookFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -541,6 +554,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -611,8 +626,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -631,8 +646,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -656,8 +671,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -682,7 +697,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the webhook field is set. */ public boolean hasWebhook() { - return webhookBuilder_ != null || webhook_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -723,11 +738,11 @@ public Builder setWebhook(com.google.cloud.dialogflow.cx.v3.Webhook value) { throw new NullPointerException(); } webhook_ = value; - onChanged(); } else { webhookBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -744,11 +759,11 @@ public Builder setWebhook(com.google.cloud.dialogflow.cx.v3.Webhook value) { public Builder setWebhook(com.google.cloud.dialogflow.cx.v3.Webhook.Builder builderForValue) { if (webhookBuilder_ == null) { webhook_ = builderForValue.build(); - onChanged(); } else { webhookBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -764,19 +779,18 @@ public Builder setWebhook(com.google.cloud.dialogflow.cx.v3.Webhook.Builder buil */ public Builder mergeWebhook(com.google.cloud.dialogflow.cx.v3.Webhook value) { if (webhookBuilder_ == null) { - if (webhook_ != null) { - webhook_ = - com.google.cloud.dialogflow.cx.v3.Webhook.newBuilder(webhook_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && webhook_ != null + && webhook_ != com.google.cloud.dialogflow.cx.v3.Webhook.getDefaultInstance()) { + getWebhookBuilder().mergeFrom(value); } else { webhook_ = value; } - onChanged(); } else { webhookBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -791,14 +805,13 @@ public Builder mergeWebhook(com.google.cloud.dialogflow.cx.v3.Webhook value) { *
*/ public Builder clearWebhook() { - if (webhookBuilder_ == null) { - webhook_ = null; - onChanged(); - } else { - webhook_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + webhook_ = null; + if (webhookBuilder_ != null) { + webhookBuilder_.dispose(); webhookBuilder_ = null; } - + onChanged(); return this; } /** @@ -813,7 +826,7 @@ public Builder clearWebhook() { *
*/ public com.google.cloud.dialogflow.cx.v3.Webhook.Builder getWebhookBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getWebhookFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteAgentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteAgentRequest.java index 38452261f1af..834b44dae084 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteAgentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteAgentRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Agents.DeleteAgent][google.cloud.dialogflow.cx.v3.Agents.DeleteAgent].
+ * The request message for
+ * [Agents.DeleteAgent][google.cloud.dialogflow.cx.v3.Agents.DeleteAgent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeleteAgentRequest} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -285,7 +288,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Agents.DeleteAgent][google.cloud.dialogflow.cx.v3.Agents.DeleteAgent].
+   * The request message for
+   * [Agents.DeleteAgent][google.cloud.dialogflow.cx.v3.Agents.DeleteAgent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeleteAgentRequest} @@ -319,8 +323,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -348,11 +352,20 @@ public com.google.cloud.dialogflow.cx.v3.DeleteAgentRequest build() { public com.google.cloud.dialogflow.cx.v3.DeleteAgentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.DeleteAgentRequest result = new com.google.cloud.dialogflow.cx.v3.DeleteAgentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.DeleteAgentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -401,6 +414,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.DeleteAgentRequest ot return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -432,7 +446,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -452,6 +466,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -522,8 +538,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -542,8 +558,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -567,8 +583,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEntityTypeRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEntityTypeRequest.java index 8c46aafb9829..a6536ad8afce 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEntityTypeRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEntityTypeRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityType].
+ * The request message for
+ * [EntityTypes.DeleteEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -125,7 +128,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_; + private boolean force_ = false; /** * * @@ -136,9 +139,11 @@ public com.google.protobuf.ByteString getNameBytes() { * indicating the referencing resources. * * If `force` is set to true, Dialogflow will remove the entity type, as * well as any references to the entity type (i.e. Page - * [parameter][google.cloud.dialogflow.cx.v3.Form.Parameter] of the entity type will be changed to - * '@sys.any' and intent [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] of the entity type - * will be removed). + * [parameter][google.cloud.dialogflow.cx.v3.Form.Parameter] of the entity + * type will be changed to + * '@sys.any' and intent + * [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] of the + * entity type will be removed). *
* * bool force = 2; @@ -323,7 +328,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityType].
+   * The request message for
+   * [EntityTypes.DeleteEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest} @@ -357,10 +363,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - force_ = false; - return this; } @@ -388,12 +393,23 @@ public com.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest build() { public com.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest result = new com.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest(this); - result.name_ = name_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.DeleteEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -442,6 +458,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.DeleteEntityTypeReque return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getForce() != false) { @@ -476,13 +493,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { force_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -502,6 +519,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -575,8 +594,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -596,8 +615,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -622,8 +641,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -639,9 +658,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * indicating the referencing resources. * * If `force` is set to true, Dialogflow will remove the entity type, as * well as any references to the entity type (i.e. Page - * [parameter][google.cloud.dialogflow.cx.v3.Form.Parameter] of the entity type will be changed to - * '@sys.any' and intent [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] of the entity type - * will be removed). + * [parameter][google.cloud.dialogflow.cx.v3.Form.Parameter] of the entity + * type will be changed to + * '@sys.any' and intent + * [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] of the + * entity type will be removed). *
* * bool force = 2; @@ -662,9 +683,11 @@ public boolean getForce() { * indicating the referencing resources. * * If `force` is set to true, Dialogflow will remove the entity type, as * well as any references to the entity type (i.e. Page - * [parameter][google.cloud.dialogflow.cx.v3.Form.Parameter] of the entity type will be changed to - * '@sys.any' and intent [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] of the entity type - * will be removed). + * [parameter][google.cloud.dialogflow.cx.v3.Form.Parameter] of the entity + * type will be changed to + * '@sys.any' and intent + * [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] of the + * entity type will be removed). *
* * bool force = 2; @@ -675,6 +698,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -688,9 +712,11 @@ public Builder setForce(boolean value) { * indicating the referencing resources. * * If `force` is set to true, Dialogflow will remove the entity type, as * well as any references to the entity type (i.e. Page - * [parameter][google.cloud.dialogflow.cx.v3.Form.Parameter] of the entity type will be changed to - * '@sys.any' and intent [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] of the entity type - * will be removed). + * [parameter][google.cloud.dialogflow.cx.v3.Form.Parameter] of the entity + * type will be changed to + * '@sys.any' and intent + * [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] of the + * entity type will be removed). *
* * bool force = 2; @@ -698,7 +724,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000002); force_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEntityTypeRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEntityTypeRequestOrBuilder.java index 39a5ba282466..56a844b50aa1 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEntityTypeRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEntityTypeRequestOrBuilder.java @@ -66,9 +66,11 @@ public interface DeleteEntityTypeRequestOrBuilder * indicating the referencing resources. * * If `force` is set to true, Dialogflow will remove the entity type, as * well as any references to the entity type (i.e. Page - * [parameter][google.cloud.dialogflow.cx.v3.Form.Parameter] of the entity type will be changed to - * '@sys.any' and intent [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] of the entity type - * will be removed). + * [parameter][google.cloud.dialogflow.cx.v3.Form.Parameter] of the entity + * type will be changed to + * '@sys.any' and intent + * [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] of the + * entity type will be removed). *
* * bool force = 2; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEnvironmentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEnvironmentRequest.java index db2eb947296a..ef43ed8322d1 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEnvironmentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEnvironmentRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Environments.DeleteEnvironment][google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironment].
+ * The request message for
+ * [Environments.DeleteEnvironment][google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironment].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest} @@ -68,13 +69,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
-   * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The name of the
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>`.
    * 
* @@ -100,8 +104,9 @@ public java.lang.String getName() { * * *
-   * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The name of the
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>`.
    * 
* @@ -288,7 +293,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Environments.DeleteEnvironment][google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironment].
+   * The request message for
+   * [Environments.DeleteEnvironment][google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironment].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest} @@ -322,8 +328,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -351,11 +357,20 @@ public com.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest build() { public com.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest result = new com.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,6 +419,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.DeleteEnvironmentRequ return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -435,7 +451,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -455,13 +471,16 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * * *
-     * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>`.
      * 
* @@ -486,8 +505,9 @@ public java.lang.String getName() { * * *
-     * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>`.
      * 
* @@ -512,8 +532,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>`.
      * 
* @@ -528,8 +549,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -537,8 +558,9 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>`.
      * 
* @@ -549,8 +571,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -558,8 +580,9 @@ public Builder clearName() { * * *
-     * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>`.
      * 
* @@ -575,8 +598,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEnvironmentRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEnvironmentRequestOrBuilder.java index 7cd6faebf56a..fb76f76d2ba6 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEnvironmentRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteEnvironmentRequestOrBuilder.java @@ -27,8 +27,9 @@ public interface DeleteEnvironmentRequestOrBuilder * * *
-   * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The name of the
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>`.
    * 
* @@ -43,8 +44,9 @@ public interface DeleteEnvironmentRequestOrBuilder * * *
-   * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The name of the
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>`.
    * 
* diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteExperimentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteExperimentRequest.java index ed4a08351deb..1169f153f725 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteExperimentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteExperimentRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Experiments.DeleteExperiment][google.cloud.dialogflow.cx.v3.Experiments.DeleteExperiment].
+ * The request message for
+ * [Experiments.DeleteExperiment][google.cloud.dialogflow.cx.v3.Experiments.DeleteExperiment].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} @@ -68,13 +69,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
-   * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The name of the
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
    * 
* @@ -100,8 +104,9 @@ public java.lang.String getName() { * * *
-   * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The name of the
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
    * 
* @@ -288,7 +293,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Experiments.DeleteExperiment][google.cloud.dialogflow.cx.v3.Experiments.DeleteExperiment].
+   * The request message for
+   * [Experiments.DeleteExperiment][google.cloud.dialogflow.cx.v3.Experiments.DeleteExperiment].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeleteExperimentRequest} @@ -322,8 +328,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -351,11 +357,20 @@ public com.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest build() { public com.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest result = new com.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.DeleteExperimentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,6 +419,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.DeleteExperimentReque return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -435,7 +451,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -455,13 +471,16 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * * *
-     * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
      * 
* @@ -486,8 +505,9 @@ public java.lang.String getName() { * * *
-     * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
      * 
* @@ -512,8 +532,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
      * 
* @@ -528,8 +549,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -537,8 +558,9 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
      * 
* @@ -549,8 +571,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -558,8 +580,9 @@ public Builder clearName() { * * *
-     * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
      * 
* @@ -575,8 +598,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteExperimentRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteExperimentRequestOrBuilder.java index e4f3d2f3a0d3..aedc6dff25ac 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteExperimentRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteExperimentRequestOrBuilder.java @@ -27,8 +27,9 @@ public interface DeleteExperimentRequestOrBuilder * * *
-   * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The name of the
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
    * 
* @@ -43,8 +44,9 @@ public interface DeleteExperimentRequestOrBuilder * * *
-   * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The name of the
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
    * 
* diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteFlowRequest.java index fbfcbf5598bc..0896fa6417b2 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteFlowRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteFlowRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Flows.DeleteFlow][google.cloud.dialogflow.cx.v3.Flows.DeleteFlow].
+ * The request message for
+ * [Flows.DeleteFlow][google.cloud.dialogflow.cx.v3.Flows.DeleteFlow].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeleteFlowRequest} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -125,7 +128,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_; + private boolean force_ = false; /** * * @@ -322,7 +325,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Flows.DeleteFlow][google.cloud.dialogflow.cx.v3.Flows.DeleteFlow].
+   * The request message for
+   * [Flows.DeleteFlow][google.cloud.dialogflow.cx.v3.Flows.DeleteFlow].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeleteFlowRequest} @@ -356,10 +360,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - force_ = false; - return this; } @@ -387,12 +390,23 @@ public com.google.cloud.dialogflow.cx.v3.DeleteFlowRequest build() { public com.google.cloud.dialogflow.cx.v3.DeleteFlowRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.DeleteFlowRequest result = new com.google.cloud.dialogflow.cx.v3.DeleteFlowRequest(this); - result.name_ = name_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.DeleteFlowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -441,6 +455,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.DeleteFlowRequest oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getForce() != false) { @@ -475,13 +490,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { force_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -501,6 +516,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -574,8 +591,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -595,8 +612,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -621,8 +638,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -674,6 +691,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -697,7 +715,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000002); force_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteIntentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteIntentRequest.java index 594420111424..f96fa37f869a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteIntentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteIntentRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Intents.DeleteIntent][google.cloud.dialogflow.cx.v3.Intents.DeleteIntent].
+ * The request message for
+ * [Intents.DeleteIntent][google.cloud.dialogflow.cx.v3.Intents.DeleteIntent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeleteIntentRequest} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -288,7 +291,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Intents.DeleteIntent][google.cloud.dialogflow.cx.v3.Intents.DeleteIntent].
+   * The request message for
+   * [Intents.DeleteIntent][google.cloud.dialogflow.cx.v3.Intents.DeleteIntent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeleteIntentRequest} @@ -322,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -351,11 +355,20 @@ public com.google.cloud.dialogflow.cx.v3.DeleteIntentRequest build() { public com.google.cloud.dialogflow.cx.v3.DeleteIntentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.DeleteIntentRequest result = new com.google.cloud.dialogflow.cx.v3.DeleteIntentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.DeleteIntentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.DeleteIntentRequest o return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -435,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -455,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -528,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -549,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -575,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeletePageRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeletePageRequest.java index 34d9e9310c43..2f4a172e2e08 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeletePageRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeletePageRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Pages.DeletePage][google.cloud.dialogflow.cx.v3.Pages.DeletePage].
+ * The request message for
+ * [Pages.DeletePage][google.cloud.dialogflow.cx.v3.Pages.DeletePage].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeletePageRequest} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -125,7 +128,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_; + private boolean force_ = false; /** * * @@ -322,7 +325,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Pages.DeletePage][google.cloud.dialogflow.cx.v3.Pages.DeletePage].
+   * The request message for
+   * [Pages.DeletePage][google.cloud.dialogflow.cx.v3.Pages.DeletePage].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeletePageRequest} @@ -356,10 +360,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - force_ = false; - return this; } @@ -387,12 +390,23 @@ public com.google.cloud.dialogflow.cx.v3.DeletePageRequest build() { public com.google.cloud.dialogflow.cx.v3.DeletePageRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.DeletePageRequest result = new com.google.cloud.dialogflow.cx.v3.DeletePageRequest(this); - result.name_ = name_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.DeletePageRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -441,6 +455,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.DeletePageRequest oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getForce() != false) { @@ -475,13 +490,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { force_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -501,6 +516,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -574,8 +591,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -595,8 +612,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -621,8 +638,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -674,6 +691,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -697,7 +715,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000002); force_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteSecuritySettingsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteSecuritySettingsRequest.java index 3b22e7441dd3..33426cddc5a2 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteSecuritySettingsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteSecuritySettingsRequest.java @@ -68,13 +68,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
-   * Required. The name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to delete.
-   * Format: `projects/<Project ID>/locations/<Location
+   * Required. The name of the
+   * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to
+   * delete. Format: `projects/<Project ID>/locations/<Location
    * ID>/securitySettings/<Security Settings ID>`.
    * 
* @@ -100,8 +103,9 @@ public java.lang.String getName() { * * *
-   * Required. The name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to delete.
-   * Format: `projects/<Project ID>/locations/<Location
+   * Required. The name of the
+   * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to
+   * delete. Format: `projects/<Project ID>/locations/<Location
    * ID>/securitySettings/<Security Settings ID>`.
    * 
* @@ -322,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +356,21 @@ public com.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest build() { public com.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest result = new com.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -407,6 +421,7 @@ public Builder mergeFrom( return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -438,7 +453,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -458,13 +473,16 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * * *
-     * Required. The name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to delete.
-     * Format: `projects/<Project ID>/locations/<Location
+     * Required. The name of the
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to
+     * delete. Format: `projects/<Project ID>/locations/<Location
      * ID>/securitySettings/<Security Settings ID>`.
      * 
* @@ -489,8 +507,9 @@ public java.lang.String getName() { * * *
-     * Required. The name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to delete.
-     * Format: `projects/<Project ID>/locations/<Location
+     * Required. The name of the
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to
+     * delete. Format: `projects/<Project ID>/locations/<Location
      * ID>/securitySettings/<Security Settings ID>`.
      * 
* @@ -515,8 +534,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to delete.
-     * Format: `projects/<Project ID>/locations/<Location
+     * Required. The name of the
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to
+     * delete. Format: `projects/<Project ID>/locations/<Location
      * ID>/securitySettings/<Security Settings ID>`.
      * 
* @@ -531,8 +551,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -540,8 +560,9 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to delete.
-     * Format: `projects/<Project ID>/locations/<Location
+     * Required. The name of the
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to
+     * delete. Format: `projects/<Project ID>/locations/<Location
      * ID>/securitySettings/<Security Settings ID>`.
      * 
* @@ -552,8 +573,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -561,8 +582,9 @@ public Builder clearName() { * * *
-     * Required. The name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to delete.
-     * Format: `projects/<Project ID>/locations/<Location
+     * Required. The name of the
+     * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to
+     * delete. Format: `projects/<Project ID>/locations/<Location
      * ID>/securitySettings/<Security Settings ID>`.
      * 
* @@ -578,8 +600,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteSecuritySettingsRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteSecuritySettingsRequestOrBuilder.java index 17eab36e5b28..251352ea47a1 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteSecuritySettingsRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteSecuritySettingsRequestOrBuilder.java @@ -27,8 +27,9 @@ public interface DeleteSecuritySettingsRequestOrBuilder * * *
-   * Required. The name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to delete.
-   * Format: `projects/<Project ID>/locations/<Location
+   * Required. The name of the
+   * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to
+   * delete. Format: `projects/<Project ID>/locations/<Location
    * ID>/securitySettings/<Security Settings ID>`.
    * 
* @@ -43,8 +44,9 @@ public interface DeleteSecuritySettingsRequestOrBuilder * * *
-   * Required. The name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to delete.
-   * Format: `projects/<Project ID>/locations/<Location
+   * Required. The name of the
+   * [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to
+   * delete. Format: `projects/<Project ID>/locations/<Location
    * ID>/securitySettings/<Security Settings ID>`.
    * 
* diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteSessionEntityTypeRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteSessionEntityTypeRequest.java index 6b862e2018d6..bc0430973d41 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteSessionEntityTypeRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteSessionEntityTypeRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityType].
+ * The request message for
+ * [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -297,7 +300,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityType].
+   * The request message for
+   * [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest} @@ -331,8 +335,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -361,11 +365,21 @@ public com.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest build() public com.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest result = new com.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.DeleteSessionEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -416,6 +430,7 @@ public Builder mergeFrom( return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -447,7 +462,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -467,6 +482,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -552,8 +569,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -577,8 +594,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -607,8 +624,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteTransitionRouteGroupRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteTransitionRouteGroupRequest.java index 9ffbe0372dab..4bb5f8e435f0 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteTransitionRouteGroupRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteTransitionRouteGroupRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [TransitionRouteGroups.DeleteTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroup].
+ * The request message for
+ * [TransitionRouteGroups.DeleteTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroup].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} @@ -69,14 +70,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
-   * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] to delete.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+   * Required. The name of the
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+   * to delete. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition
+   * Route Group ID>`.
    * 
* * @@ -101,9 +106,11 @@ public java.lang.String getName() { * * *
-   * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] to delete.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+   * Required. The name of the
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+   * to delete. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition
+   * Route Group ID>`.
    * 
* * @@ -126,7 +133,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_; + private boolean force_ = false; /** * * @@ -322,7 +329,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [TransitionRouteGroups.DeleteTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroup].
+   * The request message for
+   * [TransitionRouteGroups.DeleteTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroup].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest} @@ -357,10 +365,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - force_ = false; - return this; } @@ -390,12 +397,24 @@ public com.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest build public com.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest result = new com.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest(this); - result.name_ = name_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.DeleteTransitionRouteGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -447,6 +466,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getForce() != false) { @@ -481,13 +501,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { force_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -507,14 +527,18 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * * *
-     * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] to delete.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+     * Required. The name of the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * to delete. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition
+     * Route Group ID>`.
      * 
* * @@ -538,9 +562,11 @@ public java.lang.String getName() { * * *
-     * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] to delete.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+     * Required. The name of the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * to delete. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition
+     * Route Group ID>`.
      * 
* * @@ -564,9 +590,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] to delete.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+     * Required. The name of the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * to delete. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition
+     * Route Group ID>`.
      * 
* * @@ -580,8 +608,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -589,9 +617,11 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] to delete.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+     * Required. The name of the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * to delete. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition
+     * Route Group ID>`.
      * 
* * @@ -601,8 +631,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -610,9 +640,11 @@ public Builder clearName() { * * *
-     * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] to delete.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+     * Required. The name of the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * to delete. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition
+     * Route Group ID>`.
      * 
* * @@ -627,8 +659,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -674,6 +706,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -694,7 +727,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000002); force_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteTransitionRouteGroupRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteTransitionRouteGroupRequestOrBuilder.java index c3a29e717ed0..4b337d32bc9b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteTransitionRouteGroupRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteTransitionRouteGroupRequestOrBuilder.java @@ -27,9 +27,11 @@ public interface DeleteTransitionRouteGroupRequestOrBuilder * * *
-   * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] to delete.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+   * Required. The name of the
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+   * to delete. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition
+   * Route Group ID>`.
    * 
* * @@ -43,9 +45,11 @@ public interface DeleteTransitionRouteGroupRequestOrBuilder * * *
-   * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] to delete.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+   * Required. The name of the
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+   * to delete. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition
+   * Route Group ID>`.
    * 
* * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteVersionRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteVersionRequest.java index 2f8baf10d930..abbe55e80d4f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteVersionRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteVersionRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Versions.DeleteVersion][google.cloud.dialogflow.cx.v3.Versions.DeleteVersion].
+ * The request message for
+ * [Versions.DeleteVersion][google.cloud.dialogflow.cx.v3.Versions.DeleteVersion].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeleteVersionRequest} @@ -68,14 +69,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
-   * Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to delete.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]
+   * to delete. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
    * 
* * @@ -100,9 +103,9 @@ public java.lang.String getName() { * * *
-   * Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to delete.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]
+   * to delete. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
    * 
* * @@ -288,7 +291,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Versions.DeleteVersion][google.cloud.dialogflow.cx.v3.Versions.DeleteVersion].
+   * The request message for
+   * [Versions.DeleteVersion][google.cloud.dialogflow.cx.v3.Versions.DeleteVersion].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeleteVersionRequest} @@ -322,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -351,11 +355,20 @@ public com.google.cloud.dialogflow.cx.v3.DeleteVersionRequest build() { public com.google.cloud.dialogflow.cx.v3.DeleteVersionRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.DeleteVersionRequest result = new com.google.cloud.dialogflow.cx.v3.DeleteVersionRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.DeleteVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.DeleteVersionRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -435,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -455,14 +469,16 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * * *
-     * Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to delete.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]
+     * to delete. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
      * 
* * @@ -486,9 +502,9 @@ public java.lang.String getName() { * * *
-     * Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to delete.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]
+     * to delete. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
      * 
* * @@ -512,9 +528,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to delete.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]
+     * to delete. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
      * 
* * @@ -528,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -537,9 +553,9 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to delete.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]
+     * to delete. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
      * 
* * @@ -549,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -558,9 +574,9 @@ public Builder clearName() { * * *
-     * Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to delete.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]
+     * to delete. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
      * 
* * @@ -575,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteVersionRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteVersionRequestOrBuilder.java index eaf1a2d2d876..1d876bd67916 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteVersionRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteVersionRequestOrBuilder.java @@ -27,9 +27,9 @@ public interface DeleteVersionRequestOrBuilder * * *
-   * Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to delete.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]
+   * to delete. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
    * 
* * @@ -43,9 +43,9 @@ public interface DeleteVersionRequestOrBuilder * * *
-   * Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to delete.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]
+   * to delete. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
    * 
* * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteWebhookRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteWebhookRequest.java index f89cd3f97e1c..70d568d0d6cd 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteWebhookRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteWebhookRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Webhooks.DeleteWebhook][google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhook].
+ * The request message for
+ * [Webhooks.DeleteWebhook][google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhook].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -125,7 +128,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_; + private boolean force_ = false; /** * * @@ -135,9 +138,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * If `force` is set to false, an error will be returned with message * indicating the referenced resources. * * If `force` is set to true, Dialogflow will remove the webhook, as well - * as any references to the webhook (i.e. [Webhook][google.cloud.dialogflow.cx.v3.Fulfillment.webhook] - * and [tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag]in fulfillments that point to this webhook - * will be removed). + * as any references to the webhook (i.e. + * [Webhook][google.cloud.dialogflow.cx.v3.Fulfillment.webhook] and + * [tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag]in fulfillments that + * point to this webhook will be removed). *
* * bool force = 2; @@ -322,7 +326,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Webhooks.DeleteWebhook][google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhook].
+   * The request message for
+   * [Webhooks.DeleteWebhook][google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhook].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeleteWebhookRequest} @@ -356,10 +361,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - force_ = false; - return this; } @@ -387,12 +391,23 @@ public com.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest build() { public com.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest result = new com.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest(this); - result.name_ = name_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -441,6 +456,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.DeleteWebhookRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getForce() != false) { @@ -475,13 +491,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { force_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -501,6 +517,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -574,8 +592,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -595,8 +613,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -621,8 +639,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -637,9 +655,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * If `force` is set to false, an error will be returned with message * indicating the referenced resources. * * If `force` is set to true, Dialogflow will remove the webhook, as well - * as any references to the webhook (i.e. [Webhook][google.cloud.dialogflow.cx.v3.Fulfillment.webhook] - * and [tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag]in fulfillments that point to this webhook - * will be removed). + * as any references to the webhook (i.e. + * [Webhook][google.cloud.dialogflow.cx.v3.Fulfillment.webhook] and + * [tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag]in fulfillments that + * point to this webhook will be removed). * * * bool force = 2; @@ -659,9 +678,10 @@ public boolean getForce() { * * If `force` is set to false, an error will be returned with message * indicating the referenced resources. * * If `force` is set to true, Dialogflow will remove the webhook, as well - * as any references to the webhook (i.e. [Webhook][google.cloud.dialogflow.cx.v3.Fulfillment.webhook] - * and [tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag]in fulfillments that point to this webhook - * will be removed). + * as any references to the webhook (i.e. + * [Webhook][google.cloud.dialogflow.cx.v3.Fulfillment.webhook] and + * [tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag]in fulfillments that + * point to this webhook will be removed). * * * bool force = 2; @@ -672,6 +692,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -684,9 +705,10 @@ public Builder setForce(boolean value) { * * If `force` is set to false, an error will be returned with message * indicating the referenced resources. * * If `force` is set to true, Dialogflow will remove the webhook, as well - * as any references to the webhook (i.e. [Webhook][google.cloud.dialogflow.cx.v3.Fulfillment.webhook] - * and [tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag]in fulfillments that point to this webhook - * will be removed). + * as any references to the webhook (i.e. + * [Webhook][google.cloud.dialogflow.cx.v3.Fulfillment.webhook] and + * [tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag]in fulfillments that + * point to this webhook will be removed). * * * bool force = 2; @@ -694,7 +716,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000002); force_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteWebhookRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteWebhookRequestOrBuilder.java index b12df9bdbf27..d1272ace6a29 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteWebhookRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeleteWebhookRequestOrBuilder.java @@ -65,9 +65,10 @@ public interface DeleteWebhookRequestOrBuilder * * If `force` is set to false, an error will be returned with message * indicating the referenced resources. * * If `force` is set to true, Dialogflow will remove the webhook, as well - * as any references to the webhook (i.e. [Webhook][google.cloud.dialogflow.cx.v3.Fulfillment.webhook] - * and [tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag]in fulfillments that point to this webhook - * will be removed). + * as any references to the webhook (i.e. + * [Webhook][google.cloud.dialogflow.cx.v3.Fulfillment.webhook] and + * [tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag]in fulfillments that + * point to this webhook will be removed). * * * bool force = 2; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowMetadata.java index ec68f8ed49d8..a86d79c98c70 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowMetadata.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowMetadata.java @@ -22,8 +22,9 @@ * * *
- * Metadata returned for the [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow] long running
- * operation.
+ * Metadata returned for the
+ * [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow]
+ * long running operation.
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeployFlowMetadata} @@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TEST_ERRORS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List testErrors_; /** * @@ -302,8 +305,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Metadata returned for the [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow] long running
-   * operation.
+   * Metadata returned for the
+   * [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow]
+   * long running operation.
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeployFlowMetadata} @@ -337,6 +341,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (testErrorsBuilder_ == null) { testErrors_ = java.util.Collections.emptyList(); } else { @@ -371,7 +376,16 @@ public com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata build() { public com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata buildPartial() { com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata result = new com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata result) { if (testErrorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { testErrors_ = java.util.Collections.unmodifiableList(testErrors_); @@ -381,8 +395,10 @@ public com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata buildPartial() { } else { result.testErrors_ = testErrorsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.DeployFlowMetadata result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowRequest.java index ca524d110048..dff681aab18b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow].
+ * The request message for
+ * [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeployFlowRequest} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENVIRONMENT_FIELD_NUMBER = 1; - private volatile java.lang.Object environment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object environment_ = ""; /** * * @@ -126,7 +129,9 @@ public com.google.protobuf.ByteString getEnvironmentBytes() { } public static final int FLOW_VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object flowVersion_; + + @SuppressWarnings("serial") + private volatile java.lang.Object flowVersion_ = ""; /** * * @@ -354,7 +359,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow].
+   * The request message for
+   * [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeployFlowRequest} @@ -388,10 +394,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; environment_ = ""; - flowVersion_ = ""; - return this; } @@ -419,12 +424,23 @@ public com.google.cloud.dialogflow.cx.v3.DeployFlowRequest build() { public com.google.cloud.dialogflow.cx.v3.DeployFlowRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.DeployFlowRequest result = new com.google.cloud.dialogflow.cx.v3.DeployFlowRequest(this); - result.environment_ = environment_; - result.flowVersion_ = flowVersion_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.DeployFlowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.environment_ = environment_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.flowVersion_ = flowVersion_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -473,10 +489,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.DeployFlowRequest oth return this; if (!other.getEnvironment().isEmpty()) { environment_ = other.environment_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFlowVersion().isEmpty()) { flowVersion_ = other.flowVersion_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -508,13 +526,13 @@ public Builder mergeFrom( case 10: { environment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { flowVersion_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -534,6 +552,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object environment_ = ""; /** * @@ -607,8 +627,8 @@ public Builder setEnvironment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - environment_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -628,8 +648,8 @@ public Builder setEnvironment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEnvironment() { - environment_ = getDefaultInstance().getEnvironment(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -654,8 +674,8 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - environment_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -733,8 +753,8 @@ public Builder setFlowVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - flowVersion_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -754,8 +774,8 @@ public Builder setFlowVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFlowVersion() { - flowVersion_ = getDefaultInstance().getFlowVersion(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -780,8 +800,8 @@ public Builder setFlowVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - flowVersion_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowResponse.java index e7cd9c0a436b..bddf381e0949 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow].
+ * The response message for
+ * [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeployFlowResponse} @@ -112,17 +113,22 @@ public com.google.cloud.dialogflow.cx.v3.Environment getEnvironment() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder getEnvironmentOrBuilder() { - return getEnvironment(); + return environment_ == null + ? com.google.cloud.dialogflow.cx.v3.Environment.getDefaultInstance() + : environment_; } public static final int DEPLOYMENT_FIELD_NUMBER = 2; - private volatile java.lang.Object deployment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployment_ = ""; /** * * *
-   * The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * The name of the flow version
+   * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
    * environments/<Environment ID>/deployments/<Deployment ID>`.
    * 
* @@ -146,8 +152,9 @@ public java.lang.String getDeployment() { * * *
-   * The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * The name of the flow version
+   * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
    * environments/<Environment ID>/deployments/<Deployment ID>`.
    * 
* @@ -345,7 +352,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow].
+   * The response message for
+   * [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.DeployFlowResponse} @@ -379,14 +387,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (environmentBuilder_ == null) { - environment_ = null; - } else { - environment_ = null; + bitField0_ = 0; + environment_ = null; + if (environmentBuilder_ != null) { + environmentBuilder_.dispose(); environmentBuilder_ = null; } deployment_ = ""; - return this; } @@ -414,16 +421,24 @@ public com.google.cloud.dialogflow.cx.v3.DeployFlowResponse build() { public com.google.cloud.dialogflow.cx.v3.DeployFlowResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.DeployFlowResponse result = new com.google.cloud.dialogflow.cx.v3.DeployFlowResponse(this); - if (environmentBuilder_ == null) { - result.environment_ = environment_; - } else { - result.environment_ = environmentBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.deployment_ = deployment_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.DeployFlowResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.environment_ = + environmentBuilder_ == null ? environment_ : environmentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployment_ = deployment_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -475,6 +490,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.DeployFlowResponse ot } if (!other.getDeployment().isEmpty()) { deployment_ = other.deployment_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -506,13 +522,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getEnvironmentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { deployment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -532,6 +548,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.Environment environment_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.Environment, @@ -550,7 +568,7 @@ public Builder mergeFrom( * @return Whether the environment field is set. */ public boolean hasEnvironment() { - return environmentBuilder_ != null || environment_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -587,11 +605,11 @@ public Builder setEnvironment(com.google.cloud.dialogflow.cx.v3.Environment valu throw new NullPointerException(); } environment_ = value; - onChanged(); } else { environmentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -607,11 +625,11 @@ public Builder setEnvironment( com.google.cloud.dialogflow.cx.v3.Environment.Builder builderForValue) { if (environmentBuilder_ == null) { environment_ = builderForValue.build(); - onChanged(); } else { environmentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -625,19 +643,18 @@ public Builder setEnvironment( */ public Builder mergeEnvironment(com.google.cloud.dialogflow.cx.v3.Environment value) { if (environmentBuilder_ == null) { - if (environment_ != null) { - environment_ = - com.google.cloud.dialogflow.cx.v3.Environment.newBuilder(environment_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && environment_ != null + && environment_ != com.google.cloud.dialogflow.cx.v3.Environment.getDefaultInstance()) { + getEnvironmentBuilder().mergeFrom(value); } else { environment_ = value; } - onChanged(); } else { environmentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -650,14 +667,13 @@ public Builder mergeEnvironment(com.google.cloud.dialogflow.cx.v3.Environment va * .google.cloud.dialogflow.cx.v3.Environment environment = 1; */ public Builder clearEnvironment() { - if (environmentBuilder_ == null) { - environment_ = null; - onChanged(); - } else { - environment_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + environment_ = null; + if (environmentBuilder_ != null) { + environmentBuilder_.dispose(); environmentBuilder_ = null; } - + onChanged(); return this; } /** @@ -670,7 +686,7 @@ public Builder clearEnvironment() { * .google.cloud.dialogflow.cx.v3.Environment environment = 1; */ public com.google.cloud.dialogflow.cx.v3.Environment.Builder getEnvironmentBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getEnvironmentFieldBuilder().getBuilder(); } @@ -723,8 +739,9 @@ public com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder getEnvironmentOrBu * * *
-     * The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * The name of the flow version
+     * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
      * environments/<Environment ID>/deployments/<Deployment ID>`.
      * 
* @@ -747,8 +764,9 @@ public java.lang.String getDeployment() { * * *
-     * The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * The name of the flow version
+     * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
      * environments/<Environment ID>/deployments/<Deployment ID>`.
      * 
* @@ -771,8 +789,9 @@ public com.google.protobuf.ByteString getDeploymentBytes() { * * *
-     * The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * The name of the flow version
+     * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
      * environments/<Environment ID>/deployments/<Deployment ID>`.
      * 
* @@ -785,8 +804,8 @@ public Builder setDeployment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -794,8 +813,9 @@ public Builder setDeployment(java.lang.String value) { * * *
-     * The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * The name of the flow version
+     * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
      * environments/<Environment ID>/deployments/<Deployment ID>`.
      * 
* @@ -804,8 +824,8 @@ public Builder setDeployment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployment() { - deployment_ = getDefaultInstance().getDeployment(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -813,8 +833,9 @@ public Builder clearDeployment() { * * *
-     * The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+     * The name of the flow version
+     * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
      * environments/<Environment ID>/deployments/<Deployment ID>`.
      * 
* @@ -828,8 +849,8 @@ public Builder setDeploymentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowResponseOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowResponseOrBuilder.java index cc0df10e0a2e..657246843d12 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowResponseOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeployFlowResponseOrBuilder.java @@ -62,8 +62,9 @@ public interface DeployFlowResponseOrBuilder * * *
-   * The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * The name of the flow version
+   * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
    * environments/<Environment ID>/deployments/<Deployment ID>`.
    * 
* @@ -76,8 +77,9 @@ public interface DeployFlowResponseOrBuilder * * *
-   * The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
+   * The name of the flow version
+   * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
    * environments/<Environment ID>/deployments/<Deployment ID>`.
    * 
* diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Deployment.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Deployment.java index ac5c73cea074..5257c4bd7f11 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Deployment.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Deployment.java @@ -399,6 +399,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DEPLOYMENT_TEST_RESULTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList deploymentTestResults_; /** * @@ -472,7 +474,9 @@ public com.google.protobuf.ByteString getDeploymentTestResultsBytes(int index) { } public static final int EXPERIMENT_FIELD_NUMBER = 2; - private volatile java.lang.Object experiment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object experiment_ = ""; /** * * @@ -742,10 +746,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; deploymentTestResults_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); experiment_ = ""; - return this; } @@ -773,15 +777,28 @@ public com.google.cloud.dialogflow.cx.v3.Deployment.Result build() { public com.google.cloud.dialogflow.cx.v3.Deployment.Result buildPartial() { com.google.cloud.dialogflow.cx.v3.Deployment.Result result = new com.google.cloud.dialogflow.cx.v3.Deployment.Result(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.Deployment.Result result) { if (((bitField0_ & 0x00000001) != 0)) { deploymentTestResults_ = deploymentTestResults_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.deploymentTestResults_ = deploymentTestResults_; - result.experiment_ = experiment_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Deployment.Result result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.experiment_ = experiment_; + } } @java.lang.Override @@ -844,6 +861,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Deployment.Result oth } if (!other.getExperiment().isEmpty()) { experiment_ = other.experiment_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -882,7 +900,7 @@ public Builder mergeFrom( case 18: { experiment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1176,8 +1194,8 @@ public Builder setExperiment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - experiment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1195,8 +1213,8 @@ public Builder setExperiment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearExperiment() { - experiment_ = getDefaultInstance().getExperiment(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1219,8 +1237,8 @@ public Builder setExperimentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - experiment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1290,7 +1308,9 @@ public com.google.cloud.dialogflow.cx.v3.Deployment.Result getDefaultInstanceFor } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -1343,7 +1363,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FLOW_VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object flowVersion_; + + @SuppressWarnings("serial") + private volatile java.lang.Object flowVersion_ = ""; /** * * @@ -1396,7 +1418,7 @@ public com.google.protobuf.ByteString getFlowVersionBytes() { } public static final int STATE_FIELD_NUMBER = 3; - private int state_; + private int state_ = 0; /** * * @@ -1425,9 +1447,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Deployment.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.Deployment.State result = - com.google.cloud.dialogflow.cx.v3.Deployment.State.valueOf(state_); + com.google.cloud.dialogflow.cx.v3.Deployment.State.forNumber(state_); return result == null ? com.google.cloud.dialogflow.cx.v3.Deployment.State.UNRECOGNIZED : result; @@ -1478,7 +1499,9 @@ public com.google.cloud.dialogflow.cx.v3.Deployment.Result getResult() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Deployment.ResultOrBuilder getResultOrBuilder() { - return getResult(); + return result_ == null + ? com.google.cloud.dialogflow.cx.v3.Deployment.Result.getDefaultInstance() + : result_; } public static final int START_TIME_FIELD_NUMBER = 5; @@ -1524,7 +1547,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 6; @@ -1570,7 +1593,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } private byte memoizedIsInitialized = -1; @@ -1835,28 +1858,23 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - flowVersion_ = ""; - state_ = 0; - - if (resultBuilder_ == null) { - result_ = null; - } else { - result_ = null; + result_ = null; + if (resultBuilder_ != null) { + resultBuilder_.dispose(); resultBuilder_ = null; } - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } return this; @@ -1886,28 +1904,35 @@ public com.google.cloud.dialogflow.cx.v3.Deployment build() { public com.google.cloud.dialogflow.cx.v3.Deployment buildPartial() { com.google.cloud.dialogflow.cx.v3.Deployment result = new com.google.cloud.dialogflow.cx.v3.Deployment(this); - result.name_ = name_; - result.flowVersion_ = flowVersion_; - result.state_ = state_; - if (resultBuilder_ == null) { - result.result_ = result_; - } else { - result.result_ = resultBuilder_.build(); - } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Deployment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.flowVersion_ = flowVersion_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1955,10 +1980,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Deployment other) { if (other == com.google.cloud.dialogflow.cx.v3.Deployment.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFlowVersion().isEmpty()) { flowVersion_ = other.flowVersion_; + bitField0_ |= 0x00000002; onChanged(); } if (other.state_ != 0) { @@ -2002,37 +2029,37 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { flowVersion_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { state_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage(getResultFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -2052,6 +2079,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -2119,8 +2148,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2138,8 +2167,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2162,8 +2191,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2235,8 +2264,8 @@ public Builder setFlowVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - flowVersion_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2254,8 +2283,8 @@ public Builder setFlowVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFlowVersion() { - flowVersion_ = getDefaultInstance().getFlowVersion(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2278,8 +2307,8 @@ public Builder setFlowVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - flowVersion_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2313,8 +2342,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2331,9 +2360,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Deployment.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.Deployment.State result = - com.google.cloud.dialogflow.cx.v3.Deployment.State.valueOf(state_); + com.google.cloud.dialogflow.cx.v3.Deployment.State.forNumber(state_); return result == null ? com.google.cloud.dialogflow.cx.v3.Deployment.State.UNRECOGNIZED : result; @@ -2354,7 +2382,7 @@ public Builder setState(com.google.cloud.dialogflow.cx.v3.Deployment.State value if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; state_ = value.getNumber(); onChanged(); return this; @@ -2371,7 +2399,7 @@ public Builder setState(com.google.cloud.dialogflow.cx.v3.Deployment.State value * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000004); state_ = 0; onChanged(); return this; @@ -2395,7 +2423,7 @@ public Builder clearState() { * @return Whether the result field is set. */ public boolean hasResult() { - return resultBuilder_ != null || result_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -2432,11 +2460,11 @@ public Builder setResult(com.google.cloud.dialogflow.cx.v3.Deployment.Result val throw new NullPointerException(); } result_ = value; - onChanged(); } else { resultBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2452,11 +2480,11 @@ public Builder setResult( com.google.cloud.dialogflow.cx.v3.Deployment.Result.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); - onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2470,19 +2498,19 @@ public Builder setResult( */ public Builder mergeResult(com.google.cloud.dialogflow.cx.v3.Deployment.Result value) { if (resultBuilder_ == null) { - if (result_ != null) { - result_ = - com.google.cloud.dialogflow.cx.v3.Deployment.Result.newBuilder(result_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && result_ != null + && result_ + != com.google.cloud.dialogflow.cx.v3.Deployment.Result.getDefaultInstance()) { + getResultBuilder().mergeFrom(value); } else { result_ = value; } - onChanged(); } else { resultBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2495,14 +2523,13 @@ public Builder mergeResult(com.google.cloud.dialogflow.cx.v3.Deployment.Result v * .google.cloud.dialogflow.cx.v3.Deployment.Result result = 4; */ public Builder clearResult() { - if (resultBuilder_ == null) { - result_ = null; - onChanged(); - } else { - result_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + result_ = null; + if (resultBuilder_ != null) { + resultBuilder_.dispose(); resultBuilder_ = null; } - + onChanged(); return this; } /** @@ -2515,7 +2542,7 @@ public Builder clearResult() { * .google.cloud.dialogflow.cx.v3.Deployment.Result result = 4; */ public com.google.cloud.dialogflow.cx.v3.Deployment.Result.Builder getResultBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getResultFieldBuilder().getBuilder(); } @@ -2581,7 +2608,7 @@ public com.google.cloud.dialogflow.cx.v3.Deployment.ResultOrBuilder getResultOrB * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2616,11 +2643,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2635,11 +2662,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2653,17 +2680,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2676,14 +2704,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp start_time = 5; */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2696,7 +2723,7 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 5; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -2760,7 +2787,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2795,11 +2822,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2814,11 +2841,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2832,17 +2859,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2855,14 +2883,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp end_time = 6; */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2875,7 +2902,7 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 6; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentProto.java index 56f390abfb9a..cc55b9d0f5b3 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentProto.java @@ -101,12 +101,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\332A\004name\032x\312A\031dialogflow.googleapis.com\322AY" + "https://www.googleapis.com/auth/cloud-pl" + "atform,https://www.googleapis.com/auth/d" - + "ialogflowB\303\001\n!com.google.cloud.dialogflo" - + "w.cx.v3B\017DeploymentProtoP\001Z?google.golan" - + "g.org/genproto/googleapis/cloud/dialogfl" - + "ow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialo" - + "gflow.Cx.V3\352\002!Google::Cloud::Dialogflow:" - + ":CX::V3b\006proto3" + + "ialogflowB\265\001\n!com.google.cloud.dialogflo" + + "w.cx.v3B\017DeploymentProtoP\001Z1cloud.google" + + ".com/go/dialogflow/cx/apiv3/cxpb;cxpb\370\001\001" + + "\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx.V3\352\002!" + + "Google::Cloud::Dialogflow::CX::V3b\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentRequest.java index 99a70ad73866..6b354fc5e7a7 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentRequest.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SESSION_FIELD_NUMBER = 1; - private volatile java.lang.Object session_; + + @SuppressWarnings("serial") + private volatile java.lang.Object session_ = ""; /** * * @@ -191,7 +193,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryParameters getQueryParams() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.QueryParametersOrBuilder getQueryParamsOrBuilder() { - return getQueryParams(); + return queryParams_ == null + ? com.google.cloud.dialogflow.cx.v3.QueryParameters.getDefaultInstance() + : queryParams_; } public static final int QUERY_INPUT_FIELD_NUMBER = 3; @@ -245,7 +249,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryInput getQueryInput() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.QueryInputOrBuilder getQueryInputOrBuilder() { - return getQueryInput(); + return queryInput_ == null + ? com.google.cloud.dialogflow.cx.v3.QueryInput.getDefaultInstance() + : queryInput_; } public static final int OUTPUT_AUDIO_CONFIG_FIELD_NUMBER = 4; @@ -294,7 +300,9 @@ public com.google.cloud.dialogflow.cx.v3.OutputAudioConfig getOutputAudioConfig( @java.lang.Override public com.google.cloud.dialogflow.cx.v3.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() { - return getOutputAudioConfig(); + return outputAudioConfig_ == null + ? com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.getDefaultInstance() + : outputAudioConfig_; } private byte memoizedIsInitialized = -1; @@ -537,24 +545,21 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; session_ = ""; - - if (queryParamsBuilder_ == null) { - queryParams_ = null; - } else { - queryParams_ = null; + queryParams_ = null; + if (queryParamsBuilder_ != null) { + queryParamsBuilder_.dispose(); queryParamsBuilder_ = null; } - if (queryInputBuilder_ == null) { - queryInput_ = null; - } else { - queryInput_ = null; + queryInput_ = null; + if (queryInputBuilder_ != null) { + queryInputBuilder_.dispose(); queryInputBuilder_ = null; } - if (outputAudioConfigBuilder_ == null) { - outputAudioConfig_ = null; - } else { - outputAudioConfig_ = null; + outputAudioConfig_ = null; + if (outputAudioConfigBuilder_ != null) { + outputAudioConfigBuilder_.dispose(); outputAudioConfigBuilder_ = null; } return this; @@ -584,26 +589,33 @@ public com.google.cloud.dialogflow.cx.v3.DetectIntentRequest build() { public com.google.cloud.dialogflow.cx.v3.DetectIntentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.DetectIntentRequest result = new com.google.cloud.dialogflow.cx.v3.DetectIntentRequest(this); - result.session_ = session_; - if (queryParamsBuilder_ == null) { - result.queryParams_ = queryParams_; - } else { - result.queryParams_ = queryParamsBuilder_.build(); - } - if (queryInputBuilder_ == null) { - result.queryInput_ = queryInput_; - } else { - result.queryInput_ = queryInputBuilder_.build(); - } - if (outputAudioConfigBuilder_ == null) { - result.outputAudioConfig_ = outputAudioConfig_; - } else { - result.outputAudioConfig_ = outputAudioConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.DetectIntentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.session_ = session_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queryParams_ = + queryParamsBuilder_ == null ? queryParams_ : queryParamsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.queryInput_ = queryInputBuilder_ == null ? queryInput_ : queryInputBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.outputAudioConfig_ = + outputAudioConfigBuilder_ == null + ? outputAudioConfig_ + : outputAudioConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -652,6 +664,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.DetectIntentRequest o return this; if (!other.getSession().isEmpty()) { session_ = other.session_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasQueryParams()) { @@ -692,26 +705,26 @@ public Builder mergeFrom( case 10: { session_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getQueryParamsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getQueryInputFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getOutputAudioConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -731,6 +744,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object session_ = ""; /** * @@ -837,8 +852,8 @@ public Builder setSession(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - session_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -869,8 +884,8 @@ public Builder setSession(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSession() { - session_ = getDefaultInstance().getSession(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -906,8 +921,8 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - session_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -930,7 +945,7 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) { * @return Whether the queryParams field is set. */ public boolean hasQueryParams() { - return queryParamsBuilder_ != null || queryParams_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -967,11 +982,11 @@ public Builder setQueryParams(com.google.cloud.dialogflow.cx.v3.QueryParameters throw new NullPointerException(); } queryParams_ = value; - onChanged(); } else { queryParamsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -987,11 +1002,11 @@ public Builder setQueryParams( com.google.cloud.dialogflow.cx.v3.QueryParameters.Builder builderForValue) { if (queryParamsBuilder_ == null) { queryParams_ = builderForValue.build(); - onChanged(); } else { queryParamsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1005,19 +1020,19 @@ public Builder setQueryParams( */ public Builder mergeQueryParams(com.google.cloud.dialogflow.cx.v3.QueryParameters value) { if (queryParamsBuilder_ == null) { - if (queryParams_ != null) { - queryParams_ = - com.google.cloud.dialogflow.cx.v3.QueryParameters.newBuilder(queryParams_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && queryParams_ != null + && queryParams_ + != com.google.cloud.dialogflow.cx.v3.QueryParameters.getDefaultInstance()) { + getQueryParamsBuilder().mergeFrom(value); } else { queryParams_ = value; } - onChanged(); } else { queryParamsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1030,14 +1045,13 @@ public Builder mergeQueryParams(com.google.cloud.dialogflow.cx.v3.QueryParameter * .google.cloud.dialogflow.cx.v3.QueryParameters query_params = 2; */ public Builder clearQueryParams() { - if (queryParamsBuilder_ == null) { - queryParams_ = null; - onChanged(); - } else { - queryParams_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + queryParams_ = null; + if (queryParamsBuilder_ != null) { + queryParamsBuilder_.dispose(); queryParamsBuilder_ = null; } - + onChanged(); return this; } /** @@ -1050,7 +1064,7 @@ public Builder clearQueryParams() { * .google.cloud.dialogflow.cx.v3.QueryParameters query_params = 2; */ public com.google.cloud.dialogflow.cx.v3.QueryParameters.Builder getQueryParamsBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getQueryParamsFieldBuilder().getBuilder(); } @@ -1118,7 +1132,7 @@ public com.google.cloud.dialogflow.cx.v3.QueryParametersOrBuilder getQueryParams * @return Whether the queryInput field is set. */ public boolean hasQueryInput() { - return queryInputBuilder_ != null || queryInput_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1159,11 +1173,11 @@ public Builder setQueryInput(com.google.cloud.dialogflow.cx.v3.QueryInput value) throw new NullPointerException(); } queryInput_ = value; - onChanged(); } else { queryInputBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1181,11 +1195,11 @@ public Builder setQueryInput( com.google.cloud.dialogflow.cx.v3.QueryInput.Builder builderForValue) { if (queryInputBuilder_ == null) { queryInput_ = builderForValue.build(); - onChanged(); } else { queryInputBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1201,19 +1215,18 @@ public Builder setQueryInput( */ public Builder mergeQueryInput(com.google.cloud.dialogflow.cx.v3.QueryInput value) { if (queryInputBuilder_ == null) { - if (queryInput_ != null) { - queryInput_ = - com.google.cloud.dialogflow.cx.v3.QueryInput.newBuilder(queryInput_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && queryInput_ != null + && queryInput_ != com.google.cloud.dialogflow.cx.v3.QueryInput.getDefaultInstance()) { + getQueryInputBuilder().mergeFrom(value); } else { queryInput_ = value; } - onChanged(); } else { queryInputBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1228,14 +1241,13 @@ public Builder mergeQueryInput(com.google.cloud.dialogflow.cx.v3.QueryInput valu *
*/ public Builder clearQueryInput() { - if (queryInputBuilder_ == null) { - queryInput_ = null; - onChanged(); - } else { - queryInput_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + queryInput_ = null; + if (queryInputBuilder_ != null) { + queryInputBuilder_.dispose(); queryInputBuilder_ = null; } - + onChanged(); return this; } /** @@ -1250,7 +1262,7 @@ public Builder clearQueryInput() { *
*/ public com.google.cloud.dialogflow.cx.v3.QueryInput.Builder getQueryInputBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getQueryInputFieldBuilder().getBuilder(); } @@ -1320,7 +1332,7 @@ public com.google.cloud.dialogflow.cx.v3.QueryInputOrBuilder getQueryInputOrBuil * @return Whether the outputAudioConfig field is set. */ public boolean hasOutputAudioConfig() { - return outputAudioConfigBuilder_ != null || outputAudioConfig_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1357,11 +1369,11 @@ public Builder setOutputAudioConfig(com.google.cloud.dialogflow.cx.v3.OutputAudi throw new NullPointerException(); } outputAudioConfig_ = value; - onChanged(); } else { outputAudioConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1377,11 +1389,11 @@ public Builder setOutputAudioConfig( com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.Builder builderForValue) { if (outputAudioConfigBuilder_ == null) { outputAudioConfig_ = builderForValue.build(); - onChanged(); } else { outputAudioConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1396,19 +1408,19 @@ public Builder setOutputAudioConfig( public Builder mergeOutputAudioConfig( com.google.cloud.dialogflow.cx.v3.OutputAudioConfig value) { if (outputAudioConfigBuilder_ == null) { - if (outputAudioConfig_ != null) { - outputAudioConfig_ = - com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.newBuilder(outputAudioConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && outputAudioConfig_ != null + && outputAudioConfig_ + != com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.getDefaultInstance()) { + getOutputAudioConfigBuilder().mergeFrom(value); } else { outputAudioConfig_ = value; } - onChanged(); } else { outputAudioConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1421,14 +1433,13 @@ public Builder mergeOutputAudioConfig( * .google.cloud.dialogflow.cx.v3.OutputAudioConfig output_audio_config = 4; */ public Builder clearOutputAudioConfig() { - if (outputAudioConfigBuilder_ == null) { - outputAudioConfig_ = null; - onChanged(); - } else { - outputAudioConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + outputAudioConfig_ = null; + if (outputAudioConfigBuilder_ != null) { + outputAudioConfigBuilder_.dispose(); outputAudioConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1442,7 +1453,7 @@ public Builder clearOutputAudioConfig() { */ public com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.Builder getOutputAudioConfigBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getOutputAudioConfigFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponse.java index e4e8c7f3aeb6..e480d4d458da 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponse.java @@ -233,7 +233,9 @@ private ResponseType(int value) { } public static final int RESPONSE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object responseId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object responseId_ = ""; /** * * @@ -328,11 +330,13 @@ public com.google.cloud.dialogflow.cx.v3.QueryResult getQueryResult() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.QueryResultOrBuilder getQueryResultOrBuilder() { - return getQueryResult(); + return queryResult_ == null + ? com.google.cloud.dialogflow.cx.v3.QueryResult.getDefaultInstance() + : queryResult_; } public static final int OUTPUT_AUDIO_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString outputAudio_; + private com.google.protobuf.ByteString outputAudio_ = com.google.protobuf.ByteString.EMPTY; /** * * @@ -340,9 +344,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryResultOrBuilder getQueryResultOrBu * The audio data bytes encoded as specified in the request. * Note: The output audio is generated based on the values of default platform * text responses found in the - * [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If - * multiple default text responses exist, they will be concatenated when - * generating audio. If no default platform text responses exist, the + * [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] + * field. If multiple default text responses exist, they will be concatenated + * when generating audio. If no default platform text responses exist, the * generated audio content will be empty. * In some scenarios, multiple output audio fields may be present in the * response structure. In these cases, only the top-most-level audio output @@ -404,11 +408,13 @@ public com.google.cloud.dialogflow.cx.v3.OutputAudioConfig getOutputAudioConfig( @java.lang.Override public com.google.cloud.dialogflow.cx.v3.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() { - return getOutputAudioConfig(); + return outputAudioConfig_ == null + ? com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.getDefaultInstance() + : outputAudioConfig_; } public static final int RESPONSE_TYPE_FIELD_NUMBER = 6; - private int responseType_; + private int responseType_ = 0; /** * * @@ -439,16 +445,16 @@ public int getResponseTypeValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType getResponseType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType result = - com.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType.valueOf(responseType_); + com.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType.forNumber( + responseType_); return result == null ? com.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType.UNRECOGNIZED : result; } public static final int ALLOW_CANCELLATION_FIELD_NUMBER = 7; - private boolean allowCancellation_; + private boolean allowCancellation_ = false; /** * * @@ -726,26 +732,21 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; responseId_ = ""; - - if (queryResultBuilder_ == null) { - queryResult_ = null; - } else { - queryResult_ = null; + queryResult_ = null; + if (queryResultBuilder_ != null) { + queryResultBuilder_.dispose(); queryResultBuilder_ = null; } outputAudio_ = com.google.protobuf.ByteString.EMPTY; - - if (outputAudioConfigBuilder_ == null) { - outputAudioConfig_ = null; - } else { - outputAudioConfig_ = null; + outputAudioConfig_ = null; + if (outputAudioConfigBuilder_ != null) { + outputAudioConfigBuilder_.dispose(); outputAudioConfigBuilder_ = null; } responseType_ = 0; - allowCancellation_ = false; - return this; } @@ -773,24 +774,39 @@ public com.google.cloud.dialogflow.cx.v3.DetectIntentResponse build() { public com.google.cloud.dialogflow.cx.v3.DetectIntentResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.DetectIntentResponse result = new com.google.cloud.dialogflow.cx.v3.DetectIntentResponse(this); - result.responseId_ = responseId_; - if (queryResultBuilder_ == null) { - result.queryResult_ = queryResult_; - } else { - result.queryResult_ = queryResultBuilder_.build(); - } - result.outputAudio_ = outputAudio_; - if (outputAudioConfigBuilder_ == null) { - result.outputAudioConfig_ = outputAudioConfig_; - } else { - result.outputAudioConfig_ = outputAudioConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.responseType_ = responseType_; - result.allowCancellation_ = allowCancellation_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.DetectIntentResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.responseId_ = responseId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queryResult_ = + queryResultBuilder_ == null ? queryResult_ : queryResultBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outputAudio_ = outputAudio_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.outputAudioConfig_ = + outputAudioConfigBuilder_ == null + ? outputAudioConfig_ + : outputAudioConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.responseType_ = responseType_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.allowCancellation_ = allowCancellation_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -839,6 +855,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.DetectIntentResponse return this; if (!other.getResponseId().isEmpty()) { responseId_ = other.responseId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasQueryResult()) { @@ -885,38 +902,38 @@ public Builder mergeFrom( case 10: { responseId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getQueryResultFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 34: { outputAudio_ = input.readBytes(); - + bitField0_ |= 0x00000004; break; } // case 34 case 42: { input.readMessage( getOutputAudioConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 42 case 48: { responseType_ = input.readEnum(); - + bitField0_ |= 0x00000010; break; } // case 48 case 56: { allowCancellation_ = input.readBool(); - + bitField0_ |= 0x00000020; break; } // case 56 default: @@ -936,6 +953,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object responseId_ = ""; /** * @@ -1000,8 +1019,8 @@ public Builder setResponseId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - responseId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1018,8 +1037,8 @@ public Builder setResponseId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearResponseId() { - responseId_ = getDefaultInstance().getResponseId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1041,8 +1060,8 @@ public Builder setResponseIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - responseId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1065,7 +1084,7 @@ public Builder setResponseIdBytes(com.google.protobuf.ByteString value) { * @return Whether the queryResult field is set. */ public boolean hasQueryResult() { - return queryResultBuilder_ != null || queryResult_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1102,11 +1121,11 @@ public Builder setQueryResult(com.google.cloud.dialogflow.cx.v3.QueryResult valu throw new NullPointerException(); } queryResult_ = value; - onChanged(); } else { queryResultBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1122,11 +1141,11 @@ public Builder setQueryResult( com.google.cloud.dialogflow.cx.v3.QueryResult.Builder builderForValue) { if (queryResultBuilder_ == null) { queryResult_ = builderForValue.build(); - onChanged(); } else { queryResultBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1140,19 +1159,18 @@ public Builder setQueryResult( */ public Builder mergeQueryResult(com.google.cloud.dialogflow.cx.v3.QueryResult value) { if (queryResultBuilder_ == null) { - if (queryResult_ != null) { - queryResult_ = - com.google.cloud.dialogflow.cx.v3.QueryResult.newBuilder(queryResult_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && queryResult_ != null + && queryResult_ != com.google.cloud.dialogflow.cx.v3.QueryResult.getDefaultInstance()) { + getQueryResultBuilder().mergeFrom(value); } else { queryResult_ = value; } - onChanged(); } else { queryResultBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1165,14 +1183,13 @@ public Builder mergeQueryResult(com.google.cloud.dialogflow.cx.v3.QueryResult va * .google.cloud.dialogflow.cx.v3.QueryResult query_result = 2; */ public Builder clearQueryResult() { - if (queryResultBuilder_ == null) { - queryResult_ = null; - onChanged(); - } else { - queryResult_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + queryResult_ = null; + if (queryResultBuilder_ != null) { + queryResultBuilder_.dispose(); queryResultBuilder_ = null; } - + onChanged(); return this; } /** @@ -1185,7 +1202,7 @@ public Builder clearQueryResult() { * .google.cloud.dialogflow.cx.v3.QueryResult query_result = 2; */ public com.google.cloud.dialogflow.cx.v3.QueryResult.Builder getQueryResultBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getQueryResultFieldBuilder().getBuilder(); } @@ -1241,9 +1258,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryResultOrBuilder getQueryResultOrBu * The audio data bytes encoded as specified in the request. * Note: The output audio is generated based on the values of default platform * text responses found in the - * [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If - * multiple default text responses exist, they will be concatenated when - * generating audio. If no default platform text responses exist, the + * [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] + * field. If multiple default text responses exist, they will be concatenated + * when generating audio. If no default platform text responses exist, the * generated audio content will be empty. * In some scenarios, multiple output audio fields may be present in the * response structure. In these cases, only the top-most-level audio output @@ -1265,9 +1282,9 @@ public com.google.protobuf.ByteString getOutputAudio() { * The audio data bytes encoded as specified in the request. * Note: The output audio is generated based on the values of default platform * text responses found in the - * [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If - * multiple default text responses exist, they will be concatenated when - * generating audio. If no default platform text responses exist, the + * [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] + * field. If multiple default text responses exist, they will be concatenated + * when generating audio. If no default platform text responses exist, the * generated audio content will be empty. * In some scenarios, multiple output audio fields may be present in the * response structure. In these cases, only the top-most-level audio output @@ -1283,8 +1300,8 @@ public Builder setOutputAudio(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - outputAudio_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1295,9 +1312,9 @@ public Builder setOutputAudio(com.google.protobuf.ByteString value) { * The audio data bytes encoded as specified in the request. * Note: The output audio is generated based on the values of default platform * text responses found in the - * [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If - * multiple default text responses exist, they will be concatenated when - * generating audio. If no default platform text responses exist, the + * [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] + * field. If multiple default text responses exist, they will be concatenated + * when generating audio. If no default platform text responses exist, the * generated audio content will be empty. * In some scenarios, multiple output audio fields may be present in the * response structure. In these cases, only the top-most-level audio output @@ -1309,7 +1326,7 @@ public Builder setOutputAudio(com.google.protobuf.ByteString value) { * @return This builder for chaining. */ public Builder clearOutputAudio() { - + bitField0_ = (bitField0_ & ~0x00000004); outputAudio_ = getDefaultInstance().getOutputAudio(); onChanged(); return this; @@ -1333,7 +1350,7 @@ public Builder clearOutputAudio() { * @return Whether the outputAudioConfig field is set. */ public boolean hasOutputAudioConfig() { - return outputAudioConfigBuilder_ != null || outputAudioConfig_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1370,11 +1387,11 @@ public Builder setOutputAudioConfig(com.google.cloud.dialogflow.cx.v3.OutputAudi throw new NullPointerException(); } outputAudioConfig_ = value; - onChanged(); } else { outputAudioConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1390,11 +1407,11 @@ public Builder setOutputAudioConfig( com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.Builder builderForValue) { if (outputAudioConfigBuilder_ == null) { outputAudioConfig_ = builderForValue.build(); - onChanged(); } else { outputAudioConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1409,19 +1426,19 @@ public Builder setOutputAudioConfig( public Builder mergeOutputAudioConfig( com.google.cloud.dialogflow.cx.v3.OutputAudioConfig value) { if (outputAudioConfigBuilder_ == null) { - if (outputAudioConfig_ != null) { - outputAudioConfig_ = - com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.newBuilder(outputAudioConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && outputAudioConfig_ != null + && outputAudioConfig_ + != com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.getDefaultInstance()) { + getOutputAudioConfigBuilder().mergeFrom(value); } else { outputAudioConfig_ = value; } - onChanged(); } else { outputAudioConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1434,14 +1451,13 @@ public Builder mergeOutputAudioConfig( * .google.cloud.dialogflow.cx.v3.OutputAudioConfig output_audio_config = 5; */ public Builder clearOutputAudioConfig() { - if (outputAudioConfigBuilder_ == null) { - outputAudioConfig_ = null; - onChanged(); - } else { - outputAudioConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + outputAudioConfig_ = null; + if (outputAudioConfigBuilder_ != null) { + outputAudioConfigBuilder_.dispose(); outputAudioConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1455,7 +1471,7 @@ public Builder clearOutputAudioConfig() { */ public com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.Builder getOutputAudioConfigBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getOutputAudioConfigFieldBuilder().getBuilder(); } @@ -1535,8 +1551,8 @@ public int getResponseTypeValue() { * @return This builder for chaining. */ public Builder setResponseTypeValue(int value) { - responseType_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1554,9 +1570,8 @@ public Builder setResponseTypeValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType getResponseType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType result = - com.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType.valueOf( + com.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType.forNumber( responseType_); return result == null ? com.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType.UNRECOGNIZED @@ -1580,7 +1595,7 @@ public Builder setResponseType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000010; responseType_ = value.getNumber(); onChanged(); return this; @@ -1598,7 +1613,7 @@ public Builder setResponseType( * @return This builder for chaining. */ public Builder clearResponseType() { - + bitField0_ = (bitField0_ & ~0x00000010); responseType_ = 0; onChanged(); return this; @@ -1639,6 +1654,7 @@ public boolean getAllowCancellation() { public Builder setAllowCancellation(boolean value) { allowCancellation_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1656,7 +1672,7 @@ public Builder setAllowCancellation(boolean value) { * @return This builder for chaining. */ public Builder clearAllowCancellation() { - + bitField0_ = (bitField0_ & ~0x00000020); allowCancellation_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponseOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponseOrBuilder.java index 7dda9167dda5..2595579f1b4b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponseOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponseOrBuilder.java @@ -92,9 +92,9 @@ public interface DetectIntentResponseOrBuilder * The audio data bytes encoded as specified in the request. * Note: The output audio is generated based on the values of default platform * text responses found in the - * [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If - * multiple default text responses exist, they will be concatenated when - * generating audio. If no default platform text responses exist, the + * [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] + * field. If multiple default text responses exist, they will be concatenated + * when generating audio. If no default platform text responses exist, the * generated audio content will be empty. * In some scenarios, multiple output audio fields may be present in the * response structure. In these cases, only the top-most-level audio output diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DtmfInput.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DtmfInput.java index af0d1ebdd9e9..d100199a2cf7 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DtmfInput.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DtmfInput.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DIGITS_FIELD_NUMBER = 1; - private volatile java.lang.Object digits_; + + @SuppressWarnings("serial") + private volatile java.lang.Object digits_ = ""; /** * * @@ -118,7 +120,9 @@ public com.google.protobuf.ByteString getDigitsBytes() { } public static final int FINISH_DIGIT_FIELD_NUMBER = 2; - private volatile java.lang.Object finishDigit_; + + @SuppressWarnings("serial") + private volatile java.lang.Object finishDigit_ = ""; /** * * @@ -372,10 +376,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; digits_ = ""; - finishDigit_ = ""; - return this; } @@ -403,12 +406,23 @@ public com.google.cloud.dialogflow.cx.v3.DtmfInput build() { public com.google.cloud.dialogflow.cx.v3.DtmfInput buildPartial() { com.google.cloud.dialogflow.cx.v3.DtmfInput result = new com.google.cloud.dialogflow.cx.v3.DtmfInput(this); - result.digits_ = digits_; - result.finishDigit_ = finishDigit_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.DtmfInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.digits_ = digits_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.finishDigit_ = finishDigit_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -456,10 +470,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.DtmfInput other) { if (other == com.google.cloud.dialogflow.cx.v3.DtmfInput.getDefaultInstance()) return this; if (!other.getDigits().isEmpty()) { digits_ = other.digits_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFinishDigit().isEmpty()) { finishDigit_ = other.finishDigit_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -491,13 +507,13 @@ public Builder mergeFrom( case 10: { digits_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { finishDigit_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -517,6 +533,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object digits_ = ""; /** * @@ -578,8 +596,8 @@ public Builder setDigits(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - digits_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -595,8 +613,8 @@ public Builder setDigits(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDigits() { - digits_ = getDefaultInstance().getDigits(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -617,8 +635,8 @@ public Builder setDigitsBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - digits_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -684,8 +702,8 @@ public Builder setFinishDigit(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - finishDigit_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -701,8 +719,8 @@ public Builder setFinishDigit(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFinishDigit() { - finishDigit_ = getDefaultInstance().getFinishDigit(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -723,8 +741,8 @@ public Builder setFinishDigitBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - finishDigit_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityType.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityType.java index ad6d3c729632..b515f536a73e 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityType.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityType.java @@ -40,7 +40,9 @@ * entity is represented by the `EntityType` type. * * **User** - entities that are built for an individual user such as * favorites, preferences, playlists, and so on. A user entity is - * represented by the [SessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityType] type. + * represented by the + * [SessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityType] + * type. * For more information about entity types, see the [Dialogflow * documentation](https://cloud.google.com/dialogflow/docs/entities-overview). * @@ -583,7 +585,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUE_FIELD_NUMBER = 1; - private volatile java.lang.Object value_; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; /** * * @@ -646,6 +650,8 @@ public com.google.protobuf.ByteString getValueBytes() { } public static final int SYNONYMS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList synonyms_; /** * @@ -938,10 +944,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; value_ = ""; - synonyms_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -969,17 +975,30 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.Entity build() { public com.google.cloud.dialogflow.cx.v3.EntityType.Entity buildPartial() { com.google.cloud.dialogflow.cx.v3.EntityType.Entity result = new com.google.cloud.dialogflow.cx.v3.EntityType.Entity(this); - int from_bitField0_ = bitField0_; - result.value_ = value_; - if (((bitField0_ & 0x00000001) != 0)) { - synonyms_ = synonyms_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.synonyms_ = synonyms_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.EntityType.Entity result) { + if (((bitField0_ & 0x00000002) != 0)) { + synonyms_ = synonyms_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.synonyms_ = synonyms_; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.EntityType.Entity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1030,12 +1049,13 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.EntityType.Entity oth return this; if (!other.getValue().isEmpty()) { value_ = other.value_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.synonyms_.isEmpty()) { if (synonyms_.isEmpty()) { synonyms_ = other.synonyms_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSynonymsIsMutable(); synonyms_.addAll(other.synonyms_); @@ -1071,7 +1091,7 @@ public Builder mergeFrom( case 10: { value_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -1182,8 +1202,8 @@ public Builder setValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - value_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1206,8 +1226,8 @@ public Builder setValue(java.lang.String value) { * @return This builder for chaining. */ public Builder clearValue() { - value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1235,8 +1255,8 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - value_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1245,9 +1265,9 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSynonymsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { synonyms_ = new com.google.protobuf.LazyStringArrayList(synonyms_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -1414,7 +1434,7 @@ public Builder addAllSynonyms(java.lang.Iterable values) { */ public Builder clearSynonyms() { synonyms_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1589,7 +1609,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUE_FIELD_NUMBER = 1; - private volatile java.lang.Object value_; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; /** * * @@ -1837,8 +1859,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; value_ = ""; - return this; } @@ -1867,11 +1889,21 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase build() { public com.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase buildPartial() { com.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase result = new com.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase(this); - result.value_ = value_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1923,6 +1955,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPh return this; if (!other.getValue().isEmpty()) { value_ = other.value_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1954,7 +1987,7 @@ public Builder mergeFrom( case 10: { value_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -1974,6 +2007,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object value_ = ""; /** * @@ -2035,8 +2070,8 @@ public Builder setValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - value_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2052,8 +2087,8 @@ public Builder setValue(java.lang.String value) { * @return This builder for chaining. */ public Builder clearValue() { - value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2074,8 +2109,8 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - value_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2146,13 +2181,16 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase getDefaultIns } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
    * The unique identifier of the entity type.
-   * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
+   * Required for
+   * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/entityTypes/<Entity Type ID>`.
    * 
@@ -2178,7 +2216,8 @@ public java.lang.String getName() { * *
    * The unique identifier of the entity type.
-   * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
+   * Required for
+   * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/entityTypes/<Entity Type ID>`.
    * 
@@ -2201,12 +2240,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * *
-   * Required. The human-readable name of the entity type, unique within the agent.
+   * Required. The human-readable name of the entity type, unique within the
+   * agent.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -2229,7 +2271,8 @@ public java.lang.String getDisplayName() { * * *
-   * Required. The human-readable name of the entity type, unique within the agent.
+   * Required. The human-readable name of the entity type, unique within the
+   * agent.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -2250,7 +2293,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int KIND_FIELD_NUMBER = 3; - private int kind_; + private int kind_ = 0; /** * * @@ -2283,14 +2326,13 @@ public int getKindValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.EntityType.Kind getKind() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.EntityType.Kind result = - com.google.cloud.dialogflow.cx.v3.EntityType.Kind.valueOf(kind_); + com.google.cloud.dialogflow.cx.v3.EntityType.Kind.forNumber(kind_); return result == null ? com.google.cloud.dialogflow.cx.v3.EntityType.Kind.UNRECOGNIZED : result; } public static final int AUTO_EXPANSION_MODE_FIELD_NUMBER = 4; - private int autoExpansionMode_; + private int autoExpansionMode_ = 0; /** * * @@ -2321,15 +2363,17 @@ public int getAutoExpansionModeValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode getAutoExpansionMode() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode result = - com.google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode.valueOf(autoExpansionMode_); + com.google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode.forNumber( + autoExpansionMode_); return result == null ? com.google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode.UNRECOGNIZED : result; } public static final int ENTITIES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private java.util.List entities_; /** * @@ -2400,6 +2444,8 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.EntityOrBuilder getEntitiesO } public static final int EXCLUDED_PHRASES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") private java.util.List excludedPhrases_; /** @@ -2498,7 +2544,7 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase getExcludedPh } public static final int ENABLE_FUZZY_EXTRACTION_FIELD_NUMBER = 7; - private boolean enableFuzzyExtraction_; + private boolean enableFuzzyExtraction_ = false; /** * * @@ -2516,7 +2562,7 @@ public boolean getEnableFuzzyExtraction() { } public static final int REDACT_FIELD_NUMBER = 9; - private boolean redact_; + private boolean redact_ = false; /** * * @@ -2789,7 +2835,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * entity is represented by the `EntityType` type. * * **User** - entities that are built for an individual user such as * favorites, preferences, playlists, and so on. A user entity is - * represented by the [SessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityType] type. + * represented by the + * [SessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityType] + * type. * For more information about entity types, see the [Dialogflow * documentation](https://cloud.google.com/dialogflow/docs/entities-overview). * @@ -2825,32 +2873,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - kind_ = 0; - autoExpansionMode_ = 0; - if (entitiesBuilder_ == null) { entities_ = java.util.Collections.emptyList(); } else { entities_ = null; entitiesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); if (excludedPhrasesBuilder_ == null) { excludedPhrases_ = java.util.Collections.emptyList(); } else { excludedPhrases_ = null; excludedPhrasesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); enableFuzzyExtraction_ = false; - redact_ = false; - return this; } @@ -2878,33 +2921,55 @@ public com.google.cloud.dialogflow.cx.v3.EntityType build() { public com.google.cloud.dialogflow.cx.v3.EntityType buildPartial() { com.google.cloud.dialogflow.cx.v3.EntityType result = new com.google.cloud.dialogflow.cx.v3.EntityType(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.kind_ = kind_; - result.autoExpansionMode_ = autoExpansionMode_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.EntityType result) { if (entitiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { entities_ = java.util.Collections.unmodifiableList(entities_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } result.entities_ = entities_; } else { result.entities_ = entitiesBuilder_.build(); } if (excludedPhrasesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { excludedPhrases_ = java.util.Collections.unmodifiableList(excludedPhrases_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } result.excludedPhrases_ = excludedPhrases_; } else { result.excludedPhrases_ = excludedPhrasesBuilder_.build(); } - result.enableFuzzyExtraction_ = enableFuzzyExtraction_; - result.redact_ = redact_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.EntityType result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.kind_ = kind_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.autoExpansionMode_ = autoExpansionMode_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.enableFuzzyExtraction_ = enableFuzzyExtraction_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.redact_ = redact_; + } } @java.lang.Override @@ -2954,10 +3019,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.EntityType other) { if (other == com.google.cloud.dialogflow.cx.v3.EntityType.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.kind_ != 0) { @@ -2970,7 +3037,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.EntityType other) { if (!other.entities_.isEmpty()) { if (entities_.isEmpty()) { entities_ = other.entities_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureEntitiesIsMutable(); entities_.addAll(other.entities_); @@ -2983,7 +3050,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.EntityType other) { entitiesBuilder_.dispose(); entitiesBuilder_ = null; entities_ = other.entities_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); entitiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntitiesFieldBuilder() @@ -2997,7 +3064,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.EntityType other) { if (!other.excludedPhrases_.isEmpty()) { if (excludedPhrases_.isEmpty()) { excludedPhrases_ = other.excludedPhrases_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureExcludedPhrasesIsMutable(); excludedPhrases_.addAll(other.excludedPhrases_); @@ -3010,7 +3077,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.EntityType other) { excludedPhrasesBuilder_.dispose(); excludedPhrasesBuilder_ = null; excludedPhrases_ = other.excludedPhrases_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); excludedPhrasesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExcludedPhrasesFieldBuilder() @@ -3055,25 +3122,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { kind_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 24 case 32: { autoExpansionMode_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 case 42: @@ -3107,13 +3174,13 @@ public Builder mergeFrom( case 56: { enableFuzzyExtraction_ = input.readBool(); - + bitField0_ |= 0x00000040; break; } // case 56 case 72: { redact_ = input.readBool(); - + bitField0_ |= 0x00000080; break; } // case 72 default: @@ -3141,7 +3208,8 @@ public Builder mergeFrom( * *
      * The unique identifier of the entity type.
-     * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
+     * Required for
+     * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/entityTypes/<Entity Type ID>`.
      * 
@@ -3166,7 +3234,8 @@ public java.lang.String getName() { * *
      * The unique identifier of the entity type.
-     * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
+     * Required for
+     * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/entityTypes/<Entity Type ID>`.
      * 
@@ -3191,7 +3260,8 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * The unique identifier of the entity type.
-     * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
+     * Required for
+     * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/entityTypes/<Entity Type ID>`.
      * 
@@ -3205,8 +3275,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3215,7 +3285,8 @@ public Builder setName(java.lang.String value) { * *
      * The unique identifier of the entity type.
-     * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
+     * Required for
+     * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/entityTypes/<Entity Type ID>`.
      * 
@@ -3225,8 +3296,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3235,7 +3306,8 @@ public Builder clearName() { * *
      * The unique identifier of the entity type.
-     * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
+     * Required for
+     * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/entityTypes/<Entity Type ID>`.
      * 
@@ -3250,8 +3322,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3261,7 +3333,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The human-readable name of the entity type, unique within the agent.
+     * Required. The human-readable name of the entity type, unique within the
+     * agent.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -3283,7 +3356,8 @@ public java.lang.String getDisplayName() { * * *
-     * Required. The human-readable name of the entity type, unique within the agent.
+     * Required. The human-readable name of the entity type, unique within the
+     * agent.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -3305,7 +3379,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * Required. The human-readable name of the entity type, unique within the agent.
+     * Required. The human-readable name of the entity type, unique within the
+     * agent.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -3317,8 +3392,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3326,7 +3401,8 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * Required. The human-readable name of the entity type, unique within the agent.
+     * Required. The human-readable name of the entity type, unique within the
+     * agent.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -3334,8 +3410,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3343,7 +3419,8 @@ public Builder clearDisplayName() { * * *
-     * Required. The human-readable name of the entity type, unique within the agent.
+     * Required. The human-readable name of the entity type, unique within the
+     * agent.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -3356,8 +3433,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3395,8 +3472,8 @@ public int getKindValue() { * @return This builder for chaining. */ public Builder setKindValue(int value) { - kind_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3415,9 +3492,8 @@ public Builder setKindValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.EntityType.Kind getKind() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.EntityType.Kind result = - com.google.cloud.dialogflow.cx.v3.EntityType.Kind.valueOf(kind_); + com.google.cloud.dialogflow.cx.v3.EntityType.Kind.forNumber(kind_); return result == null ? com.google.cloud.dialogflow.cx.v3.EntityType.Kind.UNRECOGNIZED : result; @@ -3440,7 +3516,7 @@ public Builder setKind(com.google.cloud.dialogflow.cx.v3.EntityType.Kind value) if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; kind_ = value.getNumber(); onChanged(); return this; @@ -3459,7 +3535,7 @@ public Builder setKind(com.google.cloud.dialogflow.cx.v3.EntityType.Kind value) * @return This builder for chaining. */ public Builder clearKind() { - + bitField0_ = (bitField0_ & ~0x00000004); kind_ = 0; onChanged(); return this; @@ -3496,8 +3572,8 @@ public int getAutoExpansionModeValue() { * @return This builder for chaining. */ public Builder setAutoExpansionModeValue(int value) { - autoExpansionMode_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3515,9 +3591,8 @@ public Builder setAutoExpansionModeValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode getAutoExpansionMode() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode result = - com.google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode.valueOf( + com.google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode.forNumber( autoExpansionMode_); return result == null ? com.google.cloud.dialogflow.cx.v3.EntityType.AutoExpansionMode.UNRECOGNIZED @@ -3541,7 +3616,7 @@ public Builder setAutoExpansionMode( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; autoExpansionMode_ = value.getNumber(); onChanged(); return this; @@ -3559,7 +3634,7 @@ public Builder setAutoExpansionMode( * @return This builder for chaining. */ public Builder clearAutoExpansionMode() { - + bitField0_ = (bitField0_ & ~0x00000008); autoExpansionMode_ = 0; onChanged(); return this; @@ -3569,10 +3644,10 @@ public Builder clearAutoExpansionMode() { java.util.Collections.emptyList(); private void ensureEntitiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { entities_ = new java.util.ArrayList(entities_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000010; } } @@ -3790,7 +3865,7 @@ public Builder addAllEntities( public Builder clearEntities() { if (entitiesBuilder_ == null) { entities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { entitiesBuilder_.clear(); @@ -3916,7 +3991,7 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.Entity.Builder addEntitiesBu com.google.cloud.dialogflow.cx.v3.EntityType.Entity, com.google.cloud.dialogflow.cx.v3.EntityType.Entity.Builder, com.google.cloud.dialogflow.cx.v3.EntityType.EntityOrBuilder>( - entities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entities_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); entities_ = null; } return entitiesBuilder_; @@ -3926,11 +4001,11 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.Entity.Builder addEntitiesBu excludedPhrases_ = java.util.Collections.emptyList(); private void ensureExcludedPhrasesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { excludedPhrases_ = new java.util.ArrayList( excludedPhrases_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000020; } } @@ -4209,7 +4284,7 @@ public Builder addAllExcludedPhrases( public Builder clearExcludedPhrases() { if (excludedPhrasesBuilder_ == null) { excludedPhrases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { excludedPhrasesBuilder_.clear(); @@ -4375,7 +4450,7 @@ public Builder removeExcludedPhrases(int index) { com.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhrase.Builder, com.google.cloud.dialogflow.cx.v3.EntityType.ExcludedPhraseOrBuilder>( excludedPhrases_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); excludedPhrases_ = null; @@ -4414,6 +4489,7 @@ public boolean getEnableFuzzyExtraction() { public Builder setEnableFuzzyExtraction(boolean value) { enableFuzzyExtraction_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4429,7 +4505,7 @@ public Builder setEnableFuzzyExtraction(boolean value) { * @return This builder for chaining. */ public Builder clearEnableFuzzyExtraction() { - + bitField0_ = (bitField0_ & ~0x00000040); enableFuzzyExtraction_ = false; onChanged(); return this; @@ -4470,6 +4546,7 @@ public boolean getRedact() { public Builder setRedact(boolean value) { redact_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4487,7 +4564,7 @@ public Builder setRedact(boolean value) { * @return This builder for chaining. */ public Builder clearRedact() { - + bitField0_ = (bitField0_ & ~0x00000080); redact_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypeOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypeOrBuilder.java index 135338630060..94b2059cdc99 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypeOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypeOrBuilder.java @@ -28,7 +28,8 @@ public interface EntityTypeOrBuilder * *
    * The unique identifier of the entity type.
-   * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
+   * Required for
+   * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/entityTypes/<Entity Type ID>`.
    * 
@@ -43,7 +44,8 @@ public interface EntityTypeOrBuilder * *
    * The unique identifier of the entity type.
-   * Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
+   * Required for
+   * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/entityTypes/<Entity Type ID>`.
    * 
@@ -58,7 +60,8 @@ public interface EntityTypeOrBuilder * * *
-   * Required. The human-readable name of the entity type, unique within the agent.
+   * Required. The human-readable name of the entity type, unique within the
+   * agent.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -70,7 +73,8 @@ public interface EntityTypeOrBuilder * * *
-   * Required. The human-readable name of the entity type, unique within the agent.
+   * Required. The human-readable name of the entity type, unique within the
+   * agent.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypeProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypeProto.java index d88e65e579a4..2b44b8f138a7 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypeProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypeProto.java @@ -148,12 +148,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ame\032x\312A\031dialogflow.googleapis.com\322AYhttp" + "s://www.googleapis.com/auth/cloud-platfo" + "rm,https://www.googleapis.com/auth/dialo" - + "gflowB\303\001\n!com.google.cloud.dialogflow.cx" - + ".v3B\017EntityTypeProtoP\001Z?google.golang.or" - + "g/genproto/googleapis/cloud/dialogflow/c" - + "x/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflo" - + "w.Cx.V3\352\002!Google::Cloud::Dialogflow::CX:" - + ":V3b\006proto3" + + "gflowB\265\001\n!com.google.cloud.dialogflow.cx" + + ".v3B\017EntityTypeProtoP\001Z1cloud.google.com" + + "/go/dialogflow/cx/apiv3/cxpb;cxpb\370\001\001\242\002\002D" + + "F\252\002\035Google.Cloud.Dialogflow.Cx.V3\352\002!Goog" + + "le::Cloud::Dialogflow::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Environment.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Environment.java index ba38b80d7a01..2da14ea2989c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Environment.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Environment.java @@ -86,8 +86,8 @@ public interface VersionConfigOrBuilder * * *
-     * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/versions/<Version ID>.
+     * Required. Format: projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>.
      * 
* * @@ -101,8 +101,8 @@ public interface VersionConfigOrBuilder * * *
-     * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/versions/<Version ID>.
+     * Required. Format: projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>.
      * 
* * @@ -163,13 +163,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object version_; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; /** * * *
-     * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/versions/<Version ID>.
+     * Required. Format: projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>.
      * 
* * @@ -194,8 +196,8 @@ public java.lang.String getVersion() { * * *
-     * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/versions/<Version ID>.
+     * Required. Format: projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>.
      * 
* * @@ -417,8 +419,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; version_ = ""; - return this; } @@ -447,11 +449,21 @@ public com.google.cloud.dialogflow.cx.v3.Environment.VersionConfig build() { public com.google.cloud.dialogflow.cx.v3.Environment.VersionConfig buildPartial() { com.google.cloud.dialogflow.cx.v3.Environment.VersionConfig result = new com.google.cloud.dialogflow.cx.v3.Environment.VersionConfig(this); - result.version_ = version_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.Environment.VersionConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -503,6 +515,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Environment.VersionCo return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -534,7 +547,7 @@ public Builder mergeFrom( case 10: { version_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -554,13 +567,15 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object version_ = ""; /** * * *
-       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * Required. Format: projects/<Project ID>/locations/<Location
+       * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>.
        * 
* * @@ -584,8 +599,8 @@ public java.lang.String getVersion() { * * *
-       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * Required. Format: projects/<Project ID>/locations/<Location
+       * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>.
        * 
* * @@ -609,8 +624,8 @@ public com.google.protobuf.ByteString getVersionBytes() { * * *
-       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * Required. Format: projects/<Project ID>/locations/<Location
+       * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>.
        * 
* * @@ -624,8 +639,8 @@ public Builder setVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - version_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -633,8 +648,8 @@ public Builder setVersion(java.lang.String value) { * * *
-       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * Required. Format: projects/<Project ID>/locations/<Location
+       * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>.
        * 
* * @@ -644,8 +659,8 @@ public Builder setVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -653,8 +668,8 @@ public Builder clearVersion() { * * *
-       * Required. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
-       * ID>/flows/<Flow ID>/versions/<Version ID>.
+       * Required. Format: projects/<Project ID>/locations/<Location
+       * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>.
        * 
* * @@ -669,8 +684,8 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - version_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -808,8 +823,9 @@ public interface TestCasesConfigOrBuilder * * *
-     * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] periodically.
-     * Default false. If set to true, run once a day.
+     * Whether to run test cases in
+     * [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases]
+     * periodically. Default false. If set to true, run once a day.
      * 
* * bool enable_continuous_run = 2; @@ -822,8 +838,9 @@ public interface TestCasesConfigOrBuilder * * *
-     * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] before
-     * deploying a flow version to the environment. Default false.
+     * Whether to run test cases in
+     * [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases]
+     * before deploying a flow version to the environment. Default false.
      * 
* * bool enable_predeployment_run = 3; @@ -882,6 +899,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TEST_CASES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList testCases_; /** * @@ -951,13 +970,14 @@ public com.google.protobuf.ByteString getTestCasesBytes(int index) { } public static final int ENABLE_CONTINUOUS_RUN_FIELD_NUMBER = 2; - private boolean enableContinuousRun_; + private boolean enableContinuousRun_ = false; /** * * *
-     * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] periodically.
-     * Default false. If set to true, run once a day.
+     * Whether to run test cases in
+     * [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases]
+     * periodically. Default false. If set to true, run once a day.
      * 
* * bool enable_continuous_run = 2; @@ -970,13 +990,14 @@ public boolean getEnableContinuousRun() { } public static final int ENABLE_PREDEPLOYMENT_RUN_FIELD_NUMBER = 3; - private boolean enablePredeploymentRun_; + private boolean enablePredeploymentRun_ = false; /** * * *
-     * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] before
-     * deploying a flow version to the environment. Default false.
+     * Whether to run test cases in
+     * [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases]
+     * before deploying a flow version to the environment. Default false.
      * 
* * bool enable_predeployment_run = 3; @@ -1213,12 +1234,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; testCases_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); enableContinuousRun_ = false; - enablePredeploymentRun_ = false; - return this; } @@ -1247,16 +1267,32 @@ public com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig build() { public com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig buildPartial() { com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig result = new com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig result) { if (((bitField0_ & 0x00000001) != 0)) { testCases_ = testCases_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.testCases_ = testCases_; - result.enableContinuousRun_ = enableContinuousRun_; - result.enablePredeploymentRun_ = enablePredeploymentRun_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableContinuousRun_ = enableContinuousRun_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enablePredeploymentRun_ = enablePredeploymentRun_; + } } @java.lang.Override @@ -1361,13 +1397,13 @@ public Builder mergeFrom( case 16: { enableContinuousRun_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { enablePredeploymentRun_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -1580,8 +1616,9 @@ public Builder addTestCasesBytes(com.google.protobuf.ByteString value) { * * *
-       * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] periodically.
-       * Default false. If set to true, run once a day.
+       * Whether to run test cases in
+       * [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases]
+       * periodically. Default false. If set to true, run once a day.
        * 
* * bool enable_continuous_run = 2; @@ -1596,8 +1633,9 @@ public boolean getEnableContinuousRun() { * * *
-       * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] periodically.
-       * Default false. If set to true, run once a day.
+       * Whether to run test cases in
+       * [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases]
+       * periodically. Default false. If set to true, run once a day.
        * 
* * bool enable_continuous_run = 2; @@ -1608,6 +1646,7 @@ public boolean getEnableContinuousRun() { public Builder setEnableContinuousRun(boolean value) { enableContinuousRun_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1615,8 +1654,9 @@ public Builder setEnableContinuousRun(boolean value) { * * *
-       * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] periodically.
-       * Default false. If set to true, run once a day.
+       * Whether to run test cases in
+       * [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases]
+       * periodically. Default false. If set to true, run once a day.
        * 
* * bool enable_continuous_run = 2; @@ -1624,7 +1664,7 @@ public Builder setEnableContinuousRun(boolean value) { * @return This builder for chaining. */ public Builder clearEnableContinuousRun() { - + bitField0_ = (bitField0_ & ~0x00000002); enableContinuousRun_ = false; onChanged(); return this; @@ -1635,8 +1675,9 @@ public Builder clearEnableContinuousRun() { * * *
-       * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] before
-       * deploying a flow version to the environment. Default false.
+       * Whether to run test cases in
+       * [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases]
+       * before deploying a flow version to the environment. Default false.
        * 
* * bool enable_predeployment_run = 3; @@ -1651,8 +1692,9 @@ public boolean getEnablePredeploymentRun() { * * *
-       * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] before
-       * deploying a flow version to the environment. Default false.
+       * Whether to run test cases in
+       * [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases]
+       * before deploying a flow version to the environment. Default false.
        * 
* * bool enable_predeployment_run = 3; @@ -1663,6 +1705,7 @@ public boolean getEnablePredeploymentRun() { public Builder setEnablePredeploymentRun(boolean value) { enablePredeploymentRun_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1670,8 +1713,9 @@ public Builder setEnablePredeploymentRun(boolean value) { * * *
-       * Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] before
-       * deploying a flow version to the environment. Default false.
+       * Whether to run test cases in
+       * [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases]
+       * before deploying a flow version to the environment. Default false.
        * 
* * bool enable_predeployment_run = 3; @@ -1679,7 +1723,7 @@ public Builder setEnablePredeploymentRun(boolean value) { * @return This builder for chaining. */ public Builder clearEnablePredeploymentRun() { - + bitField0_ = (bitField0_ & ~0x00000004); enablePredeploymentRun_ = false; onChanged(); return this; @@ -1763,7 +1807,8 @@ public interface WebhookConfigOrBuilder *
      * The list of webhooks to override for the agent environment. The webhook
      * must exist in the agent. You can override fields in
-     * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+     * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+     * and
      * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
      * 
* @@ -1776,7 +1821,8 @@ public interface WebhookConfigOrBuilder *
      * The list of webhooks to override for the agent environment. The webhook
      * must exist in the agent. You can override fields in
-     * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+     * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+     * and
      * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
      * 
* @@ -1789,7 +1835,8 @@ public interface WebhookConfigOrBuilder *
      * The list of webhooks to override for the agent environment. The webhook
      * must exist in the agent. You can override fields in
-     * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+     * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+     * and
      * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
      * 
* @@ -1802,7 +1849,8 @@ public interface WebhookConfigOrBuilder *
      * The list of webhooks to override for the agent environment. The webhook
      * must exist in the agent. You can override fields in
-     * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+     * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+     * and
      * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
      * 
* @@ -1816,7 +1864,8 @@ public interface WebhookConfigOrBuilder *
      * The list of webhooks to override for the agent environment. The webhook
      * must exist in the agent. You can override fields in
-     * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+     * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+     * and
      * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
      * 
* @@ -1874,6 +1923,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int WEBHOOK_OVERRIDES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List webhookOverrides_; /** * @@ -1881,7 +1932,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
      * The list of webhooks to override for the agent environment. The webhook
      * must exist in the agent. You can override fields in
-     * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+     * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+     * and
      * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
      * 
* @@ -1897,7 +1949,8 @@ public java.util.List getWebhookOverr *
      * The list of webhooks to override for the agent environment. The webhook
      * must exist in the agent. You can override fields in
-     * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+     * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+     * and
      * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
      * 
* @@ -1914,7 +1967,8 @@ public java.util.List getWebhookOverr *
      * The list of webhooks to override for the agent environment. The webhook
      * must exist in the agent. You can override fields in
-     * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+     * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+     * and
      * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
      * 
* @@ -1930,7 +1984,8 @@ public int getWebhookOverridesCount() { *
      * The list of webhooks to override for the agent environment. The webhook
      * must exist in the agent. You can override fields in
-     * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+     * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+     * and
      * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
      * 
* @@ -1946,7 +2001,8 @@ public com.google.cloud.dialogflow.cx.v3.Webhook getWebhookOverrides(int index) *
      * The list of webhooks to override for the agent environment. The webhook
      * must exist in the agent. You can override fields in
-     * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+     * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+     * and
      * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
      * 
* @@ -2161,6 +2217,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (webhookOverridesBuilder_ == null) { webhookOverrides_ = java.util.Collections.emptyList(); } else { @@ -2196,7 +2253,16 @@ public com.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig build() { public com.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig buildPartial() { com.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig result = new com.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig result) { if (webhookOverridesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { webhookOverrides_ = java.util.Collections.unmodifiableList(webhookOverrides_); @@ -2206,8 +2272,11 @@ public com.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig buildPartial( } else { result.webhookOverrides_ = webhookOverridesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -2367,7 +2436,8 @@ private void ensureWebhookOverridesIsMutable() { *
        * The list of webhooks to override for the agent environment. The webhook
        * must exist in the agent. You can override fields in
-       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+       * and
        * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
        * 
* @@ -2386,7 +2456,8 @@ public java.util.List getWebhookOverr *
        * The list of webhooks to override for the agent environment. The webhook
        * must exist in the agent. You can override fields in
-       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+       * and
        * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
        * 
* @@ -2405,7 +2476,8 @@ public int getWebhookOverridesCount() { *
        * The list of webhooks to override for the agent environment. The webhook
        * must exist in the agent. You can override fields in
-       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+       * and
        * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
        * 
* @@ -2424,7 +2496,8 @@ public com.google.cloud.dialogflow.cx.v3.Webhook getWebhookOverrides(int index) *
        * The list of webhooks to override for the agent environment. The webhook
        * must exist in the agent. You can override fields in
-       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+       * and
        * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
        * 
* @@ -2450,7 +2523,8 @@ public Builder setWebhookOverrides( *
        * The list of webhooks to override for the agent environment. The webhook
        * must exist in the agent. You can override fields in
-       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+       * and
        * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
        * 
* @@ -2473,7 +2547,8 @@ public Builder setWebhookOverrides( *
        * The list of webhooks to override for the agent environment. The webhook
        * must exist in the agent. You can override fields in
-       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+       * and
        * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
        * 
* @@ -2498,7 +2573,8 @@ public Builder addWebhookOverrides(com.google.cloud.dialogflow.cx.v3.Webhook val *
        * The list of webhooks to override for the agent environment. The webhook
        * must exist in the agent. You can override fields in
-       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+       * and
        * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
        * 
* @@ -2524,7 +2600,8 @@ public Builder addWebhookOverrides( *
        * The list of webhooks to override for the agent environment. The webhook
        * must exist in the agent. You can override fields in
-       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+       * and
        * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
        * 
* @@ -2547,7 +2624,8 @@ public Builder addWebhookOverrides( *
        * The list of webhooks to override for the agent environment. The webhook
        * must exist in the agent. You can override fields in
-       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+       * and
        * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
        * 
* @@ -2570,7 +2648,8 @@ public Builder addWebhookOverrides( *
        * The list of webhooks to override for the agent environment. The webhook
        * must exist in the agent. You can override fields in
-       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+       * and
        * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
        * 
* @@ -2593,7 +2672,8 @@ public Builder addAllWebhookOverrides( *
        * The list of webhooks to override for the agent environment. The webhook
        * must exist in the agent. You can override fields in
-       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+       * and
        * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
        * 
* @@ -2615,7 +2695,8 @@ public Builder clearWebhookOverrides() { *
        * The list of webhooks to override for the agent environment. The webhook
        * must exist in the agent. You can override fields in
-       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+       * and
        * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
        * 
* @@ -2637,7 +2718,8 @@ public Builder removeWebhookOverrides(int index) { *
        * The list of webhooks to override for the agent environment. The webhook
        * must exist in the agent. You can override fields in
-       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+       * and
        * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
        * 
* @@ -2653,7 +2735,8 @@ public com.google.cloud.dialogflow.cx.v3.Webhook.Builder getWebhookOverridesBuil *
        * The list of webhooks to override for the agent environment. The webhook
        * must exist in the agent. You can override fields in
-       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+       * and
        * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
        * 
* @@ -2673,7 +2756,8 @@ public com.google.cloud.dialogflow.cx.v3.WebhookOrBuilder getWebhookOverridesOrB *
        * The list of webhooks to override for the agent environment. The webhook
        * must exist in the agent. You can override fields in
-       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+       * and
        * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
        * 
* @@ -2693,7 +2777,8 @@ public com.google.cloud.dialogflow.cx.v3.WebhookOrBuilder getWebhookOverridesOrB *
        * The list of webhooks to override for the agent environment. The webhook
        * must exist in the agent. You can override fields in
-       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+       * and
        * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
        * 
* @@ -2709,7 +2794,8 @@ public com.google.cloud.dialogflow.cx.v3.Webhook.Builder addWebhookOverridesBuil *
        * The list of webhooks to override for the agent environment. The webhook
        * must exist in the agent. You can override fields in
-       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+       * and
        * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
        * 
* @@ -2726,7 +2812,8 @@ public com.google.cloud.dialogflow.cx.v3.Webhook.Builder addWebhookOverridesBuil *
        * The list of webhooks to override for the agent environment. The webhook
        * must exist in the agent. You can override fields in
-       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and
+       * [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service]
+       * and
        * [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory].
        * 
* @@ -2823,7 +2910,9 @@ public com.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig getDefaultIns } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -2876,13 +2965,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * *
-   * Required. The human-readable name of the environment (unique in an agent). Limit of
-   * 64 characters.
+   * Required. The human-readable name of the environment (unique in an agent).
+   * Limit of 64 characters.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -2905,8 +2996,8 @@ public java.lang.String getDisplayName() { * * *
-   * Required. The human-readable name of the environment (unique in an agent). Limit of
-   * 64 characters.
+   * Required. The human-readable name of the environment (unique in an agent).
+   * Limit of 64 characters.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -2927,7 +3018,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -2978,14 +3071,16 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int VERSION_CONFIGS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") private java.util.List versionConfigs_; /** * * *
-   * Required. A list of configurations for flow versions. You should include version
-   * configs for all flows that are reachable from [`Start
+   * Required. A list of configurations for flow versions. You should include
+   * version configs for all flows that are reachable from [`Start
    * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
    * returned.
    * 
@@ -3003,8 +3098,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Required. A list of configurations for flow versions. You should include version
-   * configs for all flows that are reachable from [`Start
+   * Required. A list of configurations for flow versions. You should include
+   * version configs for all flows that are reachable from [`Start
    * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
    * returned.
    * 
@@ -3023,8 +3118,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Required. A list of configurations for flow versions. You should include version
-   * configs for all flows that are reachable from [`Start
+   * Required. A list of configurations for flow versions. You should include
+   * version configs for all flows that are reachable from [`Start
    * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
    * returned.
    * 
@@ -3041,8 +3136,8 @@ public int getVersionConfigsCount() { * * *
-   * Required. A list of configurations for flow versions. You should include version
-   * configs for all flows that are reachable from [`Start
+   * Required. A list of configurations for flow versions. You should include
+   * version configs for all flows that are reachable from [`Start
    * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
    * returned.
    * 
@@ -3059,8 +3154,8 @@ public com.google.cloud.dialogflow.cx.v3.Environment.VersionConfig getVersionCon * * *
-   * Required. A list of configurations for flow versions. You should include version
-   * configs for all flows that are reachable from [`Start
+   * Required. A list of configurations for flow versions. You should include
+   * version configs for all flows that are reachable from [`Start
    * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
    * returned.
    * 
@@ -3121,7 +3216,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int TEST_CASES_CONFIG_FIELD_NUMBER = 7; @@ -3170,7 +3265,9 @@ public com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig getTestCase @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfigOrBuilder getTestCasesConfigOrBuilder() { - return getTestCasesConfig(); + return testCasesConfig_ == null + ? com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.getDefaultInstance() + : testCasesConfig_; } public static final int WEBHOOK_CONFIG_FIELD_NUMBER = 10; @@ -3219,7 +3316,9 @@ public com.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig getWebhookCon @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Environment.WebhookConfigOrBuilder getWebhookConfigOrBuilder() { - return getWebhookConfig(); + return webhookConfig_ == null + ? com.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig.getDefaultInstance() + : webhookConfig_; } private byte memoizedIsInitialized = -1; @@ -3497,35 +3596,30 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - if (versionConfigsBuilder_ == null) { versionConfigs_ = java.util.Collections.emptyList(); } else { versionConfigs_ = null; versionConfigsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - if (testCasesConfigBuilder_ == null) { - testCasesConfig_ = null; - } else { - testCasesConfig_ = null; + testCasesConfig_ = null; + if (testCasesConfigBuilder_ != null) { + testCasesConfigBuilder_.dispose(); testCasesConfigBuilder_ = null; } - if (webhookConfigBuilder_ == null) { - webhookConfig_ = null; - } else { - webhookConfig_ = null; + webhookConfig_ = null; + if (webhookConfigBuilder_ != null) { + webhookConfigBuilder_.dispose(); webhookConfigBuilder_ = null; } return this; @@ -3555,36 +3649,48 @@ public com.google.cloud.dialogflow.cx.v3.Environment build() { public com.google.cloud.dialogflow.cx.v3.Environment buildPartial() { com.google.cloud.dialogflow.cx.v3.Environment result = new com.google.cloud.dialogflow.cx.v3.Environment(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.Environment result) { if (versionConfigsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { versionConfigs_ = java.util.Collections.unmodifiableList(versionConfigs_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.versionConfigs_ = versionConfigs_; } else { result.versionConfigs_ = versionConfigsBuilder_.build(); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Environment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (testCasesConfigBuilder_ == null) { - result.testCasesConfig_ = testCasesConfig_; - } else { - result.testCasesConfig_ = testCasesConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (webhookConfigBuilder_ == null) { - result.webhookConfig_ = webhookConfig_; - } else { - result.webhookConfig_ = webhookConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.testCasesConfig_ = + testCasesConfigBuilder_ == null ? testCasesConfig_ : testCasesConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.webhookConfig_ = + webhookConfigBuilder_ == null ? webhookConfig_ : webhookConfigBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -3634,21 +3740,24 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Environment other) { if (other == com.google.cloud.dialogflow.cx.v3.Environment.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (versionConfigsBuilder_ == null) { if (!other.versionConfigs_.isEmpty()) { if (versionConfigs_.isEmpty()) { versionConfigs_ = other.versionConfigs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureVersionConfigsIsMutable(); versionConfigs_.addAll(other.versionConfigs_); @@ -3661,7 +3770,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Environment other) { versionConfigsBuilder_.dispose(); versionConfigsBuilder_ = null; versionConfigs_ = other.versionConfigs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); versionConfigsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVersionConfigsFieldBuilder() @@ -3709,25 +3818,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 42: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: @@ -3747,13 +3856,13 @@ public Builder mergeFrom( case 58: { input.readMessage(getTestCasesConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 58 case 82: { input.readMessage(getWebhookConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 82 default: @@ -3842,8 +3951,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3861,8 +3970,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3885,8 +3994,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3896,8 +4005,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The human-readable name of the environment (unique in an agent). Limit of
-     * 64 characters.
+     * Required. The human-readable name of the environment (unique in an agent).
+     * Limit of 64 characters.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -3919,8 +4028,8 @@ public java.lang.String getDisplayName() { * * *
-     * Required. The human-readable name of the environment (unique in an agent). Limit of
-     * 64 characters.
+     * Required. The human-readable name of the environment (unique in an agent).
+     * Limit of 64 characters.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -3942,8 +4051,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * Required. The human-readable name of the environment (unique in an agent). Limit of
-     * 64 characters.
+     * Required. The human-readable name of the environment (unique in an agent).
+     * Limit of 64 characters.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -3955,8 +4064,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3964,8 +4073,8 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * Required. The human-readable name of the environment (unique in an agent). Limit of
-     * 64 characters.
+     * Required. The human-readable name of the environment (unique in an agent).
+     * Limit of 64 characters.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -3973,8 +4082,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3982,8 +4091,8 @@ public Builder clearDisplayName() { * * *
-     * Required. The human-readable name of the environment (unique in an agent). Limit of
-     * 64 characters.
+     * Required. The human-readable name of the environment (unique in an agent).
+     * Limit of 64 characters.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -3996,8 +4105,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4066,8 +4175,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4084,8 +4193,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -4107,8 +4216,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4117,11 +4226,11 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { versionConfigs_ = java.util.Collections.emptyList(); private void ensureVersionConfigsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { versionConfigs_ = new java.util.ArrayList( versionConfigs_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -4135,8 +4244,8 @@ private void ensureVersionConfigsIsMutable() { * * *
-     * Required. A list of configurations for flow versions. You should include version
-     * configs for all flows that are reachable from [`Start
+     * Required. A list of configurations for flow versions. You should include
+     * version configs for all flows that are reachable from [`Start
      * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
      * returned.
      * 
@@ -4157,8 +4266,8 @@ private void ensureVersionConfigsIsMutable() { * * *
-     * Required. A list of configurations for flow versions. You should include version
-     * configs for all flows that are reachable from [`Start
+     * Required. A list of configurations for flow versions. You should include
+     * version configs for all flows that are reachable from [`Start
      * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
      * returned.
      * 
@@ -4178,8 +4287,8 @@ public int getVersionConfigsCount() { * * *
-     * Required. A list of configurations for flow versions. You should include version
-     * configs for all flows that are reachable from [`Start
+     * Required. A list of configurations for flow versions. You should include
+     * version configs for all flows that are reachable from [`Start
      * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
      * returned.
      * 
@@ -4200,8 +4309,8 @@ public com.google.cloud.dialogflow.cx.v3.Environment.VersionConfig getVersionCon * * *
-     * Required. A list of configurations for flow versions. You should include version
-     * configs for all flows that are reachable from [`Start
+     * Required. A list of configurations for flow versions. You should include
+     * version configs for all flows that are reachable from [`Start
      * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
      * returned.
      * 
@@ -4228,8 +4337,8 @@ public Builder setVersionConfigs( * * *
-     * Required. A list of configurations for flow versions. You should include version
-     * configs for all flows that are reachable from [`Start
+     * Required. A list of configurations for flow versions. You should include
+     * version configs for all flows that are reachable from [`Start
      * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
      * returned.
      * 
@@ -4254,8 +4363,8 @@ public Builder setVersionConfigs( * * *
-     * Required. A list of configurations for flow versions. You should include version
-     * configs for all flows that are reachable from [`Start
+     * Required. A list of configurations for flow versions. You should include
+     * version configs for all flows that are reachable from [`Start
      * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
      * returned.
      * 
@@ -4282,8 +4391,8 @@ public Builder addVersionConfigs( * * *
-     * Required. A list of configurations for flow versions. You should include version
-     * configs for all flows that are reachable from [`Start
+     * Required. A list of configurations for flow versions. You should include
+     * version configs for all flows that are reachable from [`Start
      * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
      * returned.
      * 
@@ -4310,8 +4419,8 @@ public Builder addVersionConfigs( * * *
-     * Required. A list of configurations for flow versions. You should include version
-     * configs for all flows that are reachable from [`Start
+     * Required. A list of configurations for flow versions. You should include
+     * version configs for all flows that are reachable from [`Start
      * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
      * returned.
      * 
@@ -4335,8 +4444,8 @@ public Builder addVersionConfigs( * * *
-     * Required. A list of configurations for flow versions. You should include version
-     * configs for all flows that are reachable from [`Start
+     * Required. A list of configurations for flow versions. You should include
+     * version configs for all flows that are reachable from [`Start
      * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
      * returned.
      * 
@@ -4361,8 +4470,8 @@ public Builder addVersionConfigs( * * *
-     * Required. A list of configurations for flow versions. You should include version
-     * configs for all flows that are reachable from [`Start
+     * Required. A list of configurations for flow versions. You should include
+     * version configs for all flows that are reachable from [`Start
      * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
      * returned.
      * 
@@ -4387,8 +4496,8 @@ public Builder addAllVersionConfigs( * * *
-     * Required. A list of configurations for flow versions. You should include version
-     * configs for all flows that are reachable from [`Start
+     * Required. A list of configurations for flow versions. You should include
+     * version configs for all flows that are reachable from [`Start
      * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
      * returned.
      * 
@@ -4400,7 +4509,7 @@ public Builder addAllVersionConfigs( public Builder clearVersionConfigs() { if (versionConfigsBuilder_ == null) { versionConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { versionConfigsBuilder_.clear(); @@ -4411,8 +4520,8 @@ public Builder clearVersionConfigs() { * * *
-     * Required. A list of configurations for flow versions. You should include version
-     * configs for all flows that are reachable from [`Start
+     * Required. A list of configurations for flow versions. You should include
+     * version configs for all flows that are reachable from [`Start
      * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
      * returned.
      * 
@@ -4435,8 +4544,8 @@ public Builder removeVersionConfigs(int index) { * * *
-     * Required. A list of configurations for flow versions. You should include version
-     * configs for all flows that are reachable from [`Start
+     * Required. A list of configurations for flow versions. You should include
+     * version configs for all flows that are reachable from [`Start
      * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
      * returned.
      * 
@@ -4453,8 +4562,8 @@ public Builder removeVersionConfigs(int index) { * * *
-     * Required. A list of configurations for flow versions. You should include version
-     * configs for all flows that are reachable from [`Start
+     * Required. A list of configurations for flow versions. You should include
+     * version configs for all flows that are reachable from [`Start
      * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
      * returned.
      * 
@@ -4475,8 +4584,8 @@ public Builder removeVersionConfigs(int index) { * * *
-     * Required. A list of configurations for flow versions. You should include version
-     * configs for all flows that are reachable from [`Start
+     * Required. A list of configurations for flow versions. You should include
+     * version configs for all flows that are reachable from [`Start
      * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
      * returned.
      * 
@@ -4498,8 +4607,8 @@ public Builder removeVersionConfigs(int index) { * * *
-     * Required. A list of configurations for flow versions. You should include version
-     * configs for all flows that are reachable from [`Start
+     * Required. A list of configurations for flow versions. You should include
+     * version configs for all flows that are reachable from [`Start
      * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
      * returned.
      * 
@@ -4518,8 +4627,8 @@ public Builder removeVersionConfigs(int index) { * * *
-     * Required. A list of configurations for flow versions. You should include version
-     * configs for all flows that are reachable from [`Start
+     * Required. A list of configurations for flow versions. You should include
+     * version configs for all flows that are reachable from [`Start
      * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
      * returned.
      * 
@@ -4539,8 +4648,8 @@ public Builder removeVersionConfigs(int index) { * * *
-     * Required. A list of configurations for flow versions. You should include version
-     * configs for all flows that are reachable from [`Start
+     * Required. A list of configurations for flow versions. You should include
+     * version configs for all flows that are reachable from [`Start
      * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
      * returned.
      * 
@@ -4566,7 +4675,7 @@ public Builder removeVersionConfigs(int index) { com.google.cloud.dialogflow.cx.v3.Environment.VersionConfig.Builder, com.google.cloud.dialogflow.cx.v3.Environment.VersionConfigOrBuilder>( versionConfigs_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); versionConfigs_ = null; @@ -4594,7 +4703,7 @@ public Builder removeVersionConfigs(int index) { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -4635,11 +4744,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4656,11 +4765,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4676,17 +4785,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4701,14 +4811,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { *
*/ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -4723,7 +4832,7 @@ public Builder clearUpdateTime() { *
*/ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -4794,7 +4903,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the testCasesConfig field is set. */ public boolean hasTestCasesConfig() { - return testCasesConfigBuilder_ != null || testCasesConfig_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -4834,11 +4943,11 @@ public Builder setTestCasesConfig( throw new NullPointerException(); } testCasesConfig_ = value; - onChanged(); } else { testCasesConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -4855,11 +4964,11 @@ public Builder setTestCasesConfig( com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.Builder builderForValue) { if (testCasesConfigBuilder_ == null) { testCasesConfig_ = builderForValue.build(); - onChanged(); } else { testCasesConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -4875,20 +4984,20 @@ public Builder setTestCasesConfig( public Builder mergeTestCasesConfig( com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig value) { if (testCasesConfigBuilder_ == null) { - if (testCasesConfig_ != null) { - testCasesConfig_ = - com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.newBuilder( - testCasesConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && testCasesConfig_ != null + && testCasesConfig_ + != com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig + .getDefaultInstance()) { + getTestCasesConfigBuilder().mergeFrom(value); } else { testCasesConfig_ = value; } - onChanged(); } else { testCasesConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -4902,14 +5011,13 @@ public Builder mergeTestCasesConfig( *
*/ public Builder clearTestCasesConfig() { - if (testCasesConfigBuilder_ == null) { - testCasesConfig_ = null; - onChanged(); - } else { - testCasesConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + testCasesConfig_ = null; + if (testCasesConfigBuilder_ != null) { + testCasesConfigBuilder_.dispose(); testCasesConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -4924,7 +5032,7 @@ public Builder clearTestCasesConfig() { */ public com.google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.Builder getTestCasesConfigBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getTestCasesConfigFieldBuilder().getBuilder(); } @@ -4993,7 +5101,7 @@ public Builder clearTestCasesConfig() { * @return Whether the webhookConfig field is set. */ public boolean hasWebhookConfig() { - return webhookConfigBuilder_ != null || webhookConfig_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -5031,11 +5139,11 @@ public Builder setWebhookConfig( throw new NullPointerException(); } webhookConfig_ = value; - onChanged(); } else { webhookConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -5051,11 +5159,11 @@ public Builder setWebhookConfig( com.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig.Builder builderForValue) { if (webhookConfigBuilder_ == null) { webhookConfig_ = builderForValue.build(); - onChanged(); } else { webhookConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -5070,19 +5178,20 @@ public Builder setWebhookConfig( public Builder mergeWebhookConfig( com.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig value) { if (webhookConfigBuilder_ == null) { - if (webhookConfig_ != null) { - webhookConfig_ = - com.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig.newBuilder(webhookConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && webhookConfig_ != null + && webhookConfig_ + != com.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig + .getDefaultInstance()) { + getWebhookConfigBuilder().mergeFrom(value); } else { webhookConfig_ = value; } - onChanged(); } else { webhookConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -5095,14 +5204,13 @@ public Builder mergeWebhookConfig( * .google.cloud.dialogflow.cx.v3.Environment.WebhookConfig webhook_config = 10; */ public Builder clearWebhookConfig() { - if (webhookConfigBuilder_ == null) { - webhookConfig_ = null; - onChanged(); - } else { - webhookConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + webhookConfig_ = null; + if (webhookConfigBuilder_ != null) { + webhookConfigBuilder_.dispose(); webhookConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -5116,7 +5224,7 @@ public Builder clearWebhookConfig() { */ public com.google.cloud.dialogflow.cx.v3.Environment.WebhookConfig.Builder getWebhookConfigBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getWebhookConfigFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentOrBuilder.java index 6db54778bd05..c23bc3a07232 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentOrBuilder.java @@ -56,8 +56,8 @@ public interface EnvironmentOrBuilder * * *
-   * Required. The human-readable name of the environment (unique in an agent). Limit of
-   * 64 characters.
+   * Required. The human-readable name of the environment (unique in an agent).
+   * Limit of 64 characters.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -69,8 +69,8 @@ public interface EnvironmentOrBuilder * * *
-   * Required. The human-readable name of the environment (unique in an agent). Limit of
-   * 64 characters.
+   * Required. The human-readable name of the environment (unique in an agent).
+   * Limit of 64 characters.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -110,8 +110,8 @@ public interface EnvironmentOrBuilder * * *
-   * Required. A list of configurations for flow versions. You should include version
-   * configs for all flows that are reachable from [`Start
+   * Required. A list of configurations for flow versions. You should include
+   * version configs for all flows that are reachable from [`Start
    * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
    * returned.
    * 
@@ -126,8 +126,8 @@ public interface EnvironmentOrBuilder * * *
-   * Required. A list of configurations for flow versions. You should include version
-   * configs for all flows that are reachable from [`Start
+   * Required. A list of configurations for flow versions. You should include
+   * version configs for all flows that are reachable from [`Start
    * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
    * returned.
    * 
@@ -141,8 +141,8 @@ public interface EnvironmentOrBuilder * * *
-   * Required. A list of configurations for flow versions. You should include version
-   * configs for all flows that are reachable from [`Start
+   * Required. A list of configurations for flow versions. You should include
+   * version configs for all flows that are reachable from [`Start
    * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
    * returned.
    * 
@@ -156,8 +156,8 @@ public interface EnvironmentOrBuilder * * *
-   * Required. A list of configurations for flow versions. You should include version
-   * configs for all flows that are reachable from [`Start
+   * Required. A list of configurations for flow versions. You should include
+   * version configs for all flows that are reachable from [`Start
    * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
    * returned.
    * 
@@ -172,8 +172,8 @@ public interface EnvironmentOrBuilder * * *
-   * Required. A list of configurations for flow versions. You should include version
-   * configs for all flows that are reachable from [`Start
+   * Required. A list of configurations for flow versions. You should include
+   * version configs for all flows that are reachable from [`Start
    * Flow`][Agent.start_flow] in the agent. Otherwise, an error will be
    * returned.
    * 
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentProto.java index f783164f0128..2cd1b58581b0 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentProto.java @@ -268,13 +268,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "yFlowResponse\022\022DeployFlowMetadata\032x\312A\031di" + "alogflow.googleapis.com\322AYhttps://www.go" + "ogleapis.com/auth/cloud-platform,https:/" - + "/www.googleapis.com/auth/dialogflowB\304\001\n!" + + "/www.googleapis.com/auth/dialogflowB\266\001\n!" + "com.google.cloud.dialogflow.cx.v3B\020Envir" - + "onmentProtoP\001Z?google.golang.org/genprot" - + "o/googleapis/cloud/dialogflow/cx/v3;cx\370\001" - + "\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx.V3\352\002" - + "!Google::Cloud::Dialogflow::CX::V3b\006prot" - + "o3" + + "onmentProtoP\001Z1cloud.google.com/go/dialo" + + "gflow/cx/apiv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Googl" + + "e.Cloud.Dialogflow.Cx.V3\352\002!Google::Cloud" + + "::Dialogflow::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EventHandler.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EventHandler.java index 5051ff335751..c8eb9b18d730 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EventHandler.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EventHandler.java @@ -22,16 +22,21 @@ * * *
- * An event handler specifies an [event][google.cloud.dialogflow.cx.v3.EventHandler.event] that can be handled
+ * An event handler specifies an
+ * [event][google.cloud.dialogflow.cx.v3.EventHandler.event] that can be handled
  * during a session. When the specified event happens, the following actions are
  * taken in order:
  * *   If there is a
- * [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.EventHandler.trigger_fulfillment] associated with
- * the event, it will be called.
- * *   If there is a [`target_page`][google.cloud.dialogflow.cx.v3.EventHandler.target_page] associated
- * with the event, the session will transition into the specified page.
- * *   If there is a [`target_flow`][google.cloud.dialogflow.cx.v3.EventHandler.target_flow] associated
- * with the event, the session will transition into the specified flow.
+ * [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.EventHandler.trigger_fulfillment]
+ * associated with the event, it will be called.
+ * *   If there is a
+ * [`target_page`][google.cloud.dialogflow.cx.v3.EventHandler.target_page]
+ * associated with the event, the session will transition into the specified
+ * page.
+ * *   If there is a
+ * [`target_flow`][google.cloud.dialogflow.cx.v3.EventHandler.target_flow]
+ * associated with the event, the session will transition into the specified
+ * flow.
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.EventHandler} @@ -125,7 +130,9 @@ public TargetCase getTargetCase() { } public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -174,7 +181,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int EVENT_FIELD_NUMBER = 4; - private volatile java.lang.Object event_; + + @SuppressWarnings("serial") + private volatile java.lang.Object event_ = ""; /** * * @@ -276,7 +285,9 @@ public com.google.cloud.dialogflow.cx.v3.Fulfillment getTriggerFulfillment() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.FulfillmentOrBuilder getTriggerFulfillmentOrBuilder() { - return getTriggerFulfillment(); + return triggerFulfillment_ == null + ? com.google.cloud.dialogflow.cx.v3.Fulfillment.getDefaultInstance() + : triggerFulfillment_; } public static final int TARGET_PAGE_FIELD_NUMBER = 2; @@ -652,16 +663,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * An event handler specifies an [event][google.cloud.dialogflow.cx.v3.EventHandler.event] that can be handled
+   * An event handler specifies an
+   * [event][google.cloud.dialogflow.cx.v3.EventHandler.event] that can be handled
    * during a session. When the specified event happens, the following actions are
    * taken in order:
    * *   If there is a
-   * [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.EventHandler.trigger_fulfillment] associated with
-   * the event, it will be called.
-   * *   If there is a [`target_page`][google.cloud.dialogflow.cx.v3.EventHandler.target_page] associated
-   * with the event, the session will transition into the specified page.
-   * *   If there is a [`target_flow`][google.cloud.dialogflow.cx.v3.EventHandler.target_flow] associated
-   * with the event, the session will transition into the specified flow.
+   * [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.EventHandler.trigger_fulfillment]
+   * associated with the event, it will be called.
+   * *   If there is a
+   * [`target_page`][google.cloud.dialogflow.cx.v3.EventHandler.target_page]
+   * associated with the event, the session will transition into the specified
+   * page.
+   * *   If there is a
+   * [`target_flow`][google.cloud.dialogflow.cx.v3.EventHandler.target_flow]
+   * associated with the event, the session will transition into the specified
+   * flow.
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.EventHandler} @@ -695,14 +711,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - event_ = ""; - - if (triggerFulfillmentBuilder_ == null) { - triggerFulfillment_ = null; - } else { - triggerFulfillment_ = null; + triggerFulfillment_ = null; + if (triggerFulfillmentBuilder_ != null) { + triggerFulfillmentBuilder_.dispose(); triggerFulfillmentBuilder_ = null; } targetCase_ = 0; @@ -734,22 +748,33 @@ public com.google.cloud.dialogflow.cx.v3.EventHandler build() { public com.google.cloud.dialogflow.cx.v3.EventHandler buildPartial() { com.google.cloud.dialogflow.cx.v3.EventHandler result = new com.google.cloud.dialogflow.cx.v3.EventHandler(this); - result.name_ = name_; - result.event_ = event_; - if (triggerFulfillmentBuilder_ == null) { - result.triggerFulfillment_ = triggerFulfillment_; - } else { - result.triggerFulfillment_ = triggerFulfillmentBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (targetCase_ == 2) { - result.target_ = target_; + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.EventHandler result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (targetCase_ == 3) { - result.target_ = target_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.event_ = event_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.triggerFulfillment_ = + triggerFulfillmentBuilder_ == null + ? triggerFulfillment_ + : triggerFulfillmentBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.EventHandler result) { result.targetCase_ = targetCase_; - onBuilt(); - return result; + result.target_ = this.target_; } @java.lang.Override @@ -799,10 +824,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.EventHandler other) { if (other == com.google.cloud.dialogflow.cx.v3.EventHandler.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getEvent().isEmpty()) { event_ = other.event_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasTriggerFulfillment()) { @@ -871,20 +898,20 @@ public Builder mergeFrom( case 34: { event_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 34 case 42: { input.readMessage( getTriggerFulfillmentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 42 case 50: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 50 default: @@ -918,6 +945,8 @@ public Builder clearTarget() { return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -979,8 +1008,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -996,8 +1025,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1018,8 +1047,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1085,8 +1114,8 @@ public Builder setEvent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - event_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1102,8 +1131,8 @@ public Builder setEvent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEvent() { - event_ = getDefaultInstance().getEvent(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1124,8 +1153,8 @@ public Builder setEventBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - event_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1151,7 +1180,7 @@ public Builder setEventBytes(com.google.protobuf.ByteString value) { * @return Whether the triggerFulfillment field is set. */ public boolean hasTriggerFulfillment() { - return triggerFulfillmentBuilder_ != null || triggerFulfillment_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1194,11 +1223,11 @@ public Builder setTriggerFulfillment(com.google.cloud.dialogflow.cx.v3.Fulfillme throw new NullPointerException(); } triggerFulfillment_ = value; - onChanged(); } else { triggerFulfillmentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1217,11 +1246,11 @@ public Builder setTriggerFulfillment( com.google.cloud.dialogflow.cx.v3.Fulfillment.Builder builderForValue) { if (triggerFulfillmentBuilder_ == null) { triggerFulfillment_ = builderForValue.build(); - onChanged(); } else { triggerFulfillmentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1238,19 +1267,19 @@ public Builder setTriggerFulfillment( */ public Builder mergeTriggerFulfillment(com.google.cloud.dialogflow.cx.v3.Fulfillment value) { if (triggerFulfillmentBuilder_ == null) { - if (triggerFulfillment_ != null) { - triggerFulfillment_ = - com.google.cloud.dialogflow.cx.v3.Fulfillment.newBuilder(triggerFulfillment_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && triggerFulfillment_ != null + && triggerFulfillment_ + != com.google.cloud.dialogflow.cx.v3.Fulfillment.getDefaultInstance()) { + getTriggerFulfillmentBuilder().mergeFrom(value); } else { triggerFulfillment_ = value; } - onChanged(); } else { triggerFulfillmentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1266,14 +1295,13 @@ public Builder mergeTriggerFulfillment(com.google.cloud.dialogflow.cx.v3.Fulfill * .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 5; */ public Builder clearTriggerFulfillment() { - if (triggerFulfillmentBuilder_ == null) { - triggerFulfillment_ = null; - onChanged(); - } else { - triggerFulfillment_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + triggerFulfillment_ = null; + if (triggerFulfillmentBuilder_ != null) { + triggerFulfillmentBuilder_.dispose(); triggerFulfillmentBuilder_ = null; } - + onChanged(); return this; } /** @@ -1289,7 +1317,7 @@ public Builder clearTriggerFulfillment() { * .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 5; */ public com.google.cloud.dialogflow.cx.v3.Fulfillment.Builder getTriggerFulfillmentBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getTriggerFulfillmentFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EventInput.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EventInput.java index 6c2d2480a66f..9c7f207701fe 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EventInput.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/EventInput.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EVENT_FIELD_NUMBER = 1; - private volatile java.lang.Object event_; + + @SuppressWarnings("serial") + private volatile java.lang.Object event_ = ""; /** * * @@ -313,8 +315,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; event_ = ""; - return this; } @@ -342,11 +344,20 @@ public com.google.cloud.dialogflow.cx.v3.EventInput build() { public com.google.cloud.dialogflow.cx.v3.EventInput buildPartial() { com.google.cloud.dialogflow.cx.v3.EventInput result = new com.google.cloud.dialogflow.cx.v3.EventInput(this); - result.event_ = event_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.EventInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.event_ = event_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -394,6 +405,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.EventInput other) { if (other == com.google.cloud.dialogflow.cx.v3.EventInput.getDefaultInstance()) return this; if (!other.getEvent().isEmpty()) { event_ = other.event_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -425,7 +437,7 @@ public Builder mergeFrom( case 10: { event_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -445,6 +457,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object event_ = ""; /** * @@ -506,8 +520,8 @@ public Builder setEvent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - event_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -523,8 +537,8 @@ public Builder setEvent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEvent() { - event_ = getDefaultInstance().getEvent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -545,8 +559,8 @@ public Builder setEventBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - event_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Experiment.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Experiment.java index f57b27816ae3..8f07d73945e1 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Experiment.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Experiment.java @@ -440,7 +440,9 @@ public VariantsCase getVariantsCase() { } public static final int CONDITION_FIELD_NUMBER = 1; - private volatile java.lang.Object condition_; + + @SuppressWarnings("serial") + private volatile java.lang.Object condition_ = ""; /** * * @@ -770,8 +772,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; condition_ = ""; - if (versionVariantsBuilder_ != null) { versionVariantsBuilder_.clear(); } @@ -804,19 +806,30 @@ public com.google.cloud.dialogflow.cx.v3.Experiment.Definition build() { public com.google.cloud.dialogflow.cx.v3.Experiment.Definition buildPartial() { com.google.cloud.dialogflow.cx.v3.Experiment.Definition result = new com.google.cloud.dialogflow.cx.v3.Experiment.Definition(this); - result.condition_ = condition_; - if (variantsCase_ == 2) { - if (versionVariantsBuilder_ == null) { - result.variants_ = variants_; - } else { - result.variants_ = versionVariantsBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - result.variantsCase_ = variantsCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Experiment.Definition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.condition_ = condition_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3.Experiment.Definition result) { + result.variantsCase_ = variantsCase_; + result.variants_ = this.variants_; + if (variantsCase_ == 2 && versionVariantsBuilder_ != null) { + result.variants_ = versionVariantsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -867,6 +880,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Experiment.Definition return this; if (!other.getCondition().isEmpty()) { condition_ = other.condition_; + bitField0_ |= 0x00000001; onChanged(); } switch (other.getVariantsCase()) { @@ -909,7 +923,7 @@ public Builder mergeFrom( case 10: { condition_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -950,6 +964,8 @@ public Builder clearVariants() { return this; } + private int bitField0_; + private java.lang.Object condition_ = ""; /** * @@ -1020,8 +1036,8 @@ public Builder setCondition(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - condition_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1040,8 +1056,8 @@ public Builder setCondition(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCondition() { - condition_ = getDefaultInstance().getCondition(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1065,8 +1081,8 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - condition_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1279,7 +1295,6 @@ public com.google.cloud.dialogflow.cx.v3.VersionVariants.Builder getVersionVaria } variantsCase_ = 2; onChanged(); - ; return versionVariantsBuilder_; } @@ -2022,7 +2037,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONFIDENCE_LEVEL_FIELD_NUMBER = 1; - private double confidenceLevel_; + private double confidenceLevel_ = 0D; /** * * @@ -2041,7 +2056,7 @@ public double getConfidenceLevel() { } public static final int RATIO_FIELD_NUMBER = 2; - private double ratio_; + private double ratio_ = 0D; /** * * @@ -2060,7 +2075,7 @@ public double getRatio() { } public static final int LOWER_BOUND_FIELD_NUMBER = 3; - private double lowerBound_; + private double lowerBound_ = 0D; /** * * @@ -2078,7 +2093,7 @@ public double getLowerBound() { } public static final int UPPER_BOUND_FIELD_NUMBER = 4; - private double upperBound_; + private double upperBound_ = 0D; /** * * @@ -2350,14 +2365,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; confidenceLevel_ = 0D; - ratio_ = 0D; - lowerBound_ = 0D; - upperBound_ = 0D; - return this; } @@ -2389,14 +2401,30 @@ public com.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval bu buildPartial() { com.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval result = new com.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval(this); - result.confidenceLevel_ = confidenceLevel_; - result.ratio_ = ratio_; - result.lowerBound_ = lowerBound_; - result.upperBound_ = upperBound_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.confidenceLevel_ = confidenceLevel_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ratio_ = ratio_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.lowerBound_ = lowerBound_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.upperBound_ = upperBound_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2490,25 +2518,25 @@ public Builder mergeFrom( case 9: { confidenceLevel_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 case 17: { ratio_ = input.readDouble(); - + bitField0_ |= 0x00000002; break; } // case 17 case 25: { lowerBound_ = input.readDouble(); - + bitField0_ |= 0x00000004; break; } // case 25 case 33: { upperBound_ = input.readDouble(); - + bitField0_ |= 0x00000008; break; } // case 33 default: @@ -2528,6 +2556,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private double confidenceLevel_; /** * @@ -2561,6 +2591,7 @@ public double getConfidenceLevel() { public Builder setConfidenceLevel(double value) { confidenceLevel_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2577,7 +2608,7 @@ public Builder setConfidenceLevel(double value) { * @return This builder for chaining. */ public Builder clearConfidenceLevel() { - + bitField0_ = (bitField0_ & ~0x00000001); confidenceLevel_ = 0D; onChanged(); return this; @@ -2616,6 +2647,7 @@ public double getRatio() { public Builder setRatio(double value) { ratio_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2632,7 +2664,7 @@ public Builder setRatio(double value) { * @return This builder for chaining. */ public Builder clearRatio() { - + bitField0_ = (bitField0_ & ~0x00000002); ratio_ = 0D; onChanged(); return this; @@ -2669,6 +2701,7 @@ public double getLowerBound() { public Builder setLowerBound(double value) { lowerBound_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2684,7 +2717,7 @@ public Builder setLowerBound(double value) { * @return This builder for chaining. */ public Builder clearLowerBound() { - + bitField0_ = (bitField0_ & ~0x00000004); lowerBound_ = 0D; onChanged(); return this; @@ -2721,6 +2754,7 @@ public double getUpperBound() { public Builder setUpperBound(double value) { upperBound_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2736,7 +2770,7 @@ public Builder setUpperBound(double value) { * @return This builder for chaining. */ public Builder clearUpperBound() { - + bitField0_ = (bitField0_ & ~0x00000008); upperBound_ = 0D; onChanged(); return this; @@ -3065,7 +3099,7 @@ public ValueCase getValueCase() { } public static final int TYPE_FIELD_NUMBER = 1; - private int type_; + private int type_ = 0; /** * * @@ -3096,16 +3130,15 @@ public int getTypeValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType getType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType result = - com.google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType.valueOf(type_); + com.google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType.forNumber(type_); return result == null ? com.google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType.UNRECOGNIZED : result; } public static final int COUNT_TYPE_FIELD_NUMBER = 5; - private int countType_; + private int countType_ = 0; /** * * @@ -3136,9 +3169,8 @@ public int getCountTypeValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Experiment.Result.CountType getCountType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.Experiment.Result.CountType result = - com.google.cloud.dialogflow.cx.v3.Experiment.Result.CountType.valueOf(countType_); + com.google.cloud.dialogflow.cx.v3.Experiment.Result.CountType.forNumber(countType_); return result == null ? com.google.cloud.dialogflow.cx.v3.Experiment.Result.CountType.UNRECOGNIZED : result; @@ -3272,7 +3304,10 @@ public boolean hasConfidenceInterval() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceIntervalOrBuilder getConfidenceIntervalOrBuilder() { - return getConfidenceInterval(); + return confidenceInterval_ == null + ? com.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + .getDefaultInstance() + : confidenceInterval_; } private byte memoizedIsInitialized = -1; @@ -3554,14 +3589,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; type_ = 0; - countType_ = 0; - - if (confidenceIntervalBuilder_ == null) { - confidenceInterval_ = null; - } else { - confidenceInterval_ = null; + confidenceInterval_ = null; + if (confidenceIntervalBuilder_ != null) { + confidenceIntervalBuilder_.dispose(); confidenceIntervalBuilder_ = null; } valueCase_ = 0; @@ -3594,22 +3627,35 @@ public com.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric build() { public com.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric buildPartial() { com.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric result = new com.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric(this); - result.type_ = type_; - result.countType_ = countType_; - if (valueCase_ == 2) { - result.value_ = value_; + if (bitField0_ != 0) { + buildPartial0(result); } - if (valueCase_ == 4) { - result.value_ = value_; + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; } - if (confidenceIntervalBuilder_ == null) { - result.confidenceInterval_ = confidenceInterval_; - } else { - result.confidenceInterval_ = confidenceIntervalBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.countType_ = countType_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.confidenceInterval_ = + confidenceIntervalBuilder_ == null + ? confidenceInterval_ + : confidenceIntervalBuilder_.build(); + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric result) { result.valueCase_ = valueCase_; - onBuilt(); - return result; + result.value_ = this.value_; } @java.lang.Override @@ -3715,7 +3761,7 @@ public Builder mergeFrom( case 8: { type_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 17: @@ -3728,7 +3774,7 @@ public Builder mergeFrom( { input.readMessage( getConfidenceIntervalFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 26 case 33: @@ -3740,7 +3786,7 @@ public Builder mergeFrom( case 40: { countType_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 40 default: @@ -3774,6 +3820,8 @@ public Builder clearValue() { return this; } + private int bitField0_; + private int type_ = 0; /** * @@ -3805,8 +3853,8 @@ public int getTypeValue() { * @return This builder for chaining. */ public Builder setTypeValue(int value) { - type_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3824,9 +3872,8 @@ public Builder setTypeValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType getType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType result = - com.google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType.valueOf(type_); + com.google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType.forNumber(type_); return result == null ? com.google.cloud.dialogflow.cx.v3.Experiment.Result.MetricType.UNRECOGNIZED : result; @@ -3849,7 +3896,7 @@ public Builder setType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; @@ -3867,7 +3914,7 @@ public Builder setType( * @return This builder for chaining. */ public Builder clearType() { - + bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; @@ -3904,8 +3951,8 @@ public int getCountTypeValue() { * @return This builder for chaining. */ public Builder setCountTypeValue(int value) { - countType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3923,9 +3970,8 @@ public Builder setCountTypeValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Experiment.Result.CountType getCountType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.Experiment.Result.CountType result = - com.google.cloud.dialogflow.cx.v3.Experiment.Result.CountType.valueOf(countType_); + com.google.cloud.dialogflow.cx.v3.Experiment.Result.CountType.forNumber(countType_); return result == null ? com.google.cloud.dialogflow.cx.v3.Experiment.Result.CountType.UNRECOGNIZED : result; @@ -3948,7 +3994,7 @@ public Builder setCountType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; countType_ = value.getNumber(); onChanged(); return this; @@ -3966,7 +4012,7 @@ public Builder setCountType( * @return This builder for chaining. */ public Builder clearCountType() { - + bitField0_ = (bitField0_ & ~0x00000002); countType_ = 0; onChanged(); return this; @@ -4016,6 +4062,7 @@ public double getRatio() { * @return This builder for chaining. */ public Builder setRatio(double value) { + valueCase_ = 2; value_ = value; onChanged(); @@ -4085,6 +4132,7 @@ public double getCount() { * @return This builder for chaining. */ public Builder setCount(double value) { + valueCase_ = 4; value_ = value; onChanged(); @@ -4132,7 +4180,7 @@ public Builder clearCount() { * @return Whether the confidenceInterval field is set. */ public boolean hasConfidenceInterval() { - return confidenceIntervalBuilder_ != null || confidenceInterval_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -4178,11 +4226,11 @@ public Builder setConfidenceInterval( throw new NullPointerException(); } confidenceInterval_ = value; - onChanged(); } else { confidenceIntervalBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4202,11 +4250,11 @@ public Builder setConfidenceInterval( builderForValue) { if (confidenceIntervalBuilder_ == null) { confidenceInterval_ = builderForValue.build(); - onChanged(); } else { confidenceIntervalBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4224,20 +4272,20 @@ public Builder setConfidenceInterval( public Builder mergeConfidenceInterval( com.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval value) { if (confidenceIntervalBuilder_ == null) { - if (confidenceInterval_ != null) { - confidenceInterval_ = - com.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.newBuilder( - confidenceInterval_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && confidenceInterval_ != null + && confidenceInterval_ + != com.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval + .getDefaultInstance()) { + getConfidenceIntervalBuilder().mergeFrom(value); } else { confidenceInterval_ = value; } - onChanged(); } else { confidenceIntervalBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4253,14 +4301,13 @@ public Builder mergeConfidenceInterval( *
*/ public Builder clearConfidenceInterval() { - if (confidenceIntervalBuilder_ == null) { - confidenceInterval_ = null; - onChanged(); - } else { - confidenceInterval_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + confidenceInterval_ = null; + if (confidenceIntervalBuilder_ != null) { + confidenceIntervalBuilder_.dispose(); confidenceIntervalBuilder_ = null; } - + onChanged(); return this; } /** @@ -4277,7 +4324,7 @@ public Builder clearConfidenceInterval() { */ public com.google.cloud.dialogflow.cx.v3.Experiment.Result.ConfidenceInterval.Builder getConfidenceIntervalBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getConfidenceIntervalFieldBuilder().getBuilder(); } @@ -4557,7 +4604,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object version_; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; /** * * @@ -4610,6 +4659,8 @@ public com.google.protobuf.ByteString getVersionBytes() { } public static final int METRICS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List metrics_; /** * @@ -4687,7 +4738,7 @@ public com.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric getMetrics(int } public static final int SESSION_COUNT_FIELD_NUMBER = 3; - private int sessionCount_; + private int sessionCount_ = 0; /** * * @@ -4927,17 +4978,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; version_ = ""; - if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); } else { metrics_ = null; metricsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); sessionCount_ = 0; - return this; } @@ -4968,20 +5018,36 @@ public com.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics build( public com.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics buildPartial() { com.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics result = new com.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics(this); - int from_bitField0_ = bitField0_; - result.version_ = version_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics result) { if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.metrics_ = metrics_; } else { result.metrics_ = metricsBuilder_.build(); } - result.sessionCount_ = sessionCount_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.Experiment.Result.VersionMetrics result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sessionCount_ = sessionCount_; + } } @java.lang.Override @@ -5037,13 +5103,14 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; + bitField0_ |= 0x00000001; onChanged(); } if (metricsBuilder_ == null) { if (!other.metrics_.isEmpty()) { if (metrics_.isEmpty()) { metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMetricsIsMutable(); metrics_.addAll(other.metrics_); @@ -5056,7 +5123,7 @@ public Builder mergeFrom( metricsBuilder_.dispose(); metricsBuilder_ = null; metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); metricsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMetricsFieldBuilder() @@ -5098,7 +5165,7 @@ public Builder mergeFrom( case 10: { version_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -5118,7 +5185,7 @@ public Builder mergeFrom( case 24: { sessionCount_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -5207,8 +5274,8 @@ public Builder setVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - version_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5226,8 +5293,8 @@ public Builder setVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -5250,8 +5317,8 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - version_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5260,11 +5327,11 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { metrics_ = java.util.Collections.emptyList(); private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { metrics_ = new java.util.ArrayList( metrics_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -5509,7 +5576,7 @@ public Builder addAllMetrics( public Builder clearMetrics() { if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { metricsBuilder_.clear(); @@ -5653,7 +5720,7 @@ public com.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.Builder addMet com.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric, com.google.cloud.dialogflow.cx.v3.Experiment.Result.Metric.Builder, com.google.cloud.dialogflow.cx.v3.Experiment.Result.MetricOrBuilder>( - metrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + metrics_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); metrics_ = null; } return metricsBuilder_; @@ -5690,6 +5757,7 @@ public int getSessionCount() { public Builder setSessionCount(int value) { sessionCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -5705,7 +5773,7 @@ public Builder setSessionCount(int value) { * @return This builder for chaining. */ public Builder clearSessionCount() { - + bitField0_ = (bitField0_ & ~0x00000004); sessionCount_ = 0; onChanged(); return this; @@ -5779,6 +5847,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int VERSION_METRICS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List versionMetrics_; /** @@ -5910,7 +5980,9 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return getLastUpdateTime(); + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } private byte memoizedIsInitialized = -1; @@ -6130,6 +6202,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (versionMetricsBuilder_ == null) { versionMetrics_ = java.util.Collections.emptyList(); } else { @@ -6137,10 +6210,9 @@ public Builder clear() { versionMetricsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); - if (lastUpdateTimeBuilder_ == null) { - lastUpdateTime_ = null; - } else { - lastUpdateTime_ = null; + lastUpdateTime_ = null; + if (lastUpdateTimeBuilder_ != null) { + lastUpdateTimeBuilder_.dispose(); lastUpdateTimeBuilder_ = null; } return this; @@ -6170,7 +6242,16 @@ public com.google.cloud.dialogflow.cx.v3.Experiment.Result build() { public com.google.cloud.dialogflow.cx.v3.Experiment.Result buildPartial() { com.google.cloud.dialogflow.cx.v3.Experiment.Result result = new com.google.cloud.dialogflow.cx.v3.Experiment.Result(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.Experiment.Result result) { if (versionMetricsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { versionMetrics_ = java.util.Collections.unmodifiableList(versionMetrics_); @@ -6180,13 +6261,14 @@ public com.google.cloud.dialogflow.cx.v3.Experiment.Result buildPartial() { } else { result.versionMetrics_ = versionMetricsBuilder_.build(); } - if (lastUpdateTimeBuilder_ == null) { - result.lastUpdateTime_ = lastUpdateTime_; - } else { - result.lastUpdateTime_ = lastUpdateTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Experiment.Result result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.lastUpdateTime_ = + lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -6312,7 +6394,7 @@ public Builder mergeFrom( { input.readMessage( getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -6768,7 +6850,7 @@ public Builder removeVersionMetrics(int index) { * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { - return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -6807,11 +6889,11 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } lastUpdateTime_ = value; - onChanged(); } else { lastUpdateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -6827,11 +6909,11 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); - onChanged(); } else { lastUpdateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -6846,19 +6928,18 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (lastUpdateTime_ != null) { - lastUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && lastUpdateTime_ != null + && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; } - onChanged(); } else { lastUpdateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -6872,14 +6953,13 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp last_update_time = 2; */ public Builder clearLastUpdateTime() { - if (lastUpdateTimeBuilder_ == null) { - lastUpdateTime_ = null; - onChanged(); - } else { - lastUpdateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + lastUpdateTime_ = null; + if (lastUpdateTimeBuilder_ != null) { + lastUpdateTimeBuilder_.dispose(); lastUpdateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -6893,7 +6973,7 @@ public Builder clearLastUpdateTime() { * .google.protobuf.Timestamp last_update_time = 2; */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } @@ -7008,7 +7088,9 @@ public com.google.cloud.dialogflow.cx.v3.Experiment.Result getDefaultInstanceFor } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -7061,13 +7143,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * *
-   * Required. The human-readable name of the experiment (unique in an environment). Limit
-   * of 64 characters.
+   * Required. The human-readable name of the experiment (unique in an
+   * environment). Limit of 64 characters.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -7090,8 +7174,8 @@ public java.lang.String getDisplayName() { * * *
-   * Required. The human-readable name of the experiment (unique in an environment). Limit
-   * of 64 characters.
+   * Required. The human-readable name of the experiment (unique in an
+   * environment). Limit of 64 characters.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -7112,7 +7196,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -7161,7 +7247,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int STATE_FIELD_NUMBER = 4; - private int state_; + private int state_ = 0; /** * * @@ -7196,9 +7282,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Experiment.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.Experiment.State result = - com.google.cloud.dialogflow.cx.v3.Experiment.State.valueOf(state_); + com.google.cloud.dialogflow.cx.v3.Experiment.State.forNumber(state_); return result == null ? com.google.cloud.dialogflow.cx.v3.Experiment.State.UNRECOGNIZED : result; @@ -7249,7 +7334,9 @@ public com.google.cloud.dialogflow.cx.v3.Experiment.Definition getDefinition() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Experiment.DefinitionOrBuilder getDefinitionOrBuilder() { - return getDefinition(); + return definition_ == null + ? com.google.cloud.dialogflow.cx.v3.Experiment.Definition.getDefaultInstance() + : definition_; } public static final int ROLLOUT_CONFIG_FIELD_NUMBER = 14; @@ -7309,7 +7396,9 @@ public com.google.cloud.dialogflow.cx.v3.RolloutConfig getRolloutConfig() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.RolloutConfigOrBuilder getRolloutConfigOrBuilder() { - return getRolloutConfig(); + return rolloutConfig_ == null + ? com.google.cloud.dialogflow.cx.v3.RolloutConfig.getDefaultInstance() + : rolloutConfig_; } public static final int ROLLOUT_STATE_FIELD_NUMBER = 15; @@ -7357,11 +7446,15 @@ public com.google.cloud.dialogflow.cx.v3.RolloutState getRolloutState() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.RolloutStateOrBuilder getRolloutStateOrBuilder() { - return getRolloutState(); + return rolloutState_ == null + ? com.google.cloud.dialogflow.cx.v3.RolloutState.getDefaultInstance() + : rolloutState_; } public static final int ROLLOUT_FAILURE_REASON_FIELD_NUMBER = 16; - private volatile java.lang.Object rolloutFailureReason_; + + @SuppressWarnings("serial") + private volatile java.lang.Object rolloutFailureReason_ = ""; /** * * @@ -7456,7 +7549,9 @@ public com.google.cloud.dialogflow.cx.v3.Experiment.Result getResult() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Experiment.ResultOrBuilder getResultOrBuilder() { - return getResult(); + return result_ == null + ? com.google.cloud.dialogflow.cx.v3.Experiment.Result.getDefaultInstance() + : result_; } public static final int CREATE_TIME_FIELD_NUMBER = 7; @@ -7502,7 +7597,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int START_TIME_FIELD_NUMBER = 8; @@ -7548,7 +7643,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 9; @@ -7594,7 +7689,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 10; @@ -7642,7 +7737,9 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return getLastUpdateTime(); + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } public static final int EXPERIMENT_LENGTH_FIELD_NUMBER = 11; @@ -7696,10 +7793,14 @@ public com.google.protobuf.Duration getExperimentLength() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getExperimentLengthOrBuilder() { - return getExperimentLength(); + return experimentLength_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : experimentLength_; } public static final int VARIANTS_HISTORY_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") private java.util.List variantsHistory_; /** * @@ -8142,68 +8243,55 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - state_ = 0; - - if (definitionBuilder_ == null) { - definition_ = null; - } else { - definition_ = null; + definition_ = null; + if (definitionBuilder_ != null) { + definitionBuilder_.dispose(); definitionBuilder_ = null; } - if (rolloutConfigBuilder_ == null) { - rolloutConfig_ = null; - } else { - rolloutConfig_ = null; + rolloutConfig_ = null; + if (rolloutConfigBuilder_ != null) { + rolloutConfigBuilder_.dispose(); rolloutConfigBuilder_ = null; } - if (rolloutStateBuilder_ == null) { - rolloutState_ = null; - } else { - rolloutState_ = null; + rolloutState_ = null; + if (rolloutStateBuilder_ != null) { + rolloutStateBuilder_.dispose(); rolloutStateBuilder_ = null; } rolloutFailureReason_ = ""; - - if (resultBuilder_ == null) { - result_ = null; - } else { - result_ = null; + result_ = null; + if (resultBuilder_ != null) { + resultBuilder_.dispose(); resultBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - if (lastUpdateTimeBuilder_ == null) { - lastUpdateTime_ = null; - } else { - lastUpdateTime_ = null; + lastUpdateTime_ = null; + if (lastUpdateTimeBuilder_ != null) { + lastUpdateTimeBuilder_.dispose(); lastUpdateTimeBuilder_ = null; } - if (experimentLengthBuilder_ == null) { - experimentLength_ = null; - } else { - experimentLength_ = null; + experimentLength_ = null; + if (experimentLengthBuilder_ != null) { + experimentLengthBuilder_.dispose(); experimentLengthBuilder_ = null; } if (variantsHistoryBuilder_ == null) { @@ -8212,7 +8300,7 @@ public Builder clear() { variantsHistory_ = null; variantsHistoryBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00004000); return this; } @@ -8240,68 +8328,74 @@ public com.google.cloud.dialogflow.cx.v3.Experiment build() { public com.google.cloud.dialogflow.cx.v3.Experiment buildPartial() { com.google.cloud.dialogflow.cx.v3.Experiment result = new com.google.cloud.dialogflow.cx.v3.Experiment(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; - result.state_ = state_; - if (definitionBuilder_ == null) { - result.definition_ = definition_; - } else { - result.definition_ = definitionBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - if (rolloutConfigBuilder_ == null) { - result.rolloutConfig_ = rolloutConfig_; + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.Experiment result) { + if (variantsHistoryBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0)) { + variantsHistory_ = java.util.Collections.unmodifiableList(variantsHistory_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.variantsHistory_ = variantsHistory_; } else { - result.rolloutConfig_ = rolloutConfigBuilder_.build(); + result.variantsHistory_ = variantsHistoryBuilder_.build(); } - if (rolloutStateBuilder_ == null) { - result.rolloutState_ = rolloutState_; - } else { - result.rolloutState_ = rolloutStateBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Experiment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - result.rolloutFailureReason_ = rolloutFailureReason_; - if (resultBuilder_ == null) { - result.result_ = result_; - } else { - result.result_ = resultBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.definition_ = definitionBuilder_ == null ? definition_ : definitionBuilder_.build(); } - if (lastUpdateTimeBuilder_ == null) { - result.lastUpdateTime_ = lastUpdateTime_; - } else { - result.lastUpdateTime_ = lastUpdateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.rolloutConfig_ = + rolloutConfigBuilder_ == null ? rolloutConfig_ : rolloutConfigBuilder_.build(); } - if (experimentLengthBuilder_ == null) { - result.experimentLength_ = experimentLength_; - } else { - result.experimentLength_ = experimentLengthBuilder_.build(); + if (((from_bitField0_ & 0x00000040) != 0)) { + result.rolloutState_ = + rolloutStateBuilder_ == null ? rolloutState_ : rolloutStateBuilder_.build(); } - if (variantsHistoryBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - variantsHistory_ = java.util.Collections.unmodifiableList(variantsHistory_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.variantsHistory_ = variantsHistory_; - } else { - result.variantsHistory_ = variantsHistoryBuilder_.build(); + if (((from_bitField0_ & 0x00000080) != 0)) { + result.rolloutFailureReason_ = rolloutFailureReason_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.lastUpdateTime_ = + lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.experimentLength_ = + experimentLengthBuilder_ == null ? experimentLength_ : experimentLengthBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -8351,14 +8445,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Experiment other) { if (other == com.google.cloud.dialogflow.cx.v3.Experiment.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (other.state_ != 0) { @@ -8375,6 +8472,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Experiment other) { } if (!other.getRolloutFailureReason().isEmpty()) { rolloutFailureReason_ = other.rolloutFailureReason_; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasResult()) { @@ -8399,7 +8497,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Experiment other) { if (!other.variantsHistory_.isEmpty()) { if (variantsHistory_.isEmpty()) { variantsHistory_ = other.variantsHistory_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00004000); } else { ensureVariantsHistoryIsMutable(); variantsHistory_.addAll(other.variantsHistory_); @@ -8412,7 +8510,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Experiment other) { variantsHistoryBuilder_.dispose(); variantsHistoryBuilder_ = null; variantsHistory_ = other.variantsHistory_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00004000); variantsHistoryBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVariantsHistoryFieldBuilder() @@ -8451,68 +8549,68 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: { state_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage(getDefinitionFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getResultFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 50 case 58: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 58 case 66: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 66 case 74: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000800; break; } // case 74 case 82: { input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00001000; break; } // case 82 case 90: { input.readMessage( getExperimentLengthFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00002000; break; } // case 90 case 98: @@ -8532,19 +8630,19 @@ public Builder mergeFrom( case 114: { input.readMessage(getRolloutConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 114 case 122: { input.readMessage(getRolloutStateFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 122 case 130: { rolloutFailureReason_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 130 default: @@ -8633,8 +8731,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -8652,8 +8750,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -8676,8 +8774,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -8687,8 +8785,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The human-readable name of the experiment (unique in an environment). Limit
-     * of 64 characters.
+     * Required. The human-readable name of the experiment (unique in an
+     * environment). Limit of 64 characters.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -8710,8 +8808,8 @@ public java.lang.String getDisplayName() { * * *
-     * Required. The human-readable name of the experiment (unique in an environment). Limit
-     * of 64 characters.
+     * Required. The human-readable name of the experiment (unique in an
+     * environment). Limit of 64 characters.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -8733,8 +8831,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * Required. The human-readable name of the experiment (unique in an environment). Limit
-     * of 64 characters.
+     * Required. The human-readable name of the experiment (unique in an
+     * environment). Limit of 64 characters.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -8746,8 +8844,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -8755,8 +8853,8 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * Required. The human-readable name of the experiment (unique in an environment). Limit
-     * of 64 characters.
+     * Required. The human-readable name of the experiment (unique in an
+     * environment). Limit of 64 characters.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -8764,8 +8862,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -8773,8 +8871,8 @@ public Builder clearDisplayName() { * * *
-     * Required. The human-readable name of the experiment (unique in an environment). Limit
-     * of 64 characters.
+     * Required. The human-readable name of the experiment (unique in an
+     * environment). Limit of 64 characters.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -8787,8 +8885,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -8854,8 +8952,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -8871,8 +8969,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -8893,8 +8991,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -8934,8 +9032,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -8955,9 +9053,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Experiment.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.Experiment.State result = - com.google.cloud.dialogflow.cx.v3.Experiment.State.valueOf(state_); + com.google.cloud.dialogflow.cx.v3.Experiment.State.forNumber(state_); return result == null ? com.google.cloud.dialogflow.cx.v3.Experiment.State.UNRECOGNIZED : result; @@ -8981,7 +9078,7 @@ public Builder setState(com.google.cloud.dialogflow.cx.v3.Experiment.State value if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; state_ = value.getNumber(); onChanged(); return this; @@ -9001,7 +9098,7 @@ public Builder setState(com.google.cloud.dialogflow.cx.v3.Experiment.State value * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000008); state_ = 0; onChanged(); return this; @@ -9025,7 +9122,7 @@ public Builder clearState() { * @return Whether the definition field is set. */ public boolean hasDefinition() { - return definitionBuilder_ != null || definition_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -9062,11 +9159,11 @@ public Builder setDefinition(com.google.cloud.dialogflow.cx.v3.Experiment.Defini throw new NullPointerException(); } definition_ = value; - onChanged(); } else { definitionBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -9082,11 +9179,11 @@ public Builder setDefinition( com.google.cloud.dialogflow.cx.v3.Experiment.Definition.Builder builderForValue) { if (definitionBuilder_ == null) { definition_ = builderForValue.build(); - onChanged(); } else { definitionBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -9100,19 +9197,19 @@ public Builder setDefinition( */ public Builder mergeDefinition(com.google.cloud.dialogflow.cx.v3.Experiment.Definition value) { if (definitionBuilder_ == null) { - if (definition_ != null) { - definition_ = - com.google.cloud.dialogflow.cx.v3.Experiment.Definition.newBuilder(definition_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && definition_ != null + && definition_ + != com.google.cloud.dialogflow.cx.v3.Experiment.Definition.getDefaultInstance()) { + getDefinitionBuilder().mergeFrom(value); } else { definition_ = value; } - onChanged(); } else { definitionBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -9125,14 +9222,13 @@ public Builder mergeDefinition(com.google.cloud.dialogflow.cx.v3.Experiment.Defi * .google.cloud.dialogflow.cx.v3.Experiment.Definition definition = 5; */ public Builder clearDefinition() { - if (definitionBuilder_ == null) { - definition_ = null; - onChanged(); - } else { - definition_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + definition_ = null; + if (definitionBuilder_ != null) { + definitionBuilder_.dispose(); definitionBuilder_ = null; } - + onChanged(); return this; } /** @@ -9145,7 +9241,7 @@ public Builder clearDefinition() { * .google.cloud.dialogflow.cx.v3.Experiment.Definition definition = 5; */ public com.google.cloud.dialogflow.cx.v3.Experiment.Definition.Builder getDefinitionBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getDefinitionFieldBuilder().getBuilder(); } @@ -9216,7 +9312,7 @@ public com.google.cloud.dialogflow.cx.v3.Experiment.Definition.Builder getDefini * @return Whether the rolloutConfig field is set. */ public boolean hasRolloutConfig() { - return rolloutConfigBuilder_ != null || rolloutConfig_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -9261,11 +9357,11 @@ public Builder setRolloutConfig(com.google.cloud.dialogflow.cx.v3.RolloutConfig throw new NullPointerException(); } rolloutConfig_ = value; - onChanged(); } else { rolloutConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -9285,11 +9381,11 @@ public Builder setRolloutConfig( com.google.cloud.dialogflow.cx.v3.RolloutConfig.Builder builderForValue) { if (rolloutConfigBuilder_ == null) { rolloutConfig_ = builderForValue.build(); - onChanged(); } else { rolloutConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -9307,19 +9403,19 @@ public Builder setRolloutConfig( */ public Builder mergeRolloutConfig(com.google.cloud.dialogflow.cx.v3.RolloutConfig value) { if (rolloutConfigBuilder_ == null) { - if (rolloutConfig_ != null) { - rolloutConfig_ = - com.google.cloud.dialogflow.cx.v3.RolloutConfig.newBuilder(rolloutConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && rolloutConfig_ != null + && rolloutConfig_ + != com.google.cloud.dialogflow.cx.v3.RolloutConfig.getDefaultInstance()) { + getRolloutConfigBuilder().mergeFrom(value); } else { rolloutConfig_ = value; } - onChanged(); } else { rolloutConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -9336,14 +9432,13 @@ public Builder mergeRolloutConfig(com.google.cloud.dialogflow.cx.v3.RolloutConfi * .google.cloud.dialogflow.cx.v3.RolloutConfig rollout_config = 14; */ public Builder clearRolloutConfig() { - if (rolloutConfigBuilder_ == null) { - rolloutConfig_ = null; - onChanged(); - } else { - rolloutConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + rolloutConfig_ = null; + if (rolloutConfigBuilder_ != null) { + rolloutConfigBuilder_.dispose(); rolloutConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -9360,7 +9455,7 @@ public Builder clearRolloutConfig() { * .google.cloud.dialogflow.cx.v3.RolloutConfig rollout_config = 14; */ public com.google.cloud.dialogflow.cx.v3.RolloutConfig.Builder getRolloutConfigBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getRolloutConfigFieldBuilder().getBuilder(); } @@ -9434,7 +9529,7 @@ public com.google.cloud.dialogflow.cx.v3.RolloutConfigOrBuilder getRolloutConfig * @return Whether the rolloutState field is set. */ public boolean hasRolloutState() { - return rolloutStateBuilder_ != null || rolloutState_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -9471,11 +9566,11 @@ public Builder setRolloutState(com.google.cloud.dialogflow.cx.v3.RolloutState va throw new NullPointerException(); } rolloutState_ = value; - onChanged(); } else { rolloutStateBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -9491,11 +9586,11 @@ public Builder setRolloutState( com.google.cloud.dialogflow.cx.v3.RolloutState.Builder builderForValue) { if (rolloutStateBuilder_ == null) { rolloutState_ = builderForValue.build(); - onChanged(); } else { rolloutStateBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -9509,19 +9604,19 @@ public Builder setRolloutState( */ public Builder mergeRolloutState(com.google.cloud.dialogflow.cx.v3.RolloutState value) { if (rolloutStateBuilder_ == null) { - if (rolloutState_ != null) { - rolloutState_ = - com.google.cloud.dialogflow.cx.v3.RolloutState.newBuilder(rolloutState_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && rolloutState_ != null + && rolloutState_ + != com.google.cloud.dialogflow.cx.v3.RolloutState.getDefaultInstance()) { + getRolloutStateBuilder().mergeFrom(value); } else { rolloutState_ = value; } - onChanged(); } else { rolloutStateBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -9534,14 +9629,13 @@ public Builder mergeRolloutState(com.google.cloud.dialogflow.cx.v3.RolloutState * .google.cloud.dialogflow.cx.v3.RolloutState rollout_state = 15; */ public Builder clearRolloutState() { - if (rolloutStateBuilder_ == null) { - rolloutState_ = null; - onChanged(); - } else { - rolloutState_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + rolloutState_ = null; + if (rolloutStateBuilder_ != null) { + rolloutStateBuilder_.dispose(); rolloutStateBuilder_ = null; } - + onChanged(); return this; } /** @@ -9554,7 +9648,7 @@ public Builder clearRolloutState() { * .google.cloud.dialogflow.cx.v3.RolloutState rollout_state = 15; */ public com.google.cloud.dialogflow.cx.v3.RolloutState.Builder getRolloutStateBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getRolloutStateFieldBuilder().getBuilder(); } @@ -9666,8 +9760,8 @@ public Builder setRolloutFailureReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - rolloutFailureReason_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -9684,8 +9778,8 @@ public Builder setRolloutFailureReason(java.lang.String value) { * @return This builder for chaining. */ public Builder clearRolloutFailureReason() { - rolloutFailureReason_ = getDefaultInstance().getRolloutFailureReason(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -9707,8 +9801,8 @@ public Builder setRolloutFailureReasonBytes(com.google.protobuf.ByteString value throw new NullPointerException(); } checkByteStringIsUtf8(value); - rolloutFailureReason_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -9731,7 +9825,7 @@ public Builder setRolloutFailureReasonBytes(com.google.protobuf.ByteString value * @return Whether the result field is set. */ public boolean hasResult() { - return resultBuilder_ != null || result_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -9768,11 +9862,11 @@ public Builder setResult(com.google.cloud.dialogflow.cx.v3.Experiment.Result val throw new NullPointerException(); } result_ = value; - onChanged(); } else { resultBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -9788,11 +9882,11 @@ public Builder setResult( com.google.cloud.dialogflow.cx.v3.Experiment.Result.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); - onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -9806,19 +9900,19 @@ public Builder setResult( */ public Builder mergeResult(com.google.cloud.dialogflow.cx.v3.Experiment.Result value) { if (resultBuilder_ == null) { - if (result_ != null) { - result_ = - com.google.cloud.dialogflow.cx.v3.Experiment.Result.newBuilder(result_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && result_ != null + && result_ + != com.google.cloud.dialogflow.cx.v3.Experiment.Result.getDefaultInstance()) { + getResultBuilder().mergeFrom(value); } else { result_ = value; } - onChanged(); } else { resultBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -9831,14 +9925,13 @@ public Builder mergeResult(com.google.cloud.dialogflow.cx.v3.Experiment.Result v * .google.cloud.dialogflow.cx.v3.Experiment.Result result = 6; */ public Builder clearResult() { - if (resultBuilder_ == null) { - result_ = null; - onChanged(); - } else { - result_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + result_ = null; + if (resultBuilder_ != null) { + resultBuilder_.dispose(); resultBuilder_ = null; } - + onChanged(); return this; } /** @@ -9851,7 +9944,7 @@ public Builder clearResult() { * .google.cloud.dialogflow.cx.v3.Experiment.Result result = 6; */ public com.google.cloud.dialogflow.cx.v3.Experiment.Result.Builder getResultBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getResultFieldBuilder().getBuilder(); } @@ -9917,7 +10010,7 @@ public com.google.cloud.dialogflow.cx.v3.Experiment.ResultOrBuilder getResultOrB * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -9954,11 +10047,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -9973,11 +10066,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -9991,17 +10084,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -10014,14 +10108,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp create_time = 7; */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -10034,7 +10127,7 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 7; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -10100,7 +10193,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -10135,11 +10228,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -10154,11 +10247,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -10172,17 +10265,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -10195,14 +10289,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp start_time = 8; */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -10215,7 +10308,7 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 8; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -10279,7 +10372,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -10314,11 +10407,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -10333,11 +10426,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -10351,17 +10444,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000800) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -10374,14 +10468,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp end_time = 9; */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000800); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -10394,7 +10487,7 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 9; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000800; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -10458,7 +10551,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { - return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null; + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -10495,11 +10588,11 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } lastUpdateTime_ = value; - onChanged(); } else { lastUpdateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -10514,11 +10607,11 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); - onChanged(); } else { lastUpdateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -10532,19 +10625,18 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (lastUpdateTime_ != null) { - lastUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00001000) != 0) + && lastUpdateTime_ != null + && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; } - onChanged(); } else { lastUpdateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -10557,14 +10649,13 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp last_update_time = 10; */ public Builder clearLastUpdateTime() { - if (lastUpdateTimeBuilder_ == null) { - lastUpdateTime_ = null; - onChanged(); - } else { - lastUpdateTime_ = null; + bitField0_ = (bitField0_ & ~0x00001000); + lastUpdateTime_ = null; + if (lastUpdateTimeBuilder_ != null) { + lastUpdateTimeBuilder_.dispose(); lastUpdateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -10577,7 +10668,7 @@ public Builder clearLastUpdateTime() { * .google.protobuf.Timestamp last_update_time = 10; */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { - + bitField0_ |= 0x00001000; onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } @@ -10645,7 +10736,7 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { * @return Whether the experimentLength field is set. */ public boolean hasExperimentLength() { - return experimentLengthBuilder_ != null || experimentLength_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -10686,11 +10777,11 @@ public Builder setExperimentLength(com.google.protobuf.Duration value) { throw new NullPointerException(); } experimentLength_ = value; - onChanged(); } else { experimentLengthBuilder_.setMessage(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -10707,11 +10798,11 @@ public Builder setExperimentLength(com.google.protobuf.Duration value) { public Builder setExperimentLength(com.google.protobuf.Duration.Builder builderForValue) { if (experimentLengthBuilder_ == null) { experimentLength_ = builderForValue.build(); - onChanged(); } else { experimentLengthBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -10727,19 +10818,18 @@ public Builder setExperimentLength(com.google.protobuf.Duration.Builder builderF */ public Builder mergeExperimentLength(com.google.protobuf.Duration value) { if (experimentLengthBuilder_ == null) { - if (experimentLength_ != null) { - experimentLength_ = - com.google.protobuf.Duration.newBuilder(experimentLength_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00002000) != 0) + && experimentLength_ != null + && experimentLength_ != com.google.protobuf.Duration.getDefaultInstance()) { + getExperimentLengthBuilder().mergeFrom(value); } else { experimentLength_ = value; } - onChanged(); } else { experimentLengthBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -10754,14 +10844,13 @@ public Builder mergeExperimentLength(com.google.protobuf.Duration value) { * .google.protobuf.Duration experiment_length = 11; */ public Builder clearExperimentLength() { - if (experimentLengthBuilder_ == null) { - experimentLength_ = null; - onChanged(); - } else { - experimentLength_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + experimentLength_ = null; + if (experimentLengthBuilder_ != null) { + experimentLengthBuilder_.dispose(); experimentLengthBuilder_ = null; } - + onChanged(); return this; } /** @@ -10776,7 +10865,7 @@ public Builder clearExperimentLength() { * .google.protobuf.Duration experiment_length = 11; */ public com.google.protobuf.Duration.Builder getExperimentLengthBuilder() { - + bitField0_ |= 0x00002000; onChanged(); return getExperimentLengthFieldBuilder().getBuilder(); } @@ -10832,11 +10921,11 @@ public com.google.protobuf.DurationOrBuilder getExperimentLengthOrBuilder() { java.util.Collections.emptyList(); private void ensureVariantsHistoryIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00004000) != 0)) { variantsHistory_ = new java.util.ArrayList( variantsHistory_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00004000; } } @@ -11055,7 +11144,7 @@ public Builder addAllVariantsHistory( public Builder clearVariantsHistory() { if (variantsHistoryBuilder_ == null) { variantsHistory_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); } else { variantsHistoryBuilder_.clear(); @@ -11182,7 +11271,7 @@ public com.google.cloud.dialogflow.cx.v3.VariantsHistory.Builder addVariantsHist com.google.cloud.dialogflow.cx.v3.VariantsHistory.Builder, com.google.cloud.dialogflow.cx.v3.VariantsHistoryOrBuilder>( variantsHistory_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); variantsHistory_ = null; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentOrBuilder.java index 885fe57c9000..c90319e7c8c0 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentOrBuilder.java @@ -56,8 +56,8 @@ public interface ExperimentOrBuilder * * *
-   * Required. The human-readable name of the experiment (unique in an environment). Limit
-   * of 64 characters.
+   * Required. The human-readable name of the experiment (unique in an
+   * environment). Limit of 64 characters.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -69,8 +69,8 @@ public interface ExperimentOrBuilder * * *
-   * Required. The human-readable name of the experiment (unique in an environment). Limit
-   * of 64 characters.
+   * Required. The human-readable name of the experiment (unique in an
+   * environment). Limit of 64 characters.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentProto.java index 8dfc3e28e4a3..08cf5992cb27 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentProto.java @@ -259,12 +259,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nts/*}:stop:\001*\332A\004name\032x\312A\031dialogflow.goo" + "gleapis.com\322AYhttps://www.googleapis.com" + "/auth/cloud-platform,https://www.googlea" - + "pis.com/auth/dialogflowB\303\001\n!com.google.c" + + "pis.com/auth/dialogflowB\265\001\n!com.google.c" + "loud.dialogflow.cx.v3B\017ExperimentProtoP\001" - + "Z?google.golang.org/genproto/googleapis/" - + "cloud/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Goog" - + "le.Cloud.Dialogflow.Cx.V3\352\002!Google::Clou" - + "d::Dialogflow::CX::V3b\006proto3" + + "Z1cloud.google.com/go/dialogflow/cx/apiv" + + "3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialo" + + "gflow.Cx.V3\352\002!Google::Cloud::Dialogflow:" + + ":CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentRequest.java index 8026a56bbf42..225931659e6b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent].
+ * The request message for
+ * [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ExportAgentRequest} @@ -208,7 +209,9 @@ private DataFormat(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -263,15 +266,17 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int AGENT_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object agentUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentUri_ = ""; /** * * *
-   * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
-   * export the agent to. The format of this URI must be
-   * `gs://<bucket-name>/<object-name>`.
-   * If left unspecified, the serialized agent is returned inline.
+   * Optional. The [Google Cloud
+   * Storage](https://cloud.google.com/storage/docs/) URI to export the agent
+   * to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
+   * left unspecified, the serialized agent is returned inline.
    * Dialogflow performs a write operation for the Cloud Storage object
    * on the caller's behalf, so your request authentication must
    * have write permissions for the object. For more information, see
@@ -299,10 +304,10 @@ public java.lang.String getAgentUri() {
    *
    *
    * 
-   * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
-   * export the agent to. The format of this URI must be
-   * `gs://<bucket-name>/<object-name>`.
-   * If left unspecified, the serialized agent is returned inline.
+   * Optional. The [Google Cloud
+   * Storage](https://cloud.google.com/storage/docs/) URI to export the agent
+   * to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
+   * left unspecified, the serialized agent is returned inline.
    * Dialogflow performs a write operation for the Cloud Storage object
    * on the caller's behalf, so your request authentication must
    * have write permissions for the object. For more information, see
@@ -328,12 +333,13 @@ public com.google.protobuf.ByteString getAgentUriBytes() {
   }
 
   public static final int DATA_FORMAT_FIELD_NUMBER = 3;
-  private int dataFormat_;
+  private int dataFormat_ = 0;
   /**
    *
    *
    * 
-   * Optional. The data format of the exported agent. If not specified, `BLOB` is assumed.
+   * Optional. The data format of the exported agent. If not specified, `BLOB`
+   * is assumed.
    * 
* * @@ -350,7 +356,8 @@ public int getDataFormatValue() { * * *
-   * Optional. The data format of the exported agent. If not specified, `BLOB` is assumed.
+   * Optional. The data format of the exported agent. If not specified, `BLOB`
+   * is assumed.
    * 
* * @@ -361,16 +368,17 @@ public int getDataFormatValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormat getDataFormat() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormat result = - com.google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormat.valueOf(dataFormat_); + com.google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormat.forNumber(dataFormat_); return result == null ? com.google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormat.UNRECOGNIZED : result; } public static final int ENVIRONMENT_FIELD_NUMBER = 5; - private volatile java.lang.Object environment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object environment_ = ""; /** * * @@ -620,7 +628,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent].
+   * The request message for
+   * [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ExportAgentRequest} @@ -654,14 +663,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - agentUri_ = ""; - dataFormat_ = 0; - environment_ = ""; - return this; } @@ -689,14 +695,29 @@ public com.google.cloud.dialogflow.cx.v3.ExportAgentRequest build() { public com.google.cloud.dialogflow.cx.v3.ExportAgentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ExportAgentRequest result = new com.google.cloud.dialogflow.cx.v3.ExportAgentRequest(this); - result.name_ = name_; - result.agentUri_ = agentUri_; - result.dataFormat_ = dataFormat_; - result.environment_ = environment_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ExportAgentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.agentUri_ = agentUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dataFormat_ = dataFormat_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.environment_ = environment_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -745,10 +766,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ExportAgentRequest ot return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getAgentUri().isEmpty()) { agentUri_ = other.agentUri_; + bitField0_ |= 0x00000002; onChanged(); } if (other.dataFormat_ != 0) { @@ -756,6 +779,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ExportAgentRequest ot } if (!other.getEnvironment().isEmpty()) { environment_ = other.environment_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -787,25 +811,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { agentUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { dataFormat_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 24 case 42: { environment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 42 default: @@ -825,6 +849,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -895,8 +921,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -915,8 +941,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -940,8 +966,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -951,10 +977,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
-     * export the agent to. The format of this URI must be
-     * `gs://<bucket-name>/<object-name>`.
-     * If left unspecified, the serialized agent is returned inline.
+     * Optional. The [Google Cloud
+     * Storage](https://cloud.google.com/storage/docs/) URI to export the agent
+     * to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
+     * left unspecified, the serialized agent is returned inline.
      * Dialogflow performs a write operation for the Cloud Storage object
      * on the caller's behalf, so your request authentication must
      * have write permissions for the object. For more information, see
@@ -981,10 +1007,10 @@ public java.lang.String getAgentUri() {
      *
      *
      * 
-     * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
-     * export the agent to. The format of this URI must be
-     * `gs://<bucket-name>/<object-name>`.
-     * If left unspecified, the serialized agent is returned inline.
+     * Optional. The [Google Cloud
+     * Storage](https://cloud.google.com/storage/docs/) URI to export the agent
+     * to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
+     * left unspecified, the serialized agent is returned inline.
      * Dialogflow performs a write operation for the Cloud Storage object
      * on the caller's behalf, so your request authentication must
      * have write permissions for the object. For more information, see
@@ -1011,10 +1037,10 @@ public com.google.protobuf.ByteString getAgentUriBytes() {
      *
      *
      * 
-     * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
-     * export the agent to. The format of this URI must be
-     * `gs://<bucket-name>/<object-name>`.
-     * If left unspecified, the serialized agent is returned inline.
+     * Optional. The [Google Cloud
+     * Storage](https://cloud.google.com/storage/docs/) URI to export the agent
+     * to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
+     * left unspecified, the serialized agent is returned inline.
      * Dialogflow performs a write operation for the Cloud Storage object
      * on the caller's behalf, so your request authentication must
      * have write permissions for the object. For more information, see
@@ -1031,8 +1057,8 @@ public Builder setAgentUri(java.lang.String value) {
       if (value == null) {
         throw new NullPointerException();
       }
-
       agentUri_ = value;
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -1040,10 +1066,10 @@ public Builder setAgentUri(java.lang.String value) {
      *
      *
      * 
-     * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
-     * export the agent to. The format of this URI must be
-     * `gs://<bucket-name>/<object-name>`.
-     * If left unspecified, the serialized agent is returned inline.
+     * Optional. The [Google Cloud
+     * Storage](https://cloud.google.com/storage/docs/) URI to export the agent
+     * to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
+     * left unspecified, the serialized agent is returned inline.
      * Dialogflow performs a write operation for the Cloud Storage object
      * on the caller's behalf, so your request authentication must
      * have write permissions for the object. For more information, see
@@ -1056,8 +1082,8 @@ public Builder setAgentUri(java.lang.String value) {
      * @return This builder for chaining.
      */
     public Builder clearAgentUri() {
-
       agentUri_ = getDefaultInstance().getAgentUri();
+      bitField0_ = (bitField0_ & ~0x00000002);
       onChanged();
       return this;
     }
@@ -1065,10 +1091,10 @@ public Builder clearAgentUri() {
      *
      *
      * 
-     * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
-     * export the agent to. The format of this URI must be
-     * `gs://<bucket-name>/<object-name>`.
-     * If left unspecified, the serialized agent is returned inline.
+     * Optional. The [Google Cloud
+     * Storage](https://cloud.google.com/storage/docs/) URI to export the agent
+     * to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
+     * left unspecified, the serialized agent is returned inline.
      * Dialogflow performs a write operation for the Cloud Storage object
      * on the caller's behalf, so your request authentication must
      * have write permissions for the object. For more information, see
@@ -1086,8 +1112,8 @@ public Builder setAgentUriBytes(com.google.protobuf.ByteString value) {
         throw new NullPointerException();
       }
       checkByteStringIsUtf8(value);
-
       agentUri_ = value;
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -1097,7 +1123,8 @@ public Builder setAgentUriBytes(com.google.protobuf.ByteString value) {
      *
      *
      * 
-     * Optional. The data format of the exported agent. If not specified, `BLOB` is assumed.
+     * Optional. The data format of the exported agent. If not specified, `BLOB`
+     * is assumed.
      * 
* * @@ -1114,7 +1141,8 @@ public int getDataFormatValue() { * * *
-     * Optional. The data format of the exported agent. If not specified, `BLOB` is assumed.
+     * Optional. The data format of the exported agent. If not specified, `BLOB`
+     * is assumed.
      * 
* * @@ -1125,8 +1153,8 @@ public int getDataFormatValue() { * @return This builder for chaining. */ public Builder setDataFormatValue(int value) { - dataFormat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1134,7 +1162,8 @@ public Builder setDataFormatValue(int value) { * * *
-     * Optional. The data format of the exported agent. If not specified, `BLOB` is assumed.
+     * Optional. The data format of the exported agent. If not specified, `BLOB`
+     * is assumed.
      * 
* * @@ -1145,9 +1174,8 @@ public Builder setDataFormatValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormat getDataFormat() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormat result = - com.google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormat.valueOf(dataFormat_); + com.google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormat.forNumber(dataFormat_); return result == null ? com.google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormat.UNRECOGNIZED : result; @@ -1156,7 +1184,8 @@ public com.google.cloud.dialogflow.cx.v3.ExportAgentRequest.DataFormat getDataFo * * *
-     * Optional. The data format of the exported agent. If not specified, `BLOB` is assumed.
+     * Optional. The data format of the exported agent. If not specified, `BLOB`
+     * is assumed.
      * 
* * @@ -1171,7 +1200,7 @@ public Builder setDataFormat( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; dataFormat_ = value.getNumber(); onChanged(); return this; @@ -1180,7 +1209,8 @@ public Builder setDataFormat( * * *
-     * Optional. The data format of the exported agent. If not specified, `BLOB` is assumed.
+     * Optional. The data format of the exported agent. If not specified, `BLOB`
+     * is assumed.
      * 
* * @@ -1190,7 +1220,7 @@ public Builder setDataFormat( * @return This builder for chaining. */ public Builder clearDataFormat() { - + bitField0_ = (bitField0_ & ~0x00000004); dataFormat_ = 0; onChanged(); return this; @@ -1269,8 +1299,8 @@ public Builder setEnvironment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - environment_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1290,8 +1320,8 @@ public Builder setEnvironment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEnvironment() { - environment_ = getDefaultInstance().getEnvironment(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1316,8 +1346,8 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - environment_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentRequestOrBuilder.java index 1ee4e85cd5ed..566c334c8b04 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentRequestOrBuilder.java @@ -58,10 +58,10 @@ public interface ExportAgentRequestOrBuilder * * *
-   * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
-   * export the agent to. The format of this URI must be
-   * `gs://<bucket-name>/<object-name>`.
-   * If left unspecified, the serialized agent is returned inline.
+   * Optional. The [Google Cloud
+   * Storage](https://cloud.google.com/storage/docs/) URI to export the agent
+   * to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
+   * left unspecified, the serialized agent is returned inline.
    * Dialogflow performs a write operation for the Cloud Storage object
    * on the caller's behalf, so your request authentication must
    * have write permissions for the object. For more information, see
@@ -78,10 +78,10 @@ public interface ExportAgentRequestOrBuilder
    *
    *
    * 
-   * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
-   * export the agent to. The format of this URI must be
-   * `gs://<bucket-name>/<object-name>`.
-   * If left unspecified, the serialized agent is returned inline.
+   * Optional. The [Google Cloud
+   * Storage](https://cloud.google.com/storage/docs/) URI to export the agent
+   * to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
+   * left unspecified, the serialized agent is returned inline.
    * Dialogflow performs a write operation for the Cloud Storage object
    * on the caller's behalf, so your request authentication must
    * have write permissions for the object. For more information, see
@@ -99,7 +99,8 @@ public interface ExportAgentRequestOrBuilder
    *
    *
    * 
-   * Optional. The data format of the exported agent. If not specified, `BLOB` is assumed.
+   * Optional. The data format of the exported agent. If not specified, `BLOB`
+   * is assumed.
    * 
* * @@ -113,7 +114,8 @@ public interface ExportAgentRequestOrBuilder * * *
-   * Optional. The data format of the exported agent. If not specified, `BLOB` is assumed.
+   * Optional. The data format of the exported agent. If not specified, `BLOB`
+   * is assumed.
    * 
* * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentResponse.java index 5ce63258b44d..41bef2d282c8 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent].
+ * The response message for
+ * [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ExportAgentResponse} @@ -118,7 +119,8 @@ public AgentCase getAgentCase() { * *
    * The URI to a file containing the exported agent. This field is populated
-   * only if `agent_uri` is specified in [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
+   * only if `agent_uri` is specified in
+   * [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
    * 
* * string agent_uri = 1; @@ -133,7 +135,8 @@ public boolean hasAgentUri() { * *
    * The URI to a file containing the exported agent. This field is populated
-   * only if `agent_uri` is specified in [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
+   * only if `agent_uri` is specified in
+   * [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
    * 
* * string agent_uri = 1; @@ -161,7 +164,8 @@ 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][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
+   * only if `agent_uri` is specified in
+   * [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
    * 
* * string agent_uri = 1; @@ -412,7 +416,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent].
+   * The response message for
+   * [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ExportAgentResponse} @@ -446,6 +451,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; agentCase_ = 0; agent_ = null; return this; @@ -475,17 +481,23 @@ public com.google.cloud.dialogflow.cx.v3.ExportAgentResponse build() { public com.google.cloud.dialogflow.cx.v3.ExportAgentResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ExportAgentResponse result = new com.google.cloud.dialogflow.cx.v3.ExportAgentResponse(this); - if (agentCase_ == 1) { - result.agent_ = agent_; - } - if (agentCase_ == 2) { - result.agent_ = agent_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.agentCase_ = agentCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ExportAgentResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.ExportAgentResponse result) { + result.agentCase_ = agentCase_; + result.agent_ = this.agent_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -620,12 +632,15 @@ public Builder clearAgent() { return this; } + private int bitField0_; + /** * * *
      * The URI to a file containing the exported agent. This field is populated
-     * only if `agent_uri` is specified in [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
+     * only if `agent_uri` is specified in
+     * [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
      * 
* * string agent_uri = 1; @@ -641,7 +656,8 @@ public boolean hasAgentUri() { * *
      * The URI to a file containing the exported agent. This field is populated
-     * only if `agent_uri` is specified in [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
+     * only if `agent_uri` is specified in
+     * [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
      * 
* * string agent_uri = 1; @@ -670,7 +686,8 @@ 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][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
+     * only if `agent_uri` is specified in
+     * [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
      * 
* * string agent_uri = 1; @@ -699,7 +716,8 @@ 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][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
+     * only if `agent_uri` is specified in
+     * [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
      * 
* * string agent_uri = 1; @@ -721,7 +739,8 @@ public Builder setAgentUri(java.lang.String value) { * *
      * The URI to a file containing the exported agent. This field is populated
-     * only if `agent_uri` is specified in [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
+     * only if `agent_uri` is specified in
+     * [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
      * 
* * string agent_uri = 1; @@ -741,7 +760,8 @@ public Builder clearAgentUri() { * *
      * The URI to a file containing the exported agent. This field is populated
-     * only if `agent_uri` is specified in [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
+     * only if `agent_uri` is specified in
+     * [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
      * 
* * string agent_uri = 1; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentResponseOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentResponseOrBuilder.java index 68307c3313de..3c71fada4bc3 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentResponseOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportAgentResponseOrBuilder.java @@ -28,7 +28,8 @@ public interface ExportAgentResponseOrBuilder * *
    * The URI to a file containing the exported agent. This field is populated
-   * only if `agent_uri` is specified in [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
+   * only if `agent_uri` is specified in
+   * [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
    * 
* * string agent_uri = 1; @@ -41,7 +42,8 @@ public interface ExportAgentResponseOrBuilder * *
    * The URI to a file containing the exported agent. This field is populated
-   * only if `agent_uri` is specified in [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
+   * only if `agent_uri` is specified in
+   * [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
    * 
* * string agent_uri = 1; @@ -54,7 +56,8 @@ public interface ExportAgentResponseOrBuilder * *
    * The URI to a file containing the exported agent. This field is populated
-   * only if `agent_uri` is specified in [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
+   * only if `agent_uri` is specified in
+   * [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest].
    * 
* * string agent_uri = 1; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportFlowRequest.java index 9a3d3d5d2b18..14cb63038c9c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportFlowRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportFlowRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Flows.ExportFlow][google.cloud.dialogflow.cx.v3.Flows.ExportFlow].
+ * The request message for
+ * [Flows.ExportFlow][google.cloud.dialogflow.cx.v3.Flows.ExportFlow].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ExportFlowRequest} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,15 +129,17 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FLOW_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object flowUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object flowUri_ = ""; /** * * *
-   * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
-   * export the flow to. The format of this URI must be
-   * `gs://<bucket-name>/<object-name>`.
-   * If left unspecified, the serialized flow is returned inline.
+   * Optional. The [Google Cloud
+   * Storage](https://cloud.google.com/storage/docs/) URI to export the flow to.
+   * The format of this URI must be `gs://<bucket-name>/<object-name>`. If left
+   * unspecified, the serialized flow is returned inline.
    * Dialogflow performs a write operation for the Cloud Storage object
    * on the caller's behalf, so your request authentication must
    * have write permissions for the object. For more information, see
@@ -162,10 +167,10 @@ public java.lang.String getFlowUri() {
    *
    *
    * 
-   * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
-   * export the flow to. The format of this URI must be
-   * `gs://<bucket-name>/<object-name>`.
-   * If left unspecified, the serialized flow is returned inline.
+   * Optional. The [Google Cloud
+   * Storage](https://cloud.google.com/storage/docs/) URI to export the flow to.
+   * The format of this URI must be `gs://<bucket-name>/<object-name>`. If left
+   * unspecified, the serialized flow is returned inline.
    * Dialogflow performs a write operation for the Cloud Storage object
    * on the caller's behalf, so your request authentication must
    * have write permissions for the object. For more information, see
@@ -191,7 +196,7 @@ public com.google.protobuf.ByteString getFlowUriBytes() {
   }
 
   public static final int INCLUDE_REFERENCED_FLOWS_FIELD_NUMBER = 4;
-  private boolean includeReferencedFlows_;
+  private boolean includeReferencedFlows_ = false;
   /**
    *
    *
@@ -389,7 +394,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    *
    * 
-   * The request message for [Flows.ExportFlow][google.cloud.dialogflow.cx.v3.Flows.ExportFlow].
+   * The request message for
+   * [Flows.ExportFlow][google.cloud.dialogflow.cx.v3.Flows.ExportFlow].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ExportFlowRequest} @@ -423,12 +429,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - flowUri_ = ""; - includeReferencedFlows_ = false; - return this; } @@ -456,13 +460,26 @@ public com.google.cloud.dialogflow.cx.v3.ExportFlowRequest build() { public com.google.cloud.dialogflow.cx.v3.ExportFlowRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ExportFlowRequest result = new com.google.cloud.dialogflow.cx.v3.ExportFlowRequest(this); - result.name_ = name_; - result.flowUri_ = flowUri_; - result.includeReferencedFlows_ = includeReferencedFlows_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ExportFlowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.flowUri_ = flowUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.includeReferencedFlows_ = includeReferencedFlows_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -511,10 +528,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ExportFlowRequest oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFlowUri().isEmpty()) { flowUri_ = other.flowUri_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getIncludeReferencedFlows() != false) { @@ -549,19 +568,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { flowUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 32: { includeReferencedFlows_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 32 default: @@ -581,6 +600,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -654,8 +675,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -675,8 +696,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -701,8 +722,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -712,10 +733,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
-     * export the flow to. The format of this URI must be
-     * `gs://<bucket-name>/<object-name>`.
-     * If left unspecified, the serialized flow is returned inline.
+     * Optional. The [Google Cloud
+     * Storage](https://cloud.google.com/storage/docs/) URI to export the flow to.
+     * The format of this URI must be `gs://<bucket-name>/<object-name>`. If left
+     * unspecified, the serialized flow is returned inline.
      * Dialogflow performs a write operation for the Cloud Storage object
      * on the caller's behalf, so your request authentication must
      * have write permissions for the object. For more information, see
@@ -742,10 +763,10 @@ public java.lang.String getFlowUri() {
      *
      *
      * 
-     * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
-     * export the flow to. The format of this URI must be
-     * `gs://<bucket-name>/<object-name>`.
-     * If left unspecified, the serialized flow is returned inline.
+     * Optional. The [Google Cloud
+     * Storage](https://cloud.google.com/storage/docs/) URI to export the flow to.
+     * The format of this URI must be `gs://<bucket-name>/<object-name>`. If left
+     * unspecified, the serialized flow is returned inline.
      * Dialogflow performs a write operation for the Cloud Storage object
      * on the caller's behalf, so your request authentication must
      * have write permissions for the object. For more information, see
@@ -772,10 +793,10 @@ public com.google.protobuf.ByteString getFlowUriBytes() {
      *
      *
      * 
-     * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
-     * export the flow to. The format of this URI must be
-     * `gs://<bucket-name>/<object-name>`.
-     * If left unspecified, the serialized flow is returned inline.
+     * Optional. The [Google Cloud
+     * Storage](https://cloud.google.com/storage/docs/) URI to export the flow to.
+     * The format of this URI must be `gs://<bucket-name>/<object-name>`. If left
+     * unspecified, the serialized flow is returned inline.
      * Dialogflow performs a write operation for the Cloud Storage object
      * on the caller's behalf, so your request authentication must
      * have write permissions for the object. For more information, see
@@ -792,8 +813,8 @@ public Builder setFlowUri(java.lang.String value) {
       if (value == null) {
         throw new NullPointerException();
       }
-
       flowUri_ = value;
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -801,10 +822,10 @@ public Builder setFlowUri(java.lang.String value) {
      *
      *
      * 
-     * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
-     * export the flow to. The format of this URI must be
-     * `gs://<bucket-name>/<object-name>`.
-     * If left unspecified, the serialized flow is returned inline.
+     * Optional. The [Google Cloud
+     * Storage](https://cloud.google.com/storage/docs/) URI to export the flow to.
+     * The format of this URI must be `gs://<bucket-name>/<object-name>`. If left
+     * unspecified, the serialized flow is returned inline.
      * Dialogflow performs a write operation for the Cloud Storage object
      * on the caller's behalf, so your request authentication must
      * have write permissions for the object. For more information, see
@@ -817,8 +838,8 @@ public Builder setFlowUri(java.lang.String value) {
      * @return This builder for chaining.
      */
     public Builder clearFlowUri() {
-
       flowUri_ = getDefaultInstance().getFlowUri();
+      bitField0_ = (bitField0_ & ~0x00000002);
       onChanged();
       return this;
     }
@@ -826,10 +847,10 @@ public Builder clearFlowUri() {
      *
      *
      * 
-     * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
-     * export the flow to. The format of this URI must be
-     * `gs://<bucket-name>/<object-name>`.
-     * If left unspecified, the serialized flow is returned inline.
+     * Optional. The [Google Cloud
+     * Storage](https://cloud.google.com/storage/docs/) URI to export the flow to.
+     * The format of this URI must be `gs://<bucket-name>/<object-name>`. If left
+     * unspecified, the serialized flow is returned inline.
      * Dialogflow performs a write operation for the Cloud Storage object
      * on the caller's behalf, so your request authentication must
      * have write permissions for the object. For more information, see
@@ -847,8 +868,8 @@ public Builder setFlowUriBytes(com.google.protobuf.ByteString value) {
         throw new NullPointerException();
       }
       checkByteStringIsUtf8(value);
-
       flowUri_ = value;
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -884,6 +905,7 @@ public boolean getIncludeReferencedFlows() {
     public Builder setIncludeReferencedFlows(boolean value) {
 
       includeReferencedFlows_ = value;
+      bitField0_ |= 0x00000004;
       onChanged();
       return this;
     }
@@ -899,7 +921,7 @@ public Builder setIncludeReferencedFlows(boolean value) {
      * @return This builder for chaining.
      */
     public Builder clearIncludeReferencedFlows() {
-
+      bitField0_ = (bitField0_ & ~0x00000004);
       includeReferencedFlows_ = false;
       onChanged();
       return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportFlowRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportFlowRequestOrBuilder.java
index d00bc8b0d31c..36e28073b01e 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportFlowRequestOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportFlowRequestOrBuilder.java
@@ -60,10 +60,10 @@ public interface ExportFlowRequestOrBuilder
    *
    *
    * 
-   * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
-   * export the flow to. The format of this URI must be
-   * `gs://<bucket-name>/<object-name>`.
-   * If left unspecified, the serialized flow is returned inline.
+   * Optional. The [Google Cloud
+   * Storage](https://cloud.google.com/storage/docs/) URI to export the flow to.
+   * The format of this URI must be `gs://<bucket-name>/<object-name>`. If left
+   * unspecified, the serialized flow is returned inline.
    * Dialogflow performs a write operation for the Cloud Storage object
    * on the caller's behalf, so your request authentication must
    * have write permissions for the object. For more information, see
@@ -80,10 +80,10 @@ public interface ExportFlowRequestOrBuilder
    *
    *
    * 
-   * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
-   * export the flow to. The format of this URI must be
-   * `gs://<bucket-name>/<object-name>`.
-   * If left unspecified, the serialized flow is returned inline.
+   * Optional. The [Google Cloud
+   * Storage](https://cloud.google.com/storage/docs/) URI to export the flow to.
+   * The format of this URI must be `gs://<bucket-name>/<object-name>`. If left
+   * unspecified, the serialized flow is returned inline.
    * Dialogflow performs a write operation for the Cloud Storage object
    * on the caller's behalf, so your request authentication must
    * have write permissions for the object. For more information, see
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportFlowResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportFlowResponse.java
index 2e27680c5499..769173ceb89a 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportFlowResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportFlowResponse.java
@@ -22,7 +22,8 @@
  *
  *
  * 
- * The response message for [Flows.ExportFlow][google.cloud.dialogflow.cx.v3.Flows.ExportFlow].
+ * The response message for
+ * [Flows.ExportFlow][google.cloud.dialogflow.cx.v3.Flows.ExportFlow].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ExportFlowResponse} @@ -118,7 +119,8 @@ public FlowCase getFlowCase() { * *
    * The URI to a file containing the exported flow. This field is populated
-   * only if `flow_uri` is specified in [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
+   * only if `flow_uri` is specified in
+   * [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
    * 
* * string flow_uri = 1; @@ -133,7 +135,8 @@ public boolean hasFlowUri() { * *
    * The URI to a file containing the exported flow. This field is populated
-   * only if `flow_uri` is specified in [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
+   * only if `flow_uri` is specified in
+   * [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
    * 
* * string flow_uri = 1; @@ -161,7 +164,8 @@ public java.lang.String getFlowUri() { * *
    * The URI to a file containing the exported flow. This field is populated
-   * only if `flow_uri` is specified in [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
+   * only if `flow_uri` is specified in
+   * [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
    * 
* * string flow_uri = 1; @@ -411,7 +415,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Flows.ExportFlow][google.cloud.dialogflow.cx.v3.Flows.ExportFlow].
+   * The response message for
+   * [Flows.ExportFlow][google.cloud.dialogflow.cx.v3.Flows.ExportFlow].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ExportFlowResponse} @@ -445,6 +450,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; flowCase_ = 0; flow_ = null; return this; @@ -474,17 +480,23 @@ public com.google.cloud.dialogflow.cx.v3.ExportFlowResponse build() { public com.google.cloud.dialogflow.cx.v3.ExportFlowResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ExportFlowResponse result = new com.google.cloud.dialogflow.cx.v3.ExportFlowResponse(this); - if (flowCase_ == 1) { - result.flow_ = flow_; - } - if (flowCase_ == 2) { - result.flow_ = flow_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.flowCase_ = flowCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ExportFlowResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.ExportFlowResponse result) { + result.flowCase_ = flowCase_; + result.flow_ = this.flow_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -619,12 +631,15 @@ public Builder clearFlow() { return this; } + private int bitField0_; + /** * * *
      * The URI to a file containing the exported flow. This field is populated
-     * only if `flow_uri` is specified in [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
+     * only if `flow_uri` is specified in
+     * [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
      * 
* * string flow_uri = 1; @@ -640,7 +655,8 @@ public boolean hasFlowUri() { * *
      * The URI to a file containing the exported flow. This field is populated
-     * only if `flow_uri` is specified in [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
+     * only if `flow_uri` is specified in
+     * [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
      * 
* * string flow_uri = 1; @@ -669,7 +685,8 @@ public java.lang.String getFlowUri() { * *
      * The URI to a file containing the exported flow. This field is populated
-     * only if `flow_uri` is specified in [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
+     * only if `flow_uri` is specified in
+     * [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
      * 
* * string flow_uri = 1; @@ -698,7 +715,8 @@ public com.google.protobuf.ByteString getFlowUriBytes() { * *
      * The URI to a file containing the exported flow. This field is populated
-     * only if `flow_uri` is specified in [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
+     * only if `flow_uri` is specified in
+     * [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
      * 
* * string flow_uri = 1; @@ -720,7 +738,8 @@ public Builder setFlowUri(java.lang.String value) { * *
      * The URI to a file containing the exported flow. This field is populated
-     * only if `flow_uri` is specified in [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
+     * only if `flow_uri` is specified in
+     * [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
      * 
* * string flow_uri = 1; @@ -740,7 +759,8 @@ public Builder clearFlowUri() { * *
      * The URI to a file containing the exported flow. This field is populated
-     * only if `flow_uri` is specified in [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
+     * only if `flow_uri` is specified in
+     * [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
      * 
* * string flow_uri = 1; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportFlowResponseOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportFlowResponseOrBuilder.java index b49845e3d8a5..8d1e63da3d33 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportFlowResponseOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportFlowResponseOrBuilder.java @@ -28,7 +28,8 @@ public interface ExportFlowResponseOrBuilder * *
    * The URI to a file containing the exported flow. This field is populated
-   * only if `flow_uri` is specified in [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
+   * only if `flow_uri` is specified in
+   * [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
    * 
* * string flow_uri = 1; @@ -41,7 +42,8 @@ public interface ExportFlowResponseOrBuilder * *
    * The URI to a file containing the exported flow. This field is populated
-   * only if `flow_uri` is specified in [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
+   * only if `flow_uri` is specified in
+   * [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
    * 
* * string flow_uri = 1; @@ -54,7 +56,8 @@ public interface ExportFlowResponseOrBuilder * *
    * The URI to a file containing the exported flow. This field is populated
-   * only if `flow_uri` is specified in [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
+   * only if `flow_uri` is specified in
+   * [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest].
    * 
* * string flow_uri = 1; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportTestCasesMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportTestCasesMetadata.java index 38e63a70306d..f1b2e24751ac 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportTestCasesMetadata.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportTestCasesMetadata.java @@ -22,9 +22,9 @@ * * *
- * Metadata returned for the [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases] long running
- * operation.
- * This message currently has no fields.
+ * Metadata returned for the
+ * [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases]
+ * long running operation. This message currently has no fields.
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} @@ -222,9 +222,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Metadata returned for the [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases] long running
-   * operation.
-   * This message currently has no fields.
+   * Metadata returned for the
+   * [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases]
+   * long running operation. This message currently has no fields.
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportTestCasesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportTestCasesRequest.java index 657598628768..a9a98aa1063d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportTestCasesRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportTestCasesRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases].
+ * The request message for
+ * [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} @@ -273,7 +274,9 @@ public DestinationCase getDestinationCase() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -422,7 +425,7 @@ public com.google.protobuf.ByteString getGcsUriBytes() { } public static final int DATA_FORMAT_FIELD_NUMBER = 3; - private int dataFormat_; + private int dataFormat_ = 0; /** * * @@ -453,16 +456,17 @@ public int getDataFormatValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat getDataFormat() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat result = - com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat.valueOf(dataFormat_); + com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat.forNumber(dataFormat_); return result == null ? com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat.UNRECOGNIZED : result; } public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -732,7 +736,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases].
+   * The request message for
+   * [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ExportTestCasesRequest} @@ -766,12 +771,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - dataFormat_ = 0; - filter_ = ""; - destinationCase_ = 0; destination_ = null; return this; @@ -801,17 +804,33 @@ public com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest build() { public com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest result = new com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest(this); - result.parent_ = parent_; - if (destinationCase_ == 2) { - result.destination_ = destination_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.dataFormat_ = dataFormat_; - result.filter_ = filter_; - result.destinationCase_ = destinationCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dataFormat_ = dataFormat_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -860,6 +879,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ExportTestCasesReques return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.dataFormat_ != 0) { @@ -867,6 +887,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ExportTestCasesReques } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000008; onChanged(); } switch (other.getDestinationCase()) { @@ -911,7 +932,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -924,13 +945,13 @@ public Builder mergeFrom( case 24: { dataFormat_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -964,6 +985,8 @@ public Builder clearDestination() { return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -1034,8 +1057,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1054,8 +1077,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1079,8 +1102,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1300,8 +1323,8 @@ public int getDataFormatValue() { * @return This builder for chaining. */ public Builder setDataFormatValue(int value) { - dataFormat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1320,9 +1343,9 @@ public Builder setDataFormatValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat getDataFormat() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat result = - com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat.valueOf(dataFormat_); + com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat.forNumber( + dataFormat_); return result == null ? com.google.cloud.dialogflow.cx.v3.ExportTestCasesRequest.DataFormat.UNRECOGNIZED : result; @@ -1346,7 +1369,7 @@ public Builder setDataFormat( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; dataFormat_ = value.getNumber(); onChanged(); return this; @@ -1365,7 +1388,7 @@ public Builder setDataFormat( * @return This builder for chaining. */ public Builder clearDataFormat() { - + bitField0_ = (bitField0_ & ~0x00000004); dataFormat_ = 0; onChanged(); return this; @@ -1450,8 +1473,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1473,8 +1496,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1501,8 +1524,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportTestCasesResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportTestCasesResponse.java index 60720e78de1f..caa1e2559255 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportTestCasesResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ExportTestCasesResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases].
+ * The response message for
+ * [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} @@ -415,7 +416,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases].
+   * The response message for
+   * [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ExportTestCasesResponse} @@ -449,6 +451,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; destinationCase_ = 0; destination_ = null; return this; @@ -478,17 +481,24 @@ public com.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse build() { public com.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse result = new com.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse(this); - if (destinationCase_ == 1) { - result.destination_ = destination_; - } - if (destinationCase_ == 2) { - result.destination_ = destination_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.destinationCase_ = destinationCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3.ExportTestCasesResponse result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -623,6 +633,8 @@ public Builder clearDestination() { return this; } + private int bitField0_; + /** * * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Flow.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Flow.java index 4ef4f1e78ba3..803006b0f2df 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Flow.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Flow.java @@ -84,7 +84,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -137,7 +139,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -186,7 +190,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -237,6 +243,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int TRANSITION_ROUTES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List transitionRoutes_; /** * @@ -363,6 +371,8 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionR } public static final int EVENT_HANDLERS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") private java.util.List eventHandlers_; /** * @@ -375,9 +385,10 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionR * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. *
* * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -397,9 +408,10 @@ public java.util.List getEventHa * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. *
* * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -420,9 +432,10 @@ public java.util.List getEventHa * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. *
* * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -442,9 +455,10 @@ public int getEventHandlersCount() { * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. *
* * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -464,9 +478,10 @@ public com.google.cloud.dialogflow.cx.v3.EventHandler getEventHandlers(int index * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. *
* * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -478,6 +493,8 @@ public com.google.cloud.dialogflow.cx.v3.EventHandlerOrBuilder getEventHandlersO } public static final int TRANSITION_ROUTE_GROUPS_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList transitionRouteGroups_; /** * @@ -615,7 +632,9 @@ public com.google.cloud.dialogflow.cx.v3.NluSettings getNluSettings() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.NluSettingsOrBuilder getNluSettingsOrBuilder() { - return getNluSettings(); + return nluSettings_ == null + ? com.google.cloud.dialogflow.cx.v3.NluSettings.getDefaultInstance() + : nluSettings_; } private byte memoizedIsInitialized = -1; @@ -896,32 +915,29 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - if (transitionRoutesBuilder_ == null) { transitionRoutes_ = java.util.Collections.emptyList(); } else { transitionRoutes_ = null; transitionRoutesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); if (eventHandlersBuilder_ == null) { eventHandlers_ = java.util.Collections.emptyList(); } else { eventHandlers_ = null; eventHandlersBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (nluSettingsBuilder_ == null) { - nluSettings_ = null; - } else { - nluSettings_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + nluSettings_ = null; + if (nluSettingsBuilder_ != null) { + nluSettingsBuilder_.dispose(); nluSettingsBuilder_ = null; } return this; @@ -951,40 +967,55 @@ public com.google.cloud.dialogflow.cx.v3.Flow build() { public com.google.cloud.dialogflow.cx.v3.Flow buildPartial() { com.google.cloud.dialogflow.cx.v3.Flow result = new com.google.cloud.dialogflow.cx.v3.Flow(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.Flow result) { if (transitionRoutesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { transitionRoutes_ = java.util.Collections.unmodifiableList(transitionRoutes_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.transitionRoutes_ = transitionRoutes_; } else { result.transitionRoutes_ = transitionRoutesBuilder_.build(); } if (eventHandlersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { eventHandlers_ = java.util.Collections.unmodifiableList(eventHandlers_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); } result.eventHandlers_ = eventHandlers_; } else { result.eventHandlers_ = eventHandlersBuilder_.build(); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { transitionRouteGroups_ = transitionRouteGroups_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); } result.transitionRouteGroups_ = transitionRouteGroups_; - if (nluSettingsBuilder_ == null) { - result.nluSettings_ = nluSettings_; - } else { - result.nluSettings_ = nluSettingsBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Flow result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.nluSettings_ = + nluSettingsBuilder_ == null ? nluSettings_ : nluSettingsBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -1034,21 +1065,24 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Flow other) { if (other == com.google.cloud.dialogflow.cx.v3.Flow.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (transitionRoutesBuilder_ == null) { if (!other.transitionRoutes_.isEmpty()) { if (transitionRoutes_.isEmpty()) { transitionRoutes_ = other.transitionRoutes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureTransitionRoutesIsMutable(); transitionRoutes_.addAll(other.transitionRoutes_); @@ -1061,7 +1095,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Flow other) { transitionRoutesBuilder_.dispose(); transitionRoutesBuilder_ = null; transitionRoutes_ = other.transitionRoutes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); transitionRoutesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransitionRoutesFieldBuilder() @@ -1075,7 +1109,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Flow other) { if (!other.eventHandlers_.isEmpty()) { if (eventHandlers_.isEmpty()) { eventHandlers_ = other.eventHandlers_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureEventHandlersIsMutable(); eventHandlers_.addAll(other.eventHandlers_); @@ -1088,7 +1122,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Flow other) { eventHandlersBuilder_.dispose(); eventHandlersBuilder_ = null; eventHandlers_ = other.eventHandlers_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); eventHandlersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEventHandlersFieldBuilder() @@ -1101,7 +1135,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Flow other) { if (!other.transitionRouteGroups_.isEmpty()) { if (transitionRouteGroups_.isEmpty()) { transitionRouteGroups_ = other.transitionRouteGroups_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureTransitionRouteGroupsIsMutable(); transitionRouteGroups_.addAll(other.transitionRouteGroups_); @@ -1140,19 +1174,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: @@ -1185,7 +1219,7 @@ public Builder mergeFrom( case 90: { input.readMessage(getNluSettingsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 90 case 122: @@ -1281,8 +1315,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1300,8 +1334,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1324,8 +1358,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1391,8 +1425,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1408,8 +1442,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1430,8 +1464,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1500,8 +1534,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1518,8 +1552,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1541,8 +1575,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1551,11 +1585,11 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureTransitionRoutesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { transitionRoutes_ = new java.util.ArrayList( transitionRoutes_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -1895,7 +1929,7 @@ public Builder addAllTransitionRoutes( public Builder clearTransitionRoutes() { if (transitionRoutesBuilder_ == null) { transitionRoutes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { transitionRoutesBuilder_.clear(); @@ -2099,7 +2133,7 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder addTransitionRo com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder, com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder>( transitionRoutes_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); transitionRoutes_ = null; @@ -2111,10 +2145,10 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder addTransitionRo java.util.Collections.emptyList(); private void ensureEventHandlersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { eventHandlers_ = new java.util.ArrayList(eventHandlers_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; } } @@ -2135,9 +2169,10 @@ private void ensureEventHandlersIsMutable() { * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. *
* * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -2160,9 +2195,10 @@ public java.util.List getEventHa * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. *
* * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -2185,9 +2221,10 @@ public int getEventHandlersCount() { * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. *
* * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -2210,9 +2247,10 @@ public com.google.cloud.dialogflow.cx.v3.EventHandler getEventHandlers(int index * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. *
* * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -2242,9 +2280,10 @@ public Builder setEventHandlers( * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. *
* * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -2271,9 +2310,10 @@ public Builder setEventHandlers( * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. *
* * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -2302,9 +2342,10 @@ public Builder addEventHandlers(com.google.cloud.dialogflow.cx.v3.EventHandler v * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. *
* * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -2334,9 +2375,10 @@ public Builder addEventHandlers( * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. *
* * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -2363,9 +2405,10 @@ public Builder addEventHandlers( * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. *
* * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -2392,9 +2435,10 @@ public Builder addEventHandlers( * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. *
* * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -2421,9 +2465,10 @@ public Builder addAllEventHandlers( * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. *
* * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -2431,7 +2476,7 @@ public Builder addAllEventHandlers( public Builder clearEventHandlers() { if (eventHandlersBuilder_ == null) { eventHandlers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { eventHandlersBuilder_.clear(); @@ -2449,9 +2494,10 @@ public Builder clearEventHandlers() { * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. *
* * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -2477,9 +2523,10 @@ public Builder removeEventHandlers(int index) { * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. *
* * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -2499,9 +2546,10 @@ public com.google.cloud.dialogflow.cx.v3.EventHandler.Builder getEventHandlersBu * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. * * * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -2525,9 +2573,10 @@ public com.google.cloud.dialogflow.cx.v3.EventHandlerOrBuilder getEventHandlersO * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. * * * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -2551,9 +2600,10 @@ public com.google.cloud.dialogflow.cx.v3.EventHandlerOrBuilder getEventHandlersO * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. * * * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -2573,9 +2623,10 @@ public com.google.cloud.dialogflow.cx.v3.EventHandler.Builder addEventHandlersBu * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. * * * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -2596,9 +2647,10 @@ public com.google.cloud.dialogflow.cx.v3.EventHandler.Builder addEventHandlersBu * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. * * * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -2620,7 +2672,7 @@ public com.google.cloud.dialogflow.cx.v3.EventHandler.Builder addEventHandlersBu com.google.cloud.dialogflow.cx.v3.EventHandler.Builder, com.google.cloud.dialogflow.cx.v3.EventHandlerOrBuilder>( eventHandlers_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); eventHandlers_ = null; @@ -2632,10 +2684,10 @@ public com.google.cloud.dialogflow.cx.v3.EventHandler.Builder addEventHandlersBu com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTransitionRouteGroupsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { transitionRouteGroups_ = new com.google.protobuf.LazyStringArrayList(transitionRouteGroups_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; } } /** @@ -2842,7 +2894,7 @@ public Builder addAllTransitionRouteGroups(java.lang.Iterable */ public Builder clearTransitionRouteGroups() { transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2896,7 +2948,7 @@ public Builder addTransitionRouteGroupsBytes(com.google.protobuf.ByteString valu * @return Whether the nluSettings field is set. */ public boolean hasNluSettings() { - return nluSettingsBuilder_ != null || nluSettings_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2933,11 +2985,11 @@ public Builder setNluSettings(com.google.cloud.dialogflow.cx.v3.NluSettings valu throw new NullPointerException(); } nluSettings_ = value; - onChanged(); } else { nluSettingsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2953,11 +3005,11 @@ public Builder setNluSettings( com.google.cloud.dialogflow.cx.v3.NluSettings.Builder builderForValue) { if (nluSettingsBuilder_ == null) { nluSettings_ = builderForValue.build(); - onChanged(); } else { nluSettingsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2971,19 +3023,18 @@ public Builder setNluSettings( */ public Builder mergeNluSettings(com.google.cloud.dialogflow.cx.v3.NluSettings value) { if (nluSettingsBuilder_ == null) { - if (nluSettings_ != null) { - nluSettings_ = - com.google.cloud.dialogflow.cx.v3.NluSettings.newBuilder(nluSettings_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && nluSettings_ != null + && nluSettings_ != com.google.cloud.dialogflow.cx.v3.NluSettings.getDefaultInstance()) { + getNluSettingsBuilder().mergeFrom(value); } else { nluSettings_ = value; } - onChanged(); } else { nluSettingsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2996,14 +3047,13 @@ public Builder mergeNluSettings(com.google.cloud.dialogflow.cx.v3.NluSettings va * .google.cloud.dialogflow.cx.v3.NluSettings nlu_settings = 11; */ public Builder clearNluSettings() { - if (nluSettingsBuilder_ == null) { - nluSettings_ = null; - onChanged(); - } else { - nluSettings_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + nluSettings_ = null; + if (nluSettingsBuilder_ != null) { + nluSettingsBuilder_.dispose(); nluSettingsBuilder_ = null; } - + onChanged(); return this; } /** @@ -3016,7 +3066,7 @@ public Builder clearNluSettings() { * .google.cloud.dialogflow.cx.v3.NluSettings nlu_settings = 11; */ public com.google.cloud.dialogflow.cx.v3.NluSettings.Builder getNluSettingsBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getNluSettingsFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowOrBuilder.java index ac2146041fee..a83c59c80986 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowOrBuilder.java @@ -223,9 +223,10 @@ com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionRoutesOr * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. * * * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -242,9 +243,10 @@ com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionRoutesOr * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. * * * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -261,9 +263,10 @@ com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionRoutesOr * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. * * * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -280,9 +283,10 @@ com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionRoutesOr * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. * * * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; @@ -300,9 +304,10 @@ com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionRoutesOr * handlers][Page.event_handlers], which can be used to handle common events * regardless of the current page. Event handlers defined in the page * have higher priority than those defined in the flow. - * Unlike [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], these handlers are - * evaluated on a first-match basis. The first one that matches the event - * get executed, with the rest being ignored. + * Unlike + * [transition_routes][google.cloud.dialogflow.cx.v3.Flow.transition_routes], + * these handlers are evaluated on a first-match basis. The first one that + * matches the event get executed, with the rest being ignored. * * * repeated .google.cloud.dialogflow.cx.v3.EventHandler event_handlers = 10; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowProto.java index 2e7ff7a53854..25682ad2c640 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowProto.java @@ -232,12 +232,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "se\022\026google.protobuf.Struct\032x\312A\031dialogflo" + "w.googleapis.com\322AYhttps://www.googleapi" + "s.com/auth/cloud-platform,https://www.go" - + "ogleapis.com/auth/dialogflowB\275\001\n!com.goo" + + "ogleapis.com/auth/dialogflowB\257\001\n!com.goo" + "gle.cloud.dialogflow.cx.v3B\tFlowProtoP\001Z" - + "?google.golang.org/genproto/googleapis/c" - + "loud/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Googl" - + "e.Cloud.Dialogflow.Cx.V3\352\002!Google::Cloud" - + "::Dialogflow::CX::V3b\006proto3" + + "1cloud.google.com/go/dialogflow/cx/apiv3" + + "/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialog" + + "flow.Cx.V3\352\002!Google::Cloud::Dialogflow::" + + "CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowValidationResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowValidationResult.java index 9dfe843d0d6d..6b6f329418b5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowValidationResult.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowValidationResult.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult].
+ * The response message for
+ * [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.FlowValidationResult} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -122,6 +125,8 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int VALIDATION_MESSAGES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List validationMessages_; /** * @@ -235,7 +240,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } private byte memoizedIsInitialized = -1; @@ -428,7 +433,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult].
+   * The response message for
+   * [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.FlowValidationResult} @@ -462,19 +468,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - if (validationMessagesBuilder_ == null) { validationMessages_ = java.util.Collections.emptyList(); } else { validationMessages_ = null; validationMessagesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } return this; @@ -504,24 +509,35 @@ public com.google.cloud.dialogflow.cx.v3.FlowValidationResult build() { public com.google.cloud.dialogflow.cx.v3.FlowValidationResult buildPartial() { com.google.cloud.dialogflow.cx.v3.FlowValidationResult result = new com.google.cloud.dialogflow.cx.v3.FlowValidationResult(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.FlowValidationResult result) { if (validationMessagesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { validationMessages_ = java.util.Collections.unmodifiableList(validationMessages_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.validationMessages_ = validationMessages_; } else { result.validationMessages_ = validationMessagesBuilder_.build(); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.FlowValidationResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -572,13 +588,14 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.FlowValidationResult return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (validationMessagesBuilder_ == null) { if (!other.validationMessages_.isEmpty()) { if (validationMessages_.isEmpty()) { validationMessages_ = other.validationMessages_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValidationMessagesIsMutable(); validationMessages_.addAll(other.validationMessages_); @@ -591,7 +608,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.FlowValidationResult validationMessagesBuilder_.dispose(); validationMessagesBuilder_ = null; validationMessages_ = other.validationMessages_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); validationMessagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValidationMessagesFieldBuilder() @@ -633,7 +650,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -653,7 +670,7 @@ public Builder mergeFrom( case 26: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -742,8 +759,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -761,8 +778,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -785,8 +802,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -795,11 +812,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { validationMessages_ = java.util.Collections.emptyList(); private void ensureValidationMessagesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { validationMessages_ = new java.util.ArrayList( validationMessages_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1030,7 +1047,7 @@ public Builder addAllValidationMessages( public Builder clearValidationMessages() { if (validationMessagesBuilder_ == null) { validationMessages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { validationMessagesBuilder_.clear(); @@ -1165,7 +1182,7 @@ public com.google.cloud.dialogflow.cx.v3.ValidationMessage.Builder addValidation com.google.cloud.dialogflow.cx.v3.ValidationMessage.Builder, com.google.cloud.dialogflow.cx.v3.ValidationMessageOrBuilder>( validationMessages_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); validationMessages_ = null; @@ -1191,7 +1208,7 @@ public com.google.cloud.dialogflow.cx.v3.ValidationMessage.Builder addValidation * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1228,11 +1245,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1247,11 +1264,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1265,17 +1282,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1288,14 +1306,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp update_time = 3; */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1308,7 +1325,7 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 3; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Form.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Form.java index de366cb9228e..8b75c61e8cf4 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Form.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Form.java @@ -25,8 +25,9 @@ * A form is a data model that groups related parameters that can be collected * from the user. The process in which the agent prompts the user and collects * parameter values from the user is called form filling. A form can be added to - * a [page][google.cloud.dialogflow.cx.v3.Page]. When form filling is done, the filled parameters will be - * written to the [session][google.cloud.dialogflow.cx.v3.SessionInfo.parameters]. + * a [page][google.cloud.dialogflow.cx.v3.Page]. When form filling is done, the + * filled parameters will be written to the + * [session][google.cloud.dialogflow.cx.v3.SessionInfo.parameters]. * * * Protobuf type {@code google.cloud.dialogflow.cx.v3.Form} @@ -258,8 +259,8 @@ public interface ParameterOrBuilder * redaction is enabled, the parameter content will be replaced by parameter * name during logging. * Note: the parameter content is subject to redaction if either parameter - * level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is - * enabled. + * level redaction or [entity type level + * redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled. * * * bool redact = 11; @@ -659,10 +660,14 @@ public com.google.cloud.dialogflow.cx.v3.Fulfillment getInitialPromptFulfillment @java.lang.Override public com.google.cloud.dialogflow.cx.v3.FulfillmentOrBuilder getInitialPromptFulfillmentOrBuilder() { - return getInitialPromptFulfillment(); + return initialPromptFulfillment_ == null + ? com.google.cloud.dialogflow.cx.v3.Fulfillment.getDefaultInstance() + : initialPromptFulfillment_; } public static final int REPROMPT_EVENT_HANDLERS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private java.util.List repromptEventHandlers_; /** * @@ -1093,10 +1098,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (initialPromptFulfillmentBuilder_ == null) { - initialPromptFulfillment_ = null; - } else { - initialPromptFulfillment_ = null; + bitField0_ = 0; + initialPromptFulfillment_ = null; + if (initialPromptFulfillmentBuilder_ != null) { + initialPromptFulfillmentBuilder_.dispose(); initialPromptFulfillmentBuilder_ = null; } if (repromptEventHandlersBuilder_ == null) { @@ -1105,7 +1110,7 @@ public Builder clear() { repromptEventHandlers_ = null; repromptEventHandlersBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -1134,24 +1139,37 @@ public com.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior build() { public com.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior buildPartial() { com.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior result = new com.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior(this); - int from_bitField0_ = bitField0_; - if (initialPromptFulfillmentBuilder_ == null) { - result.initialPromptFulfillment_ = initialPromptFulfillment_; - } else { - result.initialPromptFulfillment_ = initialPromptFulfillmentBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior result) { if (repromptEventHandlersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { repromptEventHandlers_ = java.util.Collections.unmodifiableList(repromptEventHandlers_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.repromptEventHandlers_ = repromptEventHandlers_; } else { result.repromptEventHandlers_ = repromptEventHandlersBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.initialPromptFulfillment_ = + initialPromptFulfillmentBuilder_ == null + ? initialPromptFulfillment_ + : initialPromptFulfillmentBuilder_.build(); + } } @java.lang.Override @@ -1211,7 +1229,7 @@ public Builder mergeFrom( if (!other.repromptEventHandlers_.isEmpty()) { if (repromptEventHandlers_.isEmpty()) { repromptEventHandlers_ = other.repromptEventHandlers_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRepromptEventHandlersIsMutable(); repromptEventHandlers_.addAll(other.repromptEventHandlers_); @@ -1224,7 +1242,7 @@ public Builder mergeFrom( repromptEventHandlersBuilder_.dispose(); repromptEventHandlersBuilder_ = null; repromptEventHandlers_ = other.repromptEventHandlers_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); repromptEventHandlersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRepromptEventHandlersFieldBuilder() @@ -1264,7 +1282,7 @@ public Builder mergeFrom( { input.readMessage( getInitialPromptFulfillmentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 26 case 42: @@ -1321,7 +1339,7 @@ public Builder mergeFrom( * @return Whether the initialPromptFulfillment field is set. */ public boolean hasInitialPromptFulfillment() { - return initialPromptFulfillmentBuilder_ != null || initialPromptFulfillment_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1365,11 +1383,11 @@ public Builder setInitialPromptFulfillment( throw new NullPointerException(); } initialPromptFulfillment_ = value; - onChanged(); } else { initialPromptFulfillmentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1388,11 +1406,11 @@ public Builder setInitialPromptFulfillment( com.google.cloud.dialogflow.cx.v3.Fulfillment.Builder builderForValue) { if (initialPromptFulfillmentBuilder_ == null) { initialPromptFulfillment_ = builderForValue.build(); - onChanged(); } else { initialPromptFulfillmentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1410,20 +1428,19 @@ public Builder setInitialPromptFulfillment( public Builder mergeInitialPromptFulfillment( com.google.cloud.dialogflow.cx.v3.Fulfillment value) { if (initialPromptFulfillmentBuilder_ == null) { - if (initialPromptFulfillment_ != null) { - initialPromptFulfillment_ = - com.google.cloud.dialogflow.cx.v3.Fulfillment.newBuilder( - initialPromptFulfillment_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && initialPromptFulfillment_ != null + && initialPromptFulfillment_ + != com.google.cloud.dialogflow.cx.v3.Fulfillment.getDefaultInstance()) { + getInitialPromptFulfillmentBuilder().mergeFrom(value); } else { initialPromptFulfillment_ = value; } - onChanged(); } else { initialPromptFulfillmentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1439,14 +1456,13 @@ public Builder mergeInitialPromptFulfillment( *
*/ public Builder clearInitialPromptFulfillment() { - if (initialPromptFulfillmentBuilder_ == null) { - initialPromptFulfillment_ = null; - onChanged(); - } else { - initialPromptFulfillment_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + initialPromptFulfillment_ = null; + if (initialPromptFulfillmentBuilder_ != null) { + initialPromptFulfillmentBuilder_.dispose(); initialPromptFulfillmentBuilder_ = null; } - + onChanged(); return this; } /** @@ -1463,7 +1479,7 @@ public Builder clearInitialPromptFulfillment() { */ public com.google.cloud.dialogflow.cx.v3.Fulfillment.Builder getInitialPromptFulfillmentBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInitialPromptFulfillmentFieldBuilder().getBuilder(); } @@ -1522,11 +1538,11 @@ public Builder clearInitialPromptFulfillment() { repromptEventHandlers_ = java.util.Collections.emptyList(); private void ensureRepromptEventHandlersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { repromptEventHandlers_ = new java.util.ArrayList( repromptEventHandlers_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -2043,7 +2059,7 @@ public Builder addAllRepromptEventHandlers( public Builder clearRepromptEventHandlers() { if (repromptEventHandlersBuilder_ == null) { repromptEventHandlers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { repromptEventHandlersBuilder_.clear(); @@ -2360,7 +2376,7 @@ public Builder removeRepromptEventHandlers(int index) { com.google.cloud.dialogflow.cx.v3.EventHandler.Builder, com.google.cloud.dialogflow.cx.v3.EventHandlerOrBuilder>( repromptEventHandlers_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); repromptEventHandlers_ = null; @@ -2436,7 +2452,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -2487,7 +2505,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int REQUIRED_FIELD_NUMBER = 2; - private boolean required_; + private boolean required_ = false; /** * * @@ -2507,7 +2525,9 @@ public boolean getRequired() { } public static final int ENTITY_TYPE_FIELD_NUMBER = 3; - private volatile java.lang.Object entityType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityType_ = ""; /** * * @@ -2570,7 +2590,7 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { } public static final int IS_LIST_FIELD_NUMBER = 4; - private boolean isList_; + private boolean isList_ = false; /** * * @@ -2639,7 +2659,9 @@ public com.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior getFillBeha @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehaviorOrBuilder getFillBehaviorOrBuilder() { - return getFillBehavior(); + return fillBehavior_ == null + ? com.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.getDefaultInstance() + : fillBehavior_; } public static final int DEFAULT_VALUE_FIELD_NUMBER = 9; @@ -2688,11 +2710,11 @@ public com.google.protobuf.Value getDefaultValue() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder() { - return getDefaultValue(); + return defaultValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : defaultValue_; } public static final int REDACT_FIELD_NUMBER = 11; - private boolean redact_; + private boolean redact_ = false; /** * * @@ -2701,8 +2723,8 @@ public com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder() { * redaction is enabled, the parameter content will be replaced by parameter * name during logging. * Note: the parameter content is subject to redaction if either parameter - * level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is - * enabled. + * level redaction or [entity type level + * redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled. * * * bool redact = 11; @@ -2977,28 +2999,22 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; displayName_ = ""; - required_ = false; - entityType_ = ""; - isList_ = false; - - if (fillBehaviorBuilder_ == null) { - fillBehavior_ = null; - } else { - fillBehavior_ = null; + fillBehavior_ = null; + if (fillBehaviorBuilder_ != null) { + fillBehaviorBuilder_.dispose(); fillBehaviorBuilder_ = null; } - if (defaultValueBuilder_ == null) { - defaultValue_ = null; - } else { - defaultValue_ = null; + defaultValue_ = null; + if (defaultValueBuilder_ != null) { + defaultValueBuilder_.dispose(); defaultValueBuilder_ = null; } redact_ = false; - return this; } @@ -3026,25 +3042,40 @@ public com.google.cloud.dialogflow.cx.v3.Form.Parameter build() { public com.google.cloud.dialogflow.cx.v3.Form.Parameter buildPartial() { com.google.cloud.dialogflow.cx.v3.Form.Parameter result = new com.google.cloud.dialogflow.cx.v3.Form.Parameter(this); - result.displayName_ = displayName_; - result.required_ = required_; - result.entityType_ = entityType_; - result.isList_ = isList_; - if (fillBehaviorBuilder_ == null) { - result.fillBehavior_ = fillBehavior_; - } else { - result.fillBehavior_ = fillBehaviorBuilder_.build(); - } - if (defaultValueBuilder_ == null) { - result.defaultValue_ = defaultValue_; - } else { - result.defaultValue_ = defaultValueBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.redact_ = redact_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Form.Parameter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.required_ = required_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.entityType_ = entityType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.isList_ = isList_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.fillBehavior_ = + fillBehaviorBuilder_ == null ? fillBehavior_ : fillBehaviorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.defaultValue_ = + defaultValueBuilder_ == null ? defaultValue_ : defaultValueBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.redact_ = redact_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3095,6 +3126,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Form.Parameter other) return this; if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getRequired() != false) { @@ -3102,6 +3134,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Form.Parameter other) } if (!other.getEntityType().isEmpty()) { entityType_ = other.entityType_; + bitField0_ |= 0x00000004; onChanged(); } if (other.getIsList() != false) { @@ -3145,43 +3178,43 @@ public Builder mergeFrom( case 10: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { required_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { entityType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: { isList_ = input.readBool(); - + bitField0_ |= 0x00000008; break; } // case 32 case 58: { input.readMessage(getFillBehaviorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 58 case 74: { input.readMessage(getDefaultValueFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 74 case 88: { redact_ = input.readBool(); - + bitField0_ |= 0x00000040; break; } // case 88 default: @@ -3201,6 +3234,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object displayName_ = ""; /** * @@ -3265,8 +3300,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3283,8 +3318,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3306,8 +3341,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3347,6 +3382,7 @@ public boolean getRequired() { public Builder setRequired(boolean value) { required_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3364,7 +3400,7 @@ public Builder setRequired(boolean value) { * @return This builder for chaining. */ public Builder clearRequired() { - + bitField0_ = (bitField0_ & ~0x00000002); required_ = false; onChanged(); return this; @@ -3452,8 +3488,8 @@ public Builder setEntityType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityType_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3476,8 +3512,8 @@ public Builder setEntityType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityType() { - entityType_ = getDefaultInstance().getEntityType(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -3505,8 +3541,8 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityType_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3542,6 +3578,7 @@ public boolean getIsList() { public Builder setIsList(boolean value) { isList_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3557,7 +3594,7 @@ public Builder setIsList(boolean value) { * @return This builder for chaining. */ public Builder clearIsList() { - + bitField0_ = (bitField0_ & ~0x00000008); isList_ = false; onChanged(); return this; @@ -3583,7 +3620,7 @@ public Builder clearIsList() { * @return Whether the fillBehavior field is set. */ public boolean hasFillBehavior() { - return fillBehaviorBuilder_ != null || fillBehavior_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -3625,11 +3662,11 @@ public Builder setFillBehavior( throw new NullPointerException(); } fillBehavior_ = value; - onChanged(); } else { fillBehaviorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3647,11 +3684,11 @@ public Builder setFillBehavior( com.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.Builder builderForValue) { if (fillBehaviorBuilder_ == null) { fillBehavior_ = builderForValue.build(); - onChanged(); } else { fillBehaviorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3668,20 +3705,20 @@ public Builder setFillBehavior( public Builder mergeFillBehavior( com.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior value) { if (fillBehaviorBuilder_ == null) { - if (fillBehavior_ != null) { - fillBehavior_ = - com.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.newBuilder( - fillBehavior_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && fillBehavior_ != null + && fillBehavior_ + != com.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior + .getDefaultInstance()) { + getFillBehaviorBuilder().mergeFrom(value); } else { fillBehavior_ = value; } - onChanged(); } else { fillBehaviorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3696,14 +3733,13 @@ public Builder mergeFillBehavior( *
*/ public Builder clearFillBehavior() { - if (fillBehaviorBuilder_ == null) { - fillBehavior_ = null; - onChanged(); - } else { - fillBehavior_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + fillBehavior_ = null; + if (fillBehaviorBuilder_ != null) { + fillBehaviorBuilder_.dispose(); fillBehaviorBuilder_ = null; } - + onChanged(); return this; } /** @@ -3719,7 +3755,7 @@ public Builder clearFillBehavior() { */ public com.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehavior.Builder getFillBehaviorBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getFillBehaviorFieldBuilder().getBuilder(); } @@ -3791,7 +3827,7 @@ public Builder clearFillBehavior() { * @return Whether the defaultValue field is set. */ public boolean hasDefaultValue() { - return defaultValueBuilder_ != null || defaultValue_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -3830,11 +3866,11 @@ public Builder setDefaultValue(com.google.protobuf.Value value) { throw new NullPointerException(); } defaultValue_ = value; - onChanged(); } else { defaultValueBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -3850,11 +3886,11 @@ public Builder setDefaultValue(com.google.protobuf.Value value) { public Builder setDefaultValue(com.google.protobuf.Value.Builder builderForValue) { if (defaultValueBuilder_ == null) { defaultValue_ = builderForValue.build(); - onChanged(); } else { defaultValueBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -3869,17 +3905,18 @@ public Builder setDefaultValue(com.google.protobuf.Value.Builder builderForValue */ public Builder mergeDefaultValue(com.google.protobuf.Value value) { if (defaultValueBuilder_ == null) { - if (defaultValue_ != null) { - defaultValue_ = - com.google.protobuf.Value.newBuilder(defaultValue_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && defaultValue_ != null + && defaultValue_ != com.google.protobuf.Value.getDefaultInstance()) { + getDefaultValueBuilder().mergeFrom(value); } else { defaultValue_ = value; } - onChanged(); } else { defaultValueBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -3893,14 +3930,13 @@ public Builder mergeDefaultValue(com.google.protobuf.Value value) { * .google.protobuf.Value default_value = 9; */ public Builder clearDefaultValue() { - if (defaultValueBuilder_ == null) { - defaultValue_ = null; - onChanged(); - } else { - defaultValue_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + defaultValue_ = null; + if (defaultValueBuilder_ != null) { + defaultValueBuilder_.dispose(); defaultValueBuilder_ = null; } - + onChanged(); return this; } /** @@ -3914,7 +3950,7 @@ public Builder clearDefaultValue() { * .google.protobuf.Value default_value = 9; */ public com.google.protobuf.Value.Builder getDefaultValueBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getDefaultValueFieldBuilder().getBuilder(); } @@ -3973,8 +4009,8 @@ public com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder() { * redaction is enabled, the parameter content will be replaced by parameter * name during logging. * Note: the parameter content is subject to redaction if either parameter - * level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is - * enabled. + * level redaction or [entity type level + * redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled. * * * bool redact = 11; @@ -3993,8 +4029,8 @@ public boolean getRedact() { * redaction is enabled, the parameter content will be replaced by parameter * name during logging. * Note: the parameter content is subject to redaction if either parameter - * level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is - * enabled. + * level redaction or [entity type level + * redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled. * * * bool redact = 11; @@ -4005,6 +4041,7 @@ public boolean getRedact() { public Builder setRedact(boolean value) { redact_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4016,8 +4053,8 @@ public Builder setRedact(boolean value) { * redaction is enabled, the parameter content will be replaced by parameter * name during logging. * Note: the parameter content is subject to redaction if either parameter - * level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is - * enabled. + * level redaction or [entity type level + * redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled. * * * bool redact = 11; @@ -4025,7 +4062,7 @@ public Builder setRedact(boolean value) { * @return This builder for chaining. */ public Builder clearRedact() { - + bitField0_ = (bitField0_ & ~0x00000040); redact_ = false; onChanged(); return this; @@ -4096,6 +4133,8 @@ public com.google.cloud.dialogflow.cx.v3.Form.Parameter getDefaultInstanceForTyp } public static final int PARAMETERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List parameters_; /** * @@ -4332,8 +4371,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * A form is a data model that groups related parameters that can be collected * from the user. The process in which the agent prompts the user and collects * parameter values from the user is called form filling. A form can be added to - * a [page][google.cloud.dialogflow.cx.v3.Page]. When form filling is done, the filled parameters will be - * written to the [session][google.cloud.dialogflow.cx.v3.SessionInfo.parameters]. + * a [page][google.cloud.dialogflow.cx.v3.Page]. When form filling is done, the + * filled parameters will be written to the + * [session][google.cloud.dialogflow.cx.v3.SessionInfo.parameters]. * * * Protobuf type {@code google.cloud.dialogflow.cx.v3.Form} @@ -4367,6 +4407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); } else { @@ -4401,7 +4442,15 @@ public com.google.cloud.dialogflow.cx.v3.Form build() { public com.google.cloud.dialogflow.cx.v3.Form buildPartial() { com.google.cloud.dialogflow.cx.v3.Form result = new com.google.cloud.dialogflow.cx.v3.Form(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.Form result) { if (parametersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { parameters_ = java.util.Collections.unmodifiableList(parameters_); @@ -4411,8 +4460,10 @@ public com.google.cloud.dialogflow.cx.v3.Form buildPartial() { } else { result.parameters_ = parametersBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Form result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillIntentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillIntentRequest.java index 051e1e88fc04..3d3e7de3df34 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillIntentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillIntentRequest.java @@ -114,7 +114,9 @@ public com.google.cloud.dialogflow.cx.v3.MatchIntentRequest getMatchIntentReques @java.lang.Override public com.google.cloud.dialogflow.cx.v3.MatchIntentRequestOrBuilder getMatchIntentRequestOrBuilder() { - return getMatchIntentRequest(); + return matchIntentRequest_ == null + ? com.google.cloud.dialogflow.cx.v3.MatchIntentRequest.getDefaultInstance() + : matchIntentRequest_; } public static final int MATCH_FIELD_NUMBER = 2; @@ -160,7 +162,7 @@ public com.google.cloud.dialogflow.cx.v3.Match getMatch() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.MatchOrBuilder getMatchOrBuilder() { - return getMatch(); + return match_ == null ? com.google.cloud.dialogflow.cx.v3.Match.getDefaultInstance() : match_; } public static final int OUTPUT_AUDIO_CONFIG_FIELD_NUMBER = 3; @@ -209,7 +211,9 @@ public com.google.cloud.dialogflow.cx.v3.OutputAudioConfig getOutputAudioConfig( @java.lang.Override public com.google.cloud.dialogflow.cx.v3.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() { - return getOutputAudioConfig(); + return outputAudioConfig_ == null + ? com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.getDefaultInstance() + : outputAudioConfig_; } private byte memoizedIsInitialized = -1; @@ -443,22 +447,20 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (matchIntentRequestBuilder_ == null) { - matchIntentRequest_ = null; - } else { - matchIntentRequest_ = null; + bitField0_ = 0; + matchIntentRequest_ = null; + if (matchIntentRequestBuilder_ != null) { + matchIntentRequestBuilder_.dispose(); matchIntentRequestBuilder_ = null; } - if (matchBuilder_ == null) { - match_ = null; - } else { - match_ = null; + match_ = null; + if (matchBuilder_ != null) { + matchBuilder_.dispose(); matchBuilder_ = null; } - if (outputAudioConfigBuilder_ == null) { - outputAudioConfig_ = null; - } else { - outputAudioConfig_ = null; + outputAudioConfig_ = null; + if (outputAudioConfigBuilder_ != null) { + outputAudioConfigBuilder_.dispose(); outputAudioConfigBuilder_ = null; } return this; @@ -488,25 +490,32 @@ public com.google.cloud.dialogflow.cx.v3.FulfillIntentRequest build() { public com.google.cloud.dialogflow.cx.v3.FulfillIntentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.FulfillIntentRequest result = new com.google.cloud.dialogflow.cx.v3.FulfillIntentRequest(this); - if (matchIntentRequestBuilder_ == null) { - result.matchIntentRequest_ = matchIntentRequest_; - } else { - result.matchIntentRequest_ = matchIntentRequestBuilder_.build(); - } - if (matchBuilder_ == null) { - result.match_ = match_; - } else { - result.match_ = matchBuilder_.build(); - } - if (outputAudioConfigBuilder_ == null) { - result.outputAudioConfig_ = outputAudioConfig_; - } else { - result.outputAudioConfig_ = outputAudioConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.FulfillIntentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.matchIntentRequest_ = + matchIntentRequestBuilder_ == null + ? matchIntentRequest_ + : matchIntentRequestBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.match_ = matchBuilder_ == null ? match_ : matchBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outputAudioConfig_ = + outputAudioConfigBuilder_ == null + ? outputAudioConfig_ + : outputAudioConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -592,20 +601,20 @@ public Builder mergeFrom( { input.readMessage( getMatchIntentRequestFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMatchFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getOutputAudioConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -625,6 +634,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.MatchIntentRequest matchIntentRequest_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.MatchIntentRequest, @@ -644,7 +655,7 @@ public Builder mergeFrom( * @return Whether the matchIntentRequest field is set. */ public boolean hasMatchIntentRequest() { - return matchIntentRequestBuilder_ != null || matchIntentRequest_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -684,11 +695,11 @@ public Builder setMatchIntentRequest( throw new NullPointerException(); } matchIntentRequest_ = value; - onChanged(); } else { matchIntentRequestBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -705,11 +716,11 @@ public Builder setMatchIntentRequest( com.google.cloud.dialogflow.cx.v3.MatchIntentRequest.Builder builderForValue) { if (matchIntentRequestBuilder_ == null) { matchIntentRequest_ = builderForValue.build(); - onChanged(); } else { matchIntentRequestBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -725,19 +736,19 @@ public Builder setMatchIntentRequest( public Builder mergeMatchIntentRequest( com.google.cloud.dialogflow.cx.v3.MatchIntentRequest value) { if (matchIntentRequestBuilder_ == null) { - if (matchIntentRequest_ != null) { - matchIntentRequest_ = - com.google.cloud.dialogflow.cx.v3.MatchIntentRequest.newBuilder(matchIntentRequest_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && matchIntentRequest_ != null + && matchIntentRequest_ + != com.google.cloud.dialogflow.cx.v3.MatchIntentRequest.getDefaultInstance()) { + getMatchIntentRequestBuilder().mergeFrom(value); } else { matchIntentRequest_ = value; } - onChanged(); } else { matchIntentRequestBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -751,14 +762,13 @@ public Builder mergeMatchIntentRequest( * .google.cloud.dialogflow.cx.v3.MatchIntentRequest match_intent_request = 1; */ public Builder clearMatchIntentRequest() { - if (matchIntentRequestBuilder_ == null) { - matchIntentRequest_ = null; - onChanged(); - } else { - matchIntentRequest_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + matchIntentRequest_ = null; + if (matchIntentRequestBuilder_ != null) { + matchIntentRequestBuilder_.dispose(); matchIntentRequestBuilder_ = null; } - + onChanged(); return this; } /** @@ -773,7 +783,7 @@ public Builder clearMatchIntentRequest() { */ public com.google.cloud.dialogflow.cx.v3.MatchIntentRequest.Builder getMatchIntentRequestBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getMatchIntentRequestFieldBuilder().getBuilder(); } @@ -842,7 +852,7 @@ public Builder clearMatchIntentRequest() { * @return Whether the match field is set. */ public boolean hasMatch() { - return matchBuilder_ != null || match_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -879,11 +889,11 @@ public Builder setMatch(com.google.cloud.dialogflow.cx.v3.Match value) { throw new NullPointerException(); } match_ = value; - onChanged(); } else { matchBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -898,11 +908,11 @@ public Builder setMatch(com.google.cloud.dialogflow.cx.v3.Match value) { public Builder setMatch(com.google.cloud.dialogflow.cx.v3.Match.Builder builderForValue) { if (matchBuilder_ == null) { match_ = builderForValue.build(); - onChanged(); } else { matchBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -916,19 +926,18 @@ public Builder setMatch(com.google.cloud.dialogflow.cx.v3.Match.Builder builderF */ public Builder mergeMatch(com.google.cloud.dialogflow.cx.v3.Match value) { if (matchBuilder_ == null) { - if (match_ != null) { - match_ = - com.google.cloud.dialogflow.cx.v3.Match.newBuilder(match_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && match_ != null + && match_ != com.google.cloud.dialogflow.cx.v3.Match.getDefaultInstance()) { + getMatchBuilder().mergeFrom(value); } else { match_ = value; } - onChanged(); } else { matchBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -941,14 +950,13 @@ public Builder mergeMatch(com.google.cloud.dialogflow.cx.v3.Match value) { * .google.cloud.dialogflow.cx.v3.Match match = 2; */ public Builder clearMatch() { - if (matchBuilder_ == null) { - match_ = null; - onChanged(); - } else { - match_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + match_ = null; + if (matchBuilder_ != null) { + matchBuilder_.dispose(); matchBuilder_ = null; } - + onChanged(); return this; } /** @@ -961,7 +969,7 @@ public Builder clearMatch() { * .google.cloud.dialogflow.cx.v3.Match match = 2; */ public com.google.cloud.dialogflow.cx.v3.Match.Builder getMatchBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMatchFieldBuilder().getBuilder(); } @@ -1027,7 +1035,7 @@ public com.google.cloud.dialogflow.cx.v3.MatchOrBuilder getMatchOrBuilder() { * @return Whether the outputAudioConfig field is set. */ public boolean hasOutputAudioConfig() { - return outputAudioConfigBuilder_ != null || outputAudioConfig_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1064,11 +1072,11 @@ public Builder setOutputAudioConfig(com.google.cloud.dialogflow.cx.v3.OutputAudi throw new NullPointerException(); } outputAudioConfig_ = value; - onChanged(); } else { outputAudioConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1084,11 +1092,11 @@ public Builder setOutputAudioConfig( com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.Builder builderForValue) { if (outputAudioConfigBuilder_ == null) { outputAudioConfig_ = builderForValue.build(); - onChanged(); } else { outputAudioConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1103,19 +1111,19 @@ public Builder setOutputAudioConfig( public Builder mergeOutputAudioConfig( com.google.cloud.dialogflow.cx.v3.OutputAudioConfig value) { if (outputAudioConfigBuilder_ == null) { - if (outputAudioConfig_ != null) { - outputAudioConfig_ = - com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.newBuilder(outputAudioConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && outputAudioConfig_ != null + && outputAudioConfig_ + != com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.getDefaultInstance()) { + getOutputAudioConfigBuilder().mergeFrom(value); } else { outputAudioConfig_ = value; } - onChanged(); } else { outputAudioConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1128,14 +1136,13 @@ public Builder mergeOutputAudioConfig( * .google.cloud.dialogflow.cx.v3.OutputAudioConfig output_audio_config = 3; */ public Builder clearOutputAudioConfig() { - if (outputAudioConfigBuilder_ == null) { - outputAudioConfig_ = null; - onChanged(); - } else { - outputAudioConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + outputAudioConfig_ = null; + if (outputAudioConfigBuilder_ != null) { + outputAudioConfigBuilder_.dispose(); outputAudioConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1149,7 +1156,7 @@ public Builder clearOutputAudioConfig() { */ public com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.Builder getOutputAudioConfigBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getOutputAudioConfigFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillIntentResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillIntentResponse.java index d17deae989d2..ffcf67017336 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillIntentResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillIntentResponse.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int RESPONSE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object responseId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object responseId_ = ""; /** * * @@ -164,11 +166,13 @@ public com.google.cloud.dialogflow.cx.v3.QueryResult getQueryResult() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.QueryResultOrBuilder getQueryResultOrBuilder() { - return getQueryResult(); + return queryResult_ == null + ? com.google.cloud.dialogflow.cx.v3.QueryResult.getDefaultInstance() + : queryResult_; } public static final int OUTPUT_AUDIO_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString outputAudio_; + private com.google.protobuf.ByteString outputAudio_ = com.google.protobuf.ByteString.EMPTY; /** * * @@ -176,9 +180,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryResultOrBuilder getQueryResultOrBu * The audio data bytes encoded as specified in the request. * Note: The output audio is generated based on the values of default platform * text responses found in the - * [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If - * multiple default text responses exist, they will be concatenated when - * generating audio. If no default platform text responses exist, the + * [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] + * field. If multiple default text responses exist, they will be concatenated + * when generating audio. If no default platform text responses exist, the * generated audio content will be empty. * In some scenarios, multiple output audio fields may be present in the * response structure. In these cases, only the top-most-level audio output @@ -240,7 +244,9 @@ public com.google.cloud.dialogflow.cx.v3.OutputAudioConfig getOutputAudioConfig( @java.lang.Override public com.google.cloud.dialogflow.cx.v3.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() { - return getOutputAudioConfig(); + return outputAudioConfig_ == null + ? com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.getDefaultInstance() + : outputAudioConfig_; } private byte memoizedIsInitialized = -1; @@ -478,20 +484,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; responseId_ = ""; - - if (queryResultBuilder_ == null) { - queryResult_ = null; - } else { - queryResult_ = null; + queryResult_ = null; + if (queryResultBuilder_ != null) { + queryResultBuilder_.dispose(); queryResultBuilder_ = null; } outputAudio_ = com.google.protobuf.ByteString.EMPTY; - - if (outputAudioConfigBuilder_ == null) { - outputAudioConfig_ = null; - } else { - outputAudioConfig_ = null; + outputAudioConfig_ = null; + if (outputAudioConfigBuilder_ != null) { + outputAudioConfigBuilder_.dispose(); outputAudioConfigBuilder_ = null; } return this; @@ -521,22 +524,33 @@ public com.google.cloud.dialogflow.cx.v3.FulfillIntentResponse build() { public com.google.cloud.dialogflow.cx.v3.FulfillIntentResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.FulfillIntentResponse result = new com.google.cloud.dialogflow.cx.v3.FulfillIntentResponse(this); - result.responseId_ = responseId_; - if (queryResultBuilder_ == null) { - result.queryResult_ = queryResult_; - } else { - result.queryResult_ = queryResultBuilder_.build(); - } - result.outputAudio_ = outputAudio_; - if (outputAudioConfigBuilder_ == null) { - result.outputAudioConfig_ = outputAudioConfig_; - } else { - result.outputAudioConfig_ = outputAudioConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.FulfillIntentResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.responseId_ = responseId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queryResult_ = + queryResultBuilder_ == null ? queryResult_ : queryResultBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outputAudio_ = outputAudio_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.outputAudioConfig_ = + outputAudioConfigBuilder_ == null + ? outputAudioConfig_ + : outputAudioConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -585,6 +599,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.FulfillIntentResponse return this; if (!other.getResponseId().isEmpty()) { responseId_ = other.responseId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasQueryResult()) { @@ -625,26 +640,26 @@ public Builder mergeFrom( case 10: { responseId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getQueryResultFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { outputAudio_ = input.readBytes(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getOutputAudioConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -664,6 +679,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object responseId_ = ""; /** * @@ -728,8 +745,8 @@ public Builder setResponseId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - responseId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -746,8 +763,8 @@ public Builder setResponseId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearResponseId() { - responseId_ = getDefaultInstance().getResponseId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -769,8 +786,8 @@ public Builder setResponseIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - responseId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -793,7 +810,7 @@ public Builder setResponseIdBytes(com.google.protobuf.ByteString value) { * @return Whether the queryResult field is set. */ public boolean hasQueryResult() { - return queryResultBuilder_ != null || queryResult_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -830,11 +847,11 @@ public Builder setQueryResult(com.google.cloud.dialogflow.cx.v3.QueryResult valu throw new NullPointerException(); } queryResult_ = value; - onChanged(); } else { queryResultBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -850,11 +867,11 @@ public Builder setQueryResult( com.google.cloud.dialogflow.cx.v3.QueryResult.Builder builderForValue) { if (queryResultBuilder_ == null) { queryResult_ = builderForValue.build(); - onChanged(); } else { queryResultBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -868,19 +885,18 @@ public Builder setQueryResult( */ public Builder mergeQueryResult(com.google.cloud.dialogflow.cx.v3.QueryResult value) { if (queryResultBuilder_ == null) { - if (queryResult_ != null) { - queryResult_ = - com.google.cloud.dialogflow.cx.v3.QueryResult.newBuilder(queryResult_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && queryResult_ != null + && queryResult_ != com.google.cloud.dialogflow.cx.v3.QueryResult.getDefaultInstance()) { + getQueryResultBuilder().mergeFrom(value); } else { queryResult_ = value; } - onChanged(); } else { queryResultBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -893,14 +909,13 @@ public Builder mergeQueryResult(com.google.cloud.dialogflow.cx.v3.QueryResult va * .google.cloud.dialogflow.cx.v3.QueryResult query_result = 2; */ public Builder clearQueryResult() { - if (queryResultBuilder_ == null) { - queryResult_ = null; - onChanged(); - } else { - queryResult_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + queryResult_ = null; + if (queryResultBuilder_ != null) { + queryResultBuilder_.dispose(); queryResultBuilder_ = null; } - + onChanged(); return this; } /** @@ -913,7 +928,7 @@ public Builder clearQueryResult() { * .google.cloud.dialogflow.cx.v3.QueryResult query_result = 2; */ public com.google.cloud.dialogflow.cx.v3.QueryResult.Builder getQueryResultBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getQueryResultFieldBuilder().getBuilder(); } @@ -969,9 +984,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryResultOrBuilder getQueryResultOrBu * The audio data bytes encoded as specified in the request. * Note: The output audio is generated based on the values of default platform * text responses found in the - * [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If - * multiple default text responses exist, they will be concatenated when - * generating audio. If no default platform text responses exist, the + * [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] + * field. If multiple default text responses exist, they will be concatenated + * when generating audio. If no default platform text responses exist, the * generated audio content will be empty. * In some scenarios, multiple output audio fields may be present in the * response structure. In these cases, only the top-most-level audio output @@ -993,9 +1008,9 @@ public com.google.protobuf.ByteString getOutputAudio() { * The audio data bytes encoded as specified in the request. * Note: The output audio is generated based on the values of default platform * text responses found in the - * [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If - * multiple default text responses exist, they will be concatenated when - * generating audio. If no default platform text responses exist, the + * [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] + * field. If multiple default text responses exist, they will be concatenated + * when generating audio. If no default platform text responses exist, the * generated audio content will be empty. * In some scenarios, multiple output audio fields may be present in the * response structure. In these cases, only the top-most-level audio output @@ -1011,8 +1026,8 @@ public Builder setOutputAudio(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - outputAudio_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1023,9 +1038,9 @@ public Builder setOutputAudio(com.google.protobuf.ByteString value) { * The audio data bytes encoded as specified in the request. * Note: The output audio is generated based on the values of default platform * text responses found in the - * [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If - * multiple default text responses exist, they will be concatenated when - * generating audio. If no default platform text responses exist, the + * [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] + * field. If multiple default text responses exist, they will be concatenated + * when generating audio. If no default platform text responses exist, the * generated audio content will be empty. * In some scenarios, multiple output audio fields may be present in the * response structure. In these cases, only the top-most-level audio output @@ -1037,7 +1052,7 @@ public Builder setOutputAudio(com.google.protobuf.ByteString value) { * @return This builder for chaining. */ public Builder clearOutputAudio() { - + bitField0_ = (bitField0_ & ~0x00000004); outputAudio_ = getDefaultInstance().getOutputAudio(); onChanged(); return this; @@ -1061,7 +1076,7 @@ public Builder clearOutputAudio() { * @return Whether the outputAudioConfig field is set. */ public boolean hasOutputAudioConfig() { - return outputAudioConfigBuilder_ != null || outputAudioConfig_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1098,11 +1113,11 @@ public Builder setOutputAudioConfig(com.google.cloud.dialogflow.cx.v3.OutputAudi throw new NullPointerException(); } outputAudioConfig_ = value; - onChanged(); } else { outputAudioConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1118,11 +1133,11 @@ public Builder setOutputAudioConfig( com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.Builder builderForValue) { if (outputAudioConfigBuilder_ == null) { outputAudioConfig_ = builderForValue.build(); - onChanged(); } else { outputAudioConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1137,19 +1152,19 @@ public Builder setOutputAudioConfig( public Builder mergeOutputAudioConfig( com.google.cloud.dialogflow.cx.v3.OutputAudioConfig value) { if (outputAudioConfigBuilder_ == null) { - if (outputAudioConfig_ != null) { - outputAudioConfig_ = - com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.newBuilder(outputAudioConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && outputAudioConfig_ != null + && outputAudioConfig_ + != com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.getDefaultInstance()) { + getOutputAudioConfigBuilder().mergeFrom(value); } else { outputAudioConfig_ = value; } - onChanged(); } else { outputAudioConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1162,14 +1177,13 @@ public Builder mergeOutputAudioConfig( * .google.cloud.dialogflow.cx.v3.OutputAudioConfig output_audio_config = 4; */ public Builder clearOutputAudioConfig() { - if (outputAudioConfigBuilder_ == null) { - outputAudioConfig_ = null; - onChanged(); - } else { - outputAudioConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + outputAudioConfig_ = null; + if (outputAudioConfigBuilder_ != null) { + outputAudioConfigBuilder_.dispose(); outputAudioConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1183,7 +1197,7 @@ public Builder clearOutputAudioConfig() { */ public com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.Builder getOutputAudioConfigBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getOutputAudioConfigFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillIntentResponseOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillIntentResponseOrBuilder.java index 1cfcc630169e..d63618eb327c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillIntentResponseOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillIntentResponseOrBuilder.java @@ -92,9 +92,9 @@ public interface FulfillIntentResponseOrBuilder * The audio data bytes encoded as specified in the request. * Note: The output audio is generated based on the values of default platform * text responses found in the - * [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If - * multiple default text responses exist, they will be concatenated when - * generating audio. If no default platform text responses exist, the + * [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] + * field. If multiple default text responses exist, they will be concatenated + * when generating audio. If no default platform text responses exist, the * generated audio content will be empty. * In some scenarios, multiple output audio fields may be present in the * response structure. In these cases, only the top-most-level audio output diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Fulfillment.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Fulfillment.java index 2dc457df89f6..7cd2600eb3a1 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Fulfillment.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Fulfillment.java @@ -26,10 +26,14 @@ * * Generate rich message responses. * * Set parameter values. * * Call the webhook. - * Fulfillments can be called at various stages in the [Page][google.cloud.dialogflow.cx.v3.Page] or - * [Form][google.cloud.dialogflow.cx.v3.Form] lifecycle. For example, when a [DetectIntentRequest][google.cloud.dialogflow.cx.v3.DetectIntentRequest] drives a - * session to enter a new page, the page's entry fulfillment can add a static - * response to the [QueryResult][google.cloud.dialogflow.cx.v3.QueryResult] in the returning [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse], + * Fulfillments can be called at various stages in the + * [Page][google.cloud.dialogflow.cx.v3.Page] or + * [Form][google.cloud.dialogflow.cx.v3.Form] lifecycle. For example, when a + * [DetectIntentRequest][google.cloud.dialogflow.cx.v3.DetectIntentRequest] + * drives a session to enter a new page, the page's entry fulfillment can add a + * static response to the + * [QueryResult][google.cloud.dialogflow.cx.v3.QueryResult] in the returning + * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse], * call the webhook (for example, to load user data from a database), or both. * * @@ -194,7 +198,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARAMETER_FIELD_NUMBER = 1; - private volatile java.lang.Object parameter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parameter_ = ""; /** * * @@ -285,7 +291,7 @@ public com.google.protobuf.Value getValue() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { - return getValue(); + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; } private byte memoizedIsInitialized = -1; @@ -504,12 +510,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parameter_ = ""; - - if (valueBuilder_ == null) { - value_ = null; - } else { - value_ = null; + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); valueBuilder_ = null; } return this; @@ -541,16 +546,24 @@ public com.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction build() public com.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction buildPartial() { com.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction result = new com.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction(this); - result.parameter_ = parameter_; - if (valueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = valueBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parameter_ = parameter_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -604,6 +617,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParameter().isEmpty()) { parameter_ = other.parameter_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasValue()) { @@ -638,13 +652,13 @@ public Builder mergeFrom( case 10: { parameter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -664,6 +678,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parameter_ = ""; /** * @@ -725,8 +741,8 @@ public Builder setParameter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parameter_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -742,8 +758,8 @@ public Builder setParameter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParameter() { - parameter_ = getDefaultInstance().getParameter(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -764,8 +780,8 @@ public Builder setParameterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parameter_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -788,7 +804,7 @@ public Builder setParameterBytes(com.google.protobuf.ByteString value) { * @return Whether the value field is set. */ public boolean hasValue() { - return valueBuilder_ != null || value_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -823,11 +839,11 @@ public Builder setValue(com.google.protobuf.Value value) { throw new NullPointerException(); } value_ = value; - onChanged(); } else { valueBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -842,11 +858,11 @@ public Builder setValue(com.google.protobuf.Value value) { public Builder setValue(com.google.protobuf.Value.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); - onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -860,16 +876,18 @@ public Builder setValue(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeValue(com.google.protobuf.Value value) { if (valueBuilder_ == null) { - if (value_ != null) { - value_ = com.google.protobuf.Value.newBuilder(value_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && value_ != null + && value_ != com.google.protobuf.Value.getDefaultInstance()) { + getValueBuilder().mergeFrom(value); } else { value_ = value; } - onChanged(); } else { valueBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -882,14 +900,13 @@ public Builder mergeValue(com.google.protobuf.Value value) { * .google.protobuf.Value value = 2; */ public Builder clearValue() { - if (valueBuilder_ == null) { - value_ = null; - onChanged(); - } else { - value_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); valueBuilder_ = null; } - + onChanged(); return this; } /** @@ -902,7 +919,7 @@ public Builder clearValue() { * .google.protobuf.Value value = 2; */ public com.google.protobuf.Value.Builder getValueBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getValueFieldBuilder().getBuilder(); } @@ -1844,6 +1861,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (messageBuilder_ != null) { messageBuilder_.clear(); } @@ -1885,25 +1903,33 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent result = new com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent( this); - if (casesOrMessageCase_ == 1) { - if (messageBuilder_ == null) { - result.casesOrMessage_ = casesOrMessage_; - } else { - result.casesOrMessage_ = messageBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (casesOrMessageCase_ == 2) { - if (additionalCasesBuilder_ == null) { - result.casesOrMessage_ = casesOrMessage_; - } else { - result.casesOrMessage_ = additionalCasesBuilder_.build(); - } - } - result.casesOrMessageCase_ = casesOrMessageCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent + result) { + result.casesOrMessageCase_ = casesOrMessageCase_; + result.casesOrMessage_ = this.casesOrMessage_; + if (casesOrMessageCase_ == 1 && messageBuilder_ != null) { + result.casesOrMessage_ = messageBuilder_.build(); + } + if (casesOrMessageCase_ == 2 && additionalCasesBuilder_ != null) { + result.casesOrMessage_ = additionalCasesBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2045,6 +2071,8 @@ public Builder clearCasesOrMessage() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.ResponseMessage, com.google.cloud.dialogflow.cx.v3.ResponseMessage.Builder, @@ -2253,7 +2281,6 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getMessageOrBu } casesOrMessageCase_ = 1; onChanged(); - ; return messageBuilder_; } @@ -2489,7 +2516,6 @@ public Builder clearAdditionalCases() { } casesOrMessageCase_ = 2; onChanged(); - ; return additionalCasesBuilder_; } @@ -2564,7 +2590,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int CONDITION_FIELD_NUMBER = 1; - private volatile java.lang.Object condition_; + + @SuppressWarnings("serial") + private volatile java.lang.Object condition_ = ""; /** * * @@ -2623,6 +2651,8 @@ public com.google.protobuf.ByteString getConditionBytes() { } public static final int CASE_CONTENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case.CaseContent> caseContent_; @@ -2927,15 +2957,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; condition_ = ""; - if (caseContentBuilder_ == null) { caseContent_ = java.util.Collections.emptyList(); } else { caseContent_ = null; caseContentBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -2966,19 +2996,33 @@ public com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case build public com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case buildPartial() { com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case result = new com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case(this); - int from_bitField0_ = bitField0_; - result.condition_ = condition_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case result) { if (caseContentBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { caseContent_ = java.util.Collections.unmodifiableList(caseContent_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.caseContent_ = caseContent_; } else { result.caseContent_ = caseContentBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.condition_ = condition_; + } } @java.lang.Override @@ -3035,13 +3079,14 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getCondition().isEmpty()) { condition_ = other.condition_; + bitField0_ |= 0x00000001; onChanged(); } if (caseContentBuilder_ == null) { if (!other.caseContent_.isEmpty()) { if (caseContent_.isEmpty()) { caseContent_ = other.caseContent_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCaseContentIsMutable(); caseContent_.addAll(other.caseContent_); @@ -3054,7 +3099,7 @@ public Builder mergeFrom( caseContentBuilder_.dispose(); caseContentBuilder_ = null; caseContent_ = other.caseContent_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); caseContentBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCaseContentFieldBuilder() @@ -3093,7 +3138,7 @@ public Builder mergeFrom( case 10: { condition_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -3207,8 +3252,8 @@ public Builder setCondition(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - condition_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3229,8 +3274,8 @@ public Builder setCondition(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCondition() { - condition_ = getDefaultInstance().getCondition(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3256,8 +3301,8 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - condition_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3267,12 +3312,12 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) { caseContent_ = java.util.Collections.emptyList(); private void ensureCaseContentIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { caseContent_ = new java.util.ArrayList< com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case .CaseContent>(caseContent_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -3529,7 +3574,7 @@ public Builder addAllCaseContent( public Builder clearCaseContent() { if (caseContentBuilder_ == null) { caseContent_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { caseContentBuilder_.clear(); @@ -3688,7 +3733,7 @@ public Builder removeCaseContent(int index) { com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case .CaseContentOrBuilder>( caseContent_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); caseContent_ = null; @@ -3765,6 +3810,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int CASES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List cases_; /** @@ -4045,6 +4092,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (casesBuilder_ == null) { cases_ = java.util.Collections.emptyList(); } else { @@ -4080,7 +4128,16 @@ public com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases build() { public com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases buildPartial() { com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases result = new com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases result) { if (casesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { cases_ = java.util.Collections.unmodifiableList(cases_); @@ -4090,8 +4147,11 @@ public com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases buildParti } else { result.cases_ = casesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -4693,6 +4753,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int MESSAGES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List messages_; /** * @@ -4763,7 +4825,9 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getMessagesOrB } public static final int WEBHOOK_FIELD_NUMBER = 2; - private volatile java.lang.Object webhook_; + + @SuppressWarnings("serial") + private volatile java.lang.Object webhook_ = ""; /** * * @@ -4816,7 +4880,7 @@ public com.google.protobuf.ByteString getWebhookBytes() { } public static final int RETURN_PARTIAL_RESPONSES_FIELD_NUMBER = 8; - private boolean returnPartialResponses_; + private boolean returnPartialResponses_ = false; /** * * @@ -4842,12 +4906,15 @@ public boolean getReturnPartialResponses() { } public static final int TAG_FIELD_NUMBER = 3; - private volatile java.lang.Object tag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tag_ = ""; /** * * *
-   * The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
+   * The value of this field will be populated in the
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
    * `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
    * called.
    * The tag is typically used by the webhook service to identify which
@@ -4875,7 +4942,8 @@ public java.lang.String getTag() {
    *
    *
    * 
-   * The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
+   * The value of this field will be populated in the
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
    * `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
    * called.
    * The tag is typically used by the webhook service to identify which
@@ -4901,6 +4969,8 @@ public com.google.protobuf.ByteString getTagBytes() {
   }
 
   public static final int SET_PARAMETER_ACTIONS_FIELD_NUMBER = 4;
+
+  @SuppressWarnings("serial")
   private java.util.List
       setParameterActions_;
   /**
@@ -4985,6 +5055,8 @@ public com.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction getSetPa
   }
 
   public static final int CONDITIONAL_CASES_FIELD_NUMBER = 5;
+
+  @SuppressWarnings("serial")
   private java.util.List
       conditionalCases_;
   /**
@@ -5287,10 +5359,14 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *   * Generate rich message responses.
    *   * Set parameter values.
    *   * Call the webhook.
-   * Fulfillments can be called at various stages in the [Page][google.cloud.dialogflow.cx.v3.Page] or
-   * [Form][google.cloud.dialogflow.cx.v3.Form] lifecycle. For example, when a [DetectIntentRequest][google.cloud.dialogflow.cx.v3.DetectIntentRequest] drives a
-   * session to enter a new page, the page's entry fulfillment can add a static
-   * response to the [QueryResult][google.cloud.dialogflow.cx.v3.QueryResult] in the returning [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse],
+   * Fulfillments can be called at various stages in the
+   * [Page][google.cloud.dialogflow.cx.v3.Page] or
+   * [Form][google.cloud.dialogflow.cx.v3.Form] lifecycle. For example, when a
+   * [DetectIntentRequest][google.cloud.dialogflow.cx.v3.DetectIntentRequest]
+   * drives a session to enter a new page, the page's entry fulfillment can add a
+   * static response to the
+   * [QueryResult][google.cloud.dialogflow.cx.v3.QueryResult] in the returning
+   * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse],
    * call the webhook (for example, to load user data from a database), or both.
    * 
* @@ -5325,6 +5401,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (messagesBuilder_ == null) { messages_ = java.util.Collections.emptyList(); } else { @@ -5333,25 +5410,22 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); webhook_ = ""; - returnPartialResponses_ = false; - tag_ = ""; - if (setParameterActionsBuilder_ == null) { setParameterActions_ = java.util.Collections.emptyList(); } else { setParameterActions_ = null; setParameterActionsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); if (conditionalCasesBuilder_ == null) { conditionalCases_ = java.util.Collections.emptyList(); } else { conditionalCases_ = null; conditionalCasesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); return this; } @@ -5379,7 +5453,15 @@ public com.google.cloud.dialogflow.cx.v3.Fulfillment build() { public com.google.cloud.dialogflow.cx.v3.Fulfillment buildPartial() { com.google.cloud.dialogflow.cx.v3.Fulfillment result = new com.google.cloud.dialogflow.cx.v3.Fulfillment(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.Fulfillment result) { if (messagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); @@ -5389,29 +5471,37 @@ public com.google.cloud.dialogflow.cx.v3.Fulfillment buildPartial() { } else { result.messages_ = messagesBuilder_.build(); } - result.webhook_ = webhook_; - result.returnPartialResponses_ = returnPartialResponses_; - result.tag_ = tag_; if (setParameterActionsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { setParameterActions_ = java.util.Collections.unmodifiableList(setParameterActions_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); } result.setParameterActions_ = setParameterActions_; } else { result.setParameterActions_ = setParameterActionsBuilder_.build(); } if (conditionalCasesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { conditionalCases_ = java.util.Collections.unmodifiableList(conditionalCases_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); } result.conditionalCases_ = conditionalCases_; } else { result.conditionalCases_ = conditionalCasesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Fulfillment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.webhook_ = webhook_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.returnPartialResponses_ = returnPartialResponses_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.tag_ = tag_; + } } @java.lang.Override @@ -5488,6 +5578,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Fulfillment other) { } if (!other.getWebhook().isEmpty()) { webhook_ = other.webhook_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getReturnPartialResponses() != false) { @@ -5495,13 +5586,14 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Fulfillment other) { } if (!other.getTag().isEmpty()) { tag_ = other.tag_; + bitField0_ |= 0x00000008; onChanged(); } if (setParameterActionsBuilder_ == null) { if (!other.setParameterActions_.isEmpty()) { if (setParameterActions_.isEmpty()) { setParameterActions_ = other.setParameterActions_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureSetParameterActionsIsMutable(); setParameterActions_.addAll(other.setParameterActions_); @@ -5514,7 +5606,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Fulfillment other) { setParameterActionsBuilder_.dispose(); setParameterActionsBuilder_ = null; setParameterActions_ = other.setParameterActions_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); setParameterActionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSetParameterActionsFieldBuilder() @@ -5528,7 +5620,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Fulfillment other) { if (!other.conditionalCases_.isEmpty()) { if (conditionalCases_.isEmpty()) { conditionalCases_ = other.conditionalCases_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureConditionalCasesIsMutable(); conditionalCases_.addAll(other.conditionalCases_); @@ -5541,7 +5633,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Fulfillment other) { conditionalCasesBuilder_.dispose(); conditionalCasesBuilder_ = null; conditionalCases_ = other.conditionalCases_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); conditionalCasesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConditionalCasesFieldBuilder() @@ -5594,13 +5686,13 @@ public Builder mergeFrom( case 18: { webhook_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { tag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 26 case 34: @@ -5634,7 +5726,7 @@ public Builder mergeFrom( case 64: { returnPartialResponses_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 64 default: @@ -6076,8 +6168,8 @@ public Builder setWebhook(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - webhook_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -6095,8 +6187,8 @@ public Builder setWebhook(java.lang.String value) { * @return This builder for chaining. */ public Builder clearWebhook() { - webhook_ = getDefaultInstance().getWebhook(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -6119,8 +6211,8 @@ public Builder setWebhookBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - webhook_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -6172,6 +6264,7 @@ public boolean getReturnPartialResponses() { public Builder setReturnPartialResponses(boolean value) { returnPartialResponses_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -6195,7 +6288,7 @@ public Builder setReturnPartialResponses(boolean value) { * @return This builder for chaining. */ public Builder clearReturnPartialResponses() { - + bitField0_ = (bitField0_ & ~0x00000004); returnPartialResponses_ = false; onChanged(); return this; @@ -6206,7 +6299,8 @@ public Builder clearReturnPartialResponses() { * * *
-     * The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
+     * The value of this field will be populated in the
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
      * `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
      * called.
      * The tag is typically used by the webhook service to identify which
@@ -6233,7 +6327,8 @@ public java.lang.String getTag() {
      *
      *
      * 
-     * The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
+     * The value of this field will be populated in the
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
      * `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
      * called.
      * The tag is typically used by the webhook service to identify which
@@ -6260,7 +6355,8 @@ public com.google.protobuf.ByteString getTagBytes() {
      *
      *
      * 
-     * The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
+     * The value of this field will be populated in the
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
      * `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
      * called.
      * The tag is typically used by the webhook service to identify which
@@ -6277,8 +6373,8 @@ public Builder setTag(java.lang.String value) {
       if (value == null) {
         throw new NullPointerException();
       }
-
       tag_ = value;
+      bitField0_ |= 0x00000008;
       onChanged();
       return this;
     }
@@ -6286,7 +6382,8 @@ public Builder setTag(java.lang.String value) {
      *
      *
      * 
-     * The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
+     * The value of this field will be populated in the
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
      * `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
      * called.
      * The tag is typically used by the webhook service to identify which
@@ -6299,8 +6396,8 @@ public Builder setTag(java.lang.String value) {
      * @return This builder for chaining.
      */
     public Builder clearTag() {
-
       tag_ = getDefaultInstance().getTag();
+      bitField0_ = (bitField0_ & ~0x00000008);
       onChanged();
       return this;
     }
@@ -6308,7 +6405,8 @@ public Builder clearTag() {
      *
      *
      * 
-     * The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
+     * The value of this field will be populated in the
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
      * `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
      * called.
      * The tag is typically used by the webhook service to identify which
@@ -6326,8 +6424,8 @@ public Builder setTagBytes(com.google.protobuf.ByteString value) {
         throw new NullPointerException();
       }
       checkByteStringIsUtf8(value);
-
       tag_ = value;
+      bitField0_ |= 0x00000008;
       onChanged();
       return this;
     }
@@ -6336,12 +6434,12 @@ public Builder setTagBytes(com.google.protobuf.ByteString value) {
         setParameterActions_ = java.util.Collections.emptyList();
 
     private void ensureSetParameterActionsIsMutable() {
-      if (!((bitField0_ & 0x00000002) != 0)) {
+      if (!((bitField0_ & 0x00000010) != 0)) {
         setParameterActions_ =
             new java.util.ArrayList<
                 com.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction>(
                 setParameterActions_);
-        bitField0_ |= 0x00000002;
+        bitField0_ |= 0x00000010;
       }
     }
 
@@ -6588,7 +6686,7 @@ public Builder addAllSetParameterActions(
     public Builder clearSetParameterActions() {
       if (setParameterActionsBuilder_ == null) {
         setParameterActions_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000002);
+        bitField0_ = (bitField0_ & ~0x00000010);
         onChanged();
       } else {
         setParameterActionsBuilder_.clear();
@@ -6735,7 +6833,7 @@ public Builder removeSetParameterActions(int index) {
                 com.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction.Builder,
                 com.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterActionOrBuilder>(
                 setParameterActions_,
-                ((bitField0_ & 0x00000002) != 0),
+                ((bitField0_ & 0x00000010) != 0),
                 getParentForChildren(),
                 isClean());
         setParameterActions_ = null;
@@ -6747,11 +6845,11 @@ public Builder removeSetParameterActions(int index) {
         conditionalCases_ = java.util.Collections.emptyList();
 
     private void ensureConditionalCasesIsMutable() {
-      if (!((bitField0_ & 0x00000004) != 0)) {
+      if (!((bitField0_ & 0x00000020) != 0)) {
         conditionalCases_ =
             new java.util.ArrayList(
                 conditionalCases_);
-        bitField0_ |= 0x00000004;
+        bitField0_ |= 0x00000020;
       }
     }
 
@@ -6997,7 +7095,7 @@ public Builder addAllConditionalCases(
     public Builder clearConditionalCases() {
       if (conditionalCasesBuilder_ == null) {
         conditionalCases_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000004);
+        bitField0_ = (bitField0_ & ~0x00000020);
         onChanged();
       } else {
         conditionalCasesBuilder_.clear();
@@ -7142,7 +7240,7 @@ public Builder removeConditionalCases(int index) {
                 com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Builder,
                 com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCasesOrBuilder>(
                 conditionalCases_,
-                ((bitField0_ & 0x00000004) != 0),
+                ((bitField0_ & 0x00000020) != 0),
                 getParentForChildren(),
                 isClean());
         conditionalCases_ = null;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentOrBuilder.java
index 6bb991a5d758..094d29cadc85 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentOrBuilder.java
@@ -129,7 +129,8 @@ public interface FulfillmentOrBuilder
    *
    *
    * 
-   * The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
+   * The value of this field will be populated in the
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
    * `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
    * called.
    * The tag is typically used by the webhook service to identify which
@@ -146,7 +147,8 @@ public interface FulfillmentOrBuilder
    *
    *
    * 
-   * The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
+   * The value of this field will be populated in the
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]
    * `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is
    * called.
    * The tag is typically used by the webhook service to identify which
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentProto.java
index 45713743c50d..b46e88c9991c 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentProto.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/FulfillmentProto.java
@@ -82,12 +82,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "alogflow.cx.v3.ResponseMessageH\000\022W\n\020addi"
           + "tional_cases\030\002 \001(\0132;.google.cloud.dialog"
           + "flow.cx.v3.Fulfillment.ConditionalCasesH"
-          + "\000B\022\n\020cases_or_messageB\304\001\n!com.google.clo"
+          + "\000B\022\n\020cases_or_messageB\266\001\n!com.google.clo"
           + "ud.dialogflow.cx.v3B\020FulfillmentProtoP\001Z"
-          + "?google.golang.org/genproto/googleapis/c"
-          + "loud/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Googl"
-          + "e.Cloud.Dialogflow.Cx.V3\352\002!Google::Cloud"
-          + "::Dialogflow::CX::V3b\006proto3"
+          + "1cloud.google.com/go/dialogflow/cx/apiv3"
+          + "/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialog"
+          + "flow.Cx.V3\352\002!Google::Cloud::Dialogflow::"
+          + "CX::V3b\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentRequest.java
index a5fb2e797599..8ffecc7af392 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentRequest.java
@@ -22,7 +22,8 @@
  *
  *
  * 
- * The request message for [Agents.GetAgent][google.cloud.dialogflow.cx.v3.Agents.GetAgent].
+ * The request message for
+ * [Agents.GetAgent][google.cloud.dialogflow.cx.v3.Agents.GetAgent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetAgentRequest} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -285,7 +288,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Agents.GetAgent][google.cloud.dialogflow.cx.v3.Agents.GetAgent].
+   * The request message for
+   * [Agents.GetAgent][google.cloud.dialogflow.cx.v3.Agents.GetAgent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetAgentRequest} @@ -319,8 +323,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -348,11 +352,20 @@ public com.google.cloud.dialogflow.cx.v3.GetAgentRequest build() { public com.google.cloud.dialogflow.cx.v3.GetAgentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.GetAgentRequest result = new com.google.cloud.dialogflow.cx.v3.GetAgentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetAgentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -401,6 +414,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetAgentRequest other return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -432,7 +446,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -452,6 +466,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -522,8 +538,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -542,8 +558,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -567,8 +583,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentValidationResultRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentValidationResultRequest.java index f30f852cd9f0..af3cc645ae2a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentValidationResultRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetAgentValidationResultRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult].
+ * The request message for
+ * [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest} @@ -70,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -127,7 +130,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -349,7 +354,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult].
+   * The request message for
+   * [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest} @@ -384,10 +390,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - languageCode_ = ""; - return this; } @@ -416,12 +421,24 @@ public com.google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest build() public com.google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest result = new com.google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest(this); - result.name_ = name_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.GetAgentValidationResultRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -472,10 +489,12 @@ public Builder mergeFrom( return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -507,13 +526,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -533,6 +552,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -606,8 +627,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -627,8 +648,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -653,8 +674,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -720,8 +741,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -737,8 +758,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -759,8 +780,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetChangelogRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetChangelogRequest.java index 75a4e0a6569b..14344d3216a8 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetChangelogRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetChangelogRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Changelogs.GetChangelog][google.cloud.dialogflow.cx.v3.Changelogs.GetChangelog].
+ * The request message for
+ * [Changelogs.GetChangelog][google.cloud.dialogflow.cx.v3.Changelogs.GetChangelog].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetChangelogRequest} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -288,7 +291,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Changelogs.GetChangelog][google.cloud.dialogflow.cx.v3.Changelogs.GetChangelog].
+   * The request message for
+   * [Changelogs.GetChangelog][google.cloud.dialogflow.cx.v3.Changelogs.GetChangelog].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetChangelogRequest} @@ -322,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -351,11 +355,20 @@ public com.google.cloud.dialogflow.cx.v3.GetChangelogRequest build() { public com.google.cloud.dialogflow.cx.v3.GetChangelogRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.GetChangelogRequest result = new com.google.cloud.dialogflow.cx.v3.GetChangelogRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetChangelogRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetChangelogRequest o return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -435,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -455,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -528,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -549,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -575,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequest.java index 0c03366fec07..5971dc1868d8 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Deployments.GetDeployment][google.cloud.dialogflow.cx.v3.Deployments.GetDeployment].
+ * The request message for
+ * [Deployments.GetDeployment][google.cloud.dialogflow.cx.v3.Deployments.GetDeployment].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetDeploymentRequest} @@ -68,13 +69,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
-   * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The name of the
+   * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
    * 
* @@ -100,8 +104,9 @@ public java.lang.String getName() { * * *
-   * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The name of the
+   * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
    * 
* @@ -288,7 +293,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Deployments.GetDeployment][google.cloud.dialogflow.cx.v3.Deployments.GetDeployment].
+   * The request message for
+   * [Deployments.GetDeployment][google.cloud.dialogflow.cx.v3.Deployments.GetDeployment].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetDeploymentRequest} @@ -322,8 +328,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -351,11 +357,20 @@ public com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest build() { public com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest result = new com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,6 +419,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetDeploymentRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -435,7 +451,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -455,13 +471,16 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * * *
-     * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
      * 
* @@ -486,8 +505,9 @@ public java.lang.String getName() { * * *
-     * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
      * 
* @@ -512,8 +532,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
      * 
* @@ -528,8 +549,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -537,8 +558,9 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
      * 
* @@ -549,8 +571,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -558,8 +580,9 @@ public Builder clearName() { * * *
-     * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
      * 
* @@ -575,8 +598,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequestOrBuilder.java index ad803532d982..d1191cd6cb80 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetDeploymentRequestOrBuilder.java @@ -27,8 +27,9 @@ public interface GetDeploymentRequestOrBuilder * * *
-   * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The name of the
+   * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
    * 
* @@ -43,8 +44,9 @@ public interface GetDeploymentRequestOrBuilder * * *
-   * Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The name of the
+   * [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>/deployments/<Deployment ID>`.
    * 
* diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEntityTypeRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEntityTypeRequest.java index ab1c7fbdb433..df40877a7aac 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEntityTypeRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEntityTypeRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType].
+ * The request message for
+ * [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,7 +129,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -365,7 +370,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType].
+   * The request message for
+   * [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetEntityTypeRequest} @@ -399,10 +405,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - languageCode_ = ""; - return this; } @@ -430,12 +435,23 @@ public com.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest build() { public com.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest result = new com.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest(this); - result.name_ = name_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -484,10 +500,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetEntityTypeRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -519,13 +537,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -545,6 +563,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -618,8 +638,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -639,8 +659,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -665,8 +685,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -759,8 +779,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -785,8 +805,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -816,8 +836,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEnvironmentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEnvironmentRequest.java index 0a84dddeba10..8778fdb52a86 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEnvironmentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEnvironmentRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Environments.GetEnvironment][google.cloud.dialogflow.cx.v3.Environments.GetEnvironment].
+ * The request message for
+ * [Environments.GetEnvironment][google.cloud.dialogflow.cx.v3.Environments.GetEnvironment].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetEnvironmentRequest} @@ -68,13 +69,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
-   * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The name of the
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>`.
    * 
* @@ -100,8 +104,9 @@ public java.lang.String getName() { * * *
-   * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The name of the
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>`.
    * 
* @@ -288,7 +293,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Environments.GetEnvironment][google.cloud.dialogflow.cx.v3.Environments.GetEnvironment].
+   * The request message for
+   * [Environments.GetEnvironment][google.cloud.dialogflow.cx.v3.Environments.GetEnvironment].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetEnvironmentRequest} @@ -322,8 +328,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -351,11 +357,20 @@ public com.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest build() { public com.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest result = new com.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,6 +419,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetEnvironmentRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -435,7 +451,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -455,13 +471,16 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * * *
-     * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>`.
      * 
* @@ -486,8 +505,9 @@ public java.lang.String getName() { * * *
-     * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>`.
      * 
* @@ -512,8 +532,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>`.
      * 
* @@ -528,8 +549,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -537,8 +558,9 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>`.
      * 
* @@ -549,8 +571,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -558,8 +580,9 @@ public Builder clearName() { * * *
-     * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>`.
      * 
* @@ -575,8 +598,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEnvironmentRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEnvironmentRequestOrBuilder.java index 13e38593608c..39b262672f7a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEnvironmentRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetEnvironmentRequestOrBuilder.java @@ -27,8 +27,9 @@ public interface GetEnvironmentRequestOrBuilder * * *
-   * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The name of the
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>`.
    * 
* @@ -43,8 +44,9 @@ public interface GetEnvironmentRequestOrBuilder * * *
-   * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The name of the
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>`.
    * 
* diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetExperimentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetExperimentRequest.java index 7ca0fc4040a7..d93dc185e388 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetExperimentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetExperimentRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Experiments.GetExperiment][google.cloud.dialogflow.cx.v3.Experiments.GetExperiment].
+ * The request message for
+ * [Experiments.GetExperiment][google.cloud.dialogflow.cx.v3.Experiments.GetExperiment].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetExperimentRequest} @@ -68,13 +69,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
-   * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The name of the
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
    * 
* @@ -100,8 +104,9 @@ public java.lang.String getName() { * * *
-   * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The name of the
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
    * 
* @@ -288,7 +293,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Experiments.GetExperiment][google.cloud.dialogflow.cx.v3.Experiments.GetExperiment].
+   * The request message for
+   * [Experiments.GetExperiment][google.cloud.dialogflow.cx.v3.Experiments.GetExperiment].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetExperimentRequest} @@ -322,8 +328,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -351,11 +357,20 @@ public com.google.cloud.dialogflow.cx.v3.GetExperimentRequest build() { public com.google.cloud.dialogflow.cx.v3.GetExperimentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.GetExperimentRequest result = new com.google.cloud.dialogflow.cx.v3.GetExperimentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetExperimentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,6 +419,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetExperimentRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -435,7 +451,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -455,13 +471,16 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * * *
-     * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
      * 
* @@ -486,8 +505,9 @@ public java.lang.String getName() { * * *
-     * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
      * 
* @@ -512,8 +532,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
      * 
* @@ -528,8 +549,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -537,8 +558,9 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
      * 
* @@ -549,8 +571,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -558,8 +580,9 @@ public Builder clearName() { * * *
-     * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * Required. The name of the
+     * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
      * 
* @@ -575,8 +598,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetExperimentRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetExperimentRequestOrBuilder.java index 539db127ad78..acf07e10e100 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetExperimentRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetExperimentRequestOrBuilder.java @@ -27,8 +27,9 @@ public interface GetExperimentRequestOrBuilder * * *
-   * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The name of the
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
    * 
* @@ -43,8 +44,9 @@ public interface GetExperimentRequestOrBuilder * * *
-   * Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment].
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * Required. The name of the
+   * [Environment][google.cloud.dialogflow.cx.v3.Environment]. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
    * 
* diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowRequest.java index b33d3053c6e3..ac0ca778c66a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowRequest.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Flows.GetFlow][google.cloud.dialogflow.cx.v3.Flows.GetFlow].
+ * The response message for
+ * [Flows.GetFlow][google.cloud.dialogflow.cx.v3.Flows.GetFlow].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetFlowRequest} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,7 +129,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -366,7 +371,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Flows.GetFlow][google.cloud.dialogflow.cx.v3.Flows.GetFlow].
+   * The response message for
+   * [Flows.GetFlow][google.cloud.dialogflow.cx.v3.Flows.GetFlow].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetFlowRequest} @@ -400,10 +406,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - languageCode_ = ""; - return this; } @@ -431,12 +436,23 @@ public com.google.cloud.dialogflow.cx.v3.GetFlowRequest build() { public com.google.cloud.dialogflow.cx.v3.GetFlowRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.GetFlowRequest result = new com.google.cloud.dialogflow.cx.v3.GetFlowRequest(this); - result.name_ = name_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetFlowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -485,10 +501,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetFlowRequest other) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -520,13 +538,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -546,6 +564,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -619,8 +639,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -640,8 +660,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -666,8 +686,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -763,8 +783,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -790,8 +810,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -822,8 +842,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowValidationResultRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowValidationResultRequest.java index 4c4e2cec7c18..2815b1b9dc5b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowValidationResultRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetFlowValidationResultRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult].
+ * The request message for
+ * [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest} @@ -70,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -127,7 +130,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -348,7 +353,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult].
+   * The request message for
+   * [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest} @@ -382,10 +388,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - languageCode_ = ""; - return this; } @@ -414,12 +419,24 @@ public com.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest build() public com.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest result = new com.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest(this); - result.name_ = name_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.GetFlowValidationResultRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -470,10 +487,12 @@ public Builder mergeFrom( return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -505,13 +524,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -531,6 +550,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -604,8 +625,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -625,8 +646,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -651,8 +672,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -718,8 +739,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -735,8 +756,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -757,8 +778,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetIntentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetIntentRequest.java index efd77684b55b..4c8b079688b3 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetIntentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetIntentRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Intents.GetIntent][google.cloud.dialogflow.cx.v3.Intents.GetIntent].
+ * The request message for
+ * [Intents.GetIntent][google.cloud.dialogflow.cx.v3.Intents.GetIntent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetIntentRequest} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,7 +129,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -360,7 +365,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Intents.GetIntent][google.cloud.dialogflow.cx.v3.Intents.GetIntent].
+   * The request message for
+   * [Intents.GetIntent][google.cloud.dialogflow.cx.v3.Intents.GetIntent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetIntentRequest} @@ -394,10 +400,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - languageCode_ = ""; - return this; } @@ -425,12 +430,23 @@ public com.google.cloud.dialogflow.cx.v3.GetIntentRequest build() { public com.google.cloud.dialogflow.cx.v3.GetIntentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.GetIntentRequest result = new com.google.cloud.dialogflow.cx.v3.GetIntentRequest(this); - result.name_ = name_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetIntentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -479,10 +495,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetIntentRequest othe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -514,13 +532,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -540,6 +558,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -613,8 +633,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -634,8 +654,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -660,8 +680,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -748,8 +768,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -772,8 +792,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -801,8 +821,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetPageRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetPageRequest.java index 9f81af497f35..92d9189eabe0 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetPageRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetPageRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Pages.GetPage][google.cloud.dialogflow.cx.v3.Pages.GetPage].
+ * The request message for
+ * [Pages.GetPage][google.cloud.dialogflow.cx.v3.Pages.GetPage].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetPageRequest} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,7 +129,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -382,7 +387,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Pages.GetPage][google.cloud.dialogflow.cx.v3.Pages.GetPage].
+   * The request message for
+   * [Pages.GetPage][google.cloud.dialogflow.cx.v3.Pages.GetPage].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetPageRequest} @@ -416,10 +422,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - languageCode_ = ""; - return this; } @@ -447,12 +452,23 @@ public com.google.cloud.dialogflow.cx.v3.GetPageRequest build() { public com.google.cloud.dialogflow.cx.v3.GetPageRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.GetPageRequest result = new com.google.cloud.dialogflow.cx.v3.GetPageRequest(this); - result.name_ = name_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetPageRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -501,10 +517,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetPageRequest other) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -536,13 +554,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -562,6 +580,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -635,8 +655,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -656,8 +676,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -682,8 +702,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -803,8 +823,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -838,8 +858,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -878,8 +898,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSecuritySettingsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSecuritySettingsRequest.java index e0b89bd9b4f3..5fc9bf46426a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSecuritySettingsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSecuritySettingsRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [SecuritySettingsService.GetSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettings].
+ * The request message for
+ * [SecuritySettingsService.GetSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettings].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -288,7 +291,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [SecuritySettingsService.GetSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettings].
+   * The request message for
+   * [SecuritySettingsService.GetSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettings].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest} @@ -322,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -352,11 +356,21 @@ public com.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest build() { public com.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest result = new com.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +420,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +452,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +472,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +547,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +568,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +594,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSessionEntityTypeRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSessionEntityTypeRequest.java index 086362c14bfa..5a283a7c83e9 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSessionEntityTypeRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetSessionEntityTypeRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityType].
+ * The request message for
+ * [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -296,7 +299,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityType].
+   * The request message for
+   * [SessionEntityTypes.GetSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.GetSessionEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest} @@ -330,8 +334,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -360,11 +364,21 @@ public com.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest build() { public com.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest result = new com.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -414,6 +428,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetSessionEntityTypeR return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -445,7 +460,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -465,6 +480,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -550,8 +567,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -575,8 +592,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -605,8 +622,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseRequest.java index 2befdf423b72..8745eff6ef46 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [TestCases.GetTestCase][google.cloud.dialogflow.cx.v3.TestCases.GetTestCase].
+ * The request message for
+ * [TestCases.GetTestCase][google.cloud.dialogflow.cx.v3.TestCases.GetTestCase].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetTestCaseRequest} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -287,7 +290,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [TestCases.GetTestCase][google.cloud.dialogflow.cx.v3.TestCases.GetTestCase].
+   * The request message for
+   * [TestCases.GetTestCase][google.cloud.dialogflow.cx.v3.TestCases.GetTestCase].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetTestCaseRequest} @@ -321,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -350,11 +354,20 @@ public com.google.cloud.dialogflow.cx.v3.GetTestCaseRequest build() { public com.google.cloud.dialogflow.cx.v3.GetTestCaseRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.GetTestCaseRequest result = new com.google.cloud.dialogflow.cx.v3.GetTestCaseRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetTestCaseRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -403,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetTestCaseRequest ot return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -434,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -454,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -527,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -548,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -574,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequest.java index 80586c9ab147..1e00420b529e 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTestCaseResultRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [TestCases.GetTestCaseResult][google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResult].
+ * The request message for
+ * [TestCases.GetTestCaseResult][google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResult].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -288,7 +291,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [TestCases.GetTestCaseResult][google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResult].
+   * The request message for
+   * [TestCases.GetTestCaseResult][google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResult].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest} @@ -322,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -351,11 +355,20 @@ public com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest build() { public com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest result = new com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetTestCaseResultRequ return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -435,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -455,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -528,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -549,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -575,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequest.java index 1d6697e4c983..585213c3b6d5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [TransitionRouteGroups.GetTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroup].
+ * The request message for
+ * [TransitionRouteGroups.GetTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroup].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} @@ -70,12 +71,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
-   * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+   * Required. The name of the
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
    * 
@@ -102,7 +106,8 @@ public java.lang.String getName() { * * *
-   * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+   * Required. The name of the
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
    * 
@@ -127,7 +132,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -366,7 +373,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [TransitionRouteGroups.GetTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroup].
+   * The request message for
+   * [TransitionRouteGroups.GetTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.GetTransitionRouteGroup].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest} @@ -400,10 +408,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - languageCode_ = ""; - return this; } @@ -432,12 +439,24 @@ public com.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest build() public com.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest result = new com.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest(this); - result.name_ = name_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.GetTransitionRouteGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -488,10 +507,12 @@ public Builder mergeFrom( return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -523,13 +544,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -549,12 +570,15 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * * *
-     * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Required. The name of the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
      * 
@@ -580,7 +604,8 @@ public java.lang.String getName() { * * *
-     * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Required. The name of the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
      * 
@@ -606,7 +631,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Required. The name of the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
      * 
@@ -622,8 +648,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -631,7 +657,8 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Required. The name of the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
      * 
@@ -643,8 +670,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -652,7 +679,8 @@ public Builder clearName() { * * *
-     * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Required. The name of the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
      * 
@@ -669,8 +697,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -763,8 +791,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -789,8 +817,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -820,8 +848,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequestOrBuilder.java index 79e83695801c..6c9d5b4a01b6 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetTransitionRouteGroupRequestOrBuilder.java @@ -27,7 +27,8 @@ public interface GetTransitionRouteGroupRequestOrBuilder * * *
-   * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+   * Required. The name of the
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
    * 
@@ -43,7 +44,8 @@ public interface GetTransitionRouteGroupRequestOrBuilder * * *
-   * Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+   * Required. The name of the
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
    * 
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetVersionRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetVersionRequest.java index cde834104fd1..eac680ccd388 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetVersionRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetVersionRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Versions.GetVersion][google.cloud.dialogflow.cx.v3.Versions.GetVersion].
+ * The request message for
+ * [Versions.GetVersion][google.cloud.dialogflow.cx.v3.Versions.GetVersion].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetVersionRequest} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -287,7 +290,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Versions.GetVersion][google.cloud.dialogflow.cx.v3.Versions.GetVersion].
+   * The request message for
+   * [Versions.GetVersion][google.cloud.dialogflow.cx.v3.Versions.GetVersion].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetVersionRequest} @@ -321,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -350,11 +354,20 @@ public com.google.cloud.dialogflow.cx.v3.GetVersionRequest build() { public com.google.cloud.dialogflow.cx.v3.GetVersionRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.GetVersionRequest result = new com.google.cloud.dialogflow.cx.v3.GetVersionRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -403,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetVersionRequest oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -434,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -454,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -527,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -548,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -574,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetWebhookRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetWebhookRequest.java index 9ecebd985b4f..40735fdb2df7 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetWebhookRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/GetWebhookRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Webhooks.GetWebhook][google.cloud.dialogflow.cx.v3.Webhooks.GetWebhook].
+ * The request message for
+ * [Webhooks.GetWebhook][google.cloud.dialogflow.cx.v3.Webhooks.GetWebhook].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetWebhookRequest} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -287,7 +290,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Webhooks.GetWebhook][google.cloud.dialogflow.cx.v3.Webhooks.GetWebhook].
+   * The request message for
+   * [Webhooks.GetWebhook][google.cloud.dialogflow.cx.v3.Webhooks.GetWebhook].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.GetWebhookRequest} @@ -321,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -350,11 +354,20 @@ public com.google.cloud.dialogflow.cx.v3.GetWebhookRequest build() { public com.google.cloud.dialogflow.cx.v3.GetWebhookRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.GetWebhookRequest result = new com.google.cloud.dialogflow.cx.v3.GetWebhookRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.GetWebhookRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -403,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.GetWebhookRequest oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -434,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -454,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -527,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -548,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -574,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowRequest.java index 27121684d2d1..bbe7dcad4ecf 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Flows.ImportFlow][google.cloud.dialogflow.cx.v3.Flows.ImportFlow].
+ * The request message for
+ * [Flows.ImportFlow][google.cloud.dialogflow.cx.v3.Flows.ImportFlow].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ImportFlowRequest} @@ -283,7 +284,9 @@ public FlowCase getFlowCase() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -464,7 +467,7 @@ public com.google.protobuf.ByteString getFlowContent() { } public static final int IMPORT_OPTION_FIELD_NUMBER = 4; - private int importOption_; + private int importOption_ = 0; /** * * @@ -493,9 +496,8 @@ public int getImportOptionValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption getImportOption() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption result = - com.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption.valueOf(importOption_); + com.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption.forNumber(importOption_); return result == null ? com.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption.UNRECOGNIZED : result; @@ -716,7 +718,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Flows.ImportFlow][google.cloud.dialogflow.cx.v3.Flows.ImportFlow].
+   * The request message for
+   * [Flows.ImportFlow][google.cloud.dialogflow.cx.v3.Flows.ImportFlow].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ImportFlowRequest} @@ -750,10 +753,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - importOption_ = 0; - flowCase_ = 0; flow_ = null; return this; @@ -783,19 +785,29 @@ public com.google.cloud.dialogflow.cx.v3.ImportFlowRequest build() { public com.google.cloud.dialogflow.cx.v3.ImportFlowRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ImportFlowRequest result = new com.google.cloud.dialogflow.cx.v3.ImportFlowRequest(this); - result.parent_ = parent_; - if (flowCase_ == 2) { - result.flow_ = flow_; - } - if (flowCase_ == 3) { - result.flow_ = flow_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.importOption_ = importOption_; - result.flowCase_ = flowCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ImportFlowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.importOption_ = importOption_; + } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.ImportFlowRequest result) { + result.flowCase_ = flowCase_; + result.flow_ = this.flow_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -844,6 +856,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ImportFlowRequest oth return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.importOption_ != 0) { @@ -896,7 +909,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -915,7 +928,7 @@ public Builder mergeFrom( case 32: { importOption_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 default: @@ -949,6 +962,8 @@ public Builder clearFlow() { return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -1019,8 +1034,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1039,8 +1054,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1064,8 +1079,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1347,8 +1362,8 @@ public int getImportOptionValue() { * @return This builder for chaining. */ public Builder setImportOptionValue(int value) { - importOption_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1365,9 +1380,8 @@ public Builder setImportOptionValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption getImportOption() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption result = - com.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption.valueOf(importOption_); + com.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption.forNumber(importOption_); return result == null ? com.google.cloud.dialogflow.cx.v3.ImportFlowRequest.ImportOption.UNRECOGNIZED : result; @@ -1389,7 +1403,7 @@ public Builder setImportOption( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; importOption_ = value.getNumber(); onChanged(); return this; @@ -1406,7 +1420,7 @@ public Builder setImportOption( * @return This builder for chaining. */ public Builder clearImportOption() { - + bitField0_ = (bitField0_ & ~0x00000008); importOption_ = 0; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowResponse.java index 443872d4e029..304fd4b6950b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportFlowResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Flows.ImportFlow][google.cloud.dialogflow.cx.v3.Flows.ImportFlow].
+ * The response message for
+ * [Flows.ImportFlow][google.cloud.dialogflow.cx.v3.Flows.ImportFlow].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ImportFlowResponse} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int FLOW_FIELD_NUMBER = 1; - private volatile java.lang.Object flow_; + + @SuppressWarnings("serial") + private volatile java.lang.Object flow_ = ""; /** * * @@ -283,7 +286,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Flows.ImportFlow][google.cloud.dialogflow.cx.v3.Flows.ImportFlow].
+   * The response message for
+   * [Flows.ImportFlow][google.cloud.dialogflow.cx.v3.Flows.ImportFlow].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ImportFlowResponse} @@ -317,8 +321,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; flow_ = ""; - return this; } @@ -346,11 +350,20 @@ public com.google.cloud.dialogflow.cx.v3.ImportFlowResponse build() { public com.google.cloud.dialogflow.cx.v3.ImportFlowResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ImportFlowResponse result = new com.google.cloud.dialogflow.cx.v3.ImportFlowResponse(this); - result.flow_ = flow_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ImportFlowResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.flow_ = flow_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -399,6 +412,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ImportFlowResponse ot return this; if (!other.getFlow().isEmpty()) { flow_ = other.flow_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -430,7 +444,7 @@ public Builder mergeFrom( case 10: { flow_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -450,6 +464,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object flow_ = ""; /** * @@ -517,8 +533,8 @@ public Builder setFlow(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - flow_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -536,8 +552,8 @@ public Builder setFlow(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFlow() { - flow_ = getDefaultInstance().getFlow(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -560,8 +576,8 @@ public Builder setFlowBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - flow_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesMetadata.java index 230fde8fd318..652b95eb71e5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesMetadata.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesMetadata.java @@ -22,8 +22,9 @@ * * *
- * Metadata returned for the [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases] long running
- * operation.
+ * Metadata returned for the
+ * [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases]
+ * long running operation.
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} @@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ERRORS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List errors_; /** * @@ -303,8 +306,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Metadata returned for the [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases] long running
-   * operation.
+   * Metadata returned for the
+   * [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases]
+   * long running operation.
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata} @@ -338,6 +342,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (errorsBuilder_ == null) { errors_ = java.util.Collections.emptyList(); } else { @@ -372,7 +377,16 @@ public com.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata build() { public com.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata buildPartial() { com.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata result = new com.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata result) { if (errorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -382,8 +396,10 @@ public com.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata buildPartial() } else { result.errors_ = errorsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesRequest.java index e514f0e84966..5c7181b99904 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases].
+ * The request message for
+ * [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} @@ -115,7 +116,9 @@ public SourceCase getSourceCase() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -496,7 +499,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases].
+   * The request message for
+   * [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ImportTestCasesRequest} @@ -530,8 +534,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - sourceCase_ = 0; source_ = null; return this; @@ -561,18 +565,27 @@ public com.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest build() { public com.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest result = new com.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest(this); - result.parent_ = parent_; - if (sourceCase_ == 2) { - result.source_ = source_; - } - if (sourceCase_ == 3) { - result.source_ = source_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.sourceCase_ = sourceCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3.ImportTestCasesRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -621,6 +634,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ImportTestCasesReques return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } switch (other.getSourceCase()) { @@ -670,7 +684,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -717,6 +731,8 @@ public Builder clearSource() { return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -787,8 +803,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -807,8 +823,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -832,8 +848,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesResponse.java index 26535c7f5ac9..902dd684eb48 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ImportTestCasesResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases].
+ * The response message for
+ * [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} @@ -68,6 +69,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAMES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList names_; /** * @@ -307,7 +310,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases].
+   * The response message for
+   * [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ImportTestCasesResponse} @@ -341,6 +345,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; names_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; @@ -370,14 +375,25 @@ public com.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse build() { public com.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse result = new com.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse result) { if (((bitField0_ & 0x00000001) != 0)) { names_ = names_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.names_ = names_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ImportTestCasesResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/InputAudioConfig.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/InputAudioConfig.java index 53d962656229..970cccbf5824 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/InputAudioConfig.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/InputAudioConfig.java @@ -71,7 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int AUDIO_ENCODING_FIELD_NUMBER = 1; - private int audioEncoding_; + private int audioEncoding_ = 0; /** * * @@ -104,14 +104,13 @@ public int getAudioEncodingValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.AudioEncoding getAudioEncoding() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.AudioEncoding result = - com.google.cloud.dialogflow.cx.v3.AudioEncoding.valueOf(audioEncoding_); + com.google.cloud.dialogflow.cx.v3.AudioEncoding.forNumber(audioEncoding_); return result == null ? com.google.cloud.dialogflow.cx.v3.AudioEncoding.UNRECOGNIZED : result; } public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; - private int sampleRateHertz_; + private int sampleRateHertz_ = 0; /** * * @@ -133,15 +132,17 @@ public int getSampleRateHertz() { } public static final int ENABLE_WORD_INFO_FIELD_NUMBER = 13; - private boolean enableWordInfo_; + private boolean enableWordInfo_ = false; /** * * *
-   * Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
-   * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] with information about the recognized speech
-   * words, e.g. start and end time offsets. If false or unspecified, Speech
-   * doesn't return any word-level information.
+   * Optional. If `true`, Dialogflow returns
+   * [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
+   * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult]
+   * with information about the recognized speech words, e.g. start and end time
+   * offsets. If false or unspecified, Speech doesn't return any word-level
+   * information.
    * 
* * bool enable_word_info = 13; @@ -154,6 +155,8 @@ public boolean getEnableWordInfo() { } public static final int PHRASE_HINTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList phraseHints_; /** * @@ -231,7 +234,9 @@ public com.google.protobuf.ByteString getPhraseHintsBytes(int index) { } public static final int MODEL_FIELD_NUMBER = 7; - private volatile java.lang.Object model_; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; /** * * @@ -300,12 +305,13 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int MODEL_VARIANT_FIELD_NUMBER = 10; - private int modelVariant_; + private int modelVariant_ = 0; /** * * *
-   * Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
+   * Optional. Which variant of the [Speech
+   * model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
    * 
* * .google.cloud.dialogflow.cx.v3.SpeechModelVariant model_variant = 10; @@ -320,7 +326,8 @@ public int getModelVariantValue() { * * *
-   * Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
+   * Optional. Which variant of the [Speech
+   * model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
    * 
* * .google.cloud.dialogflow.cx.v3.SpeechModelVariant model_variant = 10; @@ -329,16 +336,15 @@ public int getModelVariantValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SpeechModelVariant getModelVariant() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.SpeechModelVariant result = - com.google.cloud.dialogflow.cx.v3.SpeechModelVariant.valueOf(modelVariant_); + com.google.cloud.dialogflow.cx.v3.SpeechModelVariant.forNumber(modelVariant_); return result == null ? com.google.cloud.dialogflow.cx.v3.SpeechModelVariant.UNRECOGNIZED : result; } public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 8; - private boolean singleUtterance_; + private boolean singleUtterance_ = false; /** * * @@ -626,20 +632,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; audioEncoding_ = 0; - sampleRateHertz_ = 0; - enableWordInfo_ = false; - phraseHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); model_ = ""; - modelVariant_ = 0; - singleUtterance_ = false; - return this; } @@ -667,22 +668,45 @@ public com.google.cloud.dialogflow.cx.v3.InputAudioConfig build() { public com.google.cloud.dialogflow.cx.v3.InputAudioConfig buildPartial() { com.google.cloud.dialogflow.cx.v3.InputAudioConfig result = new com.google.cloud.dialogflow.cx.v3.InputAudioConfig(this); - int from_bitField0_ = bitField0_; - result.audioEncoding_ = audioEncoding_; - result.sampleRateHertz_ = sampleRateHertz_; - result.enableWordInfo_ = enableWordInfo_; - if (((bitField0_ & 0x00000001) != 0)) { - phraseHints_ = phraseHints_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.phraseHints_ = phraseHints_; - result.model_ = model_; - result.modelVariant_ = modelVariant_; - result.singleUtterance_ = singleUtterance_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.InputAudioConfig result) { + if (((bitField0_ & 0x00000008) != 0)) { + phraseHints_ = phraseHints_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.phraseHints_ = phraseHints_; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.InputAudioConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.audioEncoding_ = audioEncoding_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sampleRateHertz_ = sampleRateHertz_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableWordInfo_ = enableWordInfo_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.model_ = model_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.modelVariant_ = modelVariant_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.singleUtterance_ = singleUtterance_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -741,7 +765,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.InputAudioConfig othe if (!other.phraseHints_.isEmpty()) { if (phraseHints_.isEmpty()) { phraseHints_ = other.phraseHints_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePhraseHintsIsMutable(); phraseHints_.addAll(other.phraseHints_); @@ -750,6 +774,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.InputAudioConfig othe } if (!other.getModel().isEmpty()) { model_ = other.model_; + bitField0_ |= 0x00000010; onChanged(); } if (other.modelVariant_ != 0) { @@ -787,13 +812,13 @@ public Builder mergeFrom( case 8: { audioEncoding_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { sampleRateHertz_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 34: @@ -806,25 +831,25 @@ public Builder mergeFrom( case 58: { model_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 58 case 64: { singleUtterance_ = input.readBool(); - + bitField0_ |= 0x00000040; break; } // case 64 case 80: { modelVariant_ = input.readEnum(); - + bitField0_ |= 0x00000020; break; } // case 80 case 104: { enableWordInfo_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 104 default: @@ -879,8 +904,8 @@ public int getAudioEncodingValue() { * @return This builder for chaining. */ public Builder setAudioEncodingValue(int value) { - audioEncoding_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -899,9 +924,8 @@ public Builder setAudioEncodingValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.AudioEncoding getAudioEncoding() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.AudioEncoding result = - com.google.cloud.dialogflow.cx.v3.AudioEncoding.valueOf(audioEncoding_); + com.google.cloud.dialogflow.cx.v3.AudioEncoding.forNumber(audioEncoding_); return result == null ? com.google.cloud.dialogflow.cx.v3.AudioEncoding.UNRECOGNIZED : result; } /** @@ -922,7 +946,7 @@ public Builder setAudioEncoding(com.google.cloud.dialogflow.cx.v3.AudioEncoding if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; audioEncoding_ = value.getNumber(); onChanged(); return this; @@ -941,7 +965,7 @@ public Builder setAudioEncoding(com.google.cloud.dialogflow.cx.v3.AudioEncoding * @return This builder for chaining. */ public Builder clearAudioEncoding() { - + bitField0_ = (bitField0_ & ~0x00000001); audioEncoding_ = 0; onChanged(); return this; @@ -986,6 +1010,7 @@ public int getSampleRateHertz() { public Builder setSampleRateHertz(int value) { sampleRateHertz_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1005,7 +1030,7 @@ public Builder setSampleRateHertz(int value) { * @return This builder for chaining. */ public Builder clearSampleRateHertz() { - + bitField0_ = (bitField0_ & ~0x00000002); sampleRateHertz_ = 0; onChanged(); return this; @@ -1016,10 +1041,12 @@ public Builder clearSampleRateHertz() { * * *
-     * Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
-     * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] with information about the recognized speech
-     * words, e.g. start and end time offsets. If false or unspecified, Speech
-     * doesn't return any word-level information.
+     * Optional. If `true`, Dialogflow returns
+     * [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
+     * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult]
+     * with information about the recognized speech words, e.g. start and end time
+     * offsets. If false or unspecified, Speech doesn't return any word-level
+     * information.
      * 
* * bool enable_word_info = 13; @@ -1034,10 +1061,12 @@ public boolean getEnableWordInfo() { * * *
-     * Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
-     * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] with information about the recognized speech
-     * words, e.g. start and end time offsets. If false or unspecified, Speech
-     * doesn't return any word-level information.
+     * Optional. If `true`, Dialogflow returns
+     * [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
+     * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult]
+     * with information about the recognized speech words, e.g. start and end time
+     * offsets. If false or unspecified, Speech doesn't return any word-level
+     * information.
      * 
* * bool enable_word_info = 13; @@ -1048,6 +1077,7 @@ public boolean getEnableWordInfo() { public Builder setEnableWordInfo(boolean value) { enableWordInfo_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1055,10 +1085,12 @@ public Builder setEnableWordInfo(boolean value) { * * *
-     * Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
-     * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] with information about the recognized speech
-     * words, e.g. start and end time offsets. If false or unspecified, Speech
-     * doesn't return any word-level information.
+     * Optional. If `true`, Dialogflow returns
+     * [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
+     * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult]
+     * with information about the recognized speech words, e.g. start and end time
+     * offsets. If false or unspecified, Speech doesn't return any word-level
+     * information.
      * 
* * bool enable_word_info = 13; @@ -1066,7 +1098,7 @@ public Builder setEnableWordInfo(boolean value) { * @return This builder for chaining. */ public Builder clearEnableWordInfo() { - + bitField0_ = (bitField0_ & ~0x00000004); enableWordInfo_ = false; onChanged(); return this; @@ -1076,9 +1108,9 @@ public Builder clearEnableWordInfo() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePhraseHintsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { phraseHints_ = new com.google.protobuf.LazyStringArrayList(phraseHints_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } /** @@ -1245,7 +1277,7 @@ public Builder addAllPhraseHints(java.lang.Iterable values) { */ public Builder clearPhraseHints() { phraseHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1367,8 +1399,8 @@ public Builder setModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - model_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1394,8 +1426,8 @@ public Builder setModel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModel() { - model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1426,8 +1458,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - model_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1437,7 +1469,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
+     * Optional. Which variant of the [Speech
+     * model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
      * 
* * .google.cloud.dialogflow.cx.v3.SpeechModelVariant model_variant = 10; @@ -1452,7 +1485,8 @@ public int getModelVariantValue() { * * *
-     * Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
+     * Optional. Which variant of the [Speech
+     * model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
      * 
* * .google.cloud.dialogflow.cx.v3.SpeechModelVariant model_variant = 10; @@ -1461,8 +1495,8 @@ public int getModelVariantValue() { * @return This builder for chaining. */ public Builder setModelVariantValue(int value) { - modelVariant_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1470,7 +1504,8 @@ public Builder setModelVariantValue(int value) { * * *
-     * Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
+     * Optional. Which variant of the [Speech
+     * model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
      * 
* * .google.cloud.dialogflow.cx.v3.SpeechModelVariant model_variant = 10; @@ -1479,9 +1514,8 @@ public Builder setModelVariantValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SpeechModelVariant getModelVariant() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.SpeechModelVariant result = - com.google.cloud.dialogflow.cx.v3.SpeechModelVariant.valueOf(modelVariant_); + com.google.cloud.dialogflow.cx.v3.SpeechModelVariant.forNumber(modelVariant_); return result == null ? com.google.cloud.dialogflow.cx.v3.SpeechModelVariant.UNRECOGNIZED : result; @@ -1490,7 +1524,8 @@ public com.google.cloud.dialogflow.cx.v3.SpeechModelVariant getModelVariant() { * * *
-     * Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
+     * Optional. Which variant of the [Speech
+     * model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
      * 
* * .google.cloud.dialogflow.cx.v3.SpeechModelVariant model_variant = 10; @@ -1502,7 +1537,7 @@ public Builder setModelVariant(com.google.cloud.dialogflow.cx.v3.SpeechModelVari if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000020; modelVariant_ = value.getNumber(); onChanged(); return this; @@ -1511,7 +1546,8 @@ public Builder setModelVariant(com.google.cloud.dialogflow.cx.v3.SpeechModelVari * * *
-     * Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
+     * Optional. Which variant of the [Speech
+     * model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
      * 
* * .google.cloud.dialogflow.cx.v3.SpeechModelVariant model_variant = 10; @@ -1519,7 +1555,7 @@ public Builder setModelVariant(com.google.cloud.dialogflow.cx.v3.SpeechModelVari * @return This builder for chaining. */ public Builder clearModelVariant() { - + bitField0_ = (bitField0_ & ~0x00000020); modelVariant_ = 0; onChanged(); return this; @@ -1570,6 +1606,7 @@ public boolean getSingleUtterance() { public Builder setSingleUtterance(boolean value) { singleUtterance_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1592,7 +1629,7 @@ public Builder setSingleUtterance(boolean value) { * @return This builder for chaining. */ public Builder clearSingleUtterance() { - + bitField0_ = (bitField0_ & ~0x00000040); singleUtterance_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/InputAudioConfigOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/InputAudioConfigOrBuilder.java index bf0f7099ac88..33e9cf7e3462 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/InputAudioConfigOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/InputAudioConfigOrBuilder.java @@ -73,10 +73,12 @@ public interface InputAudioConfigOrBuilder * * *
-   * Optional. If `true`, Dialogflow returns [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
-   * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] with information about the recognized speech
-   * words, e.g. start and end time offsets. If false or unspecified, Speech
-   * doesn't return any word-level information.
+   * Optional. If `true`, Dialogflow returns
+   * [SpeechWordInfo][google.cloud.dialogflow.cx.v3.SpeechWordInfo] in
+   * [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult]
+   * with information about the recognized speech words, e.g. start and end time
+   * offsets. If false or unspecified, Speech doesn't return any word-level
+   * information.
    * 
* * bool enable_word_info = 13; @@ -201,7 +203,8 @@ public interface InputAudioConfigOrBuilder * * *
-   * Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
+   * Optional. Which variant of the [Speech
+   * model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
    * 
* * .google.cloud.dialogflow.cx.v3.SpeechModelVariant model_variant = 10; @@ -213,7 +216,8 @@ public interface InputAudioConfigOrBuilder * * *
-   * Optional. Which variant of the [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
+   * Optional. Which variant of the [Speech
+   * model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
    * 
* * .google.cloud.dialogflow.cx.v3.SpeechModelVariant model_variant = 10; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java index 73b51c0821fa..44b6472f7af6 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Intent.java @@ -126,7 +126,9 @@ public interface TrainingPhraseOrBuilder * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -150,7 +152,9 @@ public interface TrainingPhraseOrBuilder * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -174,7 +178,9 @@ public interface TrainingPhraseOrBuilder * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -198,7 +204,9 @@ public interface TrainingPhraseOrBuilder * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -223,7 +231,9 @@ public interface TrainingPhraseOrBuilder * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -335,9 +345,9 @@ public interface PartOrBuilder * * *
-       * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to annotate this part of the
-       * training phrase. This field is required for annotated parts of the
-       * training phrase.
+       * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
+       * annotate this part of the training phrase. This field is required for
+       * annotated parts of the training phrase.
        * 
* * string parameter_id = 2; @@ -349,9 +359,9 @@ public interface PartOrBuilder * * *
-       * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to annotate this part of the
-       * training phrase. This field is required for annotated parts of the
-       * training phrase.
+       * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
+       * annotate this part of the training phrase. This field is required for
+       * annotated parts of the training phrase.
        * 
* * string parameter_id = 2; @@ -411,7 +421,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TEXT_FIELD_NUMBER = 1; - private volatile java.lang.Object text_; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; /** * * @@ -460,14 +472,16 @@ public com.google.protobuf.ByteString getTextBytes() { } public static final int PARAMETER_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object parameterId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parameterId_ = ""; /** * * *
-       * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to annotate this part of the
-       * training phrase. This field is required for annotated parts of the
-       * training phrase.
+       * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
+       * annotate this part of the training phrase. This field is required for
+       * annotated parts of the training phrase.
        * 
* * string parameter_id = 2; @@ -490,9 +504,9 @@ public java.lang.String getParameterId() { * * *
-       * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to annotate this part of the
-       * training phrase. This field is required for annotated parts of the
-       * training phrase.
+       * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
+       * annotate this part of the training phrase. This field is required for
+       * annotated parts of the training phrase.
        * 
* * string parameter_id = 2; @@ -721,10 +735,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; text_ = ""; - parameterId_ = ""; - return this; } @@ -753,12 +766,24 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part build() { public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part buildPartial() { com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part result = new com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part(this); - result.text_ = text_; - result.parameterId_ = parameterId_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.text_ = text_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parameterId_ = parameterId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -811,10 +836,12 @@ public Builder mergeFrom( return this; if (!other.getText().isEmpty()) { text_ = other.text_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getParameterId().isEmpty()) { parameterId_ = other.parameterId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -846,13 +873,13 @@ public Builder mergeFrom( case 10: { text_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { parameterId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -872,6 +899,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object text_ = ""; /** * @@ -933,8 +962,8 @@ public Builder setText(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - text_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -950,8 +979,8 @@ public Builder setText(java.lang.String value) { * @return This builder for chaining. */ public Builder clearText() { - text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -972,8 +1001,8 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - text_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -983,9 +1012,9 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { * * *
-         * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to annotate this part of the
-         * training phrase. This field is required for annotated parts of the
-         * training phrase.
+         * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
+         * annotate this part of the training phrase. This field is required for
+         * annotated parts of the training phrase.
          * 
* * string parameter_id = 2; @@ -1007,9 +1036,9 @@ public java.lang.String getParameterId() { * * *
-         * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to annotate this part of the
-         * training phrase. This field is required for annotated parts of the
-         * training phrase.
+         * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
+         * annotate this part of the training phrase. This field is required for
+         * annotated parts of the training phrase.
          * 
* * string parameter_id = 2; @@ -1031,9 +1060,9 @@ public com.google.protobuf.ByteString getParameterIdBytes() { * * *
-         * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to annotate this part of the
-         * training phrase. This field is required for annotated parts of the
-         * training phrase.
+         * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
+         * annotate this part of the training phrase. This field is required for
+         * annotated parts of the training phrase.
          * 
* * string parameter_id = 2; @@ -1045,8 +1074,8 @@ public Builder setParameterId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parameterId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1054,9 +1083,9 @@ public Builder setParameterId(java.lang.String value) { * * *
-         * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to annotate this part of the
-         * training phrase. This field is required for annotated parts of the
-         * training phrase.
+         * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
+         * annotate this part of the training phrase. This field is required for
+         * annotated parts of the training phrase.
          * 
* * string parameter_id = 2; @@ -1064,8 +1093,8 @@ public Builder setParameterId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParameterId() { - parameterId_ = getDefaultInstance().getParameterId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1073,9 +1102,9 @@ public Builder clearParameterId() { * * *
-         * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to annotate this part of the
-         * training phrase. This field is required for annotated parts of the
-         * training phrase.
+         * The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to
+         * annotate this part of the training phrase. This field is required for
+         * annotated parts of the training phrase.
          * 
* * string parameter_id = 2; @@ -1088,8 +1117,8 @@ public Builder setParameterIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parameterId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1162,7 +1191,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -1211,6 +1242,8 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int PARTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List parts_; /** * @@ -1223,7 +1256,9 @@ public com.google.protobuf.ByteString getIdBytes() { * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -1251,7 +1286,9 @@ public com.google.protobuf.ByteString getIdBytes() { * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -1280,7 +1317,9 @@ public com.google.protobuf.ByteString getIdBytes() { * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -1307,7 +1346,9 @@ public int getPartsCount() { * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -1334,7 +1375,9 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part getParts(int * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -1353,7 +1396,7 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.PartOrBuilder get } public static final int REPEAT_COUNT_FIELD_NUMBER = 3; - private int repeatCount_; + private int repeatCount_ = 0; /** * * @@ -1590,17 +1633,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - if (partsBuilder_ == null) { parts_ = java.util.Collections.emptyList(); } else { parts_ = null; partsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); repeatCount_ = 0; - return this; } @@ -1628,20 +1670,35 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase build() { public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase buildPartial() { com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase result = new com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase(this); - int from_bitField0_ = bitField0_; - result.id_ = id_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase result) { if (partsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { parts_ = java.util.Collections.unmodifiableList(parts_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.parts_ = parts_; } else { result.parts_ = partsBuilder_.build(); } - result.repeatCount_ = repeatCount_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.repeatCount_ = repeatCount_; + } } @java.lang.Override @@ -1694,13 +1751,14 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (partsBuilder_ == null) { if (!other.parts_.isEmpty()) { if (parts_.isEmpty()) { parts_ = other.parts_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePartsIsMutable(); parts_.addAll(other.parts_); @@ -1713,7 +1771,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase partsBuilder_.dispose(); partsBuilder_ = null; parts_ = other.parts_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); partsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPartsFieldBuilder() @@ -1755,7 +1813,7 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -1775,7 +1833,7 @@ public Builder mergeFrom( case 24: { repeatCount_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -1858,8 +1916,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1875,8 +1933,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1897,8 +1955,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1907,11 +1965,11 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensurePartsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { parts_ = new java.util.ArrayList( parts_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1932,7 +1990,9 @@ private void ensurePartsIsMutable() { * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -1963,7 +2023,9 @@ private void ensurePartsIsMutable() { * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -1993,7 +2055,9 @@ public int getPartsCount() { * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -2023,7 +2087,9 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part getParts(int * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -2060,7 +2126,9 @@ public Builder setParts( * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -2095,7 +2163,9 @@ public Builder setParts( * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -2131,7 +2201,9 @@ public Builder addParts(com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase. * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -2168,7 +2240,9 @@ public Builder addParts( * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -2202,7 +2276,9 @@ public Builder addParts( * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -2237,7 +2313,9 @@ public Builder addParts( * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -2272,7 +2350,9 @@ public Builder addAllParts( * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -2287,7 +2367,7 @@ public Builder addAllParts( public Builder clearParts() { if (partsBuilder_ == null) { parts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { partsBuilder_.clear(); @@ -2305,7 +2385,9 @@ public Builder clearParts() { * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -2338,7 +2420,9 @@ public Builder removeParts(int index) { * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -2365,7 +2449,9 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder getP * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -2396,7 +2482,9 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder getP * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -2428,7 +2516,9 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder getP * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -2457,7 +2547,9 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder getP * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -2487,7 +2579,9 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder addP * Note: Do not forget to include whitespace at part boundaries, so the * training phrase is well formatted when the parts are concatenated. * If the training phrase does not need to be annotated with parameters, - * you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + * you just need a single part with only the + * [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + * field set. * If you want to annotate the training phrase, you must create multiple * parts, where the fields of each part are populated in one of two ways: * - `Part.text` is set to a part of the phrase that has no parameters. @@ -2515,7 +2609,7 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder addP com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part, com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.Builder, com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.PartOrBuilder>( - parts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + parts_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); parts_ = null; } return partsBuilder_; @@ -2552,6 +2646,7 @@ public int getRepeatCount() { public Builder setRepeatCount(int value) { repeatCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2567,7 +2662,7 @@ public Builder setRepeatCount(int value) { * @return This builder for chaining. */ public Builder clearRepeatCount() { - + bitField0_ = (bitField0_ & ~0x00000004); repeatCount_ = 0; onChanged(); return this; @@ -2647,8 +2742,9 @@ public interface ParameterOrBuilder * *
      * Required. The unique identifier of the parameter. This field
-     * is used by [training phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate their
-     * [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
+     * is used by [training
+     * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
+     * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
      * 
* * string id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -2661,8 +2757,9 @@ public interface ParameterOrBuilder * *
      * Required. The unique identifier of the parameter. This field
-     * is used by [training phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate their
-     * [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
+     * is used by [training
+     * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
+     * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
      * 
* * string id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -2731,8 +2828,8 @@ public interface ParameterOrBuilder * redaction is enabled, the parameter content will be replaced by parameter * name during logging. * Note: the parameter content is subject to redaction if either parameter - * level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is - * enabled. + * level redaction or [entity type level + * redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled. *
* * bool redact = 4; @@ -2792,14 +2889,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * *
      * Required. The unique identifier of the parameter. This field
-     * is used by [training phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate their
-     * [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
+     * is used by [training
+     * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
+     * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
      * 
* * string id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -2823,8 +2923,9 @@ public java.lang.String getId() { * *
      * Required. The unique identifier of the parameter. This field
-     * is used by [training phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate their
-     * [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
+     * is used by [training
+     * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
+     * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
      * 
* * string id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -2845,7 +2946,9 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int ENTITY_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object entityType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityType_ = ""; /** * * @@ -2908,7 +3011,7 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { } public static final int IS_LIST_FIELD_NUMBER = 3; - private boolean isList_; + private boolean isList_ = false; /** * * @@ -2926,7 +3029,7 @@ public boolean getIsList() { } public static final int REDACT_FIELD_NUMBER = 4; - private boolean redact_; + private boolean redact_ = false; /** * * @@ -2935,8 +3038,8 @@ public boolean getIsList() { * redaction is enabled, the parameter content will be replaced by parameter * name during logging. * Note: the parameter content is subject to redaction if either parameter - * level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is - * enabled. + * level redaction or [entity type level + * redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled. *
* * bool redact = 4; @@ -3174,14 +3277,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - entityType_ = ""; - isList_ = false; - redact_ = false; - return this; } @@ -3209,14 +3309,29 @@ public com.google.cloud.dialogflow.cx.v3.Intent.Parameter build() { public com.google.cloud.dialogflow.cx.v3.Intent.Parameter buildPartial() { com.google.cloud.dialogflow.cx.v3.Intent.Parameter result = new com.google.cloud.dialogflow.cx.v3.Intent.Parameter(this); - result.id_ = id_; - result.entityType_ = entityType_; - result.isList_ = isList_; - result.redact_ = redact_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Intent.Parameter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entityType_ = entityType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isList_ = isList_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.redact_ = redact_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3267,10 +3382,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent.Parameter othe return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getEntityType().isEmpty()) { entityType_ = other.entityType_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getIsList() != false) { @@ -3308,25 +3425,25 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { entityType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { isList_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 case 32: { redact_ = input.readBool(); - + bitField0_ |= 0x00000008; break; } // case 32 default: @@ -3346,14 +3463,17 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object id_ = ""; /** * * *
        * Required. The unique identifier of the parameter. This field
-       * is used by [training phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate their
-       * [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
+       * is used by [training
+       * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
+       * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
        * 
* * string id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -3376,8 +3496,9 @@ public java.lang.String getId() { * *
        * Required. The unique identifier of the parameter. This field
-       * is used by [training phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate their
-       * [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
+       * is used by [training
+       * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
+       * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
        * 
* * string id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -3400,8 +3521,9 @@ public com.google.protobuf.ByteString getIdBytes() { * *
        * Required. The unique identifier of the parameter. This field
-       * is used by [training phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate their
-       * [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
+       * is used by [training
+       * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
+       * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
        * 
* * string id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -3413,8 +3535,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3423,8 +3545,9 @@ public Builder setId(java.lang.String value) { * *
        * Required. The unique identifier of the parameter. This field
-       * is used by [training phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate their
-       * [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
+       * is used by [training
+       * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
+       * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
        * 
* * string id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -3432,8 +3555,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3442,8 +3565,9 @@ public Builder clearId() { * *
        * Required. The unique identifier of the parameter. This field
-       * is used by [training phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate their
-       * [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
+       * is used by [training
+       * phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate
+       * their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part].
        * 
* * string id = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -3456,8 +3580,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3544,8 +3668,8 @@ public Builder setEntityType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3568,8 +3692,8 @@ public Builder setEntityType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityType() { - entityType_ = getDefaultInstance().getEntityType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3597,8 +3721,8 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3634,6 +3758,7 @@ public boolean getIsList() { public Builder setIsList(boolean value) { isList_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3649,7 +3774,7 @@ public Builder setIsList(boolean value) { * @return This builder for chaining. */ public Builder clearIsList() { - + bitField0_ = (bitField0_ & ~0x00000004); isList_ = false; onChanged(); return this; @@ -3664,8 +3789,8 @@ public Builder clearIsList() { * redaction is enabled, the parameter content will be replaced by parameter * name during logging. * Note: the parameter content is subject to redaction if either parameter - * level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is - * enabled. + * level redaction or [entity type level + * redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled. *
* * bool redact = 4; @@ -3684,8 +3809,8 @@ public boolean getRedact() { * redaction is enabled, the parameter content will be replaced by parameter * name during logging. * Note: the parameter content is subject to redaction if either parameter - * level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is - * enabled. + * level redaction or [entity type level + * redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled. *
* * bool redact = 4; @@ -3696,6 +3821,7 @@ public boolean getRedact() { public Builder setRedact(boolean value) { redact_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3707,8 +3833,8 @@ public Builder setRedact(boolean value) { * redaction is enabled, the parameter content will be replaced by parameter * name during logging. * Note: the parameter content is subject to redaction if either parameter - * level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is - * enabled. + * level redaction or [entity type level + * redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled. *
* * bool redact = 4; @@ -3716,7 +3842,7 @@ public Builder setRedact(boolean value) { * @return This builder for chaining. */ public Builder clearRedact() { - + bitField0_ = (bitField0_ & ~0x00000008); redact_ = false; onChanged(); return this; @@ -3787,13 +3913,18 @@ public com.google.cloud.dialogflow.cx.v3.Intent.Parameter getDefaultInstanceForT } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
    * The unique identifier of the intent.
-   * Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
+   * Required for the
+   * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
+   * method.
+   * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
    * populates the name automatically.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
@@ -3820,7 +3951,10 @@ public java.lang.String getName() {
    *
    * 
    * The unique identifier of the intent.
-   * Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
+   * Required for the
+   * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
+   * method.
+   * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
    * populates the name automatically.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
@@ -3844,7 +3978,9 @@ public com.google.protobuf.ByteString getNameBytes() {
   }
 
   public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
-  private volatile java.lang.Object displayName_;
+
+  @SuppressWarnings("serial")
+  private volatile java.lang.Object displayName_ = "";
   /**
    *
    *
@@ -3893,6 +4029,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
   }
 
   public static final int TRAINING_PHRASES_FIELD_NUMBER = 3;
+
+  @SuppressWarnings("serial")
   private java.util.List trainingPhrases_;
   /**
    *
@@ -3974,6 +4112,8 @@ public com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase getTrainingPhrase
   }
 
   public static final int PARAMETERS_FIELD_NUMBER = 4;
+
+  @SuppressWarnings("serial")
   private java.util.List parameters_;
   /**
    *
@@ -4044,7 +4184,7 @@ public com.google.cloud.dialogflow.cx.v3.Intent.ParameterOrBuilder getParameters
   }
 
   public static final int PRIORITY_FIELD_NUMBER = 5;
-  private int priority_;
+  private int priority_ = 0;
   /**
    *
    *
@@ -4068,7 +4208,7 @@ public int getPriority() {
   }
 
   public static final int IS_FALLBACK_FIELD_NUMBER = 6;
-  private boolean isFallback_;
+  private boolean isFallback_ = false;
   /**
    *
    *
@@ -4103,6 +4243,7 @@ private static final class LabelsDefaultEntryHolder {
             "");
   }
 
+  @SuppressWarnings("serial")
   private com.google.protobuf.MapField labels_;
 
   private com.google.protobuf.MapField internalGetLabels() {
@@ -4190,7 +4331,10 @@ public java.util.Map getLabelsMap() {
    * map<string, string> labels = 7;
    */
   @java.lang.Override
-  public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
+  public /* nullable */ java.lang.String getLabelsOrDefault(
+      java.lang.String key,
+      /* nullable */
+      java.lang.String defaultValue) {
     if (key == null) {
       throw new NullPointerException("map key");
     }
@@ -4229,7 +4373,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
   }
 
   public static final int DESCRIPTION_FIELD_NUMBER = 8;
-  private volatile java.lang.Object description_;
+
+  @SuppressWarnings("serial")
+  private volatile java.lang.Object description_ = "";
   /**
    *
    *
@@ -4573,31 +4719,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     @java.lang.Override
     public Builder clear() {
       super.clear();
+      bitField0_ = 0;
       name_ = "";
-
       displayName_ = "";
-
       if (trainingPhrasesBuilder_ == null) {
         trainingPhrases_ = java.util.Collections.emptyList();
       } else {
         trainingPhrases_ = null;
         trainingPhrasesBuilder_.clear();
       }
-      bitField0_ = (bitField0_ & ~0x00000001);
+      bitField0_ = (bitField0_ & ~0x00000004);
       if (parametersBuilder_ == null) {
         parameters_ = java.util.Collections.emptyList();
       } else {
         parameters_ = null;
         parametersBuilder_.clear();
       }
-      bitField0_ = (bitField0_ & ~0x00000002);
+      bitField0_ = (bitField0_ & ~0x00000008);
       priority_ = 0;
-
       isFallback_ = false;
-
       internalGetMutableLabels().clear();
       description_ = "";
-
       return this;
     }
 
@@ -4625,34 +4767,56 @@ public com.google.cloud.dialogflow.cx.v3.Intent build() {
     public com.google.cloud.dialogflow.cx.v3.Intent buildPartial() {
       com.google.cloud.dialogflow.cx.v3.Intent result =
           new com.google.cloud.dialogflow.cx.v3.Intent(this);
-      int from_bitField0_ = bitField0_;
-      result.name_ = name_;
-      result.displayName_ = displayName_;
+      buildPartialRepeatedFields(result);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
+      onBuilt();
+      return result;
+    }
+
+    private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.Intent result) {
       if (trainingPhrasesBuilder_ == null) {
-        if (((bitField0_ & 0x00000001) != 0)) {
+        if (((bitField0_ & 0x00000004) != 0)) {
           trainingPhrases_ = java.util.Collections.unmodifiableList(trainingPhrases_);
-          bitField0_ = (bitField0_ & ~0x00000001);
+          bitField0_ = (bitField0_ & ~0x00000004);
         }
         result.trainingPhrases_ = trainingPhrases_;
       } else {
         result.trainingPhrases_ = trainingPhrasesBuilder_.build();
       }
       if (parametersBuilder_ == null) {
-        if (((bitField0_ & 0x00000002) != 0)) {
+        if (((bitField0_ & 0x00000008) != 0)) {
           parameters_ = java.util.Collections.unmodifiableList(parameters_);
-          bitField0_ = (bitField0_ & ~0x00000002);
+          bitField0_ = (bitField0_ & ~0x00000008);
         }
         result.parameters_ = parameters_;
       } else {
         result.parameters_ = parametersBuilder_.build();
       }
-      result.priority_ = priority_;
-      result.isFallback_ = isFallback_;
-      result.labels_ = internalGetLabels();
-      result.labels_.makeImmutable();
-      result.description_ = description_;
-      onBuilt();
-      return result;
+    }
+
+    private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Intent result) {
+      int from_bitField0_ = bitField0_;
+      if (((from_bitField0_ & 0x00000001) != 0)) {
+        result.name_ = name_;
+      }
+      if (((from_bitField0_ & 0x00000002) != 0)) {
+        result.displayName_ = displayName_;
+      }
+      if (((from_bitField0_ & 0x00000010) != 0)) {
+        result.priority_ = priority_;
+      }
+      if (((from_bitField0_ & 0x00000020) != 0)) {
+        result.isFallback_ = isFallback_;
+      }
+      if (((from_bitField0_ & 0x00000040) != 0)) {
+        result.labels_ = internalGetLabels();
+        result.labels_.makeImmutable();
+      }
+      if (((from_bitField0_ & 0x00000080) != 0)) {
+        result.description_ = description_;
+      }
     }
 
     @java.lang.Override
@@ -4702,17 +4866,19 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent other) {
       if (other == com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
+        bitField0_ |= 0x00000001;
         onChanged();
       }
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
+        bitField0_ |= 0x00000002;
         onChanged();
       }
       if (trainingPhrasesBuilder_ == null) {
         if (!other.trainingPhrases_.isEmpty()) {
           if (trainingPhrases_.isEmpty()) {
             trainingPhrases_ = other.trainingPhrases_;
-            bitField0_ = (bitField0_ & ~0x00000001);
+            bitField0_ = (bitField0_ & ~0x00000004);
           } else {
             ensureTrainingPhrasesIsMutable();
             trainingPhrases_.addAll(other.trainingPhrases_);
@@ -4725,7 +4891,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent other) {
             trainingPhrasesBuilder_.dispose();
             trainingPhrasesBuilder_ = null;
             trainingPhrases_ = other.trainingPhrases_;
-            bitField0_ = (bitField0_ & ~0x00000001);
+            bitField0_ = (bitField0_ & ~0x00000004);
             trainingPhrasesBuilder_ =
                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                     ? getTrainingPhrasesFieldBuilder()
@@ -4739,7 +4905,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent other) {
         if (!other.parameters_.isEmpty()) {
           if (parameters_.isEmpty()) {
             parameters_ = other.parameters_;
-            bitField0_ = (bitField0_ & ~0x00000002);
+            bitField0_ = (bitField0_ & ~0x00000008);
           } else {
             ensureParametersIsMutable();
             parameters_.addAll(other.parameters_);
@@ -4752,7 +4918,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent other) {
             parametersBuilder_.dispose();
             parametersBuilder_ = null;
             parameters_ = other.parameters_;
-            bitField0_ = (bitField0_ & ~0x00000002);
+            bitField0_ = (bitField0_ & ~0x00000008);
             parametersBuilder_ =
                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                     ? getParametersFieldBuilder()
@@ -4769,8 +4935,10 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Intent other) {
         setIsFallback(other.getIsFallback());
       }
       internalGetMutableLabels().mergeFrom(other.internalGetLabels());
+      bitField0_ |= 0x00000040;
       if (!other.getDescription().isEmpty()) {
         description_ = other.description_;
+        bitField0_ |= 0x00000080;
         onChanged();
       }
       this.mergeUnknownFields(other.getUnknownFields());
@@ -4802,13 +4970,13 @@ public Builder mergeFrom(
             case 10:
               {
                 name_ = input.readStringRequireUtf8();
-
+                bitField0_ |= 0x00000001;
                 break;
               } // case 10
             case 18:
               {
                 displayName_ = input.readStringRequireUtf8();
-
+                bitField0_ |= 0x00000002;
                 break;
               } // case 18
             case 26:
@@ -4842,13 +5010,13 @@ public Builder mergeFrom(
             case 40:
               {
                 priority_ = input.readInt32();
-
+                bitField0_ |= 0x00000010;
                 break;
               } // case 40
             case 48:
               {
                 isFallback_ = input.readBool();
-
+                bitField0_ |= 0x00000020;
                 break;
               } // case 48
             case 58:
@@ -4860,12 +5028,13 @@ public Builder mergeFrom(
                 internalGetMutableLabels()
                     .getMutableMap()
                     .put(labels__.getKey(), labels__.getValue());
+                bitField0_ |= 0x00000040;
                 break;
               } // case 58
             case 66:
               {
                 description_ = input.readStringRequireUtf8();
-
+                bitField0_ |= 0x00000080;
                 break;
               } // case 66
             default:
@@ -4893,7 +5062,10 @@ public Builder mergeFrom(
      *
      * 
      * The unique identifier of the intent.
-     * Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
+     * Required for the
+     * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
+     * method.
+     * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
      * populates the name automatically.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
@@ -4919,7 +5091,10 @@ public java.lang.String getName() {
      *
      * 
      * The unique identifier of the intent.
-     * Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
+     * Required for the
+     * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
+     * method.
+     * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
      * populates the name automatically.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
@@ -4945,7 +5120,10 @@ public com.google.protobuf.ByteString getNameBytes() {
      *
      * 
      * The unique identifier of the intent.
-     * Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
+     * Required for the
+     * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
+     * method.
+     * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
      * populates the name automatically.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
@@ -4960,8 +5138,8 @@ public Builder setName(java.lang.String value) {
       if (value == null) {
         throw new NullPointerException();
       }
-
       name_ = value;
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -4970,7 +5148,10 @@ public Builder setName(java.lang.String value) {
      *
      * 
      * The unique identifier of the intent.
-     * Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
+     * Required for the
+     * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
+     * method.
+     * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
      * populates the name automatically.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
@@ -4981,8 +5162,8 @@ public Builder setName(java.lang.String value) {
      * @return This builder for chaining.
      */
     public Builder clearName() {
-
       name_ = getDefaultInstance().getName();
+      bitField0_ = (bitField0_ & ~0x00000001);
       onChanged();
       return this;
     }
@@ -4991,7 +5172,10 @@ public Builder clearName() {
      *
      * 
      * The unique identifier of the intent.
-     * Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
+     * Required for the
+     * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
+     * method.
+     * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
      * populates the name automatically.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
@@ -5007,8 +5191,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
         throw new NullPointerException();
       }
       checkByteStringIsUtf8(value);
-
       name_ = value;
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -5074,8 +5258,8 @@ public Builder setDisplayName(java.lang.String value) {
       if (value == null) {
         throw new NullPointerException();
       }
-
       displayName_ = value;
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -5091,8 +5275,8 @@ public Builder setDisplayName(java.lang.String value) {
      * @return This builder for chaining.
      */
     public Builder clearDisplayName() {
-
       displayName_ = getDefaultInstance().getDisplayName();
+      bitField0_ = (bitField0_ & ~0x00000002);
       onChanged();
       return this;
     }
@@ -5113,8 +5297,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
         throw new NullPointerException();
       }
       checkByteStringIsUtf8(value);
-
       displayName_ = value;
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -5123,11 +5307,11 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
         trainingPhrases_ = java.util.Collections.emptyList();
 
     private void ensureTrainingPhrasesIsMutable() {
-      if (!((bitField0_ & 0x00000001) != 0)) {
+      if (!((bitField0_ & 0x00000004) != 0)) {
         trainingPhrases_ =
             new java.util.ArrayList(
                 trainingPhrases_);
-        bitField0_ |= 0x00000001;
+        bitField0_ |= 0x00000004;
       }
     }
 
@@ -5372,7 +5556,7 @@ public Builder addAllTrainingPhrases(
     public Builder clearTrainingPhrases() {
       if (trainingPhrasesBuilder_ == null) {
         trainingPhrases_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000001);
+        bitField0_ = (bitField0_ & ~0x00000004);
         onChanged();
       } else {
         trainingPhrasesBuilder_.clear();
@@ -5515,7 +5699,7 @@ public Builder removeTrainingPhrases(int index) {
                 com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Builder,
                 com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder>(
                 trainingPhrases_,
-                ((bitField0_ & 0x00000001) != 0),
+                ((bitField0_ & 0x00000004) != 0),
                 getParentForChildren(),
                 isClean());
         trainingPhrases_ = null;
@@ -5527,11 +5711,11 @@ public Builder removeTrainingPhrases(int index) {
         java.util.Collections.emptyList();
 
     private void ensureParametersIsMutable() {
-      if (!((bitField0_ & 0x00000002) != 0)) {
+      if (!((bitField0_ & 0x00000008) != 0)) {
         parameters_ =
             new java.util.ArrayList(
                 parameters_);
-        bitField0_ |= 0x00000002;
+        bitField0_ |= 0x00000008;
       }
     }
 
@@ -5749,7 +5933,7 @@ public Builder addAllParameters(
     public Builder clearParameters() {
       if (parametersBuilder_ == null) {
         parameters_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000002);
+        bitField0_ = (bitField0_ & ~0x00000008);
         onChanged();
       } else {
         parametersBuilder_.clear();
@@ -5875,7 +6059,7 @@ public com.google.cloud.dialogflow.cx.v3.Intent.Parameter.Builder addParametersB
                 com.google.cloud.dialogflow.cx.v3.Intent.Parameter,
                 com.google.cloud.dialogflow.cx.v3.Intent.Parameter.Builder,
                 com.google.cloud.dialogflow.cx.v3.Intent.ParameterOrBuilder>(
-                parameters_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+                parameters_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
         parameters_ = null;
       }
       return parametersBuilder_;
@@ -5924,6 +6108,7 @@ public int getPriority() {
     public Builder setPriority(int value) {
 
       priority_ = value;
+      bitField0_ |= 0x00000010;
       onChanged();
       return this;
     }
@@ -5945,7 +6130,7 @@ public Builder setPriority(int value) {
      * @return This builder for chaining.
      */
     public Builder clearPriority() {
-
+      bitField0_ = (bitField0_ & ~0x00000010);
       priority_ = 0;
       onChanged();
       return this;
@@ -5992,6 +6177,7 @@ public boolean getIsFallback() {
     public Builder setIsFallback(boolean value) {
 
       isFallback_ = value;
+      bitField0_ |= 0x00000020;
       onChanged();
       return this;
     }
@@ -6012,7 +6198,7 @@ public Builder setIsFallback(boolean value) {
      * @return This builder for chaining.
      */
     public Builder clearIsFallback() {
-
+      bitField0_ = (bitField0_ & ~0x00000020);
       isFallback_ = false;
       onChanged();
       return this;
@@ -6029,14 +6215,14 @@ private com.google.protobuf.MapField interna
 
     private com.google.protobuf.MapField
         internalGetMutableLabels() {
-      onChanged();
-      ;
       if (labels_ == null) {
         labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
       }
       if (!labels_.isMutable()) {
         labels_ = labels_.copy();
       }
+      bitField0_ |= 0x00000040;
+      onChanged();
       return labels_;
     }
 
@@ -6118,8 +6304,10 @@ public java.util.Map getLabelsMap() {
      * map<string, string> labels = 7;
      */
     @java.lang.Override
-    public java.lang.String getLabelsOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
+    public /* nullable */ java.lang.String getLabelsOrDefault(
+        java.lang.String key,
+        /* nullable */
+        java.lang.String defaultValue) {
       if (key == null) {
         throw new NullPointerException("map key");
       }
@@ -6158,6 +6346,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
     }
 
     public Builder clearLabels() {
+      bitField0_ = (bitField0_ & ~0x00000040);
       internalGetMutableLabels().getMutableMap().clear();
       return this;
     }
@@ -6190,6 +6379,7 @@ public Builder removeLabels(java.lang.String key) {
     /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
     public java.util.Map getMutableLabels() {
+      bitField0_ |= 0x00000040;
       return internalGetMutableLabels().getMutableMap();
     }
     /**
@@ -6218,8 +6408,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
       if (value == null) {
         throw new NullPointerException("map value");
       }
-
       internalGetMutableLabels().getMutableMap().put(key, value);
+      bitField0_ |= 0x00000040;
       return this;
     }
     /**
@@ -6243,6 +6433,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) {
      */
     public Builder putAllLabels(java.util.Map values) {
       internalGetMutableLabels().getMutableMap().putAll(values);
+      bitField0_ |= 0x00000040;
       return this;
     }
 
@@ -6310,8 +6501,8 @@ public Builder setDescription(java.lang.String value) {
       if (value == null) {
         throw new NullPointerException();
       }
-
       description_ = value;
+      bitField0_ |= 0x00000080;
       onChanged();
       return this;
     }
@@ -6328,8 +6519,8 @@ public Builder setDescription(java.lang.String value) {
      * @return This builder for chaining.
      */
     public Builder clearDescription() {
-
       description_ = getDefaultInstance().getDescription();
+      bitField0_ = (bitField0_ & ~0x00000080);
       onChanged();
       return this;
     }
@@ -6351,8 +6542,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
         throw new NullPointerException();
       }
       checkByteStringIsUtf8(value);
-
       description_ = value;
+      bitField0_ |= 0x00000080;
       onChanged();
       return this;
     }
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentCoverage.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentCoverage.java
index 127ecf74a60c..09df66b9ac49 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentCoverage.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentCoverage.java
@@ -162,7 +162,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     }
 
     public static final int INTENT_FIELD_NUMBER = 1;
-    private volatile java.lang.Object intent_;
+
+    @SuppressWarnings("serial")
+    private volatile java.lang.Object intent_ = "";
     /**
      *
      *
@@ -211,7 +213,7 @@ public com.google.protobuf.ByteString getIntentBytes() {
     }
 
     public static final int COVERED_FIELD_NUMBER = 2;
-    private boolean covered_;
+    private boolean covered_ = false;
     /**
      *
      *
@@ -438,10 +440,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       @java.lang.Override
       public Builder clear() {
         super.clear();
+        bitField0_ = 0;
         intent_ = "";
-
         covered_ = false;
-
         return this;
       }
 
@@ -469,12 +470,23 @@ public com.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent build() {
       public com.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent buildPartial() {
         com.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent result =
             new com.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent(this);
-        result.intent_ = intent_;
-        result.covered_ = covered_;
+        if (bitField0_ != 0) {
+          buildPartial0(result);
+        }
         onBuilt();
         return result;
       }
 
+      private void buildPartial0(com.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent result) {
+        int from_bitField0_ = bitField0_;
+        if (((from_bitField0_ & 0x00000001) != 0)) {
+          result.intent_ = intent_;
+        }
+        if (((from_bitField0_ & 0x00000002) != 0)) {
+          result.covered_ = covered_;
+        }
+      }
+
       @java.lang.Override
       public Builder clone() {
         return super.clone();
@@ -525,6 +537,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent
           return this;
         if (!other.getIntent().isEmpty()) {
           intent_ = other.intent_;
+          bitField0_ |= 0x00000001;
           onChanged();
         }
         if (other.getCovered() != false) {
@@ -559,13 +572,13 @@ public Builder mergeFrom(
               case 10:
                 {
                   intent_ = input.readStringRequireUtf8();
-
+                  bitField0_ |= 0x00000001;
                   break;
                 } // case 10
               case 16:
                 {
                   covered_ = input.readBool();
-
+                  bitField0_ |= 0x00000002;
                   break;
                 } // case 16
               default:
@@ -585,6 +598,8 @@ public Builder mergeFrom(
         return this;
       }
 
+      private int bitField0_;
+
       private java.lang.Object intent_ = "";
       /**
        *
@@ -646,8 +661,8 @@ public Builder setIntent(java.lang.String value) {
         if (value == null) {
           throw new NullPointerException();
         }
-
         intent_ = value;
+        bitField0_ |= 0x00000001;
         onChanged();
         return this;
       }
@@ -663,8 +678,8 @@ public Builder setIntent(java.lang.String value) {
        * @return This builder for chaining.
        */
       public Builder clearIntent() {
-
         intent_ = getDefaultInstance().getIntent();
+        bitField0_ = (bitField0_ & ~0x00000001);
         onChanged();
         return this;
       }
@@ -685,8 +700,8 @@ public Builder setIntentBytes(com.google.protobuf.ByteString value) {
           throw new NullPointerException();
         }
         checkByteStringIsUtf8(value);
-
         intent_ = value;
+        bitField0_ |= 0x00000001;
         onChanged();
         return this;
       }
@@ -724,6 +739,7 @@ public boolean getCovered() {
       public Builder setCovered(boolean value) {
 
         covered_ = value;
+        bitField0_ |= 0x00000002;
         onChanged();
         return this;
       }
@@ -740,7 +756,7 @@ public Builder setCovered(boolean value) {
        * @return This builder for chaining.
        */
       public Builder clearCovered() {
-
+        bitField0_ = (bitField0_ & ~0x00000002);
         covered_ = false;
         onChanged();
         return this;
@@ -811,6 +827,8 @@ public com.google.cloud.dialogflow.cx.v3.IntentCoverage.Intent getDefaultInstanc
   }
 
   public static final int INTENTS_FIELD_NUMBER = 1;
+
+  @SuppressWarnings("serial")
   private java.util.List intents_;
   /**
    *
@@ -881,7 +899,7 @@ public com.google.cloud.dialogflow.cx.v3.IntentCoverage.IntentOrBuilder getInten
   }
 
   public static final int COVERAGE_SCORE_FIELD_NUMBER = 2;
-  private float coverageScore_;
+  private float coverageScore_ = 0F;
   /**
    *
    *
@@ -1108,6 +1126,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     @java.lang.Override
     public Builder clear() {
       super.clear();
+      bitField0_ = 0;
       if (intentsBuilder_ == null) {
         intents_ = java.util.Collections.emptyList();
       } else {
@@ -1116,7 +1135,6 @@ public Builder clear() {
       }
       bitField0_ = (bitField0_ & ~0x00000001);
       coverageScore_ = 0F;
-
       return this;
     }
 
@@ -1144,7 +1162,16 @@ public com.google.cloud.dialogflow.cx.v3.IntentCoverage build() {
     public com.google.cloud.dialogflow.cx.v3.IntentCoverage buildPartial() {
       com.google.cloud.dialogflow.cx.v3.IntentCoverage result =
           new com.google.cloud.dialogflow.cx.v3.IntentCoverage(this);
-      int from_bitField0_ = bitField0_;
+      buildPartialRepeatedFields(result);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
+      onBuilt();
+      return result;
+    }
+
+    private void buildPartialRepeatedFields(
+        com.google.cloud.dialogflow.cx.v3.IntentCoverage result) {
       if (intentsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
           intents_ = java.util.Collections.unmodifiableList(intents_);
@@ -1154,9 +1181,13 @@ public com.google.cloud.dialogflow.cx.v3.IntentCoverage buildPartial() {
       } else {
         result.intents_ = intentsBuilder_.build();
       }
-      result.coverageScore_ = coverageScore_;
-      onBuilt();
-      return result;
+    }
+
+    private void buildPartial0(com.google.cloud.dialogflow.cx.v3.IntentCoverage result) {
+      int from_bitField0_ = bitField0_;
+      if (((from_bitField0_ & 0x00000002) != 0)) {
+        result.coverageScore_ = coverageScore_;
+      }
     }
 
     @java.lang.Override
@@ -1278,7 +1309,7 @@ public Builder mergeFrom(
             case 21:
               {
                 coverageScore_ = input.readFloat();
-
+                bitField0_ |= 0x00000002;
                 break;
               } // case 21
             default:
@@ -1694,6 +1725,7 @@ public float getCoverageScore() {
     public Builder setCoverageScore(float value) {
 
       coverageScore_ = value;
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -1709,7 +1741,7 @@ public Builder setCoverageScore(float value) {
      * @return This builder for chaining.
      */
     public Builder clearCoverageScore() {
-
+      bitField0_ = (bitField0_ & ~0x00000002);
       coverageScore_ = 0F;
       onChanged();
       return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentInput.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentInput.java
index 99087e255c1e..029125d4ecf4 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentInput.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentInput.java
@@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
   }
 
   public static final int INTENT_FIELD_NUMBER = 1;
-  private volatile java.lang.Object intent_;
+
+  @SuppressWarnings("serial")
+  private volatile java.lang.Object intent_ = "";
   /**
    *
    *
@@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     @java.lang.Override
     public Builder clear() {
       super.clear();
+      bitField0_ = 0;
       intent_ = "";
-
       return this;
     }
 
@@ -352,11 +354,20 @@ public com.google.cloud.dialogflow.cx.v3.IntentInput build() {
     public com.google.cloud.dialogflow.cx.v3.IntentInput buildPartial() {
       com.google.cloud.dialogflow.cx.v3.IntentInput result =
           new com.google.cloud.dialogflow.cx.v3.IntentInput(this);
-      result.intent_ = intent_;
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
+    private void buildPartial0(com.google.cloud.dialogflow.cx.v3.IntentInput result) {
+      int from_bitField0_ = bitField0_;
+      if (((from_bitField0_ & 0x00000001) != 0)) {
+        result.intent_ = intent_;
+      }
+    }
+
     @java.lang.Override
     public Builder clone() {
       return super.clone();
@@ -404,6 +415,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.IntentInput other) {
       if (other == com.google.cloud.dialogflow.cx.v3.IntentInput.getDefaultInstance()) return this;
       if (!other.getIntent().isEmpty()) {
         intent_ = other.intent_;
+        bitField0_ |= 0x00000001;
         onChanged();
       }
       this.mergeUnknownFields(other.getUnknownFields());
@@ -435,7 +447,7 @@ public Builder mergeFrom(
             case 10:
               {
                 intent_ = input.readStringRequireUtf8();
-
+                bitField0_ |= 0x00000001;
                 break;
               } // case 10
             default:
@@ -455,6 +467,8 @@ public Builder mergeFrom(
       return this;
     }
 
+    private int bitField0_;
+
     private java.lang.Object intent_ = "";
     /**
      *
@@ -528,8 +542,8 @@ public Builder setIntent(java.lang.String value) {
       if (value == null) {
         throw new NullPointerException();
       }
-
       intent_ = value;
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -549,8 +563,8 @@ public Builder setIntent(java.lang.String value) {
      * @return This builder for chaining.
      */
     public Builder clearIntent() {
-
       intent_ = getDefaultInstance().getIntent();
+      bitField0_ = (bitField0_ & ~0x00000001);
       onChanged();
       return this;
     }
@@ -575,8 +589,8 @@ public Builder setIntentBytes(com.google.protobuf.ByteString value) {
         throw new NullPointerException();
       }
       checkByteStringIsUtf8(value);
-
       intent_ = value;
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentOrBuilder.java
index f5a8612ea97c..4b9c77d83123 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentOrBuilder.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentOrBuilder.java
@@ -28,7 +28,10 @@ public interface IntentOrBuilder
    *
    * 
    * The unique identifier of the intent.
-   * Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
+   * Required for the
+   * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
+   * method.
+   * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
    * populates the name automatically.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
@@ -44,7 +47,10 @@ public interface IntentOrBuilder
    *
    * 
    * The unique identifier of the intent.
-   * Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
+   * Required for the
+   * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]
+   * method.
+   * [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent]
    * populates the name automatically.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
@@ -315,7 +321,6 @@ com.google.cloud.dialogflow.cx.v3.Intent.TrainingPhraseOrBuilder getTrainingPhra
    *
    * map<string, string> labels = 7;
    */
-
   /* nullable */
   java.lang.String getLabelsOrDefault(
       java.lang.String key,
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentProto.java
index 1cd23b219e7e..5ef987da0cab 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentProto.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentProto.java
@@ -155,12 +155,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
           + "\332A\004name\032x\312A\031dialogflow.googleapis.com\322AY"
           + "https://www.googleapis.com/auth/cloud-pl"
           + "atform,https://www.googleapis.com/auth/d"
-          + "ialogflowB\277\001\n!com.google.cloud.dialogflo"
-          + "w.cx.v3B\013IntentProtoP\001Z?google.golang.or"
-          + "g/genproto/googleapis/cloud/dialogflow/c"
-          + "x/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflo"
-          + "w.Cx.V3\352\002!Google::Cloud::Dialogflow::CX:"
-          + ":V3b\006proto3"
+          + "ialogflowB\261\001\n!com.google.cloud.dialogflo"
+          + "w.cx.v3B\013IntentProtoP\001Z1cloud.google.com"
+          + "/go/dialogflow/cx/apiv3/cxpb;cxpb\370\001\001\242\002\002D"
+          + "F\252\002\035Google.Cloud.Dialogflow.Cx.V3\352\002!Goog"
+          + "le::Cloud::Dialogflow::CX::V3b\006proto3"
     };
     descriptor =
         com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsRequest.java
index 5d69891eb724..fa2ea915ff4f 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsRequest.java
@@ -22,7 +22,8 @@
  *
  *
  * 
- * The request message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
+ * The request message for
+ * [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListAgentsRequest} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -124,7 +127,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -143,7 +146,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -372,7 +377,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
+   * The request message for
+   * [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListAgentsRequest} @@ -406,12 +412,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -439,13 +443,26 @@ public com.google.cloud.dialogflow.cx.v3.ListAgentsRequest build() { public com.google.cloud.dialogflow.cx.v3.ListAgentsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ListAgentsRequest result = new com.google.cloud.dialogflow.cx.v3.ListAgentsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListAgentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -494,6 +511,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListAgentsRequest oth return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -501,6 +519,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListAgentsRequest oth } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -532,19 +551,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -564,6 +583,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -634,8 +655,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -654,8 +675,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -679,8 +700,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -718,6 +739,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -734,7 +756,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -801,8 +823,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -818,8 +840,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -840,8 +862,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsResponse.java index 435a3d65af8b..6096e6cb2f0f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListAgentsResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
+ * The response message for
+ * [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListAgentsResponse} @@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int AGENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List agents_; /** * @@ -143,7 +146,9 @@ public com.google.cloud.dialogflow.cx.v3.AgentOrBuilder getAgentsOrBuilder(int i } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -367,7 +372,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
+   * The response message for
+   * [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListAgentsResponse} @@ -401,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (agentsBuilder_ == null) { agents_ = java.util.Collections.emptyList(); } else { @@ -409,7 +416,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -437,7 +443,16 @@ public com.google.cloud.dialogflow.cx.v3.ListAgentsResponse build() { public com.google.cloud.dialogflow.cx.v3.ListAgentsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ListAgentsResponse result = new com.google.cloud.dialogflow.cx.v3.ListAgentsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ListAgentsResponse result) { if (agentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { agents_ = java.util.Collections.unmodifiableList(agents_); @@ -447,9 +462,13 @@ public com.google.cloud.dialogflow.cx.v3.ListAgentsResponse buildPartial() { } else { result.agents_ = agentsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListAgentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -527,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListAgentsResponse ot } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -571,7 +591,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1023,8 +1043,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1041,8 +1061,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1064,8 +1084,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsRequest.java index c56689ca9cf2..2680cadcb531 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
+ * The request message for
+ * [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListChangelogsRequest} @@ -70,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -125,7 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -212,7 +217,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -231,7 +236,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -470,7 +477,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
+   * The request message for
+   * [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListChangelogsRequest} @@ -504,14 +512,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -539,14 +544,29 @@ public com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest build() { public com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest result = new com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -595,10 +615,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -606,6 +628,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListChangelogsRequest } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -637,25 +660,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -675,6 +698,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -745,8 +770,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -765,8 +790,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -790,8 +815,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -914,8 +939,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -950,8 +975,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -991,8 +1016,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1030,6 +1055,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1046,7 +1072,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1113,8 +1139,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1130,8 +1156,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1152,8 +1178,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsResponse.java index db2fdc13ce85..f4d69842cc80 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListChangelogsResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
+ * The response message for
+ * [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListChangelogsResponse} @@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CHANGELOGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List changelogs_; /** * @@ -148,7 +151,9 @@ public com.google.cloud.dialogflow.cx.v3.ChangelogOrBuilder getChangelogsOrBuild } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -373,7 +378,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
+   * The response message for
+   * [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListChangelogsResponse} @@ -407,6 +413,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (changelogsBuilder_ == null) { changelogs_ = java.util.Collections.emptyList(); } else { @@ -415,7 +422,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -443,7 +449,16 @@ public com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse build() { public com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse result = new com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse result) { if (changelogsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { changelogs_ = java.util.Collections.unmodifiableList(changelogs_); @@ -453,9 +468,13 @@ public com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse buildPartial() { } else { result.changelogs_ = changelogsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListChangelogsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -533,6 +552,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListChangelogsRespons } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -577,7 +597,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1050,8 +1070,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1068,8 +1088,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1091,8 +1111,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequest.java index e77f4840e6e2..476c0f30078a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Environments.ListContinuousTestResults][google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResults].
+ * The request message for
+ * [Environments.ListContinuousTestResults][google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResults].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest} @@ -70,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +130,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -146,7 +149,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -377,7 +382,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Environments.ListContinuousTestResults][google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResults].
+   * The request message for
+   * [Environments.ListContinuousTestResults][google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResults].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest} @@ -412,12 +418,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -447,13 +451,27 @@ public com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest build( public com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest result = new com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -505,6 +523,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -512,6 +531,7 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -543,19 +563,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -575,6 +595,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -648,8 +670,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -669,8 +691,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -695,8 +717,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -734,6 +756,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -750,7 +773,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -817,8 +840,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -834,8 +857,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -856,8 +879,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponse.java index 5b470fc9a7ad..91c6ea058f78 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListContinuousTestResultsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTINUOUS_TEST_RESULTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List continuousTestResults_; /** @@ -148,7 +150,9 @@ public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult getContinuousTestR } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -411,6 +415,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (continuousTestResultsBuilder_ == null) { continuousTestResults_ = java.util.Collections.emptyList(); } else { @@ -419,7 +424,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -449,7 +453,16 @@ public com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse build public com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse result = new com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse result) { if (continuousTestResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { continuousTestResults_ = java.util.Collections.unmodifiableList(continuousTestResults_); @@ -459,9 +472,14 @@ public com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse build } else { result.continuousTestResults_ = continuousTestResultsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -542,6 +560,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -587,7 +606,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1075,8 +1094,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1093,8 +1112,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1116,8 +1135,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequest.java index 98545a8b1722..55c708b7a4b4 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
+ * The request message for
+ * [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListDeploymentsRequest} @@ -69,14 +70,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * *
-   * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/environments/<Environment ID>`.
+   * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+   * list all environments for. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+   * ID>`.
    * 
* * @@ -101,9 +105,10 @@ public java.lang.String getParent() { * * *
-   * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/environments/<Environment ID>`.
+   * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+   * list all environments for. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+   * ID>`.
    * 
* * @@ -126,7 +131,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -145,7 +150,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -375,7 +382,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
+   * The request message for
+   * [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListDeploymentsRequest} @@ -409,12 +417,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -442,13 +448,26 @@ public com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest build() { public com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest result = new com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListDeploymentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -497,6 +516,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListDeploymentsReques return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -504,6 +524,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListDeploymentsReques } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -535,19 +556,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -567,14 +588,17 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * * *
-     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/environments/<Environment ID>`.
+     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+     * list all environments for. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+     * ID>`.
      * 
* * @@ -598,9 +622,10 @@ public java.lang.String getParent() { * * *
-     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/environments/<Environment ID>`.
+     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+     * list all environments for. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+     * ID>`.
      * 
* * @@ -624,9 +649,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/environments/<Environment ID>`.
+     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+     * list all environments for. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+     * ID>`.
      * 
* * @@ -640,8 +666,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -649,9 +675,10 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/environments/<Environment ID>`.
+     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+     * list all environments for. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+     * ID>`.
      * 
* * @@ -661,8 +688,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -670,9 +697,10 @@ public Builder clearParent() { * * *
-     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/environments/<Environment ID>`.
+     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+     * list all environments for. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+     * ID>`.
      * 
* * @@ -687,8 +715,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -726,6 +754,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -742,7 +771,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -809,8 +838,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -826,8 +855,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -848,8 +877,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequestOrBuilder.java index 7a416f1e5f53..31b206ff2311 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsRequestOrBuilder.java @@ -27,9 +27,10 @@ public interface ListDeploymentsRequestOrBuilder * * *
-   * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/environments/<Environment ID>`.
+   * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+   * list all environments for. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+   * ID>`.
    * 
* * @@ -43,9 +44,10 @@ public interface ListDeploymentsRequestOrBuilder * * *
-   * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/environments/<Environment ID>`.
+   * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+   * list all environments for. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+   * ID>`.
    * 
* * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsResponse.java index 7c3a4f6a45da..b262ef515add 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListDeploymentsResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
+ * The response message for
+ * [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} @@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DEPLOYMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List deployments_; /** * @@ -153,7 +156,9 @@ public com.google.cloud.dialogflow.cx.v3.DeploymentOrBuilder getDeploymentsOrBui } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -378,7 +383,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
+   * The response message for
+   * [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListDeploymentsResponse} @@ -412,6 +418,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (deploymentsBuilder_ == null) { deployments_ = java.util.Collections.emptyList(); } else { @@ -420,7 +427,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -448,7 +454,16 @@ public com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse build() { public com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse result = new com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse result) { if (deploymentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { deployments_ = java.util.Collections.unmodifiableList(deployments_); @@ -458,9 +473,13 @@ public com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse buildPartial() } else { result.deployments_ = deploymentsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListDeploymentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -538,6 +557,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListDeploymentsRespon } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -582,7 +602,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1074,8 +1094,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1092,8 +1112,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1115,8 +1135,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesRequest.java index b7ee8f512a5d..fc5751576b2a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
+ * The request message for
+ * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListEntityTypesRequest} @@ -70,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -125,7 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -192,7 +197,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -211,7 +216,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -450,7 +457,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
+   * The request message for
+   * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListEntityTypesRequest} @@ -484,14 +492,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - languageCode_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -519,14 +524,29 @@ public com.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest build() { public com.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest result = new com.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest(this); - result.parent_ = parent_; - result.languageCode_ = languageCode_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListEntityTypesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -575,10 +595,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListEntityTypesReques return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -586,6 +608,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListEntityTypesReques } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -617,25 +640,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -655,6 +678,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -725,8 +750,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -745,8 +770,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -770,8 +795,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -864,8 +889,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -890,8 +915,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -921,8 +946,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -960,6 +985,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -976,7 +1002,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1043,8 +1069,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1060,8 +1086,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1082,8 +1108,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesResponse.java index 350f7ff64a45..7b9a4026f9ff 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEntityTypesResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
+ * The response message for
+ * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} @@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENTITY_TYPES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List entityTypes_; /** * @@ -143,7 +146,9 @@ public com.google.cloud.dialogflow.cx.v3.EntityTypeOrBuilder getEntityTypesOrBui } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -368,7 +373,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
+   * The response message for
+   * [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListEntityTypesResponse} @@ -402,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (entityTypesBuilder_ == null) { entityTypes_ = java.util.Collections.emptyList(); } else { @@ -410,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -438,7 +444,16 @@ public com.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse build() { public com.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse result = new com.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse result) { if (entityTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { entityTypes_ = java.util.Collections.unmodifiableList(entityTypes_); @@ -448,9 +463,13 @@ public com.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse buildPartial() } else { result.entityTypes_ = entityTypesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListEntityTypesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -528,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListEntityTypesRespon } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -572,7 +592,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1028,8 +1048,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1046,8 +1066,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1069,8 +1089,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsRequest.java index 7942b9ab3bbc..737d3e7f9716 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
+ * The request message for
+ * [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest} @@ -69,13 +70,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * *
-   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all
+   * environments for. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>`.
    * 
* * @@ -100,8 +104,9 @@ public java.lang.String getParent() { * * *
-   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all
+   * environments for. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>`.
    * 
* * @@ -124,7 +129,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -143,7 +148,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -373,7 +380,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
+   * The request message for
+   * [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest} @@ -407,12 +415,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -440,13 +446,26 @@ public com.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest build() { public com.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest result = new com.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -495,6 +514,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListEnvironmentsReque return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -502,6 +522,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListEnvironmentsReque } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -533,19 +554,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -565,13 +586,16 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * * *
-     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all
+     * environments for. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>`.
      * 
* * @@ -595,8 +619,9 @@ public java.lang.String getParent() { * * *
-     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all
+     * environments for. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>`.
      * 
* * @@ -620,8 +645,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all
+     * environments for. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>`.
      * 
* * @@ -635,8 +661,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -644,8 +670,9 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all
+     * environments for. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>`.
      * 
* * @@ -655,8 +682,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -664,8 +691,9 @@ public Builder clearParent() { * * *
-     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+     * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all
+     * environments for. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>`.
      * 
* * @@ -680,8 +708,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -719,6 +747,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -735,7 +764,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -802,8 +831,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -819,8 +848,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -841,8 +870,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsRequestOrBuilder.java index 6adfce4c0ae0..1c4808774838 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsRequestOrBuilder.java @@ -27,8 +27,9 @@ public interface ListEnvironmentsRequestOrBuilder * * *
-   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all
+   * environments for. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>`.
    * 
* * @@ -42,8 +43,9 @@ public interface ListEnvironmentsRequestOrBuilder * * *
-   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
+   * Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all
+   * environments for. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>`.
    * 
* * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsResponse.java index 2ec867fddf52..d1386eea10f9 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListEnvironmentsResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
+ * The response message for
+ * [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse} @@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENVIRONMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List environments_; /** * @@ -154,7 +157,9 @@ public com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder getEnvironmentsOrB } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -379,7 +384,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
+   * The response message for
+   * [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse} @@ -413,6 +419,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (environmentsBuilder_ == null) { environments_ = java.util.Collections.emptyList(); } else { @@ -421,7 +428,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -449,7 +455,16 @@ public com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse build() { public com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse result = new com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse result) { if (environmentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { environments_ = java.util.Collections.unmodifiableList(environments_); @@ -459,9 +474,13 @@ public com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse buildPartial() } else { result.environments_ = environmentsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -539,6 +558,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListEnvironmentsRespo } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -583,7 +603,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1075,8 +1095,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1093,8 +1113,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1116,8 +1136,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsRequest.java index 360f31336248..070c53c9e0ac 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments].
+ * The request message for
+ * [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListExperimentsRequest} @@ -69,14 +70,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * *
-   * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/environments/<Environment ID>`.
+   * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+   * list all environments for. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+   * ID>`.
    * 
* * @@ -101,9 +105,10 @@ public java.lang.String getParent() { * * *
-   * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/environments/<Environment ID>`.
+   * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+   * list all environments for. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+   * ID>`.
    * 
* * @@ -126,7 +131,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -145,7 +150,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -375,7 +382,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments].
+   * The request message for
+   * [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListExperimentsRequest} @@ -409,12 +417,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -442,13 +448,26 @@ public com.google.cloud.dialogflow.cx.v3.ListExperimentsRequest build() { public com.google.cloud.dialogflow.cx.v3.ListExperimentsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ListExperimentsRequest result = new com.google.cloud.dialogflow.cx.v3.ListExperimentsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListExperimentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -497,6 +516,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListExperimentsReques return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -504,6 +524,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListExperimentsReques } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -535,19 +556,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -567,14 +588,17 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * * *
-     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/environments/<Environment ID>`.
+     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+     * list all environments for. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+     * ID>`.
      * 
* * @@ -598,9 +622,10 @@ public java.lang.String getParent() { * * *
-     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/environments/<Environment ID>`.
+     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+     * list all environments for. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+     * ID>`.
      * 
* * @@ -624,9 +649,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/environments/<Environment ID>`.
+     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+     * list all environments for. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+     * ID>`.
      * 
* * @@ -640,8 +666,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -649,9 +675,10 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/environments/<Environment ID>`.
+     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+     * list all environments for. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+     * ID>`.
      * 
* * @@ -661,8 +688,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -670,9 +697,10 @@ public Builder clearParent() { * * *
-     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/environments/<Environment ID>`.
+     * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+     * list all environments for. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+     * ID>`.
      * 
* * @@ -687,8 +715,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -726,6 +754,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -742,7 +771,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -809,8 +838,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -826,8 +855,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -848,8 +877,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsRequestOrBuilder.java index fc5ffe75be0a..ad17ed322193 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsRequestOrBuilder.java @@ -27,9 +27,10 @@ public interface ListExperimentsRequestOrBuilder * * *
-   * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/environments/<Environment ID>`.
+   * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+   * list all environments for. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+   * ID>`.
    * 
* * @@ -43,9 +44,10 @@ public interface ListExperimentsRequestOrBuilder * * *
-   * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/environments/<Environment ID>`.
+   * Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to
+   * list all environments for. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment
+   * ID>`.
    * 
* * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsResponse.java index 5ff3972e680d..e9442ac88610 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListExperimentsResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments].
+ * The response message for
+ * [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListExperimentsResponse} @@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EXPERIMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List experiments_; /** * @@ -153,7 +156,9 @@ public com.google.cloud.dialogflow.cx.v3.ExperimentOrBuilder getExperimentsOrBui } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -378,7 +383,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments].
+   * The response message for
+   * [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListExperimentsResponse} @@ -412,6 +418,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (experimentsBuilder_ == null) { experiments_ = java.util.Collections.emptyList(); } else { @@ -420,7 +427,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -448,7 +454,16 @@ public com.google.cloud.dialogflow.cx.v3.ListExperimentsResponse build() { public com.google.cloud.dialogflow.cx.v3.ListExperimentsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ListExperimentsResponse result = new com.google.cloud.dialogflow.cx.v3.ListExperimentsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ListExperimentsResponse result) { if (experimentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { experiments_ = java.util.Collections.unmodifiableList(experiments_); @@ -458,9 +473,13 @@ public com.google.cloud.dialogflow.cx.v3.ListExperimentsResponse buildPartial() } else { result.experiments_ = experimentsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListExperimentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -538,6 +557,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListExperimentsRespon } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -582,7 +602,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1074,8 +1094,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1092,8 +1112,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1115,8 +1135,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsRequest.java index 95d62f3bd1a5..3084205925b7 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows].
+ * The request message for
+ * [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListFlowsRequest} @@ -70,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -125,7 +128,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -144,7 +147,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -193,7 +198,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 4; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -451,7 +458,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows].
+   * The request message for
+   * [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListFlowsRequest} @@ -485,14 +493,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - languageCode_ = ""; - return this; } @@ -520,14 +525,29 @@ public com.google.cloud.dialogflow.cx.v3.ListFlowsRequest build() { public com.google.cloud.dialogflow.cx.v3.ListFlowsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ListFlowsRequest result = new com.google.cloud.dialogflow.cx.v3.ListFlowsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListFlowsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -576,6 +596,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListFlowsRequest othe return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -583,10 +604,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListFlowsRequest othe } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -618,25 +641,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -656,6 +679,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -726,8 +751,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -746,8 +771,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -771,8 +796,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -810,6 +835,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -826,7 +852,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -893,8 +919,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -910,8 +936,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -932,8 +958,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1029,8 +1055,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1056,8 +1082,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1088,8 +1114,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsResponse.java index 3b2255561715..ac42bd439471 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListFlowsResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows].
+ * The response message for
+ * [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListFlowsResponse} @@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int FLOWS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List flows_; /** * @@ -143,7 +146,9 @@ public com.google.cloud.dialogflow.cx.v3.FlowOrBuilder getFlowsOrBuilder(int ind } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -367,7 +372,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows].
+   * The response message for
+   * [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListFlowsResponse} @@ -401,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (flowsBuilder_ == null) { flows_ = java.util.Collections.emptyList(); } else { @@ -409,7 +416,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -437,7 +443,16 @@ public com.google.cloud.dialogflow.cx.v3.ListFlowsResponse build() { public com.google.cloud.dialogflow.cx.v3.ListFlowsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ListFlowsResponse result = new com.google.cloud.dialogflow.cx.v3.ListFlowsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ListFlowsResponse result) { if (flowsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { flows_ = java.util.Collections.unmodifiableList(flows_); @@ -447,9 +462,13 @@ public com.google.cloud.dialogflow.cx.v3.ListFlowsResponse buildPartial() { } else { result.flows_ = flowsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListFlowsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -527,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListFlowsResponse oth } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -571,7 +591,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1023,8 +1043,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1041,8 +1061,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1064,8 +1084,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsRequest.java index 473f60253c66..3d0893256ea1 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents].
+ * The request message for
+ * [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListIntentsRequest} @@ -71,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -126,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -189,7 +194,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } public static final int INTENT_VIEW_FIELD_NUMBER = 5; - private int intentView_; + private int intentView_ = 0; /** * * @@ -218,14 +223,13 @@ public int getIntentViewValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.IntentView getIntentView() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.IntentView result = - com.google.cloud.dialogflow.cx.v3.IntentView.valueOf(intentView_); + com.google.cloud.dialogflow.cx.v3.IntentView.forNumber(intentView_); return result == null ? com.google.cloud.dialogflow.cx.v3.IntentView.UNRECOGNIZED : result; } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -244,7 +248,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -493,7 +499,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents].
+   * The request message for
+   * [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListIntentsRequest} @@ -527,16 +534,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - languageCode_ = ""; - intentView_ = 0; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -564,15 +567,32 @@ public com.google.cloud.dialogflow.cx.v3.ListIntentsRequest build() { public com.google.cloud.dialogflow.cx.v3.ListIntentsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ListIntentsRequest result = new com.google.cloud.dialogflow.cx.v3.ListIntentsRequest(this); - result.parent_ = parent_; - result.languageCode_ = languageCode_; - result.intentView_ = intentView_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListIntentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.intentView_ = intentView_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -621,10 +641,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListIntentsRequest ot return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } if (other.intentView_ != 0) { @@ -635,6 +657,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListIntentsRequest ot } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -666,31 +689,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000008; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 34 case 40: { intentView_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 40 default: @@ -710,6 +733,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -780,8 +805,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -800,8 +825,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -825,8 +850,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -913,8 +938,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -937,8 +962,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -966,8 +991,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1001,8 +1026,8 @@ public int getIntentViewValue() { * @return This builder for chaining. */ public Builder setIntentViewValue(int value) { - intentView_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1019,9 +1044,8 @@ public Builder setIntentViewValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.IntentView getIntentView() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.IntentView result = - com.google.cloud.dialogflow.cx.v3.IntentView.valueOf(intentView_); + com.google.cloud.dialogflow.cx.v3.IntentView.forNumber(intentView_); return result == null ? com.google.cloud.dialogflow.cx.v3.IntentView.UNRECOGNIZED : result; } /** @@ -1040,7 +1064,7 @@ public Builder setIntentView(com.google.cloud.dialogflow.cx.v3.IntentView value) if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; intentView_ = value.getNumber(); onChanged(); return this; @@ -1057,7 +1081,7 @@ public Builder setIntentView(com.google.cloud.dialogflow.cx.v3.IntentView value) * @return This builder for chaining. */ public Builder clearIntentView() { - + bitField0_ = (bitField0_ & ~0x00000004); intentView_ = 0; onChanged(); return this; @@ -1096,6 +1120,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1112,7 +1137,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000008); pageSize_ = 0; onChanged(); return this; @@ -1179,8 +1204,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1196,8 +1221,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1218,8 +1243,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsResponse.java index 2f290972256c..4f1b4a7f333e 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListIntentsResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents].
+ * The response message for
+ * [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListIntentsResponse} @@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INTENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List intents_; /** * @@ -143,7 +146,9 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentsOrBuilder(int } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -368,7 +373,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents].
+   * The response message for
+   * [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListIntentsResponse} @@ -402,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (intentsBuilder_ == null) { intents_ = java.util.Collections.emptyList(); } else { @@ -410,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -438,7 +444,16 @@ public com.google.cloud.dialogflow.cx.v3.ListIntentsResponse build() { public com.google.cloud.dialogflow.cx.v3.ListIntentsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ListIntentsResponse result = new com.google.cloud.dialogflow.cx.v3.ListIntentsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ListIntentsResponse result) { if (intentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { intents_ = java.util.Collections.unmodifiableList(intents_); @@ -448,9 +463,13 @@ public com.google.cloud.dialogflow.cx.v3.ListIntentsResponse buildPartial() { } else { result.intents_ = intentsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListIntentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -528,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListIntentsResponse o } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -572,7 +592,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1025,8 +1045,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1043,8 +1063,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1066,8 +1086,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesRequest.java index 446ffc1ed595..c784ee6a57ae 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages].
+ * The request message for
+ * [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListPagesRequest} @@ -70,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +130,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -212,7 +217,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -231,7 +236,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -469,7 +476,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages].
+   * The request message for
+   * [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListPagesRequest} @@ -503,14 +511,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - languageCode_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -538,14 +543,29 @@ public com.google.cloud.dialogflow.cx.v3.ListPagesRequest build() { public com.google.cloud.dialogflow.cx.v3.ListPagesRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ListPagesRequest result = new com.google.cloud.dialogflow.cx.v3.ListPagesRequest(this); - result.parent_ = parent_; - result.languageCode_ = languageCode_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListPagesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -594,10 +614,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListPagesRequest othe return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -605,6 +627,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListPagesRequest othe } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -636,25 +659,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -674,6 +697,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -747,8 +772,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -768,8 +793,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -794,8 +819,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -915,8 +940,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -950,8 +975,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -990,8 +1015,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1029,6 +1054,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1045,7 +1071,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1112,8 +1138,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1129,8 +1155,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1151,8 +1177,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesResponse.java index 99aae1dced7c..21d22ab8b929 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListPagesResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages].
+ * The response message for
+ * [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListPagesResponse} @@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PAGES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List pages_; /** * @@ -143,7 +146,9 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getPagesOrBuilder(int ind } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -367,7 +372,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages].
+   * The response message for
+   * [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListPagesResponse} @@ -401,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (pagesBuilder_ == null) { pages_ = java.util.Collections.emptyList(); } else { @@ -409,7 +416,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -437,7 +443,16 @@ public com.google.cloud.dialogflow.cx.v3.ListPagesResponse build() { public com.google.cloud.dialogflow.cx.v3.ListPagesResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ListPagesResponse result = new com.google.cloud.dialogflow.cx.v3.ListPagesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ListPagesResponse result) { if (pagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { pages_ = java.util.Collections.unmodifiableList(pages_); @@ -447,9 +462,13 @@ public com.google.cloud.dialogflow.cx.v3.ListPagesResponse buildPartial() { } else { result.pages_ = pagesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListPagesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -527,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListPagesResponse oth } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -571,7 +591,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1023,8 +1043,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1041,8 +1061,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1064,8 +1084,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsRequest.java index 578d7472266e..6a4cc6996347 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -124,7 +126,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -143,7 +145,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -407,12 +411,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -441,13 +443,27 @@ public com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest build() { public com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest result = new com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -497,6 +513,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsR return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -504,6 +521,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsR } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -535,19 +553,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -567,6 +585,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -637,8 +657,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -657,8 +677,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -682,8 +702,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -721,6 +741,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -737,7 +758,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -804,8 +825,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -821,8 +842,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -843,8 +864,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsResponse.java index 5c387d9439b0..01b610152fc5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSecuritySettingsResponse.java @@ -69,6 +69,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SECURITY_SETTINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List securitySettings_; /** * @@ -140,7 +142,9 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettingsOrBuilder getSecuritySe } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -399,6 +403,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (securitySettingsBuilder_ == null) { securitySettings_ = java.util.Collections.emptyList(); } else { @@ -407,7 +412,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -436,7 +440,16 @@ public com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse build() { public com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse result = new com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse result) { if (securitySettingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { securitySettings_ = java.util.Collections.unmodifiableList(securitySettings_); @@ -446,9 +459,14 @@ public com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse buildParti } else { result.securitySettings_ = securitySettingsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -527,6 +545,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListSecuritySettingsR } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -572,7 +591,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1020,8 +1039,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1038,8 +1057,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1061,8 +1080,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesRequest.java index e53d71888148..89da3dac8ea4 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes].
+ * The request message for
+ * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -132,7 +135,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -151,7 +154,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -381,7 +386,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes].
+   * The request message for
+   * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest} @@ -415,12 +421,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -449,13 +453,27 @@ public com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest build() { public com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest result = new com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -506,6 +524,7 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -513,6 +532,7 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -544,19 +564,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -576,6 +596,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -658,8 +680,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -682,8 +704,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -711,8 +733,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -750,6 +772,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -766,7 +789,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -833,8 +856,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -850,8 +873,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -872,8 +895,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesResponse.java index cab9c6cc6998..4f28523021c5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListSessionEntityTypesResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes].
+ * The response message for
+ * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} @@ -70,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SESSION_ENTITY_TYPES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List sessionEntityTypes_; /** * @@ -151,7 +154,9 @@ public com.google.cloud.dialogflow.cx.v3.SessionEntityType getSessionEntityTypes } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -377,7 +382,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes].
+   * The response message for
+   * [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse} @@ -411,6 +417,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (sessionEntityTypesBuilder_ == null) { sessionEntityTypes_ = java.util.Collections.emptyList(); } else { @@ -419,7 +426,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -448,7 +454,16 @@ public com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse build() public com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse result = new com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse result) { if (sessionEntityTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { sessionEntityTypes_ = java.util.Collections.unmodifiableList(sessionEntityTypes_); @@ -458,9 +473,14 @@ public com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse buildPar } else { result.sessionEntityTypes_ = sessionEntityTypesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.ListSessionEntityTypesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -540,6 +560,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -585,7 +606,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1071,8 +1092,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1089,8 +1110,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1112,8 +1133,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsRequest.java index d85bedfab184..5586e979d134 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults].
+ * The request message for
+ * [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} @@ -70,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +132,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -148,7 +151,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -197,7 +202,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -472,7 +479,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults].
+   * The request message for
+   * [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest} @@ -506,14 +514,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - filter_ = ""; - return this; } @@ -542,14 +547,30 @@ public com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest build() { public com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest result = new com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -599,6 +620,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRe return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -606,10 +628,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRe } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -641,25 +665,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -679,6 +703,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -755,8 +781,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -777,8 +803,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -804,8 +830,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -843,6 +869,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -859,7 +886,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -926,8 +953,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -943,8 +970,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -965,8 +992,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1086,8 +1113,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1121,8 +1148,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1161,8 +1188,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsResponse.java index 74b7c1741351..8ec188473e5f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCaseResultsResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults].
+ * The response message for
+ * [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} @@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TEST_CASE_RESULTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List testCaseResults_; /** * @@ -139,7 +142,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseResultOrBuilder getTestCaseResu } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -364,7 +369,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults].
+   * The response message for
+   * [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse} @@ -398,6 +404,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (testCaseResultsBuilder_ == null) { testCaseResults_ = java.util.Collections.emptyList(); } else { @@ -406,7 +413,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -435,7 +441,16 @@ public com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse build() { public com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse result = new com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse result) { if (testCaseResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { testCaseResults_ = java.util.Collections.unmodifiableList(testCaseResults_); @@ -445,9 +460,14 @@ public com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse buildPartia } else { result.testCaseResults_ = testCaseResultsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -526,6 +546,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListTestCaseResultsRe } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -571,7 +592,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1018,8 +1039,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1036,8 +1057,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1059,8 +1080,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesRequest.java index 4f7bc7bfa436..cd13d308d220 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases].
+ * The request message for
+ * [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTestCasesRequest} @@ -233,7 +234,9 @@ private TestCaseView(int value) { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -288,7 +291,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -308,7 +311,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -357,7 +362,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int VIEW_FIELD_NUMBER = 4; - private int view_; + private int view_ = 0; /** * * @@ -386,9 +391,8 @@ public int getViewValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView getView() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView result = - com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView.valueOf(view_); + com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView.forNumber(view_); return result == null ? com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView.UNRECOGNIZED : result; @@ -591,7 +595,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases].
+   * The request message for
+   * [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTestCasesRequest} @@ -625,14 +630,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - view_ = 0; - return this; } @@ -660,14 +662,29 @@ public com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest build() { public com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest result = new com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.view_ = view_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.view_ = view_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -716,6 +733,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -723,6 +741,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (other.view_ != 0) { @@ -757,25 +776,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: { view_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 default: @@ -795,6 +814,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -865,8 +886,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -885,8 +906,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -910,8 +931,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -951,6 +972,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -968,7 +990,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -1035,8 +1057,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1052,8 +1074,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1074,8 +1096,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1109,8 +1131,8 @@ public int getViewValue() { * @return This builder for chaining. */ public Builder setViewValue(int value) { - view_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1127,9 +1149,8 @@ public Builder setViewValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView getView() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView result = - com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView.valueOf(view_); + com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView.forNumber(view_); return result == null ? com.google.cloud.dialogflow.cx.v3.ListTestCasesRequest.TestCaseView.UNRECOGNIZED : result; @@ -1151,7 +1172,7 @@ public Builder setView( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; view_ = value.getNumber(); onChanged(); return this; @@ -1168,7 +1189,7 @@ public Builder setView( * @return This builder for chaining. */ public Builder clearView() { - + bitField0_ = (bitField0_ & ~0x00000008); view_ = 0; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesResponse.java index 4b7506b603c3..9b1a33f3dd51 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTestCasesResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases].
+ * The response message for
+ * [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTestCasesResponse} @@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TEST_CASES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List testCases_; /** * @@ -143,7 +146,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseOrBuilder getTestCasesOrBuilder } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -368,7 +373,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases].
+   * The response message for
+   * [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTestCasesResponse} @@ -402,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (testCasesBuilder_ == null) { testCases_ = java.util.Collections.emptyList(); } else { @@ -410,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -438,7 +444,16 @@ public com.google.cloud.dialogflow.cx.v3.ListTestCasesResponse build() { public com.google.cloud.dialogflow.cx.v3.ListTestCasesResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ListTestCasesResponse result = new com.google.cloud.dialogflow.cx.v3.ListTestCasesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ListTestCasesResponse result) { if (testCasesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { testCases_ = java.util.Collections.unmodifiableList(testCases_); @@ -448,9 +463,13 @@ public com.google.cloud.dialogflow.cx.v3.ListTestCasesResponse buildPartial() { } else { result.testCases_ = testCasesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListTestCasesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -528,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListTestCasesResponse } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -572,7 +592,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1027,8 +1047,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1045,8 +1065,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1068,8 +1088,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsRequest.java index 83619fe37fda..81bdbb19d8bb 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups].
+ * The request message for
+ * [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} @@ -71,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -128,7 +131,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -147,7 +150,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -196,7 +201,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 4; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -454,7 +461,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups].
+   * The request message for
+   * [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest} @@ -489,14 +497,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - languageCode_ = ""; - return this; } @@ -526,14 +531,30 @@ public com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest build( public com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest result = new com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -585,6 +606,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -592,10 +614,12 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -627,25 +651,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -665,6 +689,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -738,8 +764,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -759,8 +785,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -785,8 +811,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -824,6 +850,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -840,7 +867,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -907,8 +934,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -924,8 +951,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -946,8 +973,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1040,8 +1067,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1066,8 +1093,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1097,8 +1124,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsResponse.java index 2f3a550f7821..ffea45898de5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListTransitionRouteGroupsResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups].
+ * The response message for
+ * [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} @@ -70,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRANSITION_ROUTE_GROUPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List transitionRouteGroups_; /** @@ -163,7 +166,9 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup getTransitionRoute } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -391,7 +396,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups].
+   * The response message for
+   * [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse} @@ -426,6 +432,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (transitionRouteGroupsBuilder_ == null) { transitionRouteGroups_ = java.util.Collections.emptyList(); } else { @@ -434,7 +441,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -464,7 +470,16 @@ public com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse build public com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse result = new com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse result) { if (transitionRouteGroupsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { transitionRouteGroups_ = java.util.Collections.unmodifiableList(transitionRouteGroups_); @@ -474,9 +489,14 @@ public com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse build } else { result.transitionRouteGroups_ = transitionRouteGroupsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.ListTransitionRouteGroupsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -557,6 +577,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -602,7 +623,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1144,8 +1165,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1162,8 +1183,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1185,8 +1206,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsRequest.java index 95035f04e2bf..478b352e239e 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions].
+ * The request message for
+ * [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListVersionsRequest} @@ -69,14 +70,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * *
-   * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>`.
+   * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all
+   * versions for. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>`.
    * 
* * @@ -101,9 +104,9 @@ public java.lang.String getParent() { * * *
-   * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>`.
+   * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all
+   * versions for. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>`.
    * 
* * @@ -126,7 +129,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -145,7 +148,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -375,7 +380,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions].
+   * The request message for
+   * [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListVersionsRequest} @@ -409,12 +415,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -442,13 +446,26 @@ public com.google.cloud.dialogflow.cx.v3.ListVersionsRequest build() { public com.google.cloud.dialogflow.cx.v3.ListVersionsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ListVersionsRequest result = new com.google.cloud.dialogflow.cx.v3.ListVersionsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListVersionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -497,6 +514,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListVersionsRequest o return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -504,6 +522,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListVersionsRequest o } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -535,19 +554,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -567,14 +586,16 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * * *
-     * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>`.
+     * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all
+     * versions for. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>`.
      * 
* * @@ -598,9 +619,9 @@ public java.lang.String getParent() { * * *
-     * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>`.
+     * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all
+     * versions for. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>`.
      * 
* * @@ -624,9 +645,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>`.
+     * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all
+     * versions for. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>`.
      * 
* * @@ -640,8 +661,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -649,9 +670,9 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>`.
+     * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all
+     * versions for. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>`.
      * 
* * @@ -661,8 +682,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -670,9 +691,9 @@ public Builder clearParent() { * * *
-     * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>`.
+     * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all
+     * versions for. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>`.
      * 
* * @@ -687,8 +708,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -726,6 +747,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -742,7 +764,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -809,8 +831,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -826,8 +848,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -848,8 +870,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsRequestOrBuilder.java index 9c22038158b6..7a540d5b048c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsRequestOrBuilder.java @@ -27,9 +27,9 @@ public interface ListVersionsRequestOrBuilder * * *
-   * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>`.
+   * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all
+   * versions for. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>`.
    * 
* * @@ -43,9 +43,9 @@ public interface ListVersionsRequestOrBuilder * * *
-   * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>`.
+   * Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all
+   * versions for. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>`.
    * 
* * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsResponse.java index f552a13b4cbc..458e655c3ed5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListVersionsResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions].
+ * The response message for
+ * [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListVersionsResponse} @@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VERSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List versions_; /** * @@ -148,7 +151,9 @@ public com.google.cloud.dialogflow.cx.v3.VersionOrBuilder getVersionsOrBuilder(i } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -373,7 +378,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions].
+   * The response message for
+   * [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListVersionsResponse} @@ -407,6 +413,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (versionsBuilder_ == null) { versions_ = java.util.Collections.emptyList(); } else { @@ -415,7 +422,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -443,7 +449,16 @@ public com.google.cloud.dialogflow.cx.v3.ListVersionsResponse build() { public com.google.cloud.dialogflow.cx.v3.ListVersionsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ListVersionsResponse result = new com.google.cloud.dialogflow.cx.v3.ListVersionsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ListVersionsResponse result) { if (versionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { versions_ = java.util.Collections.unmodifiableList(versions_); @@ -453,9 +468,13 @@ public com.google.cloud.dialogflow.cx.v3.ListVersionsResponse buildPartial() { } else { result.versions_ = versionsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListVersionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -533,6 +552,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListVersionsResponse } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -577,7 +597,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1048,8 +1068,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1066,8 +1086,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1089,8 +1109,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksRequest.java index c4b614282b4b..d2b469389d2b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks].
+ * The request message for
+ * [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListWebhooksRequest} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -124,7 +127,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -143,7 +146,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -373,7 +378,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks].
+   * The request message for
+   * [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListWebhooksRequest} @@ -407,12 +413,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -440,13 +444,26 @@ public com.google.cloud.dialogflow.cx.v3.ListWebhooksRequest build() { public com.google.cloud.dialogflow.cx.v3.ListWebhooksRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ListWebhooksRequest result = new com.google.cloud.dialogflow.cx.v3.ListWebhooksRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListWebhooksRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -495,6 +512,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListWebhooksRequest o return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -502,6 +520,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListWebhooksRequest o } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -533,19 +552,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -565,6 +584,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -635,8 +656,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -655,8 +676,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -680,8 +701,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -719,6 +740,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -735,7 +757,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -802,8 +824,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -819,8 +841,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -841,8 +863,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksResponse.java index ddf1d3364b4f..66348d77780d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ListWebhooksResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks].
+ * The response message for
+ * [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListWebhooksResponse} @@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int WEBHOOKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List webhooks_; /** * @@ -143,7 +146,9 @@ public com.google.cloud.dialogflow.cx.v3.WebhookOrBuilder getWebhooksOrBuilder(i } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -368,7 +373,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks].
+   * The response message for
+   * [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ListWebhooksResponse} @@ -402,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (webhooksBuilder_ == null) { webhooks_ = java.util.Collections.emptyList(); } else { @@ -410,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -438,7 +444,16 @@ public com.google.cloud.dialogflow.cx.v3.ListWebhooksResponse build() { public com.google.cloud.dialogflow.cx.v3.ListWebhooksResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.ListWebhooksResponse result = new com.google.cloud.dialogflow.cx.v3.ListWebhooksResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ListWebhooksResponse result) { if (webhooksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { webhooks_ = java.util.Collections.unmodifiableList(webhooks_); @@ -448,9 +463,13 @@ public com.google.cloud.dialogflow.cx.v3.ListWebhooksResponse buildPartial() { } else { result.webhooks_ = webhooksBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ListWebhooksResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -528,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ListWebhooksResponse } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -572,7 +592,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1025,8 +1045,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1043,8 +1063,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1066,8 +1086,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LoadVersionRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LoadVersionRequest.java index 358de76f8a05..326c7e7ef7c5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LoadVersionRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LoadVersionRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Versions.LoadVersion][google.cloud.dialogflow.cx.v3.Versions.LoadVersion].
+ * The request message for
+ * [Versions.LoadVersion][google.cloud.dialogflow.cx.v3.Versions.LoadVersion].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.LoadVersionRequest} @@ -68,14 +69,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
-   * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded
+   * to draft flow. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
    * 
* * @@ -100,9 +103,9 @@ public java.lang.String getName() { * * *
-   * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded
+   * to draft flow. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
    * 
* * @@ -125,7 +128,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int ALLOW_OVERRIDE_AGENT_RESOURCES_FIELD_NUMBER = 2; - private boolean allowOverrideAgentResources_; + private boolean allowOverrideAgentResources_ = false; /** * * @@ -318,7 +321,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Versions.LoadVersion][google.cloud.dialogflow.cx.v3.Versions.LoadVersion].
+   * The request message for
+   * [Versions.LoadVersion][google.cloud.dialogflow.cx.v3.Versions.LoadVersion].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.LoadVersionRequest} @@ -352,10 +356,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - allowOverrideAgentResources_ = false; - return this; } @@ -383,12 +386,23 @@ public com.google.cloud.dialogflow.cx.v3.LoadVersionRequest build() { public com.google.cloud.dialogflow.cx.v3.LoadVersionRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.LoadVersionRequest result = new com.google.cloud.dialogflow.cx.v3.LoadVersionRequest(this); - result.name_ = name_; - result.allowOverrideAgentResources_ = allowOverrideAgentResources_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.LoadVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.allowOverrideAgentResources_ = allowOverrideAgentResources_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -437,6 +451,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.LoadVersionRequest ot return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getAllowOverrideAgentResources() != false) { @@ -471,13 +486,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { allowOverrideAgentResources_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -497,14 +512,16 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * * *
-     * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded
+     * to draft flow. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
      * 
* * @@ -528,9 +545,9 @@ public java.lang.String getName() { * * *
-     * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded
+     * to draft flow. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
      * 
* * @@ -554,9 +571,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded
+     * to draft flow. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
      * 
* * @@ -570,8 +587,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -579,9 +596,9 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded
+     * to draft flow. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
      * 
* * @@ -591,8 +608,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -600,9 +617,9 @@ public Builder clearName() { * * *
-     * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/versions/<Version ID>`.
+     * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded
+     * to draft flow. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
      * 
* * @@ -617,8 +634,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -660,6 +677,7 @@ public boolean getAllowOverrideAgentResources() { public Builder setAllowOverrideAgentResources(boolean value) { allowOverrideAgentResources_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -678,7 +696,7 @@ public Builder setAllowOverrideAgentResources(boolean value) { * @return This builder for chaining. */ public Builder clearAllowOverrideAgentResources() { - + bitField0_ = (bitField0_ & ~0x00000002); allowOverrideAgentResources_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LoadVersionRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LoadVersionRequestOrBuilder.java index c49090cfc27f..40b64d811866 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LoadVersionRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LoadVersionRequestOrBuilder.java @@ -27,9 +27,9 @@ public interface LoadVersionRequestOrBuilder * * *
-   * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded
+   * to draft flow. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
    * 
* * @@ -43,9 +43,9 @@ public interface LoadVersionRequestOrBuilder * * *
-   * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>/versions/<Version ID>`.
+   * Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded
+   * to draft flow. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
    * 
* * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryRequest.java index f3c4492724fe..a1d716e6add2 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory].
+ * The request message for
+ * [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest} @@ -70,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -127,7 +130,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -146,7 +149,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -377,7 +382,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory].
+   * The request message for
+   * [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest} @@ -412,12 +418,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -446,13 +450,27 @@ public com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest build() public com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest result = new com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest(this); - result.name_ = name_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -503,6 +521,7 @@ public Builder mergeFrom( return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -510,6 +529,7 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -541,19 +561,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -573,6 +593,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -646,8 +668,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -667,8 +689,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -693,8 +715,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -732,6 +754,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -748,7 +771,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -815,8 +838,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -832,8 +855,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -854,8 +877,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryResponse.java index e9b511bf75ce..64e75e85a61d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory].
+ * The response message for
+ * [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse} @@ -70,13 +71,16 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENVIRONMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List environments_; /** * * *
    * Represents a list of snapshots for an environment. Time of the snapshots is
-   * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+   * stored in
+   * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
    * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -90,7 +94,8 @@ public java.util.List getEnvironm * *
    * Represents a list of snapshots for an environment. Time of the snapshots is
-   * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+   * stored in
+   * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
    * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -105,7 +110,8 @@ public java.util.List getEnvironm * *
    * Represents a list of snapshots for an environment. Time of the snapshots is
-   * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+   * stored in
+   * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
    * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -119,7 +125,8 @@ public int getEnvironmentsCount() { * *
    * Represents a list of snapshots for an environment. Time of the snapshots is
-   * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+   * stored in
+   * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
    * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -133,7 +140,8 @@ public com.google.cloud.dialogflow.cx.v3.Environment getEnvironments(int index) * *
    * Represents a list of snapshots for an environment. Time of the snapshots is
-   * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+   * stored in
+   * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
    * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -145,7 +153,9 @@ public com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder getEnvironmentsOrB } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -371,7 +381,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory].
+   * The response message for
+   * [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse} @@ -406,6 +417,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (environmentsBuilder_ == null) { environments_ = java.util.Collections.emptyList(); } else { @@ -414,7 +426,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -444,7 +455,16 @@ public com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse build( public com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse result = new com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse result) { if (environmentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { environments_ = java.util.Collections.unmodifiableList(environments_); @@ -454,9 +474,14 @@ public com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse buildP } else { result.environments_ = environmentsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.LookupEnvironmentHistoryResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -537,6 +562,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -581,7 +607,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -625,7 +651,8 @@ private void ensureEnvironmentsIsMutable() { * *
      * Represents a list of snapshots for an environment. Time of the snapshots is
-     * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+     * stored in
+     * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -642,7 +669,8 @@ public java.util.List getEnvironm * *
      * Represents a list of snapshots for an environment. Time of the snapshots is
-     * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+     * stored in
+     * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -659,7 +687,8 @@ public int getEnvironmentsCount() { * *
      * Represents a list of snapshots for an environment. Time of the snapshots is
-     * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+     * stored in
+     * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -676,7 +705,8 @@ public com.google.cloud.dialogflow.cx.v3.Environment getEnvironments(int index) * *
      * Represents a list of snapshots for an environment. Time of the snapshots is
-     * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+     * stored in
+     * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -699,7 +729,8 @@ public Builder setEnvironments(int index, com.google.cloud.dialogflow.cx.v3.Envi * *
      * Represents a list of snapshots for an environment. Time of the snapshots is
-     * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+     * stored in
+     * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -720,7 +751,8 @@ public Builder setEnvironments( * *
      * Represents a list of snapshots for an environment. Time of the snapshots is
-     * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+     * stored in
+     * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -743,7 +775,8 @@ public Builder addEnvironments(com.google.cloud.dialogflow.cx.v3.Environment val * *
      * Represents a list of snapshots for an environment. Time of the snapshots is
-     * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+     * stored in
+     * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -766,7 +799,8 @@ public Builder addEnvironments(int index, com.google.cloud.dialogflow.cx.v3.Envi * *
      * Represents a list of snapshots for an environment. Time of the snapshots is
-     * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+     * stored in
+     * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -787,7 +821,8 @@ public Builder addEnvironments( * *
      * Represents a list of snapshots for an environment. Time of the snapshots is
-     * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+     * stored in
+     * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -808,7 +843,8 @@ public Builder addEnvironments( * *
      * Represents a list of snapshots for an environment. Time of the snapshots is
-     * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+     * stored in
+     * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -829,7 +865,8 @@ public Builder addAllEnvironments( * *
      * Represents a list of snapshots for an environment. Time of the snapshots is
-     * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+     * stored in
+     * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -849,7 +886,8 @@ public Builder clearEnvironments() { * *
      * Represents a list of snapshots for an environment. Time of the snapshots is
-     * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+     * stored in
+     * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -869,7 +907,8 @@ public Builder removeEnvironments(int index) { * *
      * Represents a list of snapshots for an environment. Time of the snapshots is
-     * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+     * stored in
+     * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -882,7 +921,8 @@ public com.google.cloud.dialogflow.cx.v3.Environment.Builder getEnvironmentsBuil * *
      * Represents a list of snapshots for an environment. Time of the snapshots is
-     * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+     * stored in
+     * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -900,7 +940,8 @@ public com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder getEnvironmentsOrB * *
      * Represents a list of snapshots for an environment. Time of the snapshots is
-     * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+     * stored in
+     * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -918,7 +959,8 @@ public com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder getEnvironmentsOrB * *
      * Represents a list of snapshots for an environment. Time of the snapshots is
-     * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+     * stored in
+     * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -932,7 +974,8 @@ public com.google.cloud.dialogflow.cx.v3.Environment.Builder addEnvironmentsBuil * *
      * Represents a list of snapshots for an environment. Time of the snapshots is
-     * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+     * stored in
+     * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -946,7 +989,8 @@ public com.google.cloud.dialogflow.cx.v3.Environment.Builder addEnvironmentsBuil * *
      * Represents a list of snapshots for an environment. Time of the snapshots is
-     * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+     * stored in
+     * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -1037,8 +1081,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1055,8 +1099,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1078,8 +1122,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryResponseOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryResponseOrBuilder.java index c0b84945df19..540a493e9903 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryResponseOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/LookupEnvironmentHistoryResponseOrBuilder.java @@ -28,7 +28,8 @@ public interface LookupEnvironmentHistoryResponseOrBuilder * *
    * Represents a list of snapshots for an environment. Time of the snapshots is
-   * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+   * stored in
+   * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
    * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -39,7 +40,8 @@ public interface LookupEnvironmentHistoryResponseOrBuilder * *
    * Represents a list of snapshots for an environment. Time of the snapshots is
-   * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+   * stored in
+   * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
    * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -50,7 +52,8 @@ public interface LookupEnvironmentHistoryResponseOrBuilder * *
    * Represents a list of snapshots for an environment. Time of the snapshots is
-   * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+   * stored in
+   * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
    * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -61,7 +64,8 @@ public interface LookupEnvironmentHistoryResponseOrBuilder * *
    * Represents a list of snapshots for an environment. Time of the snapshots is
-   * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+   * stored in
+   * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
    * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; @@ -73,7 +77,8 @@ public interface LookupEnvironmentHistoryResponseOrBuilder * *
    * Represents a list of snapshots for an environment. Time of the snapshots is
-   * stored in [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
+   * stored in
+   * [`update_time`][google.cloud.dialogflow.cx.v3.Environment.update_time].
    * 
* * repeated .google.cloud.dialogflow.cx.v3.Environment environments = 1; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Match.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Match.java index ae5c964e7b02..c913ac889864 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Match.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Match.java @@ -320,9 +320,10 @@ private MatchType(int value) { * * *
-   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
-   * this message, including but not limited to: `name` and `display_name`. Only
-   * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+   * Some, not all fields are filled in this message, including but not limited
+   * to: `name` and `display_name`. Only filled for
+   * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
    * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 1; @@ -337,9 +338,10 @@ public boolean hasIntent() { * * *
-   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
-   * this message, including but not limited to: `name` and `display_name`. Only
-   * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+   * Some, not all fields are filled in this message, including but not limited
+   * to: `name` and `display_name`. Only filled for
+   * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
    * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 1; @@ -356,26 +358,32 @@ public com.google.cloud.dialogflow.cx.v3.Intent getIntent() { * * *
-   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
-   * this message, including but not limited to: `name` and `display_name`. Only
-   * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+   * Some, not all fields are filled in this message, including but not limited
+   * to: `name` and `display_name`. Only filled for
+   * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
    * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 1; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() { - return getIntent(); + return intent_ == null + ? com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance() + : intent_; } public static final int EVENT_FIELD_NUMBER = 6; - private volatile java.lang.Object event_; + + @SuppressWarnings("serial") + private volatile java.lang.Object event_ = ""; /** * * *
    * The event that matched the query. Filled for
-   * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
+   * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType],
+   * [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
    * [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
    * 
* @@ -400,7 +408,8 @@ public java.lang.String getEvent() { * *
    * The event that matched the query. Filled for
-   * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
+   * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType],
+   * [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
    * [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
    * 
* @@ -497,11 +506,13 @@ public com.google.protobuf.Struct getParameters() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { - return getParameters(); + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; } public static final int RESOLVED_INPUT_FIELD_NUMBER = 3; - private volatile java.lang.Object resolvedInput_; + + @SuppressWarnings("serial") + private volatile java.lang.Object resolvedInput_ = ""; /** * * @@ -554,7 +565,7 @@ public com.google.protobuf.ByteString getResolvedInputBytes() { } public static final int MATCH_TYPE_FIELD_NUMBER = 4; - private int matchType_; + private int matchType_ = 0; /** * * @@ -583,14 +594,13 @@ public int getMatchTypeValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Match.MatchType getMatchType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.Match.MatchType result = - com.google.cloud.dialogflow.cx.v3.Match.MatchType.valueOf(matchType_); + com.google.cloud.dialogflow.cx.v3.Match.MatchType.forNumber(matchType_); return result == null ? com.google.cloud.dialogflow.cx.v3.Match.MatchType.UNRECOGNIZED : result; } public static final int CONFIDENCE_FIELD_NUMBER = 5; - private float confidence_; + private float confidence_ = 0F; /** * * @@ -866,26 +876,21 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (intentBuilder_ == null) { - intent_ = null; - } else { - intent_ = null; + bitField0_ = 0; + intent_ = null; + if (intentBuilder_ != null) { + intentBuilder_.dispose(); intentBuilder_ = null; } event_ = ""; - - if (parametersBuilder_ == null) { - parameters_ = null; - } else { - parameters_ = null; + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } resolvedInput_ = ""; - matchType_ = 0; - confidence_ = 0F; - return this; } @@ -913,24 +918,35 @@ public com.google.cloud.dialogflow.cx.v3.Match build() { public com.google.cloud.dialogflow.cx.v3.Match buildPartial() { com.google.cloud.dialogflow.cx.v3.Match result = new com.google.cloud.dialogflow.cx.v3.Match(this); - if (intentBuilder_ == null) { - result.intent_ = intent_; - } else { - result.intent_ = intentBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.event_ = event_; - if (parametersBuilder_ == null) { - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); - } - result.resolvedInput_ = resolvedInput_; - result.matchType_ = matchType_; - result.confidence_ = confidence_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Match result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.intent_ = intentBuilder_ == null ? intent_ : intentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.event_ = event_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.resolvedInput_ = resolvedInput_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.matchType_ = matchType_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.confidence_ = confidence_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -981,6 +997,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Match other) { } if (!other.getEvent().isEmpty()) { event_ = other.event_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasParameters()) { @@ -988,6 +1005,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Match other) { } if (!other.getResolvedInput().isEmpty()) { resolvedInput_ = other.resolvedInput_; + bitField0_ |= 0x00000008; onChanged(); } if (other.matchType_ != 0) { @@ -1025,37 +1043,37 @@ public Builder mergeFrom( case 10: { input.readMessage(getIntentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 18 case 26: { resolvedInput_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 26 case 32: { matchType_ = input.readEnum(); - + bitField0_ |= 0x00000010; break; } // case 32 case 45: { confidence_ = input.readFloat(); - + bitField0_ |= 0x00000020; break; } // case 45 case 50: { event_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 50 default: @@ -1075,6 +1093,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.Intent intent_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.Intent, @@ -1085,9 +1105,10 @@ public Builder mergeFrom( * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
-     * this message, including but not limited to: `name` and `display_name`. Only
-     * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+     * Some, not all fields are filled in this message, including but not limited
+     * to: `name` and `display_name`. Only filled for
+     * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 1; @@ -1095,15 +1116,16 @@ public Builder mergeFrom( * @return Whether the intent field is set. */ public boolean hasIntent() { - return intentBuilder_ != null || intent_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
-     * this message, including but not limited to: `name` and `display_name`. Only
-     * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+     * Some, not all fields are filled in this message, including but not limited
+     * to: `name` and `display_name`. Only filled for
+     * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 1; @@ -1123,9 +1145,10 @@ public com.google.cloud.dialogflow.cx.v3.Intent getIntent() { * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
-     * this message, including but not limited to: `name` and `display_name`. Only
-     * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+     * Some, not all fields are filled in this message, including but not limited
+     * to: `name` and `display_name`. Only filled for
+     * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 1; @@ -1136,20 +1159,21 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent value) { throw new NullPointerException(); } intent_ = value; - onChanged(); } else { intentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
-     * this message, including but not limited to: `name` and `display_name`. Only
-     * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+     * Some, not all fields are filled in this message, including but not limited
+     * to: `name` and `display_name`. Only filled for
+     * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 1; @@ -1157,76 +1181,77 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent value) { public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent.Builder builderForValue) { if (intentBuilder_ == null) { intent_ = builderForValue.build(); - onChanged(); } else { intentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
-     * this message, including but not limited to: `name` and `display_name`. Only
-     * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+     * Some, not all fields are filled in this message, including but not limited
+     * to: `name` and `display_name`. Only filled for
+     * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 1; */ public Builder mergeIntent(com.google.cloud.dialogflow.cx.v3.Intent value) { if (intentBuilder_ == null) { - if (intent_ != null) { - intent_ = - com.google.cloud.dialogflow.cx.v3.Intent.newBuilder(intent_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && intent_ != null + && intent_ != com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance()) { + getIntentBuilder().mergeFrom(value); } else { intent_ = value; } - onChanged(); } else { intentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
-     * this message, including but not limited to: `name` and `display_name`. Only
-     * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+     * Some, not all fields are filled in this message, including but not limited
+     * to: `name` and `display_name`. Only filled for
+     * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 1; */ public Builder clearIntent() { - if (intentBuilder_ == null) { - intent_ = null; - onChanged(); - } else { - intent_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + intent_ = null; + if (intentBuilder_ != null) { + intentBuilder_.dispose(); intentBuilder_ = null; } - + onChanged(); return this; } /** * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
-     * this message, including but not limited to: `name` and `display_name`. Only
-     * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+     * Some, not all fields are filled in this message, including but not limited
+     * to: `name` and `display_name`. Only filled for
+     * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 1; */ public com.google.cloud.dialogflow.cx.v3.Intent.Builder getIntentBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getIntentFieldBuilder().getBuilder(); } @@ -1234,9 +1259,10 @@ public com.google.cloud.dialogflow.cx.v3.Intent.Builder getIntentBuilder() { * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
-     * this message, including but not limited to: `name` and `display_name`. Only
-     * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+     * Some, not all fields are filled in this message, including but not limited
+     * to: `name` and `display_name`. Only filled for
+     * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 1; @@ -1254,9 +1280,10 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() { * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
-     * this message, including but not limited to: `name` and `display_name`. Only
-     * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+     * Some, not all fields are filled in this message, including but not limited
+     * to: `name` and `display_name`. Only filled for
+     * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 1; @@ -1284,7 +1311,8 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() { * *
      * The event that matched the query. Filled for
-     * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
+     * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType],
+     * [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
      * [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
      * 
* @@ -1308,7 +1336,8 @@ public java.lang.String getEvent() { * *
      * The event that matched the query. Filled for
-     * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
+     * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType],
+     * [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
      * [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
      * 
* @@ -1332,7 +1361,8 @@ public com.google.protobuf.ByteString getEventBytes() { * *
      * The event that matched the query. Filled for
-     * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
+     * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType],
+     * [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
      * [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
      * 
* @@ -1345,8 +1375,8 @@ public Builder setEvent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - event_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1355,7 +1385,8 @@ public Builder setEvent(java.lang.String value) { * *
      * The event that matched the query. Filled for
-     * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
+     * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType],
+     * [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
      * [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
      * 
* @@ -1364,8 +1395,8 @@ public Builder setEvent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEvent() { - event_ = getDefaultInstance().getEvent(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1374,7 +1405,8 @@ public Builder clearEvent() { * *
      * The event that matched the query. Filled for
-     * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
+     * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType],
+     * [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
      * [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
      * 
* @@ -1388,8 +1420,8 @@ public Builder setEventBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - event_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1423,7 +1455,7 @@ public Builder setEventBytes(com.google.protobuf.ByteString value) { * @return Whether the parameters field is set. */ public boolean hasParameters() { - return parametersBuilder_ != null || parameters_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1480,11 +1512,11 @@ public Builder setParameters(com.google.protobuf.Struct value) { throw new NullPointerException(); } parameters_ = value; - onChanged(); } else { parametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1510,11 +1542,11 @@ public Builder setParameters(com.google.protobuf.Struct value) { public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) { if (parametersBuilder_ == null) { parameters_ = builderForValue.build(); - onChanged(); } else { parametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1539,17 +1571,18 @@ public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) */ public Builder mergeParameters(com.google.protobuf.Struct value) { if (parametersBuilder_ == null) { - if (parameters_ != null) { - parameters_ = - com.google.protobuf.Struct.newBuilder(parameters_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && parameters_ != null + && parameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getParametersBuilder().mergeFrom(value); } else { parameters_ = value; } - onChanged(); } else { parametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1573,14 +1606,13 @@ public Builder mergeParameters(com.google.protobuf.Struct value) { * .google.protobuf.Struct parameters = 2; */ public Builder clearParameters() { - if (parametersBuilder_ == null) { - parameters_ = null; - onChanged(); - } else { - parameters_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -1604,7 +1636,7 @@ public Builder clearParameters() { * .google.protobuf.Struct parameters = 2; */ public com.google.protobuf.Struct.Builder getParametersBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getParametersFieldBuilder().getBuilder(); } @@ -1739,8 +1771,8 @@ public Builder setResolvedInput(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - resolvedInput_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1758,8 +1790,8 @@ public Builder setResolvedInput(java.lang.String value) { * @return This builder for chaining. */ public Builder clearResolvedInput() { - resolvedInput_ = getDefaultInstance().getResolvedInput(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1782,8 +1814,8 @@ public Builder setResolvedInputBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - resolvedInput_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1817,8 +1849,8 @@ public int getMatchTypeValue() { * @return This builder for chaining. */ public Builder setMatchTypeValue(int value) { - matchType_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1835,9 +1867,8 @@ public Builder setMatchTypeValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Match.MatchType getMatchType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.Match.MatchType result = - com.google.cloud.dialogflow.cx.v3.Match.MatchType.valueOf(matchType_); + com.google.cloud.dialogflow.cx.v3.Match.MatchType.forNumber(matchType_); return result == null ? com.google.cloud.dialogflow.cx.v3.Match.MatchType.UNRECOGNIZED : result; @@ -1858,7 +1889,7 @@ public Builder setMatchType(com.google.cloud.dialogflow.cx.v3.Match.MatchType va if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000010; matchType_ = value.getNumber(); onChanged(); return this; @@ -1875,7 +1906,7 @@ public Builder setMatchType(com.google.cloud.dialogflow.cx.v3.Match.MatchType va * @return This builder for chaining. */ public Builder clearMatchType() { - + bitField0_ = (bitField0_ & ~0x00000010); matchType_ = 0; onChanged(); return this; @@ -1922,6 +1953,7 @@ public float getConfidence() { public Builder setConfidence(float value) { confidence_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1942,7 +1974,7 @@ public Builder setConfidence(float value) { * @return This builder for chaining. */ public Builder clearConfidence() { - + bitField0_ = (bitField0_ & ~0x00000020); confidence_ = 0F; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentRequest.java index 3e8fbeac918d..26a1edebb929 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentRequest.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SESSION_FIELD_NUMBER = 1; - private volatile java.lang.Object session_; + + @SuppressWarnings("serial") + private volatile java.lang.Object session_ = ""; /** * * @@ -185,7 +187,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryParameters getQueryParams() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.QueryParametersOrBuilder getQueryParamsOrBuilder() { - return getQueryParams(); + return queryParams_ == null + ? com.google.cloud.dialogflow.cx.v3.QueryParameters.getDefaultInstance() + : queryParams_; } public static final int QUERY_INPUT_FIELD_NUMBER = 3; @@ -239,7 +243,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryInput getQueryInput() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.QueryInputOrBuilder getQueryInputOrBuilder() { - return getQueryInput(); + return queryInput_ == null + ? com.google.cloud.dialogflow.cx.v3.QueryInput.getDefaultInstance() + : queryInput_; } private byte memoizedIsInitialized = -1; @@ -467,18 +473,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; session_ = ""; - - if (queryParamsBuilder_ == null) { - queryParams_ = null; - } else { - queryParams_ = null; + queryParams_ = null; + if (queryParamsBuilder_ != null) { + queryParamsBuilder_.dispose(); queryParamsBuilder_ = null; } - if (queryInputBuilder_ == null) { - queryInput_ = null; - } else { - queryInput_ = null; + queryInput_ = null; + if (queryInputBuilder_ != null) { + queryInputBuilder_.dispose(); queryInputBuilder_ = null; } return this; @@ -508,21 +512,27 @@ public com.google.cloud.dialogflow.cx.v3.MatchIntentRequest build() { public com.google.cloud.dialogflow.cx.v3.MatchIntentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.MatchIntentRequest result = new com.google.cloud.dialogflow.cx.v3.MatchIntentRequest(this); - result.session_ = session_; - if (queryParamsBuilder_ == null) { - result.queryParams_ = queryParams_; - } else { - result.queryParams_ = queryParamsBuilder_.build(); - } - if (queryInputBuilder_ == null) { - result.queryInput_ = queryInput_; - } else { - result.queryInput_ = queryInputBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.MatchIntentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.session_ = session_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queryParams_ = + queryParamsBuilder_ == null ? queryParams_ : queryParamsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.queryInput_ = queryInputBuilder_ == null ? queryInput_ : queryInputBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -571,6 +581,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.MatchIntentRequest ot return this; if (!other.getSession().isEmpty()) { session_ = other.session_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasQueryParams()) { @@ -608,19 +619,19 @@ public Builder mergeFrom( case 10: { session_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getQueryParamsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getQueryInputFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -640,6 +651,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object session_ = ""; /** * @@ -737,8 +750,8 @@ public Builder setSession(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - session_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -766,8 +779,8 @@ public Builder setSession(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSession() { - session_ = getDefaultInstance().getSession(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -800,8 +813,8 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - session_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -824,7 +837,7 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) { * @return Whether the queryParams field is set. */ public boolean hasQueryParams() { - return queryParamsBuilder_ != null || queryParams_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -861,11 +874,11 @@ public Builder setQueryParams(com.google.cloud.dialogflow.cx.v3.QueryParameters throw new NullPointerException(); } queryParams_ = value; - onChanged(); } else { queryParamsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -881,11 +894,11 @@ public Builder setQueryParams( com.google.cloud.dialogflow.cx.v3.QueryParameters.Builder builderForValue) { if (queryParamsBuilder_ == null) { queryParams_ = builderForValue.build(); - onChanged(); } else { queryParamsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -899,19 +912,19 @@ public Builder setQueryParams( */ public Builder mergeQueryParams(com.google.cloud.dialogflow.cx.v3.QueryParameters value) { if (queryParamsBuilder_ == null) { - if (queryParams_ != null) { - queryParams_ = - com.google.cloud.dialogflow.cx.v3.QueryParameters.newBuilder(queryParams_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && queryParams_ != null + && queryParams_ + != com.google.cloud.dialogflow.cx.v3.QueryParameters.getDefaultInstance()) { + getQueryParamsBuilder().mergeFrom(value); } else { queryParams_ = value; } - onChanged(); } else { queryParamsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -924,14 +937,13 @@ public Builder mergeQueryParams(com.google.cloud.dialogflow.cx.v3.QueryParameter * .google.cloud.dialogflow.cx.v3.QueryParameters query_params = 2; */ public Builder clearQueryParams() { - if (queryParamsBuilder_ == null) { - queryParams_ = null; - onChanged(); - } else { - queryParams_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + queryParams_ = null; + if (queryParamsBuilder_ != null) { + queryParamsBuilder_.dispose(); queryParamsBuilder_ = null; } - + onChanged(); return this; } /** @@ -944,7 +956,7 @@ public Builder clearQueryParams() { * .google.cloud.dialogflow.cx.v3.QueryParameters query_params = 2; */ public com.google.cloud.dialogflow.cx.v3.QueryParameters.Builder getQueryParamsBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getQueryParamsFieldBuilder().getBuilder(); } @@ -1012,7 +1024,7 @@ public com.google.cloud.dialogflow.cx.v3.QueryParametersOrBuilder getQueryParams * @return Whether the queryInput field is set. */ public boolean hasQueryInput() { - return queryInputBuilder_ != null || queryInput_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1053,11 +1065,11 @@ public Builder setQueryInput(com.google.cloud.dialogflow.cx.v3.QueryInput value) throw new NullPointerException(); } queryInput_ = value; - onChanged(); } else { queryInputBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1075,11 +1087,11 @@ public Builder setQueryInput( com.google.cloud.dialogflow.cx.v3.QueryInput.Builder builderForValue) { if (queryInputBuilder_ == null) { queryInput_ = builderForValue.build(); - onChanged(); } else { queryInputBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1095,19 +1107,18 @@ public Builder setQueryInput( */ public Builder mergeQueryInput(com.google.cloud.dialogflow.cx.v3.QueryInput value) { if (queryInputBuilder_ == null) { - if (queryInput_ != null) { - queryInput_ = - com.google.cloud.dialogflow.cx.v3.QueryInput.newBuilder(queryInput_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && queryInput_ != null + && queryInput_ != com.google.cloud.dialogflow.cx.v3.QueryInput.getDefaultInstance()) { + getQueryInputBuilder().mergeFrom(value); } else { queryInput_ = value; } - onChanged(); } else { queryInputBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1122,14 +1133,13 @@ public Builder mergeQueryInput(com.google.cloud.dialogflow.cx.v3.QueryInput valu *
*/ public Builder clearQueryInput() { - if (queryInputBuilder_ == null) { - queryInput_ = null; - onChanged(); - } else { - queryInput_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + queryInput_ = null; + if (queryInputBuilder_ != null) { + queryInputBuilder_.dispose(); queryInputBuilder_ = null; } - + onChanged(); return this; } /** @@ -1144,7 +1154,7 @@ public Builder clearQueryInput() { *
*/ public com.google.cloud.dialogflow.cx.v3.QueryInput.Builder getQueryInputBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getQueryInputFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponse.java index 042e35005211..5332d5c71253 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponse.java @@ -125,8 +125,8 @@ public QueryCase getQueryCase() { * * *
-   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-   * will contain a copy of the text.
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+   * provided as input, this field will contain a copy of the text.
    * 
* * string text = 1; @@ -140,8 +140,8 @@ public boolean hasText() { * * *
-   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-   * will contain a copy of the text.
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+   * provided as input, this field will contain a copy of the text.
    * 
* * string text = 1; @@ -168,8 +168,8 @@ public java.lang.String getText() { * * *
-   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-   * will contain a copy of the text.
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+   * provided as input, this field will contain a copy of the text.
    * 
* * string text = 1; @@ -198,9 +198,9 @@ public com.google.protobuf.ByteString getTextBytes() { * * *
-   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-   * contain a copy of the intent identifier.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+   * input, this field will contain a copy of the intent identifier. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
    * 
* @@ -215,9 +215,9 @@ public boolean hasTriggerIntent() { * * *
-   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-   * contain a copy of the intent identifier.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+   * input, this field will contain a copy of the intent identifier. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
    * 
* @@ -245,9 +245,9 @@ public java.lang.String getTriggerIntent() { * * *
-   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-   * contain a copy of the intent identifier.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+   * input, this field will contain a copy of the intent identifier. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
    * 
* @@ -277,7 +277,8 @@ public com.google.protobuf.ByteString getTriggerIntentBytes() { * * *
-   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * If [natural language speech
+   * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
    * this field will contain the transcript for the audio.
    * 
* @@ -292,7 +293,8 @@ public boolean hasTranscript() { * * *
-   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * If [natural language speech
+   * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
    * this field will contain the transcript for the audio.
    * 
* @@ -320,7 +322,8 @@ public java.lang.String getTranscript() { * * *
-   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * If [natural language speech
+   * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
    * this field will contain the transcript for the audio.
    * 
* @@ -350,8 +353,8 @@ public com.google.protobuf.ByteString getTranscriptBytes() { * * *
-   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
-   * contain a copy of the event name.
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+   * input, this field will contain a copy of the event name.
    * 
* * string trigger_event = 6; @@ -365,8 +368,8 @@ public boolean hasTriggerEvent() { * * *
-   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
-   * contain a copy of the event name.
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+   * input, this field will contain a copy of the event name.
    * 
* * string trigger_event = 6; @@ -393,8 +396,8 @@ public java.lang.String getTriggerEvent() { * * *
-   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
-   * contain a copy of the event name.
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+   * input, this field will contain a copy of the event name.
    * 
* * string trigger_event = 6; @@ -419,6 +422,8 @@ public com.google.protobuf.ByteString getTriggerEventBytes() { } public static final int MATCHES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List matches_; /** * @@ -498,8 +503,9 @@ public com.google.cloud.dialogflow.cx.v3.MatchOrBuilder getMatchesOrBuilder(int * * *
-   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-   * including but not limited to `name` and `display_name`.
+   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+   * fields are filled in this message, including but not limited to `name` and
+   * `display_name`.
    * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 5; @@ -514,8 +520,9 @@ public boolean hasCurrentPage() { * * *
-   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-   * including but not limited to `name` and `display_name`.
+   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+   * fields are filled in this message, including but not limited to `name` and
+   * `display_name`.
    * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 5; @@ -532,15 +539,18 @@ public com.google.cloud.dialogflow.cx.v3.Page getCurrentPage() { * * *
-   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-   * including but not limited to `name` and `display_name`.
+   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+   * fields are filled in this message, including but not limited to `name` and
+   * `display_name`.
    * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 5; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getCurrentPageOrBuilder() { - return getCurrentPage(); + return currentPage_ == null + ? com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance() + : currentPage_; } private byte memoizedIsInitialized = -1; @@ -818,17 +828,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (matchesBuilder_ == null) { matches_ = java.util.Collections.emptyList(); } else { matches_ = null; matchesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (currentPageBuilder_ == null) { - currentPage_ = null; - } else { - currentPage_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + currentPage_ = null; + if (currentPageBuilder_ != null) { + currentPageBuilder_.dispose(); currentPageBuilder_ = null; } queryCase_ = 0; @@ -860,36 +870,39 @@ public com.google.cloud.dialogflow.cx.v3.MatchIntentResponse build() { public com.google.cloud.dialogflow.cx.v3.MatchIntentResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.MatchIntentResponse result = new com.google.cloud.dialogflow.cx.v3.MatchIntentResponse(this); - int from_bitField0_ = bitField0_; - if (queryCase_ == 1) { - result.query_ = query_; - } - if (queryCase_ == 2) { - result.query_ = query_; - } - if (queryCase_ == 3) { - result.query_ = query_; - } - if (queryCase_ == 6) { - result.query_ = query_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.MatchIntentResponse result) { if (matchesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { matches_ = java.util.Collections.unmodifiableList(matches_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } result.matches_ = matches_; } else { result.matches_ = matchesBuilder_.build(); } - if (currentPageBuilder_ == null) { - result.currentPage_ = currentPage_; - } else { - result.currentPage_ = currentPageBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.MatchIntentResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.currentPage_ = + currentPageBuilder_ == null ? currentPage_ : currentPageBuilder_.build(); } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.MatchIntentResponse result) { result.queryCase_ = queryCase_; - onBuilt(); - return result; + result.query_ = this.query_; } @java.lang.Override @@ -942,7 +955,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.MatchIntentResponse o if (!other.matches_.isEmpty()) { if (matches_.isEmpty()) { matches_ = other.matches_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureMatchesIsMutable(); matches_.addAll(other.matches_); @@ -955,7 +968,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.MatchIntentResponse o matchesBuilder_.dispose(); matchesBuilder_ = null; matches_ = other.matches_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); matchesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMatchesFieldBuilder() @@ -1065,7 +1078,7 @@ public Builder mergeFrom( case 42: { input.readMessage(getCurrentPageFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 42 case 50: @@ -1112,8 +1125,8 @@ public Builder clearQuery() { * * *
-     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-     * will contain a copy of the text.
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+     * provided as input, this field will contain a copy of the text.
      * 
* * string text = 1; @@ -1128,8 +1141,8 @@ public boolean hasText() { * * *
-     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-     * will contain a copy of the text.
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+     * provided as input, this field will contain a copy of the text.
      * 
* * string text = 1; @@ -1157,8 +1170,8 @@ public java.lang.String getText() { * * *
-     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-     * will contain a copy of the text.
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+     * provided as input, this field will contain a copy of the text.
      * 
* * string text = 1; @@ -1186,8 +1199,8 @@ public com.google.protobuf.ByteString getTextBytes() { * * *
-     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-     * will contain a copy of the text.
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+     * provided as input, this field will contain a copy of the text.
      * 
* * string text = 1; @@ -1208,8 +1221,8 @@ public Builder setText(java.lang.String value) { * * *
-     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-     * will contain a copy of the text.
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+     * provided as input, this field will contain a copy of the text.
      * 
* * string text = 1; @@ -1228,8 +1241,8 @@ public Builder clearText() { * * *
-     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-     * will contain a copy of the text.
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+     * provided as input, this field will contain a copy of the text.
      * 
* * string text = 1; @@ -1252,9 +1265,9 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { * * *
-     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-     * contain a copy of the intent identifier.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+     * input, this field will contain a copy of the intent identifier. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
      * 
* @@ -1270,9 +1283,9 @@ public boolean hasTriggerIntent() { * * *
-     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-     * contain a copy of the intent identifier.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+     * input, this field will contain a copy of the intent identifier. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
      * 
* @@ -1301,9 +1314,9 @@ public java.lang.String getTriggerIntent() { * * *
-     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-     * contain a copy of the intent identifier.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+     * input, this field will contain a copy of the intent identifier. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
      * 
* @@ -1332,9 +1345,9 @@ public com.google.protobuf.ByteString getTriggerIntentBytes() { * * *
-     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-     * contain a copy of the intent identifier.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+     * input, this field will contain a copy of the intent identifier. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
      * 
* @@ -1356,9 +1369,9 @@ public Builder setTriggerIntent(java.lang.String value) { * * *
-     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-     * contain a copy of the intent identifier.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+     * input, this field will contain a copy of the intent identifier. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
      * 
* @@ -1378,9 +1391,9 @@ public Builder clearTriggerIntent() { * * *
-     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-     * contain a copy of the intent identifier.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+     * input, this field will contain a copy of the intent identifier. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
      * 
* @@ -1404,7 +1417,8 @@ public Builder setTriggerIntentBytes(com.google.protobuf.ByteString value) { * * *
-     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * If [natural language speech
+     * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
      * this field will contain the transcript for the audio.
      * 
* @@ -1420,7 +1434,8 @@ public boolean hasTranscript() { * * *
-     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * If [natural language speech
+     * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
      * this field will contain the transcript for the audio.
      * 
* @@ -1449,7 +1464,8 @@ public java.lang.String getTranscript() { * * *
-     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * If [natural language speech
+     * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
      * this field will contain the transcript for the audio.
      * 
* @@ -1478,7 +1494,8 @@ public com.google.protobuf.ByteString getTranscriptBytes() { * * *
-     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * If [natural language speech
+     * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
      * this field will contain the transcript for the audio.
      * 
* @@ -1500,7 +1517,8 @@ public Builder setTranscript(java.lang.String value) { * * *
-     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * If [natural language speech
+     * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
      * this field will contain the transcript for the audio.
      * 
* @@ -1520,7 +1538,8 @@ public Builder clearTranscript() { * * *
-     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * If [natural language speech
+     * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
      * this field will contain the transcript for the audio.
      * 
* @@ -1544,8 +1563,8 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { * * *
-     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
-     * contain a copy of the event name.
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+     * input, this field will contain a copy of the event name.
      * 
* * string trigger_event = 6; @@ -1560,8 +1579,8 @@ public boolean hasTriggerEvent() { * * *
-     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
-     * contain a copy of the event name.
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+     * input, this field will contain a copy of the event name.
      * 
* * string trigger_event = 6; @@ -1589,8 +1608,8 @@ public java.lang.String getTriggerEvent() { * * *
-     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
-     * contain a copy of the event name.
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+     * input, this field will contain a copy of the event name.
      * 
* * string trigger_event = 6; @@ -1618,8 +1637,8 @@ public com.google.protobuf.ByteString getTriggerEventBytes() { * * *
-     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
-     * contain a copy of the event name.
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+     * input, this field will contain a copy of the event name.
      * 
* * string trigger_event = 6; @@ -1640,8 +1659,8 @@ public Builder setTriggerEvent(java.lang.String value) { * * *
-     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
-     * contain a copy of the event name.
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+     * input, this field will contain a copy of the event name.
      * 
* * string trigger_event = 6; @@ -1660,8 +1679,8 @@ public Builder clearTriggerEvent() { * * *
-     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
-     * contain a copy of the event name.
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+     * input, this field will contain a copy of the event name.
      * 
* * string trigger_event = 6; @@ -1684,9 +1703,9 @@ public Builder setTriggerEventBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureMatchesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { matches_ = new java.util.ArrayList(matches_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000010; } } @@ -1912,7 +1931,7 @@ public Builder addAllMatches( public Builder clearMatches() { if (matchesBuilder_ == null) { matches_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { matchesBuilder_.clear(); @@ -2040,7 +2059,7 @@ public java.util.List getMatche com.google.cloud.dialogflow.cx.v3.Match, com.google.cloud.dialogflow.cx.v3.Match.Builder, com.google.cloud.dialogflow.cx.v3.MatchOrBuilder>( - matches_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + matches_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); matches_ = null; } return matchesBuilder_; @@ -2056,8 +2075,9 @@ public java.util.List getMatche * * *
-     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-     * including but not limited to `name` and `display_name`.
+     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+     * fields are filled in this message, including but not limited to `name` and
+     * `display_name`.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 5; @@ -2065,14 +2085,15 @@ public java.util.List getMatche * @return Whether the currentPage field is set. */ public boolean hasCurrentPage() { - return currentPageBuilder_ != null || currentPage_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * * *
-     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-     * including but not limited to `name` and `display_name`.
+     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+     * fields are filled in this message, including but not limited to `name` and
+     * `display_name`.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 5; @@ -2092,8 +2113,9 @@ public com.google.cloud.dialogflow.cx.v3.Page getCurrentPage() { * * *
-     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-     * including but not limited to `name` and `display_name`.
+     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+     * fields are filled in this message, including but not limited to `name` and
+     * `display_name`.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 5; @@ -2104,19 +2126,20 @@ public Builder setCurrentPage(com.google.cloud.dialogflow.cx.v3.Page value) { throw new NullPointerException(); } currentPage_ = value; - onChanged(); } else { currentPageBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** * * *
-     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-     * including but not limited to `name` and `display_name`.
+     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+     * fields are filled in this message, including but not limited to `name` and
+     * `display_name`.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 5; @@ -2124,73 +2147,74 @@ public Builder setCurrentPage(com.google.cloud.dialogflow.cx.v3.Page value) { public Builder setCurrentPage(com.google.cloud.dialogflow.cx.v3.Page.Builder builderForValue) { if (currentPageBuilder_ == null) { currentPage_ = builderForValue.build(); - onChanged(); } else { currentPageBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** * * *
-     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-     * including but not limited to `name` and `display_name`.
+     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+     * fields are filled in this message, including but not limited to `name` and
+     * `display_name`.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 5; */ public Builder mergeCurrentPage(com.google.cloud.dialogflow.cx.v3.Page value) { if (currentPageBuilder_ == null) { - if (currentPage_ != null) { - currentPage_ = - com.google.cloud.dialogflow.cx.v3.Page.newBuilder(currentPage_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && currentPage_ != null + && currentPage_ != com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance()) { + getCurrentPageBuilder().mergeFrom(value); } else { currentPage_ = value; } - onChanged(); } else { currentPageBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** * * *
-     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-     * including but not limited to `name` and `display_name`.
+     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+     * fields are filled in this message, including but not limited to `name` and
+     * `display_name`.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 5; */ public Builder clearCurrentPage() { - if (currentPageBuilder_ == null) { - currentPage_ = null; - onChanged(); - } else { - currentPage_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + currentPage_ = null; + if (currentPageBuilder_ != null) { + currentPageBuilder_.dispose(); currentPageBuilder_ = null; } - + onChanged(); return this; } /** * * *
-     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-     * including but not limited to `name` and `display_name`.
+     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+     * fields are filled in this message, including but not limited to `name` and
+     * `display_name`.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 5; */ public com.google.cloud.dialogflow.cx.v3.Page.Builder getCurrentPageBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getCurrentPageFieldBuilder().getBuilder(); } @@ -2198,8 +2222,9 @@ public com.google.cloud.dialogflow.cx.v3.Page.Builder getCurrentPageBuilder() { * * *
-     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-     * including but not limited to `name` and `display_name`.
+     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+     * fields are filled in this message, including but not limited to `name` and
+     * `display_name`.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 5; @@ -2217,8 +2242,9 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getCurrentPageOrBuilder() * * *
-     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-     * including but not limited to `name` and `display_name`.
+     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+     * fields are filled in this message, including but not limited to `name` and
+     * `display_name`.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 5; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponseOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponseOrBuilder.java index 22a27edb42a3..2b887e8f435f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponseOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchIntentResponseOrBuilder.java @@ -27,8 +27,8 @@ public interface MatchIntentResponseOrBuilder * * *
-   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-   * will contain a copy of the text.
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+   * provided as input, this field will contain a copy of the text.
    * 
* * string text = 1; @@ -40,8 +40,8 @@ public interface MatchIntentResponseOrBuilder * * *
-   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-   * will contain a copy of the text.
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+   * provided as input, this field will contain a copy of the text.
    * 
* * string text = 1; @@ -53,8 +53,8 @@ public interface MatchIntentResponseOrBuilder * * *
-   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-   * will contain a copy of the text.
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+   * provided as input, this field will contain a copy of the text.
    * 
* * string text = 1; @@ -67,9 +67,9 @@ public interface MatchIntentResponseOrBuilder * * *
-   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-   * contain a copy of the intent identifier.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+   * input, this field will contain a copy of the intent identifier. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
    * 
* @@ -82,9 +82,9 @@ public interface MatchIntentResponseOrBuilder * * *
-   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-   * contain a copy of the intent identifier.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+   * input, this field will contain a copy of the intent identifier. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
    * 
* @@ -97,9 +97,9 @@ public interface MatchIntentResponseOrBuilder * * *
-   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-   * contain a copy of the intent identifier.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+   * input, this field will contain a copy of the intent identifier. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
    * 
* @@ -113,7 +113,8 @@ public interface MatchIntentResponseOrBuilder * * *
-   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * If [natural language speech
+   * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
    * this field will contain the transcript for the audio.
    * 
* @@ -126,7 +127,8 @@ public interface MatchIntentResponseOrBuilder * * *
-   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * If [natural language speech
+   * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
    * this field will contain the transcript for the audio.
    * 
* @@ -139,7 +141,8 @@ public interface MatchIntentResponseOrBuilder * * *
-   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * If [natural language speech
+   * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
    * this field will contain the transcript for the audio.
    * 
* @@ -153,8 +156,8 @@ public interface MatchIntentResponseOrBuilder * * *
-   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
-   * contain a copy of the event name.
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+   * input, this field will contain a copy of the event name.
    * 
* * string trigger_event = 6; @@ -166,8 +169,8 @@ public interface MatchIntentResponseOrBuilder * * *
-   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
-   * contain a copy of the event name.
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+   * input, this field will contain a copy of the event name.
    * 
* * string trigger_event = 6; @@ -179,8 +182,8 @@ public interface MatchIntentResponseOrBuilder * * *
-   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will
-   * contain a copy of the event name.
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+   * input, this field will contain a copy of the event name.
    * 
* * string trigger_event = 6; @@ -250,8 +253,9 @@ public interface MatchIntentResponseOrBuilder * * *
-   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-   * including but not limited to `name` and `display_name`.
+   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+   * fields are filled in this message, including but not limited to `name` and
+   * `display_name`.
    * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 5; @@ -263,8 +267,9 @@ public interface MatchIntentResponseOrBuilder * * *
-   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-   * including but not limited to `name` and `display_name`.
+   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+   * fields are filled in this message, including but not limited to `name` and
+   * `display_name`.
    * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 5; @@ -276,8 +281,9 @@ public interface MatchIntentResponseOrBuilder * * *
-   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-   * including but not limited to `name` and `display_name`.
+   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+   * fields are filled in this message, including but not limited to `name` and
+   * `display_name`.
    * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 5; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchOrBuilder.java index bcc65b23535d..687e7b6bba38 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/MatchOrBuilder.java @@ -27,9 +27,10 @@ public interface MatchOrBuilder * * *
-   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
-   * this message, including but not limited to: `name` and `display_name`. Only
-   * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+   * Some, not all fields are filled in this message, including but not limited
+   * to: `name` and `display_name`. Only filled for
+   * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
    * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 1; @@ -41,9 +42,10 @@ public interface MatchOrBuilder * * *
-   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
-   * this message, including but not limited to: `name` and `display_name`. Only
-   * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+   * Some, not all fields are filled in this message, including but not limited
+   * to: `name` and `display_name`. Only filled for
+   * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
    * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 1; @@ -55,9 +57,10 @@ public interface MatchOrBuilder * * *
-   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in
-   * this message, including but not limited to: `name` and `display_name`. Only
-   * filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
+   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query.
+   * Some, not all fields are filled in this message, including but not limited
+   * to: `name` and `display_name`. Only filled for
+   * [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type.
    * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 1; @@ -69,7 +72,8 @@ public interface MatchOrBuilder * *
    * The event that matched the query. Filled for
-   * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
+   * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType],
+   * [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
    * [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
    * 
* @@ -83,7 +87,8 @@ public interface MatchOrBuilder * *
    * The event that matched the query. Filled for
-   * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
+   * [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType],
+   * [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and
    * [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types.
    * 
* diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/NluSettings.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/NluSettings.java index 58706f7ebc93..4e281a558c3b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/NluSettings.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/NluSettings.java @@ -390,7 +390,7 @@ private ModelTrainingMode(int value) { } public static final int MODEL_TYPE_FIELD_NUMBER = 1; - private int modelType_; + private int modelType_ = 0; /** * * @@ -419,16 +419,15 @@ public int getModelTypeValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.NluSettings.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.NluSettings.ModelType result = - com.google.cloud.dialogflow.cx.v3.NluSettings.ModelType.valueOf(modelType_); + com.google.cloud.dialogflow.cx.v3.NluSettings.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.dialogflow.cx.v3.NluSettings.ModelType.UNRECOGNIZED : result; } public static final int CLASSIFICATION_THRESHOLD_FIELD_NUMBER = 3; - private float classificationThreshold_; + private float classificationThreshold_ = 0F; /** * * @@ -451,7 +450,7 @@ public float getClassificationThreshold() { } public static final int MODEL_TRAINING_MODE_FIELD_NUMBER = 4; - private int modelTrainingMode_; + private int modelTrainingMode_ = 0; /** * * @@ -482,9 +481,9 @@ public int getModelTrainingModeValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode getModelTrainingMode() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode result = - com.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode.valueOf(modelTrainingMode_); + com.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode.forNumber( + modelTrainingMode_); return result == null ? com.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode.UNRECOGNIZED : result; @@ -716,12 +715,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; modelType_ = 0; - classificationThreshold_ = 0F; - modelTrainingMode_ = 0; - return this; } @@ -749,13 +746,26 @@ public com.google.cloud.dialogflow.cx.v3.NluSettings build() { public com.google.cloud.dialogflow.cx.v3.NluSettings buildPartial() { com.google.cloud.dialogflow.cx.v3.NluSettings result = new com.google.cloud.dialogflow.cx.v3.NluSettings(this); - result.modelType_ = modelType_; - result.classificationThreshold_ = classificationThreshold_; - result.modelTrainingMode_ = modelTrainingMode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.NluSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelType_ = modelType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.classificationThreshold_ = classificationThreshold_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.modelTrainingMode_ = modelTrainingMode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -839,19 +849,19 @@ public Builder mergeFrom( case 8: { modelType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 29: { classificationThreshold_ = input.readFloat(); - + bitField0_ |= 0x00000002; break; } // case 29 case 32: { modelTrainingMode_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 32 default: @@ -871,6 +881,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int modelType_ = 0; /** * @@ -900,8 +912,8 @@ public int getModelTypeValue() { * @return This builder for chaining. */ public Builder setModelTypeValue(int value) { - modelType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -918,9 +930,8 @@ public Builder setModelTypeValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.NluSettings.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.NluSettings.ModelType result = - com.google.cloud.dialogflow.cx.v3.NluSettings.ModelType.valueOf(modelType_); + com.google.cloud.dialogflow.cx.v3.NluSettings.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.dialogflow.cx.v3.NluSettings.ModelType.UNRECOGNIZED : result; @@ -941,7 +952,7 @@ public Builder setModelType(com.google.cloud.dialogflow.cx.v3.NluSettings.ModelT if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; modelType_ = value.getNumber(); onChanged(); return this; @@ -958,7 +969,7 @@ public Builder setModelType(com.google.cloud.dialogflow.cx.v3.NluSettings.ModelT * @return This builder for chaining. */ public Builder clearModelType() { - + bitField0_ = (bitField0_ & ~0x00000001); modelType_ = 0; onChanged(); return this; @@ -1005,6 +1016,7 @@ public float getClassificationThreshold() { public Builder setClassificationThreshold(float value) { classificationThreshold_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1025,7 +1037,7 @@ public Builder setClassificationThreshold(float value) { * @return This builder for chaining. */ public Builder clearClassificationThreshold() { - + bitField0_ = (bitField0_ & ~0x00000002); classificationThreshold_ = 0F; onChanged(); return this; @@ -1062,8 +1074,8 @@ public int getModelTrainingModeValue() { * @return This builder for chaining. */ public Builder setModelTrainingModeValue(int value) { - modelTrainingMode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1081,9 +1093,8 @@ public Builder setModelTrainingModeValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode getModelTrainingMode() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode result = - com.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode.valueOf( + com.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode.forNumber( modelTrainingMode_); return result == null ? com.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode.UNRECOGNIZED @@ -1107,7 +1118,7 @@ public Builder setModelTrainingMode( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; modelTrainingMode_ = value.getNumber(); onChanged(); return this; @@ -1125,7 +1136,7 @@ public Builder setModelTrainingMode( * @return This builder for chaining. */ public Builder clearModelTrainingMode() { - + bitField0_ = (bitField0_ & ~0x00000004); modelTrainingMode_ = 0; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/OutputAudioConfig.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/OutputAudioConfig.java index b490d9c0faf8..3657a7daf30b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/OutputAudioConfig.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/OutputAudioConfig.java @@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int AUDIO_ENCODING_FIELD_NUMBER = 1; - private int audioEncoding_; + private int audioEncoding_ = 0; /** * * @@ -101,16 +101,15 @@ public int getAudioEncodingValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.OutputAudioEncoding getAudioEncoding() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.OutputAudioEncoding result = - com.google.cloud.dialogflow.cx.v3.OutputAudioEncoding.valueOf(audioEncoding_); + com.google.cloud.dialogflow.cx.v3.OutputAudioEncoding.forNumber(audioEncoding_); return result == null ? com.google.cloud.dialogflow.cx.v3.OutputAudioEncoding.UNRECOGNIZED : result; } public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; - private int sampleRateHertz_; + private int sampleRateHertz_ = 0; /** * * @@ -180,7 +179,9 @@ public com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig getSynthesizeSpe @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfigOrBuilder getSynthesizeSpeechConfigOrBuilder() { - return getSynthesizeSpeechConfig(); + return synthesizeSpeechConfig_ == null + ? com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.getDefaultInstance() + : synthesizeSpeechConfig_; } private byte memoizedIsInitialized = -1; @@ -408,14 +409,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; audioEncoding_ = 0; - sampleRateHertz_ = 0; - - if (synthesizeSpeechConfigBuilder_ == null) { - synthesizeSpeechConfig_ = null; - } else { - synthesizeSpeechConfig_ = null; + synthesizeSpeechConfig_ = null; + if (synthesizeSpeechConfigBuilder_ != null) { + synthesizeSpeechConfigBuilder_.dispose(); synthesizeSpeechConfigBuilder_ = null; } return this; @@ -445,17 +444,29 @@ public com.google.cloud.dialogflow.cx.v3.OutputAudioConfig build() { public com.google.cloud.dialogflow.cx.v3.OutputAudioConfig buildPartial() { com.google.cloud.dialogflow.cx.v3.OutputAudioConfig result = new com.google.cloud.dialogflow.cx.v3.OutputAudioConfig(this); - result.audioEncoding_ = audioEncoding_; - result.sampleRateHertz_ = sampleRateHertz_; - if (synthesizeSpeechConfigBuilder_ == null) { - result.synthesizeSpeechConfig_ = synthesizeSpeechConfig_; - } else { - result.synthesizeSpeechConfig_ = synthesizeSpeechConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.OutputAudioConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.audioEncoding_ = audioEncoding_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sampleRateHertz_ = sampleRateHertz_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.synthesizeSpeechConfig_ = + synthesizeSpeechConfigBuilder_ == null + ? synthesizeSpeechConfig_ + : synthesizeSpeechConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -540,20 +551,20 @@ public Builder mergeFrom( case 8: { audioEncoding_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { sampleRateHertz_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getSynthesizeSpeechConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -573,6 +584,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int audioEncoding_ = 0; /** * @@ -606,8 +619,8 @@ public int getAudioEncodingValue() { * @return This builder for chaining. */ public Builder setAudioEncodingValue(int value) { - audioEncoding_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -626,9 +639,8 @@ public Builder setAudioEncodingValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.OutputAudioEncoding getAudioEncoding() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.OutputAudioEncoding result = - com.google.cloud.dialogflow.cx.v3.OutputAudioEncoding.valueOf(audioEncoding_); + com.google.cloud.dialogflow.cx.v3.OutputAudioEncoding.forNumber(audioEncoding_); return result == null ? com.google.cloud.dialogflow.cx.v3.OutputAudioEncoding.UNRECOGNIZED : result; @@ -651,7 +663,7 @@ public Builder setAudioEncoding(com.google.cloud.dialogflow.cx.v3.OutputAudioEnc if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; audioEncoding_ = value.getNumber(); onChanged(); return this; @@ -670,7 +682,7 @@ public Builder setAudioEncoding(com.google.cloud.dialogflow.cx.v3.OutputAudioEnc * @return This builder for chaining. */ public Builder clearAudioEncoding() { - + bitField0_ = (bitField0_ & ~0x00000001); audioEncoding_ = 0; onChanged(); return this; @@ -715,6 +727,7 @@ public int getSampleRateHertz() { public Builder setSampleRateHertz(int value) { sampleRateHertz_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -734,7 +747,7 @@ public Builder setSampleRateHertz(int value) { * @return This builder for chaining. */ public Builder clearSampleRateHertz() { - + bitField0_ = (bitField0_ & ~0x00000002); sampleRateHertz_ = 0; onChanged(); return this; @@ -759,7 +772,7 @@ public Builder clearSampleRateHertz() { * @return Whether the synthesizeSpeechConfig field is set. */ public boolean hasSynthesizeSpeechConfig() { - return synthesizeSpeechConfigBuilder_ != null || synthesizeSpeechConfig_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -799,11 +812,11 @@ public Builder setSynthesizeSpeechConfig( throw new NullPointerException(); } synthesizeSpeechConfig_ = value; - onChanged(); } else { synthesizeSpeechConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -820,11 +833,11 @@ public Builder setSynthesizeSpeechConfig( com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.Builder builderForValue) { if (synthesizeSpeechConfigBuilder_ == null) { synthesizeSpeechConfig_ = builderForValue.build(); - onChanged(); } else { synthesizeSpeechConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -840,20 +853,19 @@ public Builder setSynthesizeSpeechConfig( public Builder mergeSynthesizeSpeechConfig( com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig value) { if (synthesizeSpeechConfigBuilder_ == null) { - if (synthesizeSpeechConfig_ != null) { - synthesizeSpeechConfig_ = - com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.newBuilder( - synthesizeSpeechConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && synthesizeSpeechConfig_ != null + && synthesizeSpeechConfig_ + != com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.getDefaultInstance()) { + getSynthesizeSpeechConfigBuilder().mergeFrom(value); } else { synthesizeSpeechConfig_ = value; } - onChanged(); } else { synthesizeSpeechConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -867,14 +879,13 @@ public Builder mergeSynthesizeSpeechConfig( * */ public Builder clearSynthesizeSpeechConfig() { - if (synthesizeSpeechConfigBuilder_ == null) { - synthesizeSpeechConfig_ = null; - onChanged(); - } else { - synthesizeSpeechConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + synthesizeSpeechConfig_ = null; + if (synthesizeSpeechConfigBuilder_ != null) { + synthesizeSpeechConfigBuilder_.dispose(); synthesizeSpeechConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -889,7 +900,7 @@ public Builder clearSynthesizeSpeechConfig() { */ public com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig.Builder getSynthesizeSpeechConfigBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getSynthesizeSpeechConfigFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Page.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Page.java index be5576c3fbe6..60101e9505c5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Page.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Page.java @@ -84,13 +84,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
    * The unique identifier of the page.
-   * Required for the [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
+   * Required for the
+   * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method.
+   * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
    * populates the name automatically.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/flows/<Flow ID>/pages/<Page ID>`.
@@ -117,7 +121,9 @@ public java.lang.String getName() {
    *
    * 
    * The unique identifier of the page.
-   * Required for the [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
+   * Required for the
+   * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method.
+   * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
    * populates the name automatically.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/flows/<Flow ID>/pages/<Page ID>`.
@@ -141,7 +147,9 @@ public com.google.protobuf.ByteString getNameBytes() {
   }
 
   public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
-  private volatile java.lang.Object displayName_;
+
+  @SuppressWarnings("serial")
+  private volatile java.lang.Object displayName_ = "";
   /**
    *
    *
@@ -234,7 +242,9 @@ public com.google.cloud.dialogflow.cx.v3.Fulfillment getEntryFulfillment() {
    */
   @java.lang.Override
   public com.google.cloud.dialogflow.cx.v3.FulfillmentOrBuilder getEntryFulfillmentOrBuilder() {
-    return getEntryFulfillment();
+    return entryFulfillment_ == null
+        ? com.google.cloud.dialogflow.cx.v3.Fulfillment.getDefaultInstance()
+        : entryFulfillment_;
   }
 
   public static final int FORM_FIELD_NUMBER = 4;
@@ -283,17 +293,21 @@ public com.google.cloud.dialogflow.cx.v3.Form getForm() {
    */
   @java.lang.Override
   public com.google.cloud.dialogflow.cx.v3.FormOrBuilder getFormOrBuilder() {
-    return getForm();
+    return form_ == null ? com.google.cloud.dialogflow.cx.v3.Form.getDefaultInstance() : form_;
   }
 
   public static final int TRANSITION_ROUTE_GROUPS_FIELD_NUMBER = 11;
+
+  @SuppressWarnings("serial")
   private com.google.protobuf.LazyStringList transitionRouteGroups_;
   /**
    *
    *
    * 
-   * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
-   * with the page. Transition route groups must be unique within a page.
+   * Ordered list of
+   * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+   * associated with the page. Transition route groups must be unique within a
+   * page.
    * *   If multiple transition routes within a page scope refer to the same
    *     intent, then the precedence order is: page's transition route -> page's
    *     transition route group -> flow's transition routes.
@@ -315,8 +329,10 @@ public com.google.protobuf.ProtocolStringList getTransitionRouteGroupsList() {
    *
    *
    * 
-   * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
-   * with the page. Transition route groups must be unique within a page.
+   * Ordered list of
+   * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+   * associated with the page. Transition route groups must be unique within a
+   * page.
    * *   If multiple transition routes within a page scope refer to the same
    *     intent, then the precedence order is: page's transition route -> page's
    *     transition route group -> flow's transition routes.
@@ -338,8 +354,10 @@ public int getTransitionRouteGroupsCount() {
    *
    *
    * 
-   * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
-   * with the page. Transition route groups must be unique within a page.
+   * Ordered list of
+   * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+   * associated with the page. Transition route groups must be unique within a
+   * page.
    * *   If multiple transition routes within a page scope refer to the same
    *     intent, then the precedence order is: page's transition route -> page's
    *     transition route group -> flow's transition routes.
@@ -362,8 +380,10 @@ public java.lang.String getTransitionRouteGroups(int index) {
    *
    *
    * 
-   * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
-   * with the page. Transition route groups must be unique within a page.
+   * Ordered list of
+   * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+   * associated with the page. Transition route groups must be unique within a
+   * page.
    * *   If multiple transition routes within a page scope refer to the same
    *     intent, then the precedence order is: page's transition route -> page's
    *     transition route group -> flow's transition routes.
@@ -384,6 +404,8 @@ public com.google.protobuf.ByteString getTransitionRouteGroupsBytes(int index) {
   }
 
   public static final int TRANSITION_ROUTES_FIELD_NUMBER = 9;
+
+  @SuppressWarnings("serial")
   private java.util.List transitionRoutes_;
   /**
    *
@@ -396,16 +418,19 @@ public com.google.protobuf.ByteString getTransitionRouteGroupsBytes(int index) {
    * following order:
    * *   TransitionRoutes defined in the page with intent specified.
    * *   TransitionRoutes defined in the
-   *     [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
-   *     specified.
+   *     [transition route
+   *     groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+   *     with intent specified.
    * *   TransitionRoutes defined in flow with intent specified.
    * *   TransitionRoutes defined in the
-   *     [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
-   *     specified.
+   *     [transition route
+   *     groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+   *     with intent specified.
    * *   TransitionRoutes defined in the page with only condition specified.
    * *   TransitionRoutes defined in the
-   *     [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
-   *     condition specified.
+   *     [transition route
+   *     groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+   *     with only condition specified.
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -426,16 +451,19 @@ public com.google.protobuf.ByteString getTransitionRouteGroupsBytes(int index) { * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -456,16 +484,19 @@ public com.google.protobuf.ByteString getTransitionRouteGroupsBytes(int index) { * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -485,16 +516,19 @@ public int getTransitionRoutesCount() { * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -514,16 +548,19 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute getTransitionRoutes(int * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -535,6 +572,8 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionR } public static final int EVENT_HANDLERS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") private java.util.List eventHandlers_; /** * @@ -893,38 +932,35 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - - if (entryFulfillmentBuilder_ == null) { - entryFulfillment_ = null; - } else { - entryFulfillment_ = null; + entryFulfillment_ = null; + if (entryFulfillmentBuilder_ != null) { + entryFulfillmentBuilder_.dispose(); entryFulfillmentBuilder_ = null; } - if (formBuilder_ == null) { - form_ = null; - } else { - form_ = null; + form_ = null; + if (formBuilder_ != null) { + formBuilder_.dispose(); formBuilder_ = null; } transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); if (transitionRoutesBuilder_ == null) { transitionRoutes_ = java.util.Collections.emptyList(); } else { transitionRoutes_ = null; transitionRoutesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); if (eventHandlersBuilder_ == null) { eventHandlers_ = java.util.Collections.emptyList(); } else { eventHandlers_ = null; eventHandlersBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000040); return this; } @@ -952,44 +988,55 @@ public com.google.cloud.dialogflow.cx.v3.Page build() { public com.google.cloud.dialogflow.cx.v3.Page buildPartial() { com.google.cloud.dialogflow.cx.v3.Page result = new com.google.cloud.dialogflow.cx.v3.Page(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - if (entryFulfillmentBuilder_ == null) { - result.entryFulfillment_ = entryFulfillment_; - } else { - result.entryFulfillment_ = entryFulfillmentBuilder_.build(); - } - if (formBuilder_ == null) { - result.form_ = form_; - } else { - result.form_ = formBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - if (((bitField0_ & 0x00000001) != 0)) { + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.Page result) { + if (((bitField0_ & 0x00000010) != 0)) { transitionRouteGroups_ = transitionRouteGroups_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } result.transitionRouteGroups_ = transitionRouteGroups_; if (transitionRoutesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { transitionRoutes_ = java.util.Collections.unmodifiableList(transitionRoutes_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } result.transitionRoutes_ = transitionRoutes_; } else { result.transitionRoutes_ = transitionRoutesBuilder_.build(); } if (eventHandlersBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { eventHandlers_ = java.util.Collections.unmodifiableList(eventHandlers_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000040); } result.eventHandlers_ = eventHandlers_; } else { result.eventHandlers_ = eventHandlersBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Page result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.entryFulfillment_ = + entryFulfillmentBuilder_ == null ? entryFulfillment_ : entryFulfillmentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.form_ = formBuilder_ == null ? form_ : formBuilder_.build(); + } } @java.lang.Override @@ -1039,10 +1086,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Page other) { if (other == com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasEntryFulfillment()) { @@ -1054,7 +1103,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Page other) { if (!other.transitionRouteGroups_.isEmpty()) { if (transitionRouteGroups_.isEmpty()) { transitionRouteGroups_ = other.transitionRouteGroups_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureTransitionRouteGroupsIsMutable(); transitionRouteGroups_.addAll(other.transitionRouteGroups_); @@ -1065,7 +1114,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Page other) { if (!other.transitionRoutes_.isEmpty()) { if (transitionRoutes_.isEmpty()) { transitionRoutes_ = other.transitionRoutes_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureTransitionRoutesIsMutable(); transitionRoutes_.addAll(other.transitionRoutes_); @@ -1078,7 +1127,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Page other) { transitionRoutesBuilder_.dispose(); transitionRoutesBuilder_ = null; transitionRoutes_ = other.transitionRoutes_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); transitionRoutesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransitionRoutesFieldBuilder() @@ -1092,7 +1141,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Page other) { if (!other.eventHandlers_.isEmpty()) { if (eventHandlers_.isEmpty()) { eventHandlers_ = other.eventHandlers_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000040); } else { ensureEventHandlersIsMutable(); eventHandlers_.addAll(other.eventHandlers_); @@ -1105,7 +1154,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Page other) { eventHandlersBuilder_.dispose(); eventHandlersBuilder_ = null; eventHandlers_ = other.eventHandlers_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000040); eventHandlersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEventHandlersFieldBuilder() @@ -1144,26 +1193,26 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 34: { input.readMessage(getFormFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 58: { input.readMessage( getEntryFulfillmentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 58 case 74: @@ -1225,7 +1274,9 @@ public Builder mergeFrom( * *
      * The unique identifier of the page.
-     * Required for the [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
+     * Required for the
+     * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method.
+     * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
      * populates the name automatically.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>/pages/<Page ID>`.
@@ -1251,7 +1302,9 @@ public java.lang.String getName() {
      *
      * 
      * The unique identifier of the page.
-     * Required for the [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
+     * Required for the
+     * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method.
+     * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
      * populates the name automatically.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>/pages/<Page ID>`.
@@ -1277,7 +1330,9 @@ public com.google.protobuf.ByteString getNameBytes() {
      *
      * 
      * The unique identifier of the page.
-     * Required for the [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
+     * Required for the
+     * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method.
+     * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
      * populates the name automatically.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>/pages/<Page ID>`.
@@ -1292,8 +1347,8 @@ public Builder setName(java.lang.String value) {
       if (value == null) {
         throw new NullPointerException();
       }
-
       name_ = value;
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -1302,7 +1357,9 @@ public Builder setName(java.lang.String value) {
      *
      * 
      * The unique identifier of the page.
-     * Required for the [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
+     * Required for the
+     * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method.
+     * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
      * populates the name automatically.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>/pages/<Page ID>`.
@@ -1313,8 +1370,8 @@ public Builder setName(java.lang.String value) {
      * @return This builder for chaining.
      */
     public Builder clearName() {
-
       name_ = getDefaultInstance().getName();
+      bitField0_ = (bitField0_ & ~0x00000001);
       onChanged();
       return this;
     }
@@ -1323,7 +1380,9 @@ public Builder clearName() {
      *
      * 
      * The unique identifier of the page.
-     * Required for the [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
+     * Required for the
+     * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method.
+     * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
      * populates the name automatically.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>/pages/<Page ID>`.
@@ -1339,8 +1398,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
         throw new NullPointerException();
       }
       checkByteStringIsUtf8(value);
-
       name_ = value;
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -1406,8 +1465,8 @@ public Builder setDisplayName(java.lang.String value) {
       if (value == null) {
         throw new NullPointerException();
       }
-
       displayName_ = value;
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -1423,8 +1482,8 @@ public Builder setDisplayName(java.lang.String value) {
      * @return This builder for chaining.
      */
     public Builder clearDisplayName() {
-
       displayName_ = getDefaultInstance().getDisplayName();
+      bitField0_ = (bitField0_ & ~0x00000002);
       onChanged();
       return this;
     }
@@ -1445,8 +1504,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
         throw new NullPointerException();
       }
       checkByteStringIsUtf8(value);
-
       displayName_ = value;
+      bitField0_ |= 0x00000002;
       onChanged();
       return this;
     }
@@ -1469,7 +1528,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * @return Whether the entryFulfillment field is set.
      */
     public boolean hasEntryFulfillment() {
-      return entryFulfillmentBuilder_ != null || entryFulfillment_ != null;
+      return ((bitField0_ & 0x00000004) != 0);
     }
     /**
      *
@@ -1506,11 +1565,11 @@ public Builder setEntryFulfillment(com.google.cloud.dialogflow.cx.v3.Fulfillment
           throw new NullPointerException();
         }
         entryFulfillment_ = value;
-        onChanged();
       } else {
         entryFulfillmentBuilder_.setMessage(value);
       }
-
+      bitField0_ |= 0x00000004;
+      onChanged();
       return this;
     }
     /**
@@ -1526,11 +1585,11 @@ public Builder setEntryFulfillment(
         com.google.cloud.dialogflow.cx.v3.Fulfillment.Builder builderForValue) {
       if (entryFulfillmentBuilder_ == null) {
         entryFulfillment_ = builderForValue.build();
-        onChanged();
       } else {
         entryFulfillmentBuilder_.setMessage(builderForValue.build());
       }
-
+      bitField0_ |= 0x00000004;
+      onChanged();
       return this;
     }
     /**
@@ -1544,19 +1603,19 @@ public Builder setEntryFulfillment(
      */
     public Builder mergeEntryFulfillment(com.google.cloud.dialogflow.cx.v3.Fulfillment value) {
       if (entryFulfillmentBuilder_ == null) {
-        if (entryFulfillment_ != null) {
-          entryFulfillment_ =
-              com.google.cloud.dialogflow.cx.v3.Fulfillment.newBuilder(entryFulfillment_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (((bitField0_ & 0x00000004) != 0)
+            && entryFulfillment_ != null
+            && entryFulfillment_
+                != com.google.cloud.dialogflow.cx.v3.Fulfillment.getDefaultInstance()) {
+          getEntryFulfillmentBuilder().mergeFrom(value);
         } else {
           entryFulfillment_ = value;
         }
-        onChanged();
       } else {
         entryFulfillmentBuilder_.mergeFrom(value);
       }
-
+      bitField0_ |= 0x00000004;
+      onChanged();
       return this;
     }
     /**
@@ -1569,14 +1628,13 @@ public Builder mergeEntryFulfillment(com.google.cloud.dialogflow.cx.v3.Fulfillme
      * .google.cloud.dialogflow.cx.v3.Fulfillment entry_fulfillment = 7;
      */
     public Builder clearEntryFulfillment() {
-      if (entryFulfillmentBuilder_ == null) {
-        entryFulfillment_ = null;
-        onChanged();
-      } else {
-        entryFulfillment_ = null;
+      bitField0_ = (bitField0_ & ~0x00000004);
+      entryFulfillment_ = null;
+      if (entryFulfillmentBuilder_ != null) {
+        entryFulfillmentBuilder_.dispose();
         entryFulfillmentBuilder_ = null;
       }
-
+      onChanged();
       return this;
     }
     /**
@@ -1589,7 +1647,7 @@ public Builder clearEntryFulfillment() {
      * .google.cloud.dialogflow.cx.v3.Fulfillment entry_fulfillment = 7;
      */
     public com.google.cloud.dialogflow.cx.v3.Fulfillment.Builder getEntryFulfillmentBuilder() {
-
+      bitField0_ |= 0x00000004;
       onChanged();
       return getEntryFulfillmentFieldBuilder().getBuilder();
     }
@@ -1656,7 +1714,7 @@ public com.google.cloud.dialogflow.cx.v3.FulfillmentOrBuilder getEntryFulfillmen
      * @return Whether the form field is set.
      */
     public boolean hasForm() {
-      return formBuilder_ != null || form_ != null;
+      return ((bitField0_ & 0x00000008) != 0);
     }
     /**
      *
@@ -1693,11 +1751,11 @@ public Builder setForm(com.google.cloud.dialogflow.cx.v3.Form value) {
           throw new NullPointerException();
         }
         form_ = value;
-        onChanged();
       } else {
         formBuilder_.setMessage(value);
       }
-
+      bitField0_ |= 0x00000008;
+      onChanged();
       return this;
     }
     /**
@@ -1713,11 +1771,11 @@ public Builder setForm(com.google.cloud.dialogflow.cx.v3.Form value) {
     public Builder setForm(com.google.cloud.dialogflow.cx.v3.Form.Builder builderForValue) {
       if (formBuilder_ == null) {
         form_ = builderForValue.build();
-        onChanged();
       } else {
         formBuilder_.setMessage(builderForValue.build());
       }
-
+      bitField0_ |= 0x00000008;
+      onChanged();
       return this;
     }
     /**
@@ -1732,19 +1790,18 @@ public Builder setForm(com.google.cloud.dialogflow.cx.v3.Form.Builder builderFor
      */
     public Builder mergeForm(com.google.cloud.dialogflow.cx.v3.Form value) {
       if (formBuilder_ == null) {
-        if (form_ != null) {
-          form_ =
-              com.google.cloud.dialogflow.cx.v3.Form.newBuilder(form_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (((bitField0_ & 0x00000008) != 0)
+            && form_ != null
+            && form_ != com.google.cloud.dialogflow.cx.v3.Form.getDefaultInstance()) {
+          getFormBuilder().mergeFrom(value);
         } else {
           form_ = value;
         }
-        onChanged();
       } else {
         formBuilder_.mergeFrom(value);
       }
-
+      bitField0_ |= 0x00000008;
+      onChanged();
       return this;
     }
     /**
@@ -1758,14 +1815,13 @@ public Builder mergeForm(com.google.cloud.dialogflow.cx.v3.Form value) {
      * .google.cloud.dialogflow.cx.v3.Form form = 4;
      */
     public Builder clearForm() {
-      if (formBuilder_ == null) {
-        form_ = null;
-        onChanged();
-      } else {
-        form_ = null;
+      bitField0_ = (bitField0_ & ~0x00000008);
+      form_ = null;
+      if (formBuilder_ != null) {
+        formBuilder_.dispose();
         formBuilder_ = null;
       }
-
+      onChanged();
       return this;
     }
     /**
@@ -1779,7 +1835,7 @@ public Builder clearForm() {
      * .google.cloud.dialogflow.cx.v3.Form form = 4;
      */
     public com.google.cloud.dialogflow.cx.v3.Form.Builder getFormBuilder() {
-
+      bitField0_ |= 0x00000008;
       onChanged();
       return getFormFieldBuilder().getBuilder();
     }
@@ -1831,18 +1887,20 @@ public com.google.cloud.dialogflow.cx.v3.FormOrBuilder getFormOrBuilder() {
         com.google.protobuf.LazyStringArrayList.EMPTY;
 
     private void ensureTransitionRouteGroupsIsMutable() {
-      if (!((bitField0_ & 0x00000001) != 0)) {
+      if (!((bitField0_ & 0x00000010) != 0)) {
         transitionRouteGroups_ =
             new com.google.protobuf.LazyStringArrayList(transitionRouteGroups_);
-        bitField0_ |= 0x00000001;
+        bitField0_ |= 0x00000010;
       }
     }
     /**
      *
      *
      * 
-     * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
-     * with the page. Transition route groups must be unique within a page.
+     * Ordered list of
+     * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * associated with the page. Transition route groups must be unique within a
+     * page.
      * *   If multiple transition routes within a page scope refer to the same
      *     intent, then the precedence order is: page's transition route -> page's
      *     transition route group -> flow's transition routes.
@@ -1865,8 +1923,10 @@ public com.google.protobuf.ProtocolStringList getTransitionRouteGroupsList() {
      *
      *
      * 
-     * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
-     * with the page. Transition route groups must be unique within a page.
+     * Ordered list of
+     * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * associated with the page. Transition route groups must be unique within a
+     * page.
      * *   If multiple transition routes within a page scope refer to the same
      *     intent, then the precedence order is: page's transition route -> page's
      *     transition route group -> flow's transition routes.
@@ -1889,8 +1949,10 @@ public int getTransitionRouteGroupsCount() {
      *
      *
      * 
-     * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
-     * with the page. Transition route groups must be unique within a page.
+     * Ordered list of
+     * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * associated with the page. Transition route groups must be unique within a
+     * page.
      * *   If multiple transition routes within a page scope refer to the same
      *     intent, then the precedence order is: page's transition route -> page's
      *     transition route group -> flow's transition routes.
@@ -1914,8 +1976,10 @@ public java.lang.String getTransitionRouteGroups(int index) {
      *
      *
      * 
-     * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
-     * with the page. Transition route groups must be unique within a page.
+     * Ordered list of
+     * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * associated with the page. Transition route groups must be unique within a
+     * page.
      * *   If multiple transition routes within a page scope refer to the same
      *     intent, then the precedence order is: page's transition route -> page's
      *     transition route group -> flow's transition routes.
@@ -1939,8 +2003,10 @@ public com.google.protobuf.ByteString getTransitionRouteGroupsBytes(int index) {
      *
      *
      * 
-     * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
-     * with the page. Transition route groups must be unique within a page.
+     * Ordered list of
+     * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * associated with the page. Transition route groups must be unique within a
+     * page.
      * *   If multiple transition routes within a page scope refer to the same
      *     intent, then the precedence order is: page's transition route -> page's
      *     transition route group -> flow's transition routes.
@@ -1971,8 +2037,10 @@ public Builder setTransitionRouteGroups(int index, java.lang.String value) {
      *
      *
      * 
-     * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
-     * with the page. Transition route groups must be unique within a page.
+     * Ordered list of
+     * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * associated with the page. Transition route groups must be unique within a
+     * page.
      * *   If multiple transition routes within a page scope refer to the same
      *     intent, then the precedence order is: page's transition route -> page's
      *     transition route group -> flow's transition routes.
@@ -2002,8 +2070,10 @@ public Builder addTransitionRouteGroups(java.lang.String value) {
      *
      *
      * 
-     * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
-     * with the page. Transition route groups must be unique within a page.
+     * Ordered list of
+     * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * associated with the page. Transition route groups must be unique within a
+     * page.
      * *   If multiple transition routes within a page scope refer to the same
      *     intent, then the precedence order is: page's transition route -> page's
      *     transition route group -> flow's transition routes.
@@ -2030,8 +2100,10 @@ public Builder addAllTransitionRouteGroups(java.lang.Iterable
      *
      *
      * 
-     * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
-     * with the page. Transition route groups must be unique within a page.
+     * Ordered list of
+     * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * associated with the page. Transition route groups must be unique within a
+     * page.
      * *   If multiple transition routes within a page scope refer to the same
      *     intent, then the precedence order is: page's transition route -> page's
      *     transition route group -> flow's transition routes.
@@ -2049,7 +2121,7 @@ public Builder addAllTransitionRouteGroups(java.lang.Iterable
      */
     public Builder clearTransitionRouteGroups() {
       transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY;
-      bitField0_ = (bitField0_ & ~0x00000001);
+      bitField0_ = (bitField0_ & ~0x00000010);
       onChanged();
       return this;
     }
@@ -2057,8 +2129,10 @@ public Builder clearTransitionRouteGroups() {
      *
      *
      * 
-     * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
-     * with the page. Transition route groups must be unique within a page.
+     * Ordered list of
+     * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+     * associated with the page. Transition route groups must be unique within a
+     * page.
      * *   If multiple transition routes within a page scope refer to the same
      *     intent, then the precedence order is: page's transition route -> page's
      *     transition route group -> flow's transition routes.
@@ -2090,11 +2164,11 @@ public Builder addTransitionRouteGroupsBytes(com.google.protobuf.ByteString valu
         java.util.Collections.emptyList();
 
     private void ensureTransitionRoutesIsMutable() {
-      if (!((bitField0_ & 0x00000002) != 0)) {
+      if (!((bitField0_ & 0x00000020) != 0)) {
         transitionRoutes_ =
             new java.util.ArrayList(
                 transitionRoutes_);
-        bitField0_ |= 0x00000002;
+        bitField0_ |= 0x00000020;
       }
     }
 
@@ -2115,16 +2189,19 @@ private void ensureTransitionRoutesIsMutable() {
      * following order:
      * *   TransitionRoutes defined in the page with intent specified.
      * *   TransitionRoutes defined in the
-     *     [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
-     *     specified.
+     *     [transition route
+     *     groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+     *     with intent specified.
      * *   TransitionRoutes defined in flow with intent specified.
      * *   TransitionRoutes defined in the
-     *     [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
-     *     specified.
+     *     [transition route
+     *     groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+     *     with intent specified.
      * *   TransitionRoutes defined in the page with only condition specified.
      * *   TransitionRoutes defined in the
-     *     [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
-     *     condition specified.
+     *     [transition route
+     *     groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+     *     with only condition specified.
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -2148,16 +2225,19 @@ private void ensureTransitionRoutesIsMutable() { * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -2180,16 +2260,19 @@ public int getTransitionRoutesCount() { * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -2212,16 +2295,19 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute getTransitionRoutes(int * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -2251,16 +2337,19 @@ public Builder setTransitionRoutes( * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -2287,16 +2376,19 @@ public Builder setTransitionRoutes( * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -2325,16 +2417,19 @@ public Builder addTransitionRoutes(com.google.cloud.dialogflow.cx.v3.TransitionR * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -2364,16 +2459,19 @@ public Builder addTransitionRoutes( * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -2400,16 +2498,19 @@ public Builder addTransitionRoutes( * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -2436,16 +2537,19 @@ public Builder addTransitionRoutes( * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -2472,16 +2576,19 @@ public Builder addAllTransitionRoutes( * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -2489,7 +2596,7 @@ public Builder addAllTransitionRoutes( public Builder clearTransitionRoutes() { if (transitionRoutesBuilder_ == null) { transitionRoutes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { transitionRoutesBuilder_.clear(); @@ -2507,16 +2614,19 @@ public Builder clearTransitionRoutes() { * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -2542,16 +2652,19 @@ public Builder removeTransitionRoutes(int index) { * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -2571,16 +2684,19 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder getTransitionRo * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -2604,16 +2720,19 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionR * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -2637,16 +2756,19 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionR * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -2666,16 +2788,19 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder addTransitionRo * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -2697,16 +2822,19 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder addTransitionRo * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -2728,7 +2856,7 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder addTransitionRo com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder, com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder>( transitionRoutes_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); transitionRoutes_ = null; @@ -2740,10 +2868,10 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder addTransitionRo java.util.Collections.emptyList(); private void ensureEventHandlersIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000040) != 0)) { eventHandlers_ = new java.util.ArrayList(eventHandlers_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000040; } } @@ -2972,7 +3100,7 @@ public Builder addAllEventHandlers( public Builder clearEventHandlers() { if (eventHandlersBuilder_ == null) { eventHandlers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { eventHandlersBuilder_.clear(); @@ -3105,7 +3233,7 @@ public com.google.cloud.dialogflow.cx.v3.EventHandler.Builder addEventHandlersBu com.google.cloud.dialogflow.cx.v3.EventHandler.Builder, com.google.cloud.dialogflow.cx.v3.EventHandlerOrBuilder>( eventHandlers_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); eventHandlers_ = null; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfo.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfo.java index 2932af51dea7..2238156609a9 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfo.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfo.java @@ -77,9 +77,11 @@ public interface FormInfoOrBuilder * * *
-     * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The parameters contained in the form. Note that the webhook cannot add
-     * or remove any form parameter.
+     * Optional for both
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * parameters contained in the form. Note that the webhook cannot add or
+     * remove any form parameter.
      * 
* * @@ -92,9 +94,11 @@ public interface FormInfoOrBuilder * * *
-     * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The parameters contained in the form. Note that the webhook cannot add
-     * or remove any form parameter.
+     * Optional for both
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * parameters contained in the form. Note that the webhook cannot add or
+     * remove any form parameter.
      * 
* * @@ -106,9 +110,11 @@ public interface FormInfoOrBuilder * * *
-     * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The parameters contained in the form. Note that the webhook cannot add
-     * or remove any form parameter.
+     * Optional for both
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * parameters contained in the form. Note that the webhook cannot add or
+     * remove any form parameter.
      * 
* * @@ -120,9 +126,11 @@ public interface FormInfoOrBuilder * * *
-     * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The parameters contained in the form. Note that the webhook cannot add
-     * or remove any form parameter.
+     * Optional for both
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * parameters contained in the form. Note that the webhook cannot add or
+     * remove any form parameter.
      * 
* * @@ -136,9 +144,11 @@ public interface FormInfoOrBuilder * * *
-     * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The parameters contained in the form. Note that the webhook cannot add
-     * or remove any form parameter.
+     * Optional for both
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * parameters contained in the form. Note that the webhook cannot add or
+     * remove any form parameter.
      * 
* * @@ -206,7 +216,9 @@ public interface ParameterInfoOrBuilder * * *
-       * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
+       * Always present for
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+       * Required for
        * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
        * The human-readable name of the parameter, unique within the form. This
        * field cannot be modified by the webhook.
@@ -221,7 +233,9 @@ public interface ParameterInfoOrBuilder
        *
        *
        * 
-       * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
+       * Always present for
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+       * Required for
        * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
        * The human-readable name of the parameter, unique within the form. This
        * field cannot be modified by the webhook.
@@ -237,7 +251,9 @@ public interface ParameterInfoOrBuilder
        *
        *
        * 
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
        * Indicates whether the parameter is required. Optional parameters will
        * not trigger prompts; however, they are filled if the user specifies
        * them. Required parameters must be filled before form filling concludes.
@@ -253,10 +269,13 @@ public interface ParameterInfoOrBuilder
        *
        *
        * 
-       * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
-       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set
-       * to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by
-       * the webhook to invalidate the parameter; other values set by the
+       * Always present for
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+       * Required for
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * state of the parameter. This field can be set to
+       * [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID]
+       * by the webhook to invalidate the parameter; other values set by the
        * webhook will be ignored.
        * 
* @@ -271,10 +290,13 @@ public interface ParameterInfoOrBuilder * * *
-       * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
-       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set
-       * to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by
-       * the webhook to invalidate the parameter; other values set by the
+       * Always present for
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+       * Required for
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * state of the parameter. This field can be set to
+       * [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID]
+       * by the webhook to invalidate the parameter; other values set by the
        * webhook will be ignored.
        * 
* @@ -290,9 +312,11 @@ public interface ParameterInfoOrBuilder * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The value of the parameter. This field can be set by the webhook to
-       * change the parameter value.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * value of the parameter. This field can be set by the webhook to change
+       * the parameter value.
        * 
* * .google.protobuf.Value value = 4; @@ -304,9 +328,11 @@ public interface ParameterInfoOrBuilder * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The value of the parameter. This field can be set by the webhook to
-       * change the parameter value.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * value of the parameter. This field can be set by the webhook to change
+       * the parameter value.
        * 
* * .google.protobuf.Value value = 4; @@ -318,9 +344,11 @@ public interface ParameterInfoOrBuilder * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The value of the parameter. This field can be set by the webhook to
-       * change the parameter value.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * value of the parameter. This field can be set by the webhook to change
+       * the parameter value.
        * 
* * .google.protobuf.Value value = 4; @@ -331,7 +359,9 @@ public interface ParameterInfoOrBuilder * * *
-       * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+       * Optional for
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored
+       * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
        * Indicates if the parameter value was just collected on the last
        * conversation turn.
        * 
@@ -583,12 +613,16 @@ private ParameterState(int value) { } public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * *
-       * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
+       * Always present for
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+       * Required for
        * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
        * The human-readable name of the parameter, unique within the form. This
        * field cannot be modified by the webhook.
@@ -614,7 +648,9 @@ public java.lang.String getDisplayName() {
        *
        *
        * 
-       * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
+       * Always present for
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+       * Required for
        * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
        * The human-readable name of the parameter, unique within the form. This
        * field cannot be modified by the webhook.
@@ -638,12 +674,14 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
       }
 
       public static final int REQUIRED_FIELD_NUMBER = 2;
-      private boolean required_;
+      private boolean required_ = false;
       /**
        *
        *
        * 
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
        * Indicates whether the parameter is required. Optional parameters will
        * not trigger prompts; however, they are filled if the user specifies
        * them. Required parameters must be filled before form filling concludes.
@@ -659,15 +697,18 @@ public boolean getRequired() {
       }
 
       public static final int STATE_FIELD_NUMBER = 3;
-      private int state_;
+      private int state_ = 0;
       /**
        *
        *
        * 
-       * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
-       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set
-       * to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by
-       * the webhook to invalidate the parameter; other values set by the
+       * Always present for
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+       * Required for
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * state of the parameter. This field can be set to
+       * [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID]
+       * by the webhook to invalidate the parameter; other values set by the
        * webhook will be ignored.
        * 
* @@ -685,10 +726,13 @@ public int getStateValue() { * * *
-       * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
-       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set
-       * to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by
-       * the webhook to invalidate the parameter; other values set by the
+       * Always present for
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+       * Required for
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * state of the parameter. This field can be set to
+       * [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID]
+       * by the webhook to invalidate the parameter; other values set by the
        * webhook will be ignored.
        * 
* @@ -701,10 +745,9 @@ public int getStateValue() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState getState() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState result = com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState - .valueOf(state_); + .forNumber(state_); return result == null ? com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState .UNRECOGNIZED @@ -717,9 +760,11 @@ public int getStateValue() { * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The value of the parameter. This field can be set by the webhook to
-       * change the parameter value.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * value of the parameter. This field can be set by the webhook to change
+       * the parameter value.
        * 
* * .google.protobuf.Value value = 4; @@ -734,9 +779,11 @@ public boolean hasValue() { * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The value of the parameter. This field can be set by the webhook to
-       * change the parameter value.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * value of the parameter. This field can be set by the webhook to change
+       * the parameter value.
        * 
* * .google.protobuf.Value value = 4; @@ -751,25 +798,29 @@ public com.google.protobuf.Value getValue() { * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The value of the parameter. This field can be set by the webhook to
-       * change the parameter value.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * value of the parameter. This field can be set by the webhook to change
+       * the parameter value.
        * 
* * .google.protobuf.Value value = 4; */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { - return getValue(); + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; } public static final int JUST_COLLECTED_FIELD_NUMBER = 5; - private boolean justCollected_; + private boolean justCollected_ = false; /** * * *
-       * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+       * Optional for
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored
+       * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
        * Indicates if the parameter value was just collected on the last
        * conversation turn.
        * 
@@ -1033,20 +1084,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; displayName_ = ""; - required_ = false; - state_ = 0; - - if (valueBuilder_ == null) { - value_ = null; - } else { - value_ = null; + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); valueBuilder_ = null; } justCollected_ = false; - return this; } @@ -1076,19 +1123,33 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo build() public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo buildPartial() { com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo result = new com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo(this); - result.displayName_ = displayName_; - result.required_ = required_; - result.state_ = state_; - if (valueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = valueBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.justCollected_ = justCollected_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.required_ = required_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.justCollected_ = justCollected_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1142,6 +1203,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getRequired() != false) { @@ -1185,31 +1247,31 @@ public Builder mergeFrom( case 10: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { required_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { state_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 40: { justCollected_ = input.readBool(); - + bitField0_ |= 0x00000010; break; } // case 40 default: @@ -1229,12 +1291,16 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object displayName_ = ""; /** * * *
-         * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
+         * Always present for
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+         * Required for
          * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
          * The human-readable name of the parameter, unique within the form. This
          * field cannot be modified by the webhook.
@@ -1259,7 +1325,9 @@ public java.lang.String getDisplayName() {
          *
          *
          * 
-         * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
+         * Always present for
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+         * Required for
          * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
          * The human-readable name of the parameter, unique within the form. This
          * field cannot be modified by the webhook.
@@ -1284,7 +1352,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
          *
          *
          * 
-         * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
+         * Always present for
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+         * Required for
          * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
          * The human-readable name of the parameter, unique within the form. This
          * field cannot be modified by the webhook.
@@ -1299,8 +1369,8 @@ public Builder setDisplayName(java.lang.String value) {
           if (value == null) {
             throw new NullPointerException();
           }
-
           displayName_ = value;
+          bitField0_ |= 0x00000001;
           onChanged();
           return this;
         }
@@ -1308,7 +1378,9 @@ public Builder setDisplayName(java.lang.String value) {
          *
          *
          * 
-         * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
+         * Always present for
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+         * Required for
          * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
          * The human-readable name of the parameter, unique within the form. This
          * field cannot be modified by the webhook.
@@ -1319,8 +1391,8 @@ public Builder setDisplayName(java.lang.String value) {
          * @return This builder for chaining.
          */
         public Builder clearDisplayName() {
-
           displayName_ = getDefaultInstance().getDisplayName();
+          bitField0_ = (bitField0_ & ~0x00000001);
           onChanged();
           return this;
         }
@@ -1328,7 +1400,9 @@ public Builder clearDisplayName() {
          *
          *
          * 
-         * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
+         * Always present for
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+         * Required for
          * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
          * The human-readable name of the parameter, unique within the form. This
          * field cannot be modified by the webhook.
@@ -1344,8 +1418,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
             throw new NullPointerException();
           }
           checkByteStringIsUtf8(value);
-
           displayName_ = value;
+          bitField0_ |= 0x00000001;
           onChanged();
           return this;
         }
@@ -1355,7 +1429,9 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
          *
          *
          * 
-         * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+         * Optional for both
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
          * Indicates whether the parameter is required. Optional parameters will
          * not trigger prompts; however, they are filled if the user specifies
          * them. Required parameters must be filled before form filling concludes.
@@ -1373,7 +1449,9 @@ public boolean getRequired() {
          *
          *
          * 
-         * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+         * Optional for both
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
          * Indicates whether the parameter is required. Optional parameters will
          * not trigger prompts; however, they are filled if the user specifies
          * them. Required parameters must be filled before form filling concludes.
@@ -1387,6 +1465,7 @@ public boolean getRequired() {
         public Builder setRequired(boolean value) {
 
           required_ = value;
+          bitField0_ |= 0x00000002;
           onChanged();
           return this;
         }
@@ -1394,7 +1473,9 @@ public Builder setRequired(boolean value) {
          *
          *
          * 
-         * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+         * Optional for both
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
          * Indicates whether the parameter is required. Optional parameters will
          * not trigger prompts; however, they are filled if the user specifies
          * them. Required parameters must be filled before form filling concludes.
@@ -1405,7 +1486,7 @@ public Builder setRequired(boolean value) {
          * @return This builder for chaining.
          */
         public Builder clearRequired() {
-
+          bitField0_ = (bitField0_ & ~0x00000002);
           required_ = false;
           onChanged();
           return this;
@@ -1416,10 +1497,13 @@ public Builder clearRequired() {
          *
          *
          * 
-         * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
-         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set
-         * to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by
-         * the webhook to invalidate the parameter; other values set by the
+         * Always present for
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+         * Required for
+         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+         * state of the parameter. This field can be set to
+         * [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID]
+         * by the webhook to invalidate the parameter; other values set by the
          * webhook will be ignored.
          * 
* @@ -1437,10 +1521,13 @@ public int getStateValue() { * * *
-         * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
-         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set
-         * to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by
-         * the webhook to invalidate the parameter; other values set by the
+         * Always present for
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+         * Required for
+         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+         * state of the parameter. This field can be set to
+         * [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID]
+         * by the webhook to invalidate the parameter; other values set by the
          * webhook will be ignored.
          * 
* @@ -1452,8 +1539,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1461,10 +1548,13 @@ public Builder setStateValue(int value) { * * *
-         * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
-         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set
-         * to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by
-         * the webhook to invalidate the parameter; other values set by the
+         * Always present for
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+         * Required for
+         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+         * state of the parameter. This field can be set to
+         * [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID]
+         * by the webhook to invalidate the parameter; other values set by the
          * webhook will be ignored.
          * 
* @@ -1477,10 +1567,9 @@ public Builder setStateValue(int value) { @java.lang.Override public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState getState() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState result = com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState - .valueOf(state_); + .forNumber(state_); return result == null ? com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState .UNRECOGNIZED @@ -1490,10 +1579,13 @@ public Builder setStateValue(int value) { * * *
-         * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
-         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set
-         * to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by
-         * the webhook to invalidate the parameter; other values set by the
+         * Always present for
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+         * Required for
+         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+         * state of the parameter. This field can be set to
+         * [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID]
+         * by the webhook to invalidate the parameter; other values set by the
          * webhook will be ignored.
          * 
* @@ -1510,7 +1602,7 @@ public Builder setState( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; state_ = value.getNumber(); onChanged(); return this; @@ -1519,10 +1611,13 @@ public Builder setState( * * *
-         * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for
-         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set
-         * to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by
-         * the webhook to invalidate the parameter; other values set by the
+         * Always present for
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest].
+         * Required for
+         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+         * state of the parameter. This field can be set to
+         * [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID]
+         * by the webhook to invalidate the parameter; other values set by the
          * webhook will be ignored.
          * 
* @@ -1533,7 +1628,7 @@ public Builder setState( * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000004); state_ = 0; onChanged(); return this; @@ -1549,9 +1644,11 @@ public Builder clearState() { * * *
-         * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-         * The value of the parameter. This field can be set by the webhook to
-         * change the parameter value.
+         * Optional for both
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+         * value of the parameter. This field can be set by the webhook to change
+         * the parameter value.
          * 
* * .google.protobuf.Value value = 4; @@ -1559,15 +1656,17 @@ public Builder clearState() { * @return Whether the value field is set. */ public boolean hasValue() { - return valueBuilder_ != null || value_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * * *
-         * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-         * The value of the parameter. This field can be set by the webhook to
-         * change the parameter value.
+         * Optional for both
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+         * value of the parameter. This field can be set by the webhook to change
+         * the parameter value.
          * 
* * .google.protobuf.Value value = 4; @@ -1585,9 +1684,11 @@ public com.google.protobuf.Value getValue() { * * *
-         * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-         * The value of the parameter. This field can be set by the webhook to
-         * change the parameter value.
+         * Optional for both
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+         * value of the parameter. This field can be set by the webhook to change
+         * the parameter value.
          * 
* * .google.protobuf.Value value = 4; @@ -1598,20 +1699,22 @@ public Builder setValue(com.google.protobuf.Value value) { throw new NullPointerException(); } value_ = value; - onChanged(); } else { valueBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** * * *
-         * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-         * The value of the parameter. This field can be set by the webhook to
-         * change the parameter value.
+         * Optional for both
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+         * value of the parameter. This field can be set by the webhook to change
+         * the parameter value.
          * 
* * .google.protobuf.Value value = 4; @@ -1619,73 +1722,80 @@ public Builder setValue(com.google.protobuf.Value value) { public Builder setValue(com.google.protobuf.Value.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); - onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** * * *
-         * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-         * The value of the parameter. This field can be set by the webhook to
-         * change the parameter value.
+         * Optional for both
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+         * value of the parameter. This field can be set by the webhook to change
+         * the parameter value.
          * 
* * .google.protobuf.Value value = 4; */ public Builder mergeValue(com.google.protobuf.Value value) { if (valueBuilder_ == null) { - if (value_ != null) { - value_ = com.google.protobuf.Value.newBuilder(value_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && value_ != null + && value_ != com.google.protobuf.Value.getDefaultInstance()) { + getValueBuilder().mergeFrom(value); } else { value_ = value; } - onChanged(); } else { valueBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** * * *
-         * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-         * The value of the parameter. This field can be set by the webhook to
-         * change the parameter value.
+         * Optional for both
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+         * value of the parameter. This field can be set by the webhook to change
+         * the parameter value.
          * 
* * .google.protobuf.Value value = 4; */ public Builder clearValue() { - if (valueBuilder_ == null) { - value_ = null; - onChanged(); - } else { - value_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); valueBuilder_ = null; } - + onChanged(); return this; } /** * * *
-         * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-         * The value of the parameter. This field can be set by the webhook to
-         * change the parameter value.
+         * Optional for both
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+         * value of the parameter. This field can be set by the webhook to change
+         * the parameter value.
          * 
* * .google.protobuf.Value value = 4; */ public com.google.protobuf.Value.Builder getValueBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getValueFieldBuilder().getBuilder(); } @@ -1693,9 +1803,11 @@ public com.google.protobuf.Value.Builder getValueBuilder() { * * *
-         * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-         * The value of the parameter. This field can be set by the webhook to
-         * change the parameter value.
+         * Optional for both
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+         * value of the parameter. This field can be set by the webhook to change
+         * the parameter value.
          * 
* * .google.protobuf.Value value = 4; @@ -1711,9 +1823,11 @@ public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { * * *
-         * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-         * The value of the parameter. This field can be set by the webhook to
-         * change the parameter value.
+         * Optional for both
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+         * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+         * value of the parameter. This field can be set by the webhook to change
+         * the parameter value.
          * 
* * .google.protobuf.Value value = 4; @@ -1740,7 +1854,9 @@ public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { * * *
-         * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+         * Optional for
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored
+         * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
          * Indicates if the parameter value was just collected on the last
          * conversation turn.
          * 
@@ -1757,7 +1873,9 @@ public boolean getJustCollected() { * * *
-         * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+         * Optional for
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored
+         * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
          * Indicates if the parameter value was just collected on the last
          * conversation turn.
          * 
@@ -1770,6 +1888,7 @@ public boolean getJustCollected() { public Builder setJustCollected(boolean value) { justCollected_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1777,7 +1896,9 @@ public Builder setJustCollected(boolean value) { * * *
-         * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+         * Optional for
+         * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored
+         * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
          * Indicates if the parameter value was just collected on the last
          * conversation turn.
          * 
@@ -1787,7 +1908,7 @@ public Builder setJustCollected(boolean value) { * @return This builder for chaining. */ public Builder clearJustCollected() { - + bitField0_ = (bitField0_ & ~0x00000010); justCollected_ = false; onChanged(); return this; @@ -1861,15 +1982,19 @@ public com.google.protobuf.Parser getParserForType() { } public static final int PARAMETER_INFO_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List parameterInfo_; /** * * *
-     * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The parameters contained in the form. Note that the webhook cannot add
-     * or remove any form parameter.
+     * Optional for both
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * parameters contained in the form. Note that the webhook cannot add or
+     * remove any form parameter.
      * 
* * @@ -1885,9 +2010,11 @@ public com.google.protobuf.Parser getParserForType() { * * *
-     * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The parameters contained in the form. Note that the webhook cannot add
-     * or remove any form parameter.
+     * Optional for both
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * parameters contained in the form. Note that the webhook cannot add or
+     * remove any form parameter.
      * 
* * @@ -1904,9 +2031,11 @@ public com.google.protobuf.Parser getParserForType() { * * *
-     * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The parameters contained in the form. Note that the webhook cannot add
-     * or remove any form parameter.
+     * Optional for both
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * parameters contained in the form. Note that the webhook cannot add or
+     * remove any form parameter.
      * 
* * @@ -1921,9 +2050,11 @@ public int getParameterInfoCount() { * * *
-     * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The parameters contained in the form. Note that the webhook cannot add
-     * or remove any form parameter.
+     * Optional for both
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * parameters contained in the form. Note that the webhook cannot add or
+     * remove any form parameter.
      * 
* * @@ -1939,9 +2070,11 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo getPara * * *
-     * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The parameters contained in the form. Note that the webhook cannot add
-     * or remove any form parameter.
+     * Optional for both
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * parameters contained in the form. Note that the webhook cannot add or
+     * remove any form parameter.
      * 
* * @@ -2156,6 +2289,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (parameterInfoBuilder_ == null) { parameterInfo_ = java.util.Collections.emptyList(); } else { @@ -2190,7 +2324,16 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo build() { public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo buildPartial() { com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo result = new com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo result) { if (parameterInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { parameterInfo_ = java.util.Collections.unmodifiableList(parameterInfo_); @@ -2200,8 +2343,10 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo buildPartial() { } else { result.parameterInfo_ = parameterInfoBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -2362,9 +2507,11 @@ private void ensureParameterInfoIsMutable() { * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The parameters contained in the form. Note that the webhook cannot add
-       * or remove any form parameter.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * parameters contained in the form. Note that the webhook cannot add or
+       * remove any form parameter.
        * 
* * @@ -2383,9 +2530,11 @@ private void ensureParameterInfoIsMutable() { * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The parameters contained in the form. Note that the webhook cannot add
-       * or remove any form parameter.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * parameters contained in the form. Note that the webhook cannot add or
+       * remove any form parameter.
        * 
* * @@ -2403,9 +2552,11 @@ public int getParameterInfoCount() { * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The parameters contained in the form. Note that the webhook cannot add
-       * or remove any form parameter.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * parameters contained in the form. Note that the webhook cannot add or
+       * remove any form parameter.
        * 
* * @@ -2424,9 +2575,11 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo getPara * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The parameters contained in the form. Note that the webhook cannot add
-       * or remove any form parameter.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * parameters contained in the form. Note that the webhook cannot add or
+       * remove any form parameter.
        * 
* * @@ -2451,9 +2604,11 @@ public Builder setParameterInfo( * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The parameters contained in the form. Note that the webhook cannot add
-       * or remove any form parameter.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * parameters contained in the form. Note that the webhook cannot add or
+       * remove any form parameter.
        * 
* * @@ -2477,9 +2632,11 @@ public Builder setParameterInfo( * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The parameters contained in the form. Note that the webhook cannot add
-       * or remove any form parameter.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * parameters contained in the form. Note that the webhook cannot add or
+       * remove any form parameter.
        * 
* * @@ -2504,9 +2661,11 @@ public Builder addParameterInfo( * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The parameters contained in the form. Note that the webhook cannot add
-       * or remove any form parameter.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * parameters contained in the form. Note that the webhook cannot add or
+       * remove any form parameter.
        * 
* * @@ -2531,9 +2690,11 @@ public Builder addParameterInfo( * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The parameters contained in the form. Note that the webhook cannot add
-       * or remove any form parameter.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * parameters contained in the form. Note that the webhook cannot add or
+       * remove any form parameter.
        * 
* * @@ -2556,9 +2717,11 @@ public Builder addParameterInfo( * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The parameters contained in the form. Note that the webhook cannot add
-       * or remove any form parameter.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * parameters contained in the form. Note that the webhook cannot add or
+       * remove any form parameter.
        * 
* * @@ -2582,9 +2745,11 @@ public Builder addParameterInfo( * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The parameters contained in the form. Note that the webhook cannot add
-       * or remove any form parameter.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * parameters contained in the form. Note that the webhook cannot add or
+       * remove any form parameter.
        * 
* * @@ -2608,9 +2773,11 @@ public Builder addAllParameterInfo( * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The parameters contained in the form. Note that the webhook cannot add
-       * or remove any form parameter.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * parameters contained in the form. Note that the webhook cannot add or
+       * remove any form parameter.
        * 
* * @@ -2631,9 +2798,11 @@ public Builder clearParameterInfo() { * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The parameters contained in the form. Note that the webhook cannot add
-       * or remove any form parameter.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * parameters contained in the form. Note that the webhook cannot add or
+       * remove any form parameter.
        * 
* * @@ -2654,9 +2823,11 @@ public Builder removeParameterInfo(int index) { * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The parameters contained in the form. Note that the webhook cannot add
-       * or remove any form parameter.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * parameters contained in the form. Note that the webhook cannot add or
+       * remove any form parameter.
        * 
* * @@ -2671,9 +2842,11 @@ public Builder removeParameterInfo(int index) { * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The parameters contained in the form. Note that the webhook cannot add
-       * or remove any form parameter.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * parameters contained in the form. Note that the webhook cannot add or
+       * remove any form parameter.
        * 
* * @@ -2692,9 +2865,11 @@ public Builder removeParameterInfo(int index) { * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The parameters contained in the form. Note that the webhook cannot add
-       * or remove any form parameter.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * parameters contained in the form. Note that the webhook cannot add or
+       * remove any form parameter.
        * 
* * @@ -2714,9 +2889,11 @@ public Builder removeParameterInfo(int index) { * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The parameters contained in the form. Note that the webhook cannot add
-       * or remove any form parameter.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * parameters contained in the form. Note that the webhook cannot add or
+       * remove any form parameter.
        * 
* * @@ -2734,9 +2911,11 @@ public Builder removeParameterInfo(int index) { * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The parameters contained in the form. Note that the webhook cannot add
-       * or remove any form parameter.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * parameters contained in the form. Note that the webhook cannot add or
+       * remove any form parameter.
        * 
* * @@ -2755,9 +2934,11 @@ public Builder removeParameterInfo(int index) { * * *
-       * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-       * The parameters contained in the form. Note that the webhook cannot add
-       * or remove any form parameter.
+       * Optional for both
+       * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+       * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+       * parameters contained in the form. Note that the webhook cannot add or
+       * remove any form parameter.
        * 
* * @@ -2855,15 +3036,19 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo getDefaultInstanceFor } public static final int CURRENT_PAGE_FIELD_NUMBER = 1; - private volatile java.lang.Object currentPage_; + + @SuppressWarnings("serial") + private volatile java.lang.Object currentPage_ = ""; /** * * *
-   * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * The unique identifier of the current page.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>/pages/<Page ID>`.
+   * Always present for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+   * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+   * unique identifier of the current page. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page
+   * ID>`.
    * 
* * string current_page = 1 [(.google.api.resource_reference) = { ... } @@ -2886,10 +3071,12 @@ public java.lang.String getCurrentPage() { * * *
-   * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * The unique identifier of the current page.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>/pages/<Page ID>`.
+   * Always present for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+   * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+   * unique identifier of the current page. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page
+   * ID>`.
    * 
* * string current_page = 1 [(.google.api.resource_reference) = { ... } @@ -2910,13 +3097,17 @@ public com.google.protobuf.ByteString getCurrentPageBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * *
-   * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * The display name of the current page.
+   * Always present for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+   * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+   * display name of the current page.
    * 
* * string display_name = 4; @@ -2939,8 +3130,10 @@ public java.lang.String getDisplayName() { * * *
-   * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * The display name of the current page.
+   * Always present for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+   * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+   * display name of the current page.
    * 
* * string display_name = 4; @@ -2966,7 +3159,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+   * Optional for both
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+   * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
    * Information about the form.
    * 
* @@ -2982,7 +3177,9 @@ public boolean hasFormInfo() { * * *
-   * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+   * Optional for both
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+   * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
    * Information about the form.
    * 
* @@ -3000,7 +3197,9 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo getFormInfo() { * * *
-   * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+   * Optional for both
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+   * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
    * Information about the form.
    * 
* @@ -3008,7 +3207,9 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo getFormInfo() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfoOrBuilder getFormInfoOrBuilder() { - return getFormInfo(); + return formInfo_ == null + ? com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.getDefaultInstance() + : formInfo_; } private byte memoizedIsInitialized = -1; @@ -3231,14 +3432,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; currentPage_ = ""; - displayName_ = ""; - - if (formInfoBuilder_ == null) { - formInfo_ = null; - } else { - formInfo_ = null; + formInfo_ = null; + if (formInfoBuilder_ != null) { + formInfoBuilder_.dispose(); formInfoBuilder_ = null; } return this; @@ -3268,17 +3467,26 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo build() { public com.google.cloud.dialogflow.cx.v3.PageInfo buildPartial() { com.google.cloud.dialogflow.cx.v3.PageInfo result = new com.google.cloud.dialogflow.cx.v3.PageInfo(this); - result.currentPage_ = currentPage_; - result.displayName_ = displayName_; - if (formInfoBuilder_ == null) { - result.formInfo_ = formInfo_; - } else { - result.formInfo_ = formInfoBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.PageInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.currentPage_ = currentPage_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.formInfo_ = formInfoBuilder_ == null ? formInfo_ : formInfoBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3326,10 +3534,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.PageInfo other) { if (other == com.google.cloud.dialogflow.cx.v3.PageInfo.getDefaultInstance()) return this; if (!other.getCurrentPage().isEmpty()) { currentPage_ = other.currentPage_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasFormInfo()) { @@ -3364,19 +3574,19 @@ public Builder mergeFrom( case 10: { currentPage_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: { input.readMessage(getFormInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 34 default: @@ -3396,15 +3606,19 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object currentPage_ = ""; /** * * *
-     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The unique identifier of the current page.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/pages/<Page ID>`.
+     * Always present for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * unique identifier of the current page. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page
+     * ID>`.
      * 
* * string current_page = 1 [(.google.api.resource_reference) = { ... } @@ -3426,10 +3640,12 @@ public java.lang.String getCurrentPage() { * * *
-     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The unique identifier of the current page.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/pages/<Page ID>`.
+     * Always present for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * unique identifier of the current page. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page
+     * ID>`.
      * 
* * string current_page = 1 [(.google.api.resource_reference) = { ... } @@ -3451,10 +3667,12 @@ public com.google.protobuf.ByteString getCurrentPageBytes() { * * *
-     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The unique identifier of the current page.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/pages/<Page ID>`.
+     * Always present for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * unique identifier of the current page. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page
+     * ID>`.
      * 
* * string current_page = 1 [(.google.api.resource_reference) = { ... } @@ -3466,8 +3684,8 @@ public Builder setCurrentPage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - currentPage_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3475,10 +3693,12 @@ public Builder setCurrentPage(java.lang.String value) { * * *
-     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The unique identifier of the current page.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/pages/<Page ID>`.
+     * Always present for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * unique identifier of the current page. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page
+     * ID>`.
      * 
* * string current_page = 1 [(.google.api.resource_reference) = { ... } @@ -3486,8 +3706,8 @@ public Builder setCurrentPage(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCurrentPage() { - currentPage_ = getDefaultInstance().getCurrentPage(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3495,10 +3715,12 @@ public Builder clearCurrentPage() { * * *
-     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The unique identifier of the current page.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/pages/<Page ID>`.
+     * Always present for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * unique identifier of the current page. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page
+     * ID>`.
      * 
* * string current_page = 1 [(.google.api.resource_reference) = { ... } @@ -3511,8 +3733,8 @@ public Builder setCurrentPageBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - currentPage_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3522,8 +3744,10 @@ public Builder setCurrentPageBytes(com.google.protobuf.ByteString value) { * * *
-     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The display name of the current page.
+     * Always present for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * display name of the current page.
      * 
* * string display_name = 4; @@ -3545,8 +3769,10 @@ public java.lang.String getDisplayName() { * * *
-     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The display name of the current page.
+     * Always present for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * display name of the current page.
      * 
* * string display_name = 4; @@ -3568,8 +3794,10 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The display name of the current page.
+     * Always present for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * display name of the current page.
      * 
* * string display_name = 4; @@ -3581,8 +3809,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3590,8 +3818,10 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The display name of the current page.
+     * Always present for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * display name of the current page.
      * 
* * string display_name = 4; @@ -3599,8 +3829,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3608,8 +3838,10 @@ public Builder clearDisplayName() { * * *
-     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The display name of the current page.
+     * Always present for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * display name of the current page.
      * 
* * string display_name = 4; @@ -3622,8 +3854,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3638,7 +3870,9 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * Optional for both
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
      * Information about the form.
      * 
* @@ -3647,13 +3881,15 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the formInfo field is set. */ public boolean hasFormInfo() { - return formInfoBuilder_ != null || formInfo_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * * *
-     * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * Optional for both
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
      * Information about the form.
      * 
* @@ -3674,7 +3910,9 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo getFormInfo() { * * *
-     * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * Optional for both
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
      * Information about the form.
      * 
* @@ -3686,18 +3924,20 @@ public Builder setFormInfo(com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo v throw new NullPointerException(); } formInfo_ = value; - onChanged(); } else { formInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** * * *
-     * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * Optional for both
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
      * Information about the form.
      * 
* @@ -3707,18 +3947,20 @@ public Builder setFormInfo( com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.Builder builderForValue) { if (formInfoBuilder_ == null) { formInfo_ = builderForValue.build(); - onChanged(); } else { formInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** * * *
-     * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * Optional for both
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
      * Information about the form.
      * 
* @@ -3726,54 +3968,57 @@ public Builder setFormInfo( */ public Builder mergeFormInfo(com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo value) { if (formInfoBuilder_ == null) { - if (formInfo_ != null) { - formInfo_ = - com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.newBuilder(formInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && formInfo_ != null + && formInfo_ + != com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.getDefaultInstance()) { + getFormInfoBuilder().mergeFrom(value); } else { formInfo_ = value; } - onChanged(); } else { formInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** * * *
-     * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * Optional for both
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
      * Information about the form.
      * 
* * .google.cloud.dialogflow.cx.v3.PageInfo.FormInfo form_info = 3; */ public Builder clearFormInfo() { - if (formInfoBuilder_ == null) { - formInfo_ = null; - onChanged(); - } else { - formInfo_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + formInfo_ = null; + if (formInfoBuilder_ != null) { + formInfoBuilder_.dispose(); formInfoBuilder_ = null; } - + onChanged(); return this; } /** * * *
-     * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * Optional for both
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
      * Information about the form.
      * 
* * .google.cloud.dialogflow.cx.v3.PageInfo.FormInfo form_info = 3; */ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.Builder getFormInfoBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getFormInfoFieldBuilder().getBuilder(); } @@ -3781,7 +4026,9 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.Builder getFormInfoBu * * *
-     * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * Optional for both
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
      * Information about the form.
      * 
* @@ -3800,7 +4047,9 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo.FormInfoOrBuilder getFormInfoO * * *
-     * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * Optional for both
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
      * Information about the form.
      * 
* diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfoOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfoOrBuilder.java index 8099256fe4b1..8c409c78ebc2 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfoOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageInfoOrBuilder.java @@ -27,10 +27,12 @@ public interface PageInfoOrBuilder * * *
-   * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * The unique identifier of the current page.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>/pages/<Page ID>`.
+   * Always present for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+   * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+   * unique identifier of the current page. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page
+   * ID>`.
    * 
* * string current_page = 1 [(.google.api.resource_reference) = { ... } @@ -42,10 +44,12 @@ public interface PageInfoOrBuilder * * *
-   * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * The unique identifier of the current page.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>/pages/<Page ID>`.
+   * Always present for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+   * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+   * unique identifier of the current page. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page
+   * ID>`.
    * 
* * string current_page = 1 [(.google.api.resource_reference) = { ... } @@ -58,8 +62,10 @@ public interface PageInfoOrBuilder * * *
-   * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * The display name of the current page.
+   * Always present for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+   * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+   * display name of the current page.
    * 
* * string display_name = 4; @@ -71,8 +77,10 @@ public interface PageInfoOrBuilder * * *
-   * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * The display name of the current page.
+   * Always present for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+   * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+   * display name of the current page.
    * 
* * string display_name = 4; @@ -85,7 +93,9 @@ public interface PageInfoOrBuilder * * *
-   * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+   * Optional for both
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+   * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
    * Information about the form.
    * 
* @@ -98,7 +108,9 @@ public interface PageInfoOrBuilder * * *
-   * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+   * Optional for both
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+   * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
    * Information about the form.
    * 
* @@ -111,7 +123,9 @@ public interface PageInfoOrBuilder * * *
-   * Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+   * Optional for both
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and
+   * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
    * Information about the form.
    * 
* diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageOrBuilder.java index 618a68dd283a..13de0ee63a7e 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageOrBuilder.java @@ -28,7 +28,9 @@ public interface PageOrBuilder * *
    * The unique identifier of the page.
-   * Required for the [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
+   * Required for the
+   * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method.
+   * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
    * populates the name automatically.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/flows/<Flow ID>/pages/<Page ID>`.
@@ -44,7 +46,9 @@ public interface PageOrBuilder
    *
    * 
    * The unique identifier of the page.
-   * Required for the [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method. [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
+   * Required for the
+   * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage] method.
+   * [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]
    * populates the name automatically.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/flows/<Flow ID>/pages/<Page ID>`.
@@ -158,8 +162,10 @@ public interface PageOrBuilder
    *
    *
    * 
-   * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
-   * with the page. Transition route groups must be unique within a page.
+   * Ordered list of
+   * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+   * associated with the page. Transition route groups must be unique within a
+   * page.
    * *   If multiple transition routes within a page scope refer to the same
    *     intent, then the precedence order is: page's transition route -> page's
    *     transition route group -> flow's transition routes.
@@ -179,8 +185,10 @@ public interface PageOrBuilder
    *
    *
    * 
-   * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
-   * with the page. Transition route groups must be unique within a page.
+   * Ordered list of
+   * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+   * associated with the page. Transition route groups must be unique within a
+   * page.
    * *   If multiple transition routes within a page scope refer to the same
    *     intent, then the precedence order is: page's transition route -> page's
    *     transition route group -> flow's transition routes.
@@ -200,8 +208,10 @@ public interface PageOrBuilder
    *
    *
    * 
-   * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
-   * with the page. Transition route groups must be unique within a page.
+   * Ordered list of
+   * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+   * associated with the page. Transition route groups must be unique within a
+   * page.
    * *   If multiple transition routes within a page scope refer to the same
    *     intent, then the precedence order is: page's transition route -> page's
    *     transition route group -> flow's transition routes.
@@ -222,8 +232,10 @@ public interface PageOrBuilder
    *
    *
    * 
-   * Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated
-   * with the page. Transition route groups must be unique within a page.
+   * Ordered list of
+   * [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]
+   * associated with the page. Transition route groups must be unique within a
+   * page.
    * *   If multiple transition routes within a page scope refer to the same
    *     intent, then the precedence order is: page's transition route -> page's
    *     transition route group -> flow's transition routes.
@@ -252,16 +264,19 @@ public interface PageOrBuilder
    * following order:
    * *   TransitionRoutes defined in the page with intent specified.
    * *   TransitionRoutes defined in the
-   *     [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent
-   *     specified.
+   *     [transition route
+   *     groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+   *     with intent specified.
    * *   TransitionRoutes defined in flow with intent specified.
    * *   TransitionRoutes defined in the
-   *     [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent
-   *     specified.
+   *     [transition route
+   *     groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups]
+   *     with intent specified.
    * *   TransitionRoutes defined in the page with only condition specified.
    * *   TransitionRoutes defined in the
-   *     [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only
-   *     condition specified.
+   *     [transition route
+   *     groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups]
+   *     with only condition specified.
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -278,16 +293,19 @@ public interface PageOrBuilder * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -304,16 +322,19 @@ public interface PageOrBuilder * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -330,16 +351,19 @@ public interface PageOrBuilder * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; @@ -357,16 +381,19 @@ public interface PageOrBuilder * following order: * * TransitionRoutes defined in the page with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in flow with intent specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - * specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + * with intent specified. * * TransitionRoutes defined in the page with only condition specified. * * TransitionRoutes defined in the - * [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - * condition specified. + * [transition route + * groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + * with only condition specified. *
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 9; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageProto.java index 8a0a9771cfe8..0bce07703bdf 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/PageProto.java @@ -177,12 +177,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ents/*/flows/*/pages/*}\332A\004name\032x\312A\031dialo" + "gflow.googleapis.com\322AYhttps://www.googl" + "eapis.com/auth/cloud-platform,https://ww" - + "w.googleapis.com/auth/dialogflowB\275\001\n!com" + + "w.googleapis.com/auth/dialogflowB\257\001\n!com" + ".google.cloud.dialogflow.cx.v3B\tPageProt" - + "oP\001Z?google.golang.org/genproto/googleap" - + "is/cloud/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035G" - + "oogle.Cloud.Dialogflow.Cx.V3\352\002!Google::C" - + "loud::Dialogflow::CX::V3b\006proto3" + + "oP\001Z1cloud.google.com/go/dialogflow/cx/a" + + "piv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Di" + + "alogflow.Cx.V3\352\002!Google::Cloud::Dialogfl" + + "ow::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryInput.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryInput.java index 7c9e1a004f46..91cb6d0cc982 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryInput.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryInput.java @@ -383,7 +383,9 @@ public com.google.cloud.dialogflow.cx.v3.DtmfInputOrBuilder getDtmfOrBuilder() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 4; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -722,6 +724,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (textBuilder_ != null) { textBuilder_.clear(); } @@ -738,7 +741,6 @@ public Builder clear() { dtmfBuilder_.clear(); } languageCode_ = ""; - inputCase_ = 0; input_ = null; return this; @@ -768,45 +770,39 @@ public com.google.cloud.dialogflow.cx.v3.QueryInput build() { public com.google.cloud.dialogflow.cx.v3.QueryInput buildPartial() { com.google.cloud.dialogflow.cx.v3.QueryInput result = new com.google.cloud.dialogflow.cx.v3.QueryInput(this); - if (inputCase_ == 2) { - if (textBuilder_ == null) { - result.input_ = input_; - } else { - result.input_ = textBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (inputCase_ == 3) { - if (intentBuilder_ == null) { - result.input_ = input_; - } else { - result.input_ = intentBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.QueryInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.languageCode_ = languageCode_; } - if (inputCase_ == 5) { - if (audioBuilder_ == null) { - result.input_ = input_; - } else { - result.input_ = audioBuilder_.build(); - } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.QueryInput result) { + result.inputCase_ = inputCase_; + result.input_ = this.input_; + if (inputCase_ == 2 && textBuilder_ != null) { + result.input_ = textBuilder_.build(); } - if (inputCase_ == 6) { - if (eventBuilder_ == null) { - result.input_ = input_; - } else { - result.input_ = eventBuilder_.build(); - } + if (inputCase_ == 3 && intentBuilder_ != null) { + result.input_ = intentBuilder_.build(); } - if (inputCase_ == 7) { - if (dtmfBuilder_ == null) { - result.input_ = input_; - } else { - result.input_ = dtmfBuilder_.build(); - } + if (inputCase_ == 5 && audioBuilder_ != null) { + result.input_ = audioBuilder_.build(); + } + if (inputCase_ == 6 && eventBuilder_ != null) { + result.input_ = eventBuilder_.build(); + } + if (inputCase_ == 7 && dtmfBuilder_ != null) { + result.input_ = dtmfBuilder_.build(); } - result.languageCode_ = languageCode_; - result.inputCase_ = inputCase_; - onBuilt(); - return result; } @java.lang.Override @@ -856,6 +852,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryInput other) { if (other == com.google.cloud.dialogflow.cx.v3.QueryInput.getDefaultInstance()) return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000020; onChanged(); } switch (other.getInputCase()) { @@ -930,7 +927,7 @@ public Builder mergeFrom( case 34: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 34 case 42: @@ -982,6 +979,8 @@ public Builder clearInput() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TextInput, com.google.cloud.dialogflow.cx.v3.TextInput.Builder, @@ -1187,7 +1186,6 @@ public com.google.cloud.dialogflow.cx.v3.TextInputOrBuilder getTextOrBuilder() { } inputCase_ = 2; onChanged(); - ; return textBuilder_; } @@ -1397,7 +1395,6 @@ public com.google.cloud.dialogflow.cx.v3.IntentInputOrBuilder getIntentOrBuilder } inputCase_ = 3; onChanged(); - ; return intentBuilder_; } @@ -1606,7 +1603,6 @@ public com.google.cloud.dialogflow.cx.v3.AudioInputOrBuilder getAudioOrBuilder() } inputCase_ = 5; onChanged(); - ; return audioBuilder_; } @@ -1815,7 +1811,6 @@ public com.google.cloud.dialogflow.cx.v3.EventInputOrBuilder getEventOrBuilder() } inputCase_ = 6; onChanged(); - ; return eventBuilder_; } @@ -2024,7 +2019,6 @@ public com.google.cloud.dialogflow.cx.v3.DtmfInputOrBuilder getDtmfOrBuilder() { } inputCase_ = 7; onChanged(); - ; return dtmfBuilder_; } @@ -2098,8 +2092,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2118,8 +2112,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2143,8 +2137,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java index bba29c8343ce..77eff9186411 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParameters.java @@ -42,6 +42,7 @@ private QueryParameters() { sessionEntityTypes_ = java.util.Collections.emptyList(); currentPage_ = ""; flowVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + channel_ = ""; } @java.lang.Override @@ -82,7 +83,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int TIME_ZONE_FIELD_NUMBER = 1; - private volatile java.lang.Object timeZone_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeZone_ = ""; /** * * @@ -179,10 +182,12 @@ public com.google.type.LatLng getGeoLocation() { */ @java.lang.Override public com.google.type.LatLngOrBuilder getGeoLocationOrBuilder() { - return getGeoLocation(); + return geoLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : geoLocation_; } public static final int SESSION_ENTITY_TYPES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List sessionEntityTypes_; /** * @@ -347,7 +352,7 @@ public com.google.protobuf.Struct getPayload() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { - return getPayload(); + return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_; } public static final int PARAMETERS_FIELD_NUMBER = 5; @@ -441,26 +446,29 @@ public com.google.protobuf.Struct getParameters() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { - return getParameters(); + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; } public static final int CURRENT_PAGE_FIELD_NUMBER = 6; - private volatile java.lang.Object currentPage_; + + @SuppressWarnings("serial") + private volatile java.lang.Object currentPage_ = ""; /** * * *
-   * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
-   * page][QueryResult.current_page] in the session.
+   * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to
+   * override the [current page][QueryResult.current_page] in the session.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/flows/<Flow ID>/pages/<Page ID>`.
    * If `current_page` is specified, the previous state of the session will be
    * ignored by Dialogflow, including the [previous
    * page][QueryResult.current_page] and the [previous session
    * parameters][QueryResult.parameters].
-   * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
-   * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
-   * direct a session to a specific state.
+   * In most cases,
+   * [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page]
+   * and [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters]
+   * should be configured together to direct a session to a specific state.
    * 
* * string current_page = 6 [(.google.api.resource_reference) = { ... } @@ -483,17 +491,18 @@ public java.lang.String getCurrentPage() { * * *
-   * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
-   * page][QueryResult.current_page] in the session.
+   * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to
+   * override the [current page][QueryResult.current_page] in the session.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/flows/<Flow ID>/pages/<Page ID>`.
    * If `current_page` is specified, the previous state of the session will be
    * ignored by Dialogflow, including the [previous
    * page][QueryResult.current_page] and the [previous session
    * parameters][QueryResult.parameters].
-   * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
-   * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
-   * direct a session to a specific state.
+   * In most cases,
+   * [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page]
+   * and [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters]
+   * should be configured together to direct a session to a specific state.
    * 
* * string current_page = 6 [(.google.api.resource_reference) = { ... } @@ -514,7 +523,7 @@ public com.google.protobuf.ByteString getCurrentPageBytes() { } public static final int DISABLE_WEBHOOK_FIELD_NUMBER = 7; - private boolean disableWebhook_; + private boolean disableWebhook_ = false; /** * * @@ -532,7 +541,7 @@ public boolean getDisableWebhook() { } public static final int ANALYZE_QUERY_TEXT_SENTIMENT_FIELD_NUMBER = 8; - private boolean analyzeQueryTextSentiment_; + private boolean analyzeQueryTextSentiment_ = false; /** * * @@ -563,6 +572,7 @@ private static final class WebhookHeadersDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField webhookHeaders_; private com.google.protobuf.MapField @@ -643,8 +653,10 @@ public java.util.Map getWebhookHeadersMap() * map<string, string> webhook_headers = 10; */ @java.lang.Override - public java.lang.String getWebhookHeadersOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getWebhookHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -680,6 +692,8 @@ public java.lang.String getWebhookHeadersOrThrow(java.lang.String key) { } public static final int FLOW_VERSIONS_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList flowVersions_; /** * @@ -764,6 +778,77 @@ public com.google.protobuf.ByteString getFlowVersionsBytes(int index) { return flowVersions_.getByteString(index); } + public static final int CHANNEL_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object channel_ = ""; + /** + * + * + *
+   * The channel which this query is for.
+   * If specified, only the
+   * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] associated
+   * with the channel will be returned. If no
+   * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] is
+   * associated with the channel, it falls back to the
+   * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+   * unspecified channel.
+   * If unspecified, the
+   * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+   * unspecified channel will be returned.
+   * 
+ * + * string channel = 15; + * + * @return The channel. + */ + @java.lang.Override + public java.lang.String getChannel() { + java.lang.Object ref = channel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + channel_ = s; + return s; + } + } + /** + * + * + *
+   * The channel which this query is for.
+   * If specified, only the
+   * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] associated
+   * with the channel will be returned. If no
+   * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] is
+   * associated with the channel, it falls back to the
+   * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+   * unspecified channel.
+   * If unspecified, the
+   * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+   * unspecified channel will be returned.
+   * 
+ * + * string channel = 15; + * + * @return The bytes for channel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChannelBytes() { + java.lang.Object ref = channel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + channel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -807,6 +892,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < flowVersions_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, flowVersions_.getRaw(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, channel_); + } getUnknownFields().writeTo(output); } @@ -859,6 +947,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getFlowVersionsList().size(); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, channel_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -894,6 +985,7 @@ public boolean equals(final java.lang.Object obj) { if (getAnalyzeQueryTextSentiment() != other.getAnalyzeQueryTextSentiment()) return false; if (!internalGetWebhookHeaders().equals(other.internalGetWebhookHeaders())) return false; if (!getFlowVersionsList().equals(other.getFlowVersionsList())) return false; + if (!getChannel().equals(other.getChannel())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -937,6 +1029,8 @@ public int hashCode() { hash = (37 * hash) + FLOW_VERSIONS_FIELD_NUMBER; hash = (53 * hash) + getFlowVersionsList().hashCode(); } + hash = (37 * hash) + CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + getChannel().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1095,12 +1189,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; timeZone_ = ""; - - if (geoLocationBuilder_ == null) { - geoLocation_ = null; - } else { - geoLocation_ = null; + geoLocation_ = null; + if (geoLocationBuilder_ != null) { + geoLocationBuilder_.dispose(); geoLocationBuilder_ = null; } if (sessionEntityTypesBuilder_ == null) { @@ -1109,28 +1202,24 @@ public Builder clear() { sessionEntityTypes_ = null; sessionEntityTypesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (payloadBuilder_ == null) { - payload_ = null; - } else { - payload_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); payloadBuilder_ = null; } - if (parametersBuilder_ == null) { - parameters_ = null; - } else { - parameters_ = null; + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } currentPage_ = ""; - disableWebhook_ = false; - analyzeQueryTextSentiment_ = false; - internalGetMutableWebhookHeaders().clear(); flowVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); + channel_ = ""; return this; } @@ -1158,44 +1247,63 @@ public com.google.cloud.dialogflow.cx.v3.QueryParameters build() { public com.google.cloud.dialogflow.cx.v3.QueryParameters buildPartial() { com.google.cloud.dialogflow.cx.v3.QueryParameters result = new com.google.cloud.dialogflow.cx.v3.QueryParameters(this); - int from_bitField0_ = bitField0_; - result.timeZone_ = timeZone_; - if (geoLocationBuilder_ == null) { - result.geoLocation_ = geoLocation_; - } else { - result.geoLocation_ = geoLocationBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.QueryParameters result) { if (sessionEntityTypesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { sessionEntityTypes_ = java.util.Collections.unmodifiableList(sessionEntityTypes_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.sessionEntityTypes_ = sessionEntityTypes_; } else { result.sessionEntityTypes_ = sessionEntityTypesBuilder_.build(); } - if (payloadBuilder_ == null) { - result.payload_ = payload_; - } else { - result.payload_ = payloadBuilder_.build(); - } - if (parametersBuilder_ == null) { - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); - } - result.currentPage_ = currentPage_; - result.disableWebhook_ = disableWebhook_; - result.analyzeQueryTextSentiment_ = analyzeQueryTextSentiment_; - result.webhookHeaders_ = internalGetWebhookHeaders(); - result.webhookHeaders_.makeImmutable(); - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { flowVersions_ = flowVersions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); } result.flowVersions_ = flowVersions_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.QueryParameters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timeZone_ = timeZone_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.geoLocation_ = + geoLocationBuilder_ == null ? geoLocation_ : geoLocationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.payload_ = payloadBuilder_ == null ? payload_ : payloadBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.currentPage_ = currentPage_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.disableWebhook_ = disableWebhook_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.analyzeQueryTextSentiment_ = analyzeQueryTextSentiment_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.webhookHeaders_ = internalGetWebhookHeaders(); + result.webhookHeaders_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.channel_ = channel_; + } } @java.lang.Override @@ -1246,6 +1354,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryParameters other return this; if (!other.getTimeZone().isEmpty()) { timeZone_ = other.timeZone_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasGeoLocation()) { @@ -1255,7 +1364,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryParameters other if (!other.sessionEntityTypes_.isEmpty()) { if (sessionEntityTypes_.isEmpty()) { sessionEntityTypes_ = other.sessionEntityTypes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureSessionEntityTypesIsMutable(); sessionEntityTypes_.addAll(other.sessionEntityTypes_); @@ -1268,7 +1377,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryParameters other sessionEntityTypesBuilder_.dispose(); sessionEntityTypesBuilder_ = null; sessionEntityTypes_ = other.sessionEntityTypes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); sessionEntityTypesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSessionEntityTypesFieldBuilder() @@ -1286,6 +1395,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryParameters other } if (!other.getCurrentPage().isEmpty()) { currentPage_ = other.currentPage_; + bitField0_ |= 0x00000020; onChanged(); } if (other.getDisableWebhook() != false) { @@ -1295,16 +1405,22 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryParameters other setAnalyzeQueryTextSentiment(other.getAnalyzeQueryTextSentiment()); } internalGetMutableWebhookHeaders().mergeFrom(other.internalGetWebhookHeaders()); + bitField0_ |= 0x00000100; if (!other.flowVersions_.isEmpty()) { if (flowVersions_.isEmpty()) { flowVersions_ = other.flowVersions_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureFlowVersionsIsMutable(); flowVersions_.addAll(other.flowVersions_); } onChanged(); } + if (!other.getChannel().isEmpty()) { + channel_ = other.channel_; + bitField0_ |= 0x00000400; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1334,13 +1450,13 @@ public Builder mergeFrom( case 10: { timeZone_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getGeoLocationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -1360,31 +1476,31 @@ public Builder mergeFrom( case 34: { input.readMessage(getPayloadFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { currentPage_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 case 56: { disableWebhook_ = input.readBool(); - + bitField0_ |= 0x00000040; break; } // case 56 case 64: { analyzeQueryTextSentiment_ = input.readBool(); - + bitField0_ |= 0x00000080; break; } // case 64 case 82: @@ -1396,6 +1512,7 @@ public Builder mergeFrom( internalGetMutableWebhookHeaders() .getMutableMap() .put(webhookHeaders__.getKey(), webhookHeaders__.getValue()); + bitField0_ |= 0x00000100; break; } // case 82 case 114: @@ -1405,6 +1522,12 @@ public Builder mergeFrom( flowVersions_.add(s); break; } // case 114 + case 122: + { + channel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 122 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1494,8 +1617,8 @@ public Builder setTimeZone(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeZone_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1514,8 +1637,8 @@ public Builder setTimeZone(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeZone() { - timeZone_ = getDefaultInstance().getTimeZone(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1539,8 +1662,8 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeZone_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1561,7 +1684,7 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { * @return Whether the geoLocation field is set. */ public boolean hasGeoLocation() { - return geoLocationBuilder_ != null || geoLocation_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1596,11 +1719,11 @@ public Builder setGeoLocation(com.google.type.LatLng value) { throw new NullPointerException(); } geoLocation_ = value; - onChanged(); } else { geoLocationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1615,11 +1738,11 @@ public Builder setGeoLocation(com.google.type.LatLng value) { public Builder setGeoLocation(com.google.type.LatLng.Builder builderForValue) { if (geoLocationBuilder_ == null) { geoLocation_ = builderForValue.build(); - onChanged(); } else { geoLocationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1633,17 +1756,18 @@ public Builder setGeoLocation(com.google.type.LatLng.Builder builderForValue) { */ public Builder mergeGeoLocation(com.google.type.LatLng value) { if (geoLocationBuilder_ == null) { - if (geoLocation_ != null) { - geoLocation_ = - com.google.type.LatLng.newBuilder(geoLocation_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && geoLocation_ != null + && geoLocation_ != com.google.type.LatLng.getDefaultInstance()) { + getGeoLocationBuilder().mergeFrom(value); } else { geoLocation_ = value; } - onChanged(); } else { geoLocationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1656,14 +1780,13 @@ public Builder mergeGeoLocation(com.google.type.LatLng value) { * .google.type.LatLng geo_location = 2; */ public Builder clearGeoLocation() { - if (geoLocationBuilder_ == null) { - geoLocation_ = null; - onChanged(); - } else { - geoLocation_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + geoLocation_ = null; + if (geoLocationBuilder_ != null) { + geoLocationBuilder_.dispose(); geoLocationBuilder_ = null; } - + onChanged(); return this; } /** @@ -1676,7 +1799,7 @@ public Builder clearGeoLocation() { * .google.type.LatLng geo_location = 2; */ public com.google.type.LatLng.Builder getGeoLocationBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getGeoLocationFieldBuilder().getBuilder(); } @@ -1724,11 +1847,11 @@ public com.google.type.LatLngOrBuilder getGeoLocationOrBuilder() { sessionEntityTypes_ = java.util.Collections.emptyList(); private void ensureSessionEntityTypesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { sessionEntityTypes_ = new java.util.ArrayList( sessionEntityTypes_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -1981,7 +2104,7 @@ public Builder addAllSessionEntityTypes( public Builder clearSessionEntityTypes() { if (sessionEntityTypesBuilder_ == null) { sessionEntityTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { sessionEntityTypesBuilder_.clear(); @@ -2130,7 +2253,7 @@ public com.google.cloud.dialogflow.cx.v3.SessionEntityType.Builder addSessionEnt com.google.cloud.dialogflow.cx.v3.SessionEntityType.Builder, com.google.cloud.dialogflow.cx.v3.SessionEntityTypeOrBuilder>( sessionEntityTypes_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); sessionEntityTypes_ = null; @@ -2168,7 +2291,7 @@ public com.google.cloud.dialogflow.cx.v3.SessionEntityType.Builder addSessionEnt * @return Whether the payload field is set. */ public boolean hasPayload() { - return payloadBuilder_ != null || payload_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -2227,11 +2350,11 @@ public Builder setPayload(com.google.protobuf.Struct value) { throw new NullPointerException(); } payload_ = value; - onChanged(); } else { payloadBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2258,11 +2381,11 @@ public Builder setPayload(com.google.protobuf.Struct value) { public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); - onChanged(); } else { payloadBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2288,17 +2411,18 @@ public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) { */ public Builder mergePayload(com.google.protobuf.Struct value) { if (payloadBuilder_ == null) { - if (payload_ != null) { - payload_ = - com.google.protobuf.Struct.newBuilder(payload_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && payload_ != null + && payload_ != com.google.protobuf.Struct.getDefaultInstance()) { + getPayloadBuilder().mergeFrom(value); } else { payload_ = value; } - onChanged(); } else { payloadBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2323,14 +2447,13 @@ public Builder mergePayload(com.google.protobuf.Struct value) { * .google.protobuf.Struct payload = 4; */ public Builder clearPayload() { - if (payloadBuilder_ == null) { - payload_ = null; - onChanged(); - } else { - payload_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); payloadBuilder_ = null; } - + onChanged(); return this; } /** @@ -2355,7 +2478,7 @@ public Builder clearPayload() { * .google.protobuf.Struct payload = 4; */ public com.google.protobuf.Struct.Builder getPayloadBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getPayloadFieldBuilder().getBuilder(); } @@ -2459,7 +2582,7 @@ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { * @return Whether the parameters field is set. */ public boolean hasParameters() { - return parametersBuilder_ != null || parameters_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2526,11 +2649,11 @@ public Builder setParameters(com.google.protobuf.Struct value) { throw new NullPointerException(); } parameters_ = value; - onChanged(); } else { parametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2561,11 +2684,11 @@ public Builder setParameters(com.google.protobuf.Struct value) { public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) { if (parametersBuilder_ == null) { parameters_ = builderForValue.build(); - onChanged(); } else { parametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2595,17 +2718,18 @@ public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) */ public Builder mergeParameters(com.google.protobuf.Struct value) { if (parametersBuilder_ == null) { - if (parameters_ != null) { - parameters_ = - com.google.protobuf.Struct.newBuilder(parameters_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && parameters_ != null + && parameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getParametersBuilder().mergeFrom(value); } else { parameters_ = value; } - onChanged(); } else { parametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2634,14 +2758,13 @@ public Builder mergeParameters(com.google.protobuf.Struct value) { * .google.protobuf.Struct parameters = 5; */ public Builder clearParameters() { - if (parametersBuilder_ == null) { - parameters_ = null; - onChanged(); - } else { - parameters_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -2670,7 +2793,7 @@ public Builder clearParameters() { * .google.protobuf.Struct parameters = 5; */ public com.google.protobuf.Struct.Builder getParametersBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getParametersFieldBuilder().getBuilder(); } @@ -2753,17 +2876,18 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { * * *
-     * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
-     * page][QueryResult.current_page] in the session.
+     * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to
+     * override the [current page][QueryResult.current_page] in the session.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>/pages/<Page ID>`.
      * If `current_page` is specified, the previous state of the session will be
      * ignored by Dialogflow, including the [previous
      * page][QueryResult.current_page] and the [previous session
      * parameters][QueryResult.parameters].
-     * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
-     * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
-     * direct a session to a specific state.
+     * In most cases,
+     * [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page]
+     * and [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters]
+     * should be configured together to direct a session to a specific state.
      * 
* * string current_page = 6 [(.google.api.resource_reference) = { ... } @@ -2785,17 +2909,18 @@ public java.lang.String getCurrentPage() { * * *
-     * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
-     * page][QueryResult.current_page] in the session.
+     * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to
+     * override the [current page][QueryResult.current_page] in the session.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>/pages/<Page ID>`.
      * If `current_page` is specified, the previous state of the session will be
      * ignored by Dialogflow, including the [previous
      * page][QueryResult.current_page] and the [previous session
      * parameters][QueryResult.parameters].
-     * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
-     * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
-     * direct a session to a specific state.
+     * In most cases,
+     * [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page]
+     * and [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters]
+     * should be configured together to direct a session to a specific state.
      * 
* * string current_page = 6 [(.google.api.resource_reference) = { ... } @@ -2817,17 +2942,18 @@ public com.google.protobuf.ByteString getCurrentPageBytes() { * * *
-     * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
-     * page][QueryResult.current_page] in the session.
+     * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to
+     * override the [current page][QueryResult.current_page] in the session.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>/pages/<Page ID>`.
      * If `current_page` is specified, the previous state of the session will be
      * ignored by Dialogflow, including the [previous
      * page][QueryResult.current_page] and the [previous session
      * parameters][QueryResult.parameters].
-     * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
-     * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
-     * direct a session to a specific state.
+     * In most cases,
+     * [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page]
+     * and [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters]
+     * should be configured together to direct a session to a specific state.
      * 
* * string current_page = 6 [(.google.api.resource_reference) = { ... } @@ -2839,8 +2965,8 @@ public Builder setCurrentPage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - currentPage_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2848,17 +2974,18 @@ public Builder setCurrentPage(java.lang.String value) { * * *
-     * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
-     * page][QueryResult.current_page] in the session.
+     * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to
+     * override the [current page][QueryResult.current_page] in the session.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>/pages/<Page ID>`.
      * If `current_page` is specified, the previous state of the session will be
      * ignored by Dialogflow, including the [previous
      * page][QueryResult.current_page] and the [previous session
      * parameters][QueryResult.parameters].
-     * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
-     * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
-     * direct a session to a specific state.
+     * In most cases,
+     * [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page]
+     * and [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters]
+     * should be configured together to direct a session to a specific state.
      * 
* * string current_page = 6 [(.google.api.resource_reference) = { ... } @@ -2866,8 +2993,8 @@ public Builder setCurrentPage(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCurrentPage() { - currentPage_ = getDefaultInstance().getCurrentPage(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2875,17 +3002,18 @@ public Builder clearCurrentPage() { * * *
-     * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
-     * page][QueryResult.current_page] in the session.
+     * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to
+     * override the [current page][QueryResult.current_page] in the session.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/flows/<Flow ID>/pages/<Page ID>`.
      * If `current_page` is specified, the previous state of the session will be
      * ignored by Dialogflow, including the [previous
      * page][QueryResult.current_page] and the [previous session
      * parameters][QueryResult.parameters].
-     * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
-     * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
-     * direct a session to a specific state.
+     * In most cases,
+     * [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page]
+     * and [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters]
+     * should be configured together to direct a session to a specific state.
      * 
* * string current_page = 6 [(.google.api.resource_reference) = { ... } @@ -2898,8 +3026,8 @@ public Builder setCurrentPageBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - currentPage_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2935,6 +3063,7 @@ public boolean getDisableWebhook() { public Builder setDisableWebhook(boolean value) { disableWebhook_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2950,7 +3079,7 @@ public Builder setDisableWebhook(boolean value) { * @return This builder for chaining. */ public Builder clearDisableWebhook() { - + bitField0_ = (bitField0_ & ~0x00000040); disableWebhook_ = false; onChanged(); return this; @@ -2989,6 +3118,7 @@ public boolean getAnalyzeQueryTextSentiment() { public Builder setAnalyzeQueryTextSentiment(boolean value) { analyzeQueryTextSentiment_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3005,7 +3135,7 @@ public Builder setAnalyzeQueryTextSentiment(boolean value) { * @return This builder for chaining. */ public Builder clearAnalyzeQueryTextSentiment() { - + bitField0_ = (bitField0_ & ~0x00000080); analyzeQueryTextSentiment_ = false; onChanged(); return this; @@ -3024,8 +3154,6 @@ public Builder clearAnalyzeQueryTextSentiment() { private com.google.protobuf.MapField internalGetMutableWebhookHeaders() { - onChanged(); - ; if (webhookHeaders_ == null) { webhookHeaders_ = com.google.protobuf.MapField.newMapField(WebhookHeadersDefaultEntryHolder.defaultEntry); @@ -3033,6 +3161,8 @@ public Builder clearAnalyzeQueryTextSentiment() { if (!webhookHeaders_.isMutable()) { webhookHeaders_ = webhookHeaders_.copy(); } + bitField0_ |= 0x00000100; + onChanged(); return webhookHeaders_; } @@ -3105,8 +3235,10 @@ public java.util.Map getWebhookHeadersMap() * map<string, string> webhook_headers = 10; */ @java.lang.Override - public java.lang.String getWebhookHeadersOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getWebhookHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3142,6 +3274,7 @@ public java.lang.String getWebhookHeadersOrThrow(java.lang.String key) { } public Builder clearWebhookHeaders() { + bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableWebhookHeaders().getMutableMap().clear(); return this; } @@ -3171,6 +3304,7 @@ public Builder removeWebhookHeaders(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableWebhookHeaders() { + bitField0_ |= 0x00000100; return internalGetMutableWebhookHeaders().getMutableMap(); } /** @@ -3196,8 +3330,8 @@ public Builder putWebhookHeaders(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableWebhookHeaders().getMutableMap().put(key, value); + bitField0_ |= 0x00000100; return this; } /** @@ -3218,6 +3352,7 @@ public Builder putWebhookHeaders(java.lang.String key, java.lang.String value) { */ public Builder putAllWebhookHeaders(java.util.Map values) { internalGetMutableWebhookHeaders().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; return this; } @@ -3225,9 +3360,9 @@ public Builder putAllWebhookHeaders(java.util.Map values) { */ public Builder clearFlowVersions() { flowVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -3443,6 +3578,162 @@ public Builder addFlowVersionsBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object channel_ = ""; + /** + * + * + *
+     * The channel which this query is for.
+     * If specified, only the
+     * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] associated
+     * with the channel will be returned. If no
+     * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] is
+     * associated with the channel, it falls back to the
+     * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+     * unspecified channel.
+     * If unspecified, the
+     * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+     * unspecified channel will be returned.
+     * 
+ * + * string channel = 15; + * + * @return The channel. + */ + public java.lang.String getChannel() { + java.lang.Object ref = channel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + channel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The channel which this query is for.
+     * If specified, only the
+     * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] associated
+     * with the channel will be returned. If no
+     * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] is
+     * associated with the channel, it falls back to the
+     * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+     * unspecified channel.
+     * If unspecified, the
+     * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+     * unspecified channel will be returned.
+     * 
+ * + * string channel = 15; + * + * @return The bytes for channel. + */ + public com.google.protobuf.ByteString getChannelBytes() { + java.lang.Object ref = channel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + channel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The channel which this query is for.
+     * If specified, only the
+     * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] associated
+     * with the channel will be returned. If no
+     * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] is
+     * associated with the channel, it falls back to the
+     * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+     * unspecified channel.
+     * If unspecified, the
+     * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+     * unspecified channel will be returned.
+     * 
+ * + * string channel = 15; + * + * @param value The channel to set. + * @return This builder for chaining. + */ + public Builder setChannel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + channel_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * The channel which this query is for.
+     * If specified, only the
+     * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] associated
+     * with the channel will be returned. If no
+     * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] is
+     * associated with the channel, it falls back to the
+     * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+     * unspecified channel.
+     * If unspecified, the
+     * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+     * unspecified channel will be returned.
+     * 
+ * + * string channel = 15; + * + * @return This builder for chaining. + */ + public Builder clearChannel() { + channel_ = getDefaultInstance().getChannel(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * + * + *
+     * The channel which this query is for.
+     * If specified, only the
+     * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] associated
+     * with the channel will be returned. If no
+     * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] is
+     * associated with the channel, it falls back to the
+     * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+     * unspecified channel.
+     * If unspecified, the
+     * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+     * unspecified channel will be returned.
+     * 
+ * + * string channel = 15; + * + * @param value The bytes for channel to set. + * @return This builder for chaining. + */ + public Builder setChannelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + channel_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java index a342d0ad84eb..a5e7ce455f0f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryParametersOrBuilder.java @@ -315,17 +315,18 @@ com.google.cloud.dialogflow.cx.v3.SessionEntityTypeOrBuilder getSessionEntityTyp * * *
-   * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
-   * page][QueryResult.current_page] in the session.
+   * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to
+   * override the [current page][QueryResult.current_page] in the session.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/flows/<Flow ID>/pages/<Page ID>`.
    * If `current_page` is specified, the previous state of the session will be
    * ignored by Dialogflow, including the [previous
    * page][QueryResult.current_page] and the [previous session
    * parameters][QueryResult.parameters].
-   * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
-   * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
-   * direct a session to a specific state.
+   * In most cases,
+   * [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page]
+   * and [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters]
+   * should be configured together to direct a session to a specific state.
    * 
* * string current_page = 6 [(.google.api.resource_reference) = { ... } @@ -337,17 +338,18 @@ com.google.cloud.dialogflow.cx.v3.SessionEntityTypeOrBuilder getSessionEntityTyp * * *
-   * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
-   * page][QueryResult.current_page] in the session.
+   * The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to
+   * override the [current page][QueryResult.current_page] in the session.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/flows/<Flow ID>/pages/<Page ID>`.
    * If `current_page` is specified, the previous state of the session will be
    * ignored by Dialogflow, including the [previous
    * page][QueryResult.current_page] and the [previous session
    * parameters][QueryResult.parameters].
-   * In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
-   * [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
-   * direct a session to a specific state.
+   * In most cases,
+   * [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page]
+   * and [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters]
+   * should be configured together to direct a session to a specific state.
    * 
* * string current_page = 6 [(.google.api.resource_reference) = { ... } @@ -453,7 +455,6 @@ com.google.cloud.dialogflow.cx.v3.SessionEntityTypeOrBuilder getSessionEntityTyp * * map<string, string> webhook_headers = 10; */ - /* nullable */ java.lang.String getWebhookHeadersOrDefault( java.lang.String key, @@ -551,4 +552,49 @@ java.lang.String getWebhookHeadersOrDefault( * @return The bytes of the flowVersions at the given index. */ com.google.protobuf.ByteString getFlowVersionsBytes(int index); + + /** + * + * + *
+   * The channel which this query is for.
+   * If specified, only the
+   * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] associated
+   * with the channel will be returned. If no
+   * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] is
+   * associated with the channel, it falls back to the
+   * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+   * unspecified channel.
+   * If unspecified, the
+   * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+   * unspecified channel will be returned.
+   * 
+ * + * string channel = 15; + * + * @return The channel. + */ + java.lang.String getChannel(); + /** + * + * + *
+   * The channel which this query is for.
+   * If specified, only the
+   * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] associated
+   * with the channel will be returned. If no
+   * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] is
+   * associated with the channel, it falls back to the
+   * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+   * unspecified channel.
+   * If unspecified, the
+   * [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with
+   * unspecified channel will be returned.
+   * 
+ * + * string channel = 15; + * + * @return The bytes for channel. + */ + com.google.protobuf.ByteString getChannelBytes(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java index 6d7cdae8ff7a..01eabfed435b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java @@ -131,8 +131,8 @@ public QueryCase getQueryCase() { * * *
-   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-   * will contain a copy of the text.
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+   * provided as input, this field will contain a copy of the text.
    * 
* * string text = 1; @@ -146,8 +146,8 @@ public boolean hasText() { * * *
-   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-   * will contain a copy of the text.
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+   * provided as input, this field will contain a copy of the text.
    * 
* * string text = 1; @@ -174,8 +174,8 @@ public java.lang.String getText() { * * *
-   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-   * will contain a copy of the text.
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+   * provided as input, this field will contain a copy of the text.
    * 
* * string text = 1; @@ -204,9 +204,9 @@ public com.google.protobuf.ByteString getTextBytes() { * * *
-   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-   * contain a copy of the intent identifier.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+   * input, this field will contain a copy of the intent identifier. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
    * 
* @@ -221,9 +221,9 @@ public boolean hasTriggerIntent() { * * *
-   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-   * contain a copy of the intent identifier.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+   * input, this field will contain a copy of the intent identifier. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
    * 
* @@ -251,9 +251,9 @@ public java.lang.String getTriggerIntent() { * * *
-   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-   * contain a copy of the intent identifier.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+   * input, this field will contain a copy of the intent identifier. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
    * 
* @@ -283,7 +283,8 @@ public com.google.protobuf.ByteString getTriggerIntentBytes() { * * *
-   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * If [natural language speech
+   * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
    * this field will contain the transcript for the audio.
    * 
* @@ -298,7 +299,8 @@ public boolean hasTranscript() { * * *
-   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * If [natural language speech
+   * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
    * this field will contain the transcript for the audio.
    * 
* @@ -326,7 +328,8 @@ public java.lang.String getTranscript() { * * *
-   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * If [natural language speech
+   * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
    * this field will contain the transcript for the audio.
    * 
* @@ -356,8 +359,8 @@ public com.google.protobuf.ByteString getTranscriptBytes() { * * *
-   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-   * the name of the event.
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+   * input, this field will contain the name of the event.
    * 
* * string trigger_event = 14; @@ -371,8 +374,8 @@ public boolean hasTriggerEvent() { * * *
-   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-   * the name of the event.
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+   * input, this field will contain the name of the event.
    * 
* * string trigger_event = 14; @@ -399,8 +402,8 @@ public java.lang.String getTriggerEvent() { * * *
-   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-   * the name of the event.
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+   * input, this field will contain the name of the event.
    * 
* * string trigger_event = 14; @@ -479,7 +482,9 @@ public com.google.cloud.dialogflow.cx.v3.DtmfInputOrBuilder getDtmfOrBuilder() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -539,7 +544,8 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { * * *
-   * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+   * The collected [session
+   * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
    * Depending on your protocol or client library language, this is a
    * map, associative array, symbol table, dictionary, or JSON object
    * composed of a collection of (MapKey, MapValue) pairs:
@@ -565,7 +571,8 @@ public boolean hasParameters() {
    *
    *
    * 
-   * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+   * The collected [session
+   * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
    * Depending on your protocol or client library language, this is a
    * map, associative array, symbol table, dictionary, or JSON object
    * composed of a collection of (MapKey, MapValue) pairs:
@@ -591,7 +598,8 @@ public com.google.protobuf.Struct getParameters() {
    *
    *
    * 
-   * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+   * The collected [session
+   * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
    * Depending on your protocol or client library language, this is a
    * map, associative array, symbol table, dictionary, or JSON object
    * composed of a collection of (MapKey, MapValue) pairs:
@@ -609,10 +617,12 @@ public com.google.protobuf.Struct getParameters() {
    */
   @java.lang.Override
   public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
-    return getParameters();
+    return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_;
   }
 
   public static final int RESPONSE_MESSAGES_FIELD_NUMBER = 4;
+
+  @SuppressWarnings("serial")
   private java.util.List responseMessages_;
   /**
    *
@@ -694,6 +704,8 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMes
   }
 
   public static final int WEBHOOK_STATUSES_FIELD_NUMBER = 13;
+
+  @SuppressWarnings("serial")
   private java.util.List webhookStatuses_;
   /**
    *
@@ -763,13 +775,16 @@ public com.google.rpc.StatusOrBuilder getWebhookStatusesOrBuilder(int index) {
   }
 
   public static final int WEBHOOK_PAYLOADS_FIELD_NUMBER = 6;
+
+  @SuppressWarnings("serial")
   private java.util.List webhookPayloads_;
   /**
    *
    *
    * 
-   * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-   * the order of call sequence. If some webhook call fails or doesn't return
+   * The list of webhook payload in
+   * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+   * in the order of call sequence. If some webhook call fails or doesn't return
    * any payload, an empty `Struct` would be used instead.
    * 
* @@ -783,8 +798,9 @@ public java.util.List getWebhookPayloadsList() { * * *
-   * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-   * the order of call sequence. If some webhook call fails or doesn't return
+   * The list of webhook payload in
+   * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+   * in the order of call sequence. If some webhook call fails or doesn't return
    * any payload, an empty `Struct` would be used instead.
    * 
* @@ -799,8 +815,9 @@ public java.util.List getWebhookPayloadsList() { * * *
-   * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-   * the order of call sequence. If some webhook call fails or doesn't return
+   * The list of webhook payload in
+   * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+   * in the order of call sequence. If some webhook call fails or doesn't return
    * any payload, an empty `Struct` would be used instead.
    * 
* @@ -814,8 +831,9 @@ public int getWebhookPayloadsCount() { * * *
-   * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-   * the order of call sequence. If some webhook call fails or doesn't return
+   * The list of webhook payload in
+   * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+   * in the order of call sequence. If some webhook call fails or doesn't return
    * any payload, an empty `Struct` would be used instead.
    * 
* @@ -829,8 +847,9 @@ public com.google.protobuf.Struct getWebhookPayloads(int index) { * * *
-   * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-   * the order of call sequence. If some webhook call fails or doesn't return
+   * The list of webhook payload in
+   * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+   * in the order of call sequence. If some webhook call fails or doesn't return
    * any payload, an empty `Struct` would be used instead.
    * 
* @@ -847,8 +866,9 @@ public com.google.protobuf.StructOrBuilder getWebhookPayloadsOrBuilder(int index * * *
-   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-   * including but not limited to `name` and `display_name`.
+   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+   * fields are filled in this message, including but not limited to `name` and
+   * `display_name`.
    * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 7; @@ -863,8 +883,9 @@ public boolean hasCurrentPage() { * * *
-   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-   * including but not limited to `name` and `display_name`.
+   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+   * fields are filled in this message, including but not limited to `name` and
+   * `display_name`.
    * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 7; @@ -881,15 +902,18 @@ public com.google.cloud.dialogflow.cx.v3.Page getCurrentPage() { * * *
-   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-   * including but not limited to `name` and `display_name`.
+   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+   * fields are filled in this message, including but not limited to `name` and
+   * `display_name`.
    * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 7; */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getCurrentPageOrBuilder() { - return getCurrentPage(); + return currentPage_ == null + ? com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance() + : currentPage_; } public static final int INTENT_FIELD_NUMBER = 8; @@ -898,16 +922,18 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getCurrentPageOrBuilder() * * *
-   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
-   * are filled in this message, including but not limited to: `name` and
-   * `display_name`.
-   * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+   * conversational query. Some, not all fields are filled in this message,
+   * including but not limited to: `name` and `display_name`. This field is
+   * deprecated, please use
+   * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+   * instead.
    * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=604 + * google/cloud/dialogflow/cx/v3/session.proto;l=642 * @return Whether the intent field is set. */ @java.lang.Override @@ -919,16 +945,18 @@ public boolean hasIntent() { * * *
-   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
-   * are filled in this message, including but not limited to: `name` and
-   * `display_name`.
-   * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+   * conversational query. Some, not all fields are filled in this message,
+   * including but not limited to: `name` and `display_name`. This field is
+   * deprecated, please use
+   * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+   * instead.
    * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=604 + * google/cloud/dialogflow/cx/v3/session.proto;l=642 * @return The intent. */ @java.lang.Override @@ -942,10 +970,12 @@ public com.google.cloud.dialogflow.cx.v3.Intent getIntent() { * * *
-   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
-   * are filled in this message, including but not limited to: `name` and
-   * `display_name`.
-   * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+   * conversational query. Some, not all fields are filled in this message,
+   * including but not limited to: `name` and `display_name`. This field is
+   * deprecated, please use
+   * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+   * instead.
    * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; @@ -953,11 +983,13 @@ public com.google.cloud.dialogflow.cx.v3.Intent getIntent() { @java.lang.Override @java.lang.Deprecated public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() { - return getIntent(); + return intent_ == null + ? com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance() + : intent_; } public static final int INTENT_DETECTION_CONFIDENCE_FIELD_NUMBER = 9; - private float intentDetectionConfidence_; + private float intentDetectionConfidence_ = 0F; /** * * @@ -968,13 +1000,15 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() { * help match the best intent within the classification threshold. * This value may change for the same end-user expression at any time due to a * model retraining or change in implementation. - * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead. + * This field is deprecated, please use + * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] + * instead. *
* * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=613 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=653 * @return The intentDetectionConfidence. */ @java.lang.Override @@ -1026,7 +1060,7 @@ public com.google.cloud.dialogflow.cx.v3.Match getMatch() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.MatchOrBuilder getMatchOrBuilder() { - return getMatch(); + return match_ == null ? com.google.cloud.dialogflow.cx.v3.Match.getDefaultInstance() : match_; } public static final int DIAGNOSTIC_INFO_FIELD_NUMBER = 10; @@ -1116,7 +1150,9 @@ public com.google.protobuf.Struct getDiagnosticInfo() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() { - return getDiagnosticInfo(); + return diagnosticInfo_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : diagnosticInfo_; } public static final int SENTIMENT_ANALYSIS_RESULT_FIELD_NUMBER = 17; @@ -1127,7 +1163,8 @@ public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() { *
    * The sentiment analyss result, which depends on
    * [`analyze_query_text_sentiment`]
-   * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+   * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+   * specified in the request.
    * 
* * .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17; @@ -1145,7 +1182,8 @@ public boolean hasSentimentAnalysisResult() { *
    * The sentiment analyss result, which depends on
    * [`analyze_query_text_sentiment`]
-   * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+   * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+   * specified in the request.
    * 
* * .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17; @@ -1165,7 +1203,8 @@ public com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult getSentimentAna *
    * The sentiment analyss result, which depends on
    * [`analyze_query_text_sentiment`]
-   * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+   * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+   * specified in the request.
    * 
* * .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17; @@ -1174,7 +1213,9 @@ public com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult getSentimentAna @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder() { - return getSentimentAnalysisResult(); + return sentimentAnalysisResult_ == null + ? com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.getDefaultInstance() + : sentimentAnalysisResult_; } private byte memoizedIsInitialized = -1; @@ -1579,15 +1620,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (dtmfBuilder_ != null) { dtmfBuilder_.clear(); } languageCode_ = ""; - - if (parametersBuilder_ == null) { - parameters_ = null; - } else { - parameters_ = null; + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } if (responseMessagesBuilder_ == null) { @@ -1596,51 +1636,45 @@ public Builder clear() { responseMessages_ = null; responseMessagesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); if (webhookStatusesBuilder_ == null) { webhookStatuses_ = java.util.Collections.emptyList(); } else { webhookStatuses_ = null; webhookStatusesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000100); if (webhookPayloadsBuilder_ == null) { webhookPayloads_ = java.util.Collections.emptyList(); } else { webhookPayloads_ = null; webhookPayloadsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); - if (currentPageBuilder_ == null) { - currentPage_ = null; - } else { - currentPage_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + currentPage_ = null; + if (currentPageBuilder_ != null) { + currentPageBuilder_.dispose(); currentPageBuilder_ = null; } - if (intentBuilder_ == null) { - intent_ = null; - } else { - intent_ = null; + intent_ = null; + if (intentBuilder_ != null) { + intentBuilder_.dispose(); intentBuilder_ = null; } intentDetectionConfidence_ = 0F; - - if (matchBuilder_ == null) { - match_ = null; - } else { - match_ = null; + match_ = null; + if (matchBuilder_ != null) { + matchBuilder_.dispose(); matchBuilder_ = null; } - if (diagnosticInfoBuilder_ == null) { - diagnosticInfo_ = null; - } else { - diagnosticInfo_ = null; + diagnosticInfo_ = null; + if (diagnosticInfoBuilder_ != null) { + diagnosticInfoBuilder_.dispose(); diagnosticInfoBuilder_ = null; } - if (sentimentAnalysisResultBuilder_ == null) { - sentimentAnalysisResult_ = null; - } else { - sentimentAnalysisResult_ = null; + sentimentAnalysisResult_ = null; + if (sentimentAnalysisResultBuilder_ != null) { + sentimentAnalysisResultBuilder_.dispose(); sentimentAnalysisResultBuilder_ = null; } queryCase_ = 0; @@ -1672,88 +1706,84 @@ public com.google.cloud.dialogflow.cx.v3.QueryResult build() { public com.google.cloud.dialogflow.cx.v3.QueryResult buildPartial() { com.google.cloud.dialogflow.cx.v3.QueryResult result = new com.google.cloud.dialogflow.cx.v3.QueryResult(this); - int from_bitField0_ = bitField0_; - if (queryCase_ == 1) { - result.query_ = query_; - } - if (queryCase_ == 11) { - result.query_ = query_; - } - if (queryCase_ == 12) { - result.query_ = query_; - } - if (queryCase_ == 14) { - result.query_ = query_; - } - if (queryCase_ == 23) { - if (dtmfBuilder_ == null) { - result.query_ = query_; - } else { - result.query_ = dtmfBuilder_.build(); - } - } - result.languageCode_ = languageCode_; - if (parametersBuilder_ == null) { - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.QueryResult result) { if (responseMessagesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { responseMessages_ = java.util.Collections.unmodifiableList(responseMessages_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); } result.responseMessages_ = responseMessages_; } else { result.responseMessages_ = responseMessagesBuilder_.build(); } if (webhookStatusesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { webhookStatuses_ = java.util.Collections.unmodifiableList(webhookStatuses_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000100); } result.webhookStatuses_ = webhookStatuses_; } else { result.webhookStatuses_ = webhookStatusesBuilder_.build(); } if (webhookPayloadsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { webhookPayloads_ = java.util.Collections.unmodifiableList(webhookPayloads_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); } result.webhookPayloads_ = webhookPayloads_; } else { result.webhookPayloads_ = webhookPayloadsBuilder_.build(); } - if (currentPageBuilder_ == null) { - result.currentPage_ = currentPage_; - } else { - result.currentPage_ = currentPageBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.QueryResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.languageCode_ = languageCode_; } - if (intentBuilder_ == null) { - result.intent_ = intent_; - } else { - result.intent_ = intentBuilder_.build(); + if (((from_bitField0_ & 0x00000040) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); } - result.intentDetectionConfidence_ = intentDetectionConfidence_; - if (matchBuilder_ == null) { - result.match_ = match_; - } else { - result.match_ = matchBuilder_.build(); + if (((from_bitField0_ & 0x00000400) != 0)) { + result.currentPage_ = + currentPageBuilder_ == null ? currentPage_ : currentPageBuilder_.build(); } - if (diagnosticInfoBuilder_ == null) { - result.diagnosticInfo_ = diagnosticInfo_; - } else { - result.diagnosticInfo_ = diagnosticInfoBuilder_.build(); + if (((from_bitField0_ & 0x00000800) != 0)) { + result.intent_ = intentBuilder_ == null ? intent_ : intentBuilder_.build(); } - if (sentimentAnalysisResultBuilder_ == null) { - result.sentimentAnalysisResult_ = sentimentAnalysisResult_; - } else { - result.sentimentAnalysisResult_ = sentimentAnalysisResultBuilder_.build(); + if (((from_bitField0_ & 0x00001000) != 0)) { + result.intentDetectionConfidence_ = intentDetectionConfidence_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.match_ = matchBuilder_ == null ? match_ : matchBuilder_.build(); + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.diagnosticInfo_ = + diagnosticInfoBuilder_ == null ? diagnosticInfo_ : diagnosticInfoBuilder_.build(); } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.sentimentAnalysisResult_ = + sentimentAnalysisResultBuilder_ == null + ? sentimentAnalysisResult_ + : sentimentAnalysisResultBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.QueryResult result) { result.queryCase_ = queryCase_; - onBuilt(); - return result; + result.query_ = this.query_; + if (queryCase_ == 23 && dtmfBuilder_ != null) { + result.query_ = dtmfBuilder_.build(); + } } @java.lang.Override @@ -1803,6 +1833,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryResult other) { if (other == com.google.cloud.dialogflow.cx.v3.QueryResult.getDefaultInstance()) return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasParameters()) { @@ -1812,7 +1843,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryResult other) { if (!other.responseMessages_.isEmpty()) { if (responseMessages_.isEmpty()) { responseMessages_ = other.responseMessages_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureResponseMessagesIsMutable(); responseMessages_.addAll(other.responseMessages_); @@ -1825,7 +1856,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryResult other) { responseMessagesBuilder_.dispose(); responseMessagesBuilder_ = null; responseMessages_ = other.responseMessages_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); responseMessagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResponseMessagesFieldBuilder() @@ -1839,7 +1870,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryResult other) { if (!other.webhookStatuses_.isEmpty()) { if (webhookStatuses_.isEmpty()) { webhookStatuses_ = other.webhookStatuses_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureWebhookStatusesIsMutable(); webhookStatuses_.addAll(other.webhookStatuses_); @@ -1852,7 +1883,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryResult other) { webhookStatusesBuilder_.dispose(); webhookStatusesBuilder_ = null; webhookStatuses_ = other.webhookStatuses_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000100); webhookStatusesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWebhookStatusesFieldBuilder() @@ -1866,7 +1897,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryResult other) { if (!other.webhookPayloads_.isEmpty()) { if (webhookPayloads_.isEmpty()) { webhookPayloads_ = other.webhookPayloads_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureWebhookPayloadsIsMutable(); webhookPayloads_.addAll(other.webhookPayloads_); @@ -1879,7 +1910,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.QueryResult other) { webhookPayloadsBuilder_.dispose(); webhookPayloadsBuilder_ = null; webhookPayloads_ = other.webhookPayloads_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); webhookPayloadsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWebhookPayloadsFieldBuilder() @@ -1982,13 +2013,13 @@ public Builder mergeFrom( case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 18 case 26: { input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 26 case 34: @@ -2020,25 +2051,25 @@ public Builder mergeFrom( case 58: { input.readMessage(getCurrentPageFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 58 case 66: { input.readMessage(getIntentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000800; break; } // case 66 case 77: { intentDetectionConfidence_ = input.readFloat(); - + bitField0_ |= 0x00001000; break; } // case 77 case 82: { input.readMessage(getDiagnosticInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00004000; break; } // case 82 case 90: @@ -2077,14 +2108,14 @@ public Builder mergeFrom( case 122: { input.readMessage(getMatchFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00002000; break; } // case 122 case 138: { input.readMessage( getSentimentAnalysisResultFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00008000; break; } // case 138 case 186: @@ -2130,8 +2161,8 @@ public Builder clearQuery() { * * *
-     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-     * will contain a copy of the text.
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+     * provided as input, this field will contain a copy of the text.
      * 
* * string text = 1; @@ -2146,8 +2177,8 @@ public boolean hasText() { * * *
-     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-     * will contain a copy of the text.
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+     * provided as input, this field will contain a copy of the text.
      * 
* * string text = 1; @@ -2175,8 +2206,8 @@ public java.lang.String getText() { * * *
-     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-     * will contain a copy of the text.
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+     * provided as input, this field will contain a copy of the text.
      * 
* * string text = 1; @@ -2204,8 +2235,8 @@ public com.google.protobuf.ByteString getTextBytes() { * * *
-     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-     * will contain a copy of the text.
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+     * provided as input, this field will contain a copy of the text.
      * 
* * string text = 1; @@ -2226,8 +2257,8 @@ public Builder setText(java.lang.String value) { * * *
-     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-     * will contain a copy of the text.
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+     * provided as input, this field will contain a copy of the text.
      * 
* * string text = 1; @@ -2246,8 +2277,8 @@ public Builder clearText() { * * *
-     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-     * will contain a copy of the text.
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+     * provided as input, this field will contain a copy of the text.
      * 
* * string text = 1; @@ -2270,9 +2301,9 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { * * *
-     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-     * contain a copy of the intent identifier.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+     * input, this field will contain a copy of the intent identifier. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
      * 
* @@ -2288,9 +2319,9 @@ public boolean hasTriggerIntent() { * * *
-     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-     * contain a copy of the intent identifier.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+     * input, this field will contain a copy of the intent identifier. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
      * 
* @@ -2319,9 +2350,9 @@ public java.lang.String getTriggerIntent() { * * *
-     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-     * contain a copy of the intent identifier.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+     * input, this field will contain a copy of the intent identifier. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
      * 
* @@ -2350,9 +2381,9 @@ public com.google.protobuf.ByteString getTriggerIntentBytes() { * * *
-     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-     * contain a copy of the intent identifier.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+     * input, this field will contain a copy of the intent identifier. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
      * 
* @@ -2374,9 +2405,9 @@ public Builder setTriggerIntent(java.lang.String value) { * * *
-     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-     * contain a copy of the intent identifier.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+     * input, this field will contain a copy of the intent identifier. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
      * 
* @@ -2396,9 +2427,9 @@ public Builder clearTriggerIntent() { * * *
-     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-     * contain a copy of the intent identifier.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+     * input, this field will contain a copy of the intent identifier. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
      * 
* @@ -2422,7 +2453,8 @@ public Builder setTriggerIntentBytes(com.google.protobuf.ByteString value) { * * *
-     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * If [natural language speech
+     * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
      * this field will contain the transcript for the audio.
      * 
* @@ -2438,7 +2470,8 @@ public boolean hasTranscript() { * * *
-     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * If [natural language speech
+     * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
      * this field will contain the transcript for the audio.
      * 
* @@ -2467,7 +2500,8 @@ public java.lang.String getTranscript() { * * *
-     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * If [natural language speech
+     * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
      * this field will contain the transcript for the audio.
      * 
* @@ -2496,7 +2530,8 @@ public com.google.protobuf.ByteString getTranscriptBytes() { * * *
-     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * If [natural language speech
+     * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
      * this field will contain the transcript for the audio.
      * 
* @@ -2518,7 +2553,8 @@ public Builder setTranscript(java.lang.String value) { * * *
-     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * If [natural language speech
+     * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
      * this field will contain the transcript for the audio.
      * 
* @@ -2538,7 +2574,8 @@ public Builder clearTranscript() { * * *
-     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * If [natural language speech
+     * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
      * this field will contain the transcript for the audio.
      * 
* @@ -2562,8 +2599,8 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { * * *
-     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-     * the name of the event.
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+     * input, this field will contain the name of the event.
      * 
* * string trigger_event = 14; @@ -2578,8 +2615,8 @@ public boolean hasTriggerEvent() { * * *
-     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-     * the name of the event.
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+     * input, this field will contain the name of the event.
      * 
* * string trigger_event = 14; @@ -2607,8 +2644,8 @@ public java.lang.String getTriggerEvent() { * * *
-     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-     * the name of the event.
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+     * input, this field will contain the name of the event.
      * 
* * string trigger_event = 14; @@ -2636,8 +2673,8 @@ public com.google.protobuf.ByteString getTriggerEventBytes() { * * *
-     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-     * the name of the event.
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+     * input, this field will contain the name of the event.
      * 
* * string trigger_event = 14; @@ -2658,8 +2695,8 @@ public Builder setTriggerEvent(java.lang.String value) { * * *
-     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-     * the name of the event.
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+     * input, this field will contain the name of the event.
      * 
* * string trigger_event = 14; @@ -2678,8 +2715,8 @@ public Builder clearTriggerEvent() { * * *
-     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-     * the name of the event.
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+     * input, this field will contain the name of the event.
      * 
* * string trigger_event = 14; @@ -2912,7 +2949,6 @@ public com.google.cloud.dialogflow.cx.v3.DtmfInputOrBuilder getDtmfOrBuilder() { } queryCase_ = 23; onChanged(); - ; return dtmfBuilder_; } @@ -2986,8 +3022,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3006,8 +3042,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -3031,8 +3067,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3047,7 +3083,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { * * *
-     * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+     * The collected [session
+     * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
      * Depending on your protocol or client library language, this is a
      * map, associative array, symbol table, dictionary, or JSON object
      * composed of a collection of (MapKey, MapValue) pairs:
@@ -3066,13 +3103,14 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
      * @return Whether the parameters field is set.
      */
     public boolean hasParameters() {
-      return parametersBuilder_ != null || parameters_ != null;
+      return ((bitField0_ & 0x00000040) != 0);
     }
     /**
      *
      *
      * 
-     * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+     * The collected [session
+     * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
      * Depending on your protocol or client library language, this is a
      * map, associative array, symbol table, dictionary, or JSON object
      * composed of a collection of (MapKey, MapValue) pairs:
@@ -3101,7 +3139,8 @@ public com.google.protobuf.Struct getParameters() {
      *
      *
      * 
-     * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+     * The collected [session
+     * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
      * Depending on your protocol or client library language, this is a
      * map, associative array, symbol table, dictionary, or JSON object
      * composed of a collection of (MapKey, MapValue) pairs:
@@ -3123,18 +3162,19 @@ public Builder setParameters(com.google.protobuf.Struct value) {
           throw new NullPointerException();
         }
         parameters_ = value;
-        onChanged();
       } else {
         parametersBuilder_.setMessage(value);
       }
-
+      bitField0_ |= 0x00000040;
+      onChanged();
       return this;
     }
     /**
      *
      *
      * 
-     * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+     * The collected [session
+     * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
      * Depending on your protocol or client library language, this is a
      * map, associative array, symbol table, dictionary, or JSON object
      * composed of a collection of (MapKey, MapValue) pairs:
@@ -3153,18 +3193,19 @@ public Builder setParameters(com.google.protobuf.Struct value) {
     public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) {
       if (parametersBuilder_ == null) {
         parameters_ = builderForValue.build();
-        onChanged();
       } else {
         parametersBuilder_.setMessage(builderForValue.build());
       }
-
+      bitField0_ |= 0x00000040;
+      onChanged();
       return this;
     }
     /**
      *
      *
      * 
-     * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+     * The collected [session
+     * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
      * Depending on your protocol or client library language, this is a
      * map, associative array, symbol table, dictionary, or JSON object
      * composed of a collection of (MapKey, MapValue) pairs:
@@ -3182,24 +3223,26 @@ public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue)
      */
     public Builder mergeParameters(com.google.protobuf.Struct value) {
       if (parametersBuilder_ == null) {
-        if (parameters_ != null) {
-          parameters_ =
-              com.google.protobuf.Struct.newBuilder(parameters_).mergeFrom(value).buildPartial();
+        if (((bitField0_ & 0x00000040) != 0)
+            && parameters_ != null
+            && parameters_ != com.google.protobuf.Struct.getDefaultInstance()) {
+          getParametersBuilder().mergeFrom(value);
         } else {
           parameters_ = value;
         }
-        onChanged();
       } else {
         parametersBuilder_.mergeFrom(value);
       }
-
+      bitField0_ |= 0x00000040;
+      onChanged();
       return this;
     }
     /**
      *
      *
      * 
-     * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+     * The collected [session
+     * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
      * Depending on your protocol or client library language, this is a
      * map, associative array, symbol table, dictionary, or JSON object
      * composed of a collection of (MapKey, MapValue) pairs:
@@ -3216,21 +3259,21 @@ public Builder mergeParameters(com.google.protobuf.Struct value) {
      * .google.protobuf.Struct parameters = 3;
      */
     public Builder clearParameters() {
-      if (parametersBuilder_ == null) {
-        parameters_ = null;
-        onChanged();
-      } else {
-        parameters_ = null;
+      bitField0_ = (bitField0_ & ~0x00000040);
+      parameters_ = null;
+      if (parametersBuilder_ != null) {
+        parametersBuilder_.dispose();
         parametersBuilder_ = null;
       }
-
+      onChanged();
       return this;
     }
     /**
      *
      *
      * 
-     * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+     * The collected [session
+     * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
      * Depending on your protocol or client library language, this is a
      * map, associative array, symbol table, dictionary, or JSON object
      * composed of a collection of (MapKey, MapValue) pairs:
@@ -3247,7 +3290,7 @@ public Builder clearParameters() {
      * .google.protobuf.Struct parameters = 3;
      */
     public com.google.protobuf.Struct.Builder getParametersBuilder() {
-
+      bitField0_ |= 0x00000040;
       onChanged();
       return getParametersFieldBuilder().getBuilder();
     }
@@ -3255,7 +3298,8 @@ public com.google.protobuf.Struct.Builder getParametersBuilder() {
      *
      *
      * 
-     * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+     * The collected [session
+     * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
      * Depending on your protocol or client library language, this is a
      * map, associative array, symbol table, dictionary, or JSON object
      * composed of a collection of (MapKey, MapValue) pairs:
@@ -3282,7 +3326,8 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
      *
      *
      * 
-     * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+     * The collected [session
+     * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
      * Depending on your protocol or client library language, this is a
      * map, associative array, symbol table, dictionary, or JSON object
      * composed of a collection of (MapKey, MapValue) pairs:
@@ -3319,11 +3364,11 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
         java.util.Collections.emptyList();
 
     private void ensureResponseMessagesIsMutable() {
-      if (!((bitField0_ & 0x00000001) != 0)) {
+      if (!((bitField0_ & 0x00000080) != 0)) {
         responseMessages_ =
             new java.util.ArrayList(
                 responseMessages_);
-        bitField0_ |= 0x00000001;
+        bitField0_ |= 0x00000080;
       }
     }
 
@@ -3564,7 +3609,7 @@ public Builder addAllResponseMessages(
     public Builder clearResponseMessages() {
       if (responseMessagesBuilder_ == null) {
         responseMessages_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000001);
+        bitField0_ = (bitField0_ & ~0x00000080);
         onChanged();
       } else {
         responseMessagesBuilder_.clear();
@@ -3705,7 +3750,7 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Builder addResponseMess
                 com.google.cloud.dialogflow.cx.v3.ResponseMessage.Builder,
                 com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder>(
                 responseMessages_,
-                ((bitField0_ & 0x00000001) != 0),
+                ((bitField0_ & 0x00000080) != 0),
                 getParentForChildren(),
                 isClean());
         responseMessages_ = null;
@@ -3717,9 +3762,9 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Builder addResponseMess
         java.util.Collections.emptyList();
 
     private void ensureWebhookStatusesIsMutable() {
-      if (!((bitField0_ & 0x00000002) != 0)) {
+      if (!((bitField0_ & 0x00000100) != 0)) {
         webhookStatuses_ = new java.util.ArrayList(webhookStatuses_);
-        bitField0_ |= 0x00000002;
+        bitField0_ |= 0x00000100;
       }
     }
 
@@ -3930,7 +3975,7 @@ public Builder addAllWebhookStatuses(
     public Builder clearWebhookStatuses() {
       if (webhookStatusesBuilder_ == null) {
         webhookStatuses_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000002);
+        bitField0_ = (bitField0_ & ~0x00000100);
         onChanged();
       } else {
         webhookStatusesBuilder_.clear();
@@ -4050,7 +4095,7 @@ public java.util.List getWebhookStatusesBuilderLi
                 com.google.rpc.Status.Builder,
                 com.google.rpc.StatusOrBuilder>(
                 webhookStatuses_,
-                ((bitField0_ & 0x00000002) != 0),
+                ((bitField0_ & 0x00000100) != 0),
                 getParentForChildren(),
                 isClean());
         webhookStatuses_ = null;
@@ -4062,9 +4107,9 @@ public java.util.List getWebhookStatusesBuilderLi
         java.util.Collections.emptyList();
 
     private void ensureWebhookPayloadsIsMutable() {
-      if (!((bitField0_ & 0x00000004) != 0)) {
+      if (!((bitField0_ & 0x00000200) != 0)) {
         webhookPayloads_ = new java.util.ArrayList(webhookPayloads_);
-        bitField0_ |= 0x00000004;
+        bitField0_ |= 0x00000200;
       }
     }
 
@@ -4078,8 +4123,9 @@ private void ensureWebhookPayloadsIsMutable() {
      *
      *
      * 
-     * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-     * the order of call sequence. If some webhook call fails or doesn't return
+     * The list of webhook payload in
+     * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+     * in the order of call sequence. If some webhook call fails or doesn't return
      * any payload, an empty `Struct` would be used instead.
      * 
* @@ -4096,8 +4142,9 @@ public java.util.List getWebhookPayloadsList() { * * *
-     * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-     * the order of call sequence. If some webhook call fails or doesn't return
+     * The list of webhook payload in
+     * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+     * in the order of call sequence. If some webhook call fails or doesn't return
      * any payload, an empty `Struct` would be used instead.
      * 
* @@ -4114,8 +4161,9 @@ public int getWebhookPayloadsCount() { * * *
-     * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-     * the order of call sequence. If some webhook call fails or doesn't return
+     * The list of webhook payload in
+     * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+     * in the order of call sequence. If some webhook call fails or doesn't return
      * any payload, an empty `Struct` would be used instead.
      * 
* @@ -4132,8 +4180,9 @@ public com.google.protobuf.Struct getWebhookPayloads(int index) { * * *
-     * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-     * the order of call sequence. If some webhook call fails or doesn't return
+     * The list of webhook payload in
+     * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+     * in the order of call sequence. If some webhook call fails or doesn't return
      * any payload, an empty `Struct` would be used instead.
      * 
* @@ -4156,8 +4205,9 @@ public Builder setWebhookPayloads(int index, com.google.protobuf.Struct value) { * * *
-     * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-     * the order of call sequence. If some webhook call fails or doesn't return
+     * The list of webhook payload in
+     * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+     * in the order of call sequence. If some webhook call fails or doesn't return
      * any payload, an empty `Struct` would be used instead.
      * 
* @@ -4178,8 +4228,9 @@ public Builder setWebhookPayloads( * * *
-     * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-     * the order of call sequence. If some webhook call fails or doesn't return
+     * The list of webhook payload in
+     * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+     * in the order of call sequence. If some webhook call fails or doesn't return
      * any payload, an empty `Struct` would be used instead.
      * 
* @@ -4202,8 +4253,9 @@ public Builder addWebhookPayloads(com.google.protobuf.Struct value) { * * *
-     * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-     * the order of call sequence. If some webhook call fails or doesn't return
+     * The list of webhook payload in
+     * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+     * in the order of call sequence. If some webhook call fails or doesn't return
      * any payload, an empty `Struct` would be used instead.
      * 
* @@ -4226,8 +4278,9 @@ public Builder addWebhookPayloads(int index, com.google.protobuf.Struct value) { * * *
-     * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-     * the order of call sequence. If some webhook call fails or doesn't return
+     * The list of webhook payload in
+     * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+     * in the order of call sequence. If some webhook call fails or doesn't return
      * any payload, an empty `Struct` would be used instead.
      * 
* @@ -4247,8 +4300,9 @@ public Builder addWebhookPayloads(com.google.protobuf.Struct.Builder builderForV * * *
-     * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-     * the order of call sequence. If some webhook call fails or doesn't return
+     * The list of webhook payload in
+     * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+     * in the order of call sequence. If some webhook call fails or doesn't return
      * any payload, an empty `Struct` would be used instead.
      * 
* @@ -4269,8 +4323,9 @@ public Builder addWebhookPayloads( * * *
-     * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-     * the order of call sequence. If some webhook call fails or doesn't return
+     * The list of webhook payload in
+     * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+     * in the order of call sequence. If some webhook call fails or doesn't return
      * any payload, an empty `Struct` would be used instead.
      * 
* @@ -4291,8 +4346,9 @@ public Builder addAllWebhookPayloads( * * *
-     * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-     * the order of call sequence. If some webhook call fails or doesn't return
+     * The list of webhook payload in
+     * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+     * in the order of call sequence. If some webhook call fails or doesn't return
      * any payload, an empty `Struct` would be used instead.
      * 
* @@ -4301,7 +4357,7 @@ public Builder addAllWebhookPayloads( public Builder clearWebhookPayloads() { if (webhookPayloadsBuilder_ == null) { webhookPayloads_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { webhookPayloadsBuilder_.clear(); @@ -4312,8 +4368,9 @@ public Builder clearWebhookPayloads() { * * *
-     * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-     * the order of call sequence. If some webhook call fails or doesn't return
+     * The list of webhook payload in
+     * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+     * in the order of call sequence. If some webhook call fails or doesn't return
      * any payload, an empty `Struct` would be used instead.
      * 
* @@ -4333,8 +4390,9 @@ public Builder removeWebhookPayloads(int index) { * * *
-     * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-     * the order of call sequence. If some webhook call fails or doesn't return
+     * The list of webhook payload in
+     * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+     * in the order of call sequence. If some webhook call fails or doesn't return
      * any payload, an empty `Struct` would be used instead.
      * 
* @@ -4347,8 +4405,9 @@ public com.google.protobuf.Struct.Builder getWebhookPayloadsBuilder(int index) { * * *
-     * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-     * the order of call sequence. If some webhook call fails or doesn't return
+     * The list of webhook payload in
+     * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+     * in the order of call sequence. If some webhook call fails or doesn't return
      * any payload, an empty `Struct` would be used instead.
      * 
* @@ -4365,8 +4424,9 @@ public com.google.protobuf.StructOrBuilder getWebhookPayloadsOrBuilder(int index * * *
-     * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-     * the order of call sequence. If some webhook call fails or doesn't return
+     * The list of webhook payload in
+     * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+     * in the order of call sequence. If some webhook call fails or doesn't return
      * any payload, an empty `Struct` would be used instead.
      * 
* @@ -4384,8 +4444,9 @@ public com.google.protobuf.StructOrBuilder getWebhookPayloadsOrBuilder(int index * * *
-     * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-     * the order of call sequence. If some webhook call fails or doesn't return
+     * The list of webhook payload in
+     * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+     * in the order of call sequence. If some webhook call fails or doesn't return
      * any payload, an empty `Struct` would be used instead.
      * 
* @@ -4399,8 +4460,9 @@ public com.google.protobuf.Struct.Builder addWebhookPayloadsBuilder() { * * *
-     * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-     * the order of call sequence. If some webhook call fails or doesn't return
+     * The list of webhook payload in
+     * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+     * in the order of call sequence. If some webhook call fails or doesn't return
      * any payload, an empty `Struct` would be used instead.
      * 
* @@ -4414,8 +4476,9 @@ public com.google.protobuf.Struct.Builder addWebhookPayloadsBuilder(int index) { * * *
-     * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-     * the order of call sequence. If some webhook call fails or doesn't return
+     * The list of webhook payload in
+     * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+     * in the order of call sequence. If some webhook call fails or doesn't return
      * any payload, an empty `Struct` would be used instead.
      * 
* @@ -4437,7 +4500,7 @@ public java.util.List getWebhookPayloadsBuil com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( webhookPayloads_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); webhookPayloads_ = null; @@ -4455,8 +4518,9 @@ public java.util.List getWebhookPayloadsBuil * * *
-     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-     * including but not limited to `name` and `display_name`.
+     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+     * fields are filled in this message, including but not limited to `name` and
+     * `display_name`.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 7; @@ -4464,14 +4528,15 @@ public java.util.List getWebhookPayloadsBuil * @return Whether the currentPage field is set. */ public boolean hasCurrentPage() { - return currentPageBuilder_ != null || currentPage_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * * *
-     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-     * including but not limited to `name` and `display_name`.
+     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+     * fields are filled in this message, including but not limited to `name` and
+     * `display_name`.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 7; @@ -4491,8 +4556,9 @@ public com.google.cloud.dialogflow.cx.v3.Page getCurrentPage() { * * *
-     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-     * including but not limited to `name` and `display_name`.
+     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+     * fields are filled in this message, including but not limited to `name` and
+     * `display_name`.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 7; @@ -4503,19 +4569,20 @@ public Builder setCurrentPage(com.google.cloud.dialogflow.cx.v3.Page value) { throw new NullPointerException(); } currentPage_ = value; - onChanged(); } else { currentPageBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** * * *
-     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-     * including but not limited to `name` and `display_name`.
+     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+     * fields are filled in this message, including but not limited to `name` and
+     * `display_name`.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 7; @@ -4523,73 +4590,74 @@ public Builder setCurrentPage(com.google.cloud.dialogflow.cx.v3.Page value) { public Builder setCurrentPage(com.google.cloud.dialogflow.cx.v3.Page.Builder builderForValue) { if (currentPageBuilder_ == null) { currentPage_ = builderForValue.build(); - onChanged(); } else { currentPageBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** * * *
-     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-     * including but not limited to `name` and `display_name`.
+     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+     * fields are filled in this message, including but not limited to `name` and
+     * `display_name`.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 7; */ public Builder mergeCurrentPage(com.google.cloud.dialogflow.cx.v3.Page value) { if (currentPageBuilder_ == null) { - if (currentPage_ != null) { - currentPage_ = - com.google.cloud.dialogflow.cx.v3.Page.newBuilder(currentPage_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && currentPage_ != null + && currentPage_ != com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance()) { + getCurrentPageBuilder().mergeFrom(value); } else { currentPage_ = value; } - onChanged(); } else { currentPageBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** * * *
-     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-     * including but not limited to `name` and `display_name`.
+     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+     * fields are filled in this message, including but not limited to `name` and
+     * `display_name`.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 7; */ public Builder clearCurrentPage() { - if (currentPageBuilder_ == null) { - currentPage_ = null; - onChanged(); - } else { - currentPage_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + currentPage_ = null; + if (currentPageBuilder_ != null) { + currentPageBuilder_.dispose(); currentPageBuilder_ = null; } - + onChanged(); return this; } /** * * *
-     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-     * including but not limited to `name` and `display_name`.
+     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+     * fields are filled in this message, including but not limited to `name` and
+     * `display_name`.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 7; */ public com.google.cloud.dialogflow.cx.v3.Page.Builder getCurrentPageBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getCurrentPageFieldBuilder().getBuilder(); } @@ -4597,8 +4665,9 @@ public com.google.cloud.dialogflow.cx.v3.Page.Builder getCurrentPageBuilder() { * * *
-     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-     * including but not limited to `name` and `display_name`.
+     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+     * fields are filled in this message, including but not limited to `name` and
+     * `display_name`.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 7; @@ -4616,8 +4685,9 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getCurrentPageOrBuilder() * * *
-     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-     * including but not limited to `name` and `display_name`.
+     * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+     * fields are filled in this message, including but not limited to `name` and
+     * `display_name`.
      * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 7; @@ -4649,36 +4719,40 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getCurrentPageOrBuilder() * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
-     * are filled in this message, including but not limited to: `name` and
-     * `display_name`.
-     * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+     * conversational query. Some, not all fields are filled in this message,
+     * including but not limited to: `name` and `display_name`. This field is
+     * deprecated, please use
+     * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+     * instead.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=604 + * google/cloud/dialogflow/cx/v3/session.proto;l=642 * @return Whether the intent field is set. */ @java.lang.Deprecated public boolean hasIntent() { - return intentBuilder_ != null || intent_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
-     * are filled in this message, including but not limited to: `name` and
-     * `display_name`.
-     * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+     * conversational query. Some, not all fields are filled in this message,
+     * including but not limited to: `name` and `display_name`. This field is
+     * deprecated, please use
+     * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+     * instead.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=604 + * google/cloud/dialogflow/cx/v3/session.proto;l=642 * @return The intent. */ @java.lang.Deprecated @@ -4695,10 +4769,12 @@ public com.google.cloud.dialogflow.cx.v3.Intent getIntent() { * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
-     * are filled in this message, including but not limited to: `name` and
-     * `display_name`.
-     * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+     * conversational query. Some, not all fields are filled in this message,
+     * including but not limited to: `name` and `display_name`. This field is
+     * deprecated, please use
+     * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+     * instead.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; @@ -4710,21 +4786,23 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent value) { throw new NullPointerException(); } intent_ = value; - onChanged(); } else { intentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
-     * are filled in this message, including but not limited to: `name` and
-     * `display_name`.
-     * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+     * conversational query. Some, not all fields are filled in this message,
+     * including but not limited to: `name` and `display_name`. This field is
+     * deprecated, please use
+     * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+     * instead.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; @@ -4733,21 +4811,23 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent value) { public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent.Builder builderForValue) { if (intentBuilder_ == null) { intent_ = builderForValue.build(); - onChanged(); } else { intentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
-     * are filled in this message, including but not limited to: `name` and
-     * `display_name`.
-     * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+     * conversational query. Some, not all fields are filled in this message,
+     * including but not limited to: `name` and `display_name`. This field is
+     * deprecated, please use
+     * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+     * instead.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; @@ -4755,60 +4835,62 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent.Builder builde @java.lang.Deprecated public Builder mergeIntent(com.google.cloud.dialogflow.cx.v3.Intent value) { if (intentBuilder_ == null) { - if (intent_ != null) { - intent_ = - com.google.cloud.dialogflow.cx.v3.Intent.newBuilder(intent_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000800) != 0) + && intent_ != null + && intent_ != com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance()) { + getIntentBuilder().mergeFrom(value); } else { intent_ = value; } - onChanged(); } else { intentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
-     * are filled in this message, including but not limited to: `name` and
-     * `display_name`.
-     * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+     * conversational query. Some, not all fields are filled in this message,
+     * including but not limited to: `name` and `display_name`. This field is
+     * deprecated, please use
+     * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+     * instead.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; */ @java.lang.Deprecated public Builder clearIntent() { - if (intentBuilder_ == null) { - intent_ = null; - onChanged(); - } else { - intent_ = null; + bitField0_ = (bitField0_ & ~0x00000800); + intent_ = null; + if (intentBuilder_ != null) { + intentBuilder_.dispose(); intentBuilder_ = null; } - + onChanged(); return this; } /** * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
-     * are filled in this message, including but not limited to: `name` and
-     * `display_name`.
-     * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+     * conversational query. Some, not all fields are filled in this message,
+     * including but not limited to: `name` and `display_name`. This field is
+     * deprecated, please use
+     * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+     * instead.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; */ @java.lang.Deprecated public com.google.cloud.dialogflow.cx.v3.Intent.Builder getIntentBuilder() { - + bitField0_ |= 0x00000800; onChanged(); return getIntentFieldBuilder().getBuilder(); } @@ -4816,10 +4898,12 @@ public com.google.cloud.dialogflow.cx.v3.Intent.Builder getIntentBuilder() { * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
-     * are filled in this message, including but not limited to: `name` and
-     * `display_name`.
-     * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+     * conversational query. Some, not all fields are filled in this message,
+     * including but not limited to: `name` and `display_name`. This field is
+     * deprecated, please use
+     * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+     * instead.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; @@ -4838,10 +4922,12 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() { * * *
-     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
-     * are filled in this message, including but not limited to: `name` and
-     * `display_name`.
-     * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+     * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+     * conversational query. Some, not all fields are filled in this message,
+     * including but not limited to: `name` and `display_name`. This field is
+     * deprecated, please use
+     * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+     * instead.
      * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; @@ -4874,13 +4960,15 @@ public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() { * help match the best intent within the classification threshold. * This value may change for the same end-user expression at any time due to a * model retraining or change in implementation. - * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead. + * This field is deprecated, please use + * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] + * instead. *
* * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=613 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=653 * @return The intentDetectionConfidence. */ @java.lang.Override @@ -4898,13 +4986,15 @@ public float getIntentDetectionConfidence() { * help match the best intent within the classification threshold. * This value may change for the same end-user expression at any time due to a * model retraining or change in implementation. - * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead. + * This field is deprecated, please use + * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] + * instead. *
* * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=613 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=653 * @param value The intentDetectionConfidence to set. * @return This builder for chaining. */ @@ -4912,6 +5002,7 @@ public float getIntentDetectionConfidence() { public Builder setIntentDetectionConfidence(float value) { intentDetectionConfidence_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4925,18 +5016,20 @@ public Builder setIntentDetectionConfidence(float value) { * help match the best intent within the classification threshold. * This value may change for the same end-user expression at any time due to a * model retraining or change in implementation. - * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead. + * This field is deprecated, please use + * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] + * instead. *
* * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=613 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=653 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearIntentDetectionConfidence() { - + bitField0_ = (bitField0_ & ~0x00001000); intentDetectionConfidence_ = 0F; onChanged(); return this; @@ -4960,7 +5053,7 @@ public Builder clearIntentDetectionConfidence() { * @return Whether the match field is set. */ public boolean hasMatch() { - return matchBuilder_ != null || match_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -4997,11 +5090,11 @@ public Builder setMatch(com.google.cloud.dialogflow.cx.v3.Match value) { throw new NullPointerException(); } match_ = value; - onChanged(); } else { matchBuilder_.setMessage(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -5016,11 +5109,11 @@ public Builder setMatch(com.google.cloud.dialogflow.cx.v3.Match value) { public Builder setMatch(com.google.cloud.dialogflow.cx.v3.Match.Builder builderForValue) { if (matchBuilder_ == null) { match_ = builderForValue.build(); - onChanged(); } else { matchBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -5034,19 +5127,18 @@ public Builder setMatch(com.google.cloud.dialogflow.cx.v3.Match.Builder builderF */ public Builder mergeMatch(com.google.cloud.dialogflow.cx.v3.Match value) { if (matchBuilder_ == null) { - if (match_ != null) { - match_ = - com.google.cloud.dialogflow.cx.v3.Match.newBuilder(match_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00002000) != 0) + && match_ != null + && match_ != com.google.cloud.dialogflow.cx.v3.Match.getDefaultInstance()) { + getMatchBuilder().mergeFrom(value); } else { match_ = value; } - onChanged(); } else { matchBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -5059,14 +5151,13 @@ public Builder mergeMatch(com.google.cloud.dialogflow.cx.v3.Match value) { * .google.cloud.dialogflow.cx.v3.Match match = 15; */ public Builder clearMatch() { - if (matchBuilder_ == null) { - match_ = null; - onChanged(); - } else { - match_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + match_ = null; + if (matchBuilder_ != null) { + matchBuilder_.dispose(); matchBuilder_ = null; } - + onChanged(); return this; } /** @@ -5079,7 +5170,7 @@ public Builder clearMatch() { * .google.cloud.dialogflow.cx.v3.Match match = 15; */ public com.google.cloud.dialogflow.cx.v3.Match.Builder getMatchBuilder() { - + bitField0_ |= 0x00002000; onChanged(); return getMatchFieldBuilder().getBuilder(); } @@ -5159,7 +5250,7 @@ public com.google.cloud.dialogflow.cx.v3.MatchOrBuilder getMatchOrBuilder() { * @return Whether the diagnosticInfo field is set. */ public boolean hasDiagnosticInfo() { - return diagnosticInfoBuilder_ != null || diagnosticInfo_ != null; + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -5224,11 +5315,11 @@ public Builder setDiagnosticInfo(com.google.protobuf.Struct value) { throw new NullPointerException(); } diagnosticInfo_ = value; - onChanged(); } else { diagnosticInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -5257,11 +5348,11 @@ public Builder setDiagnosticInfo(com.google.protobuf.Struct value) { public Builder setDiagnosticInfo(com.google.protobuf.Struct.Builder builderForValue) { if (diagnosticInfoBuilder_ == null) { diagnosticInfo_ = builderForValue.build(); - onChanged(); } else { diagnosticInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -5289,19 +5380,18 @@ public Builder setDiagnosticInfo(com.google.protobuf.Struct.Builder builderForVa */ public Builder mergeDiagnosticInfo(com.google.protobuf.Struct value) { if (diagnosticInfoBuilder_ == null) { - if (diagnosticInfo_ != null) { - diagnosticInfo_ = - com.google.protobuf.Struct.newBuilder(diagnosticInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00004000) != 0) + && diagnosticInfo_ != null + && diagnosticInfo_ != com.google.protobuf.Struct.getDefaultInstance()) { + getDiagnosticInfoBuilder().mergeFrom(value); } else { diagnosticInfo_ = value; } - onChanged(); } else { diagnosticInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -5328,14 +5418,13 @@ public Builder mergeDiagnosticInfo(com.google.protobuf.Struct value) { * .google.protobuf.Struct diagnostic_info = 10; */ public Builder clearDiagnosticInfo() { - if (diagnosticInfoBuilder_ == null) { - diagnosticInfo_ = null; - onChanged(); - } else { - diagnosticInfo_ = null; + bitField0_ = (bitField0_ & ~0x00004000); + diagnosticInfo_ = null; + if (diagnosticInfoBuilder_ != null) { + diagnosticInfoBuilder_.dispose(); diagnosticInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -5362,7 +5451,7 @@ public Builder clearDiagnosticInfo() { * .google.protobuf.Struct diagnostic_info = 10; */ public com.google.protobuf.Struct.Builder getDiagnosticInfoBuilder() { - + bitField0_ |= 0x00004000; onChanged(); return getDiagnosticInfoFieldBuilder().getBuilder(); } @@ -5450,7 +5539,8 @@ public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() { *
      * The sentiment analyss result, which depends on
      * [`analyze_query_text_sentiment`]
-     * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+     * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+     * specified in the request.
      * 
* * .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17; @@ -5459,7 +5549,7 @@ public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() { * @return Whether the sentimentAnalysisResult field is set. */ public boolean hasSentimentAnalysisResult() { - return sentimentAnalysisResultBuilder_ != null || sentimentAnalysisResult_ != null; + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -5467,7 +5557,8 @@ public boolean hasSentimentAnalysisResult() { *
      * The sentiment analyss result, which depends on
      * [`analyze_query_text_sentiment`]
-     * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+     * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+     * specified in the request.
      * 
* * .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17; @@ -5490,7 +5581,8 @@ public com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult getSentimentAna *
      * The sentiment analyss result, which depends on
      * [`analyze_query_text_sentiment`]
-     * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+     * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+     * specified in the request.
      * 
* * .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17; @@ -5503,11 +5595,11 @@ public Builder setSentimentAnalysisResult( throw new NullPointerException(); } sentimentAnalysisResult_ = value; - onChanged(); } else { sentimentAnalysisResultBuilder_.setMessage(value); } - + bitField0_ |= 0x00008000; + onChanged(); return this; } /** @@ -5516,7 +5608,8 @@ public Builder setSentimentAnalysisResult( *
      * The sentiment analyss result, which depends on
      * [`analyze_query_text_sentiment`]
-     * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+     * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+     * specified in the request.
      * 
* * .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17; @@ -5526,11 +5619,11 @@ public Builder setSentimentAnalysisResult( com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.Builder builderForValue) { if (sentimentAnalysisResultBuilder_ == null) { sentimentAnalysisResult_ = builderForValue.build(); - onChanged(); } else { sentimentAnalysisResultBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00008000; + onChanged(); return this; } /** @@ -5539,7 +5632,8 @@ public Builder setSentimentAnalysisResult( *
      * The sentiment analyss result, which depends on
      * [`analyze_query_text_sentiment`]
-     * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+     * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+     * specified in the request.
      * 
* * .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17; @@ -5548,20 +5642,19 @@ public Builder setSentimentAnalysisResult( public Builder mergeSentimentAnalysisResult( com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult value) { if (sentimentAnalysisResultBuilder_ == null) { - if (sentimentAnalysisResult_ != null) { - sentimentAnalysisResult_ = - com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.newBuilder( - sentimentAnalysisResult_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00008000) != 0) + && sentimentAnalysisResult_ != null + && sentimentAnalysisResult_ + != com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.getDefaultInstance()) { + getSentimentAnalysisResultBuilder().mergeFrom(value); } else { sentimentAnalysisResult_ = value; } - onChanged(); } else { sentimentAnalysisResultBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00008000; + onChanged(); return this; } /** @@ -5570,21 +5663,21 @@ public Builder mergeSentimentAnalysisResult( *
      * The sentiment analyss result, which depends on
      * [`analyze_query_text_sentiment`]
-     * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+     * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+     * specified in the request.
      * 
* * .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17; * */ public Builder clearSentimentAnalysisResult() { - if (sentimentAnalysisResultBuilder_ == null) { - sentimentAnalysisResult_ = null; - onChanged(); - } else { - sentimentAnalysisResult_ = null; + bitField0_ = (bitField0_ & ~0x00008000); + sentimentAnalysisResult_ = null; + if (sentimentAnalysisResultBuilder_ != null) { + sentimentAnalysisResultBuilder_.dispose(); sentimentAnalysisResultBuilder_ = null; } - + onChanged(); return this; } /** @@ -5593,7 +5686,8 @@ public Builder clearSentimentAnalysisResult() { *
      * The sentiment analyss result, which depends on
      * [`analyze_query_text_sentiment`]
-     * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+     * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+     * specified in the request.
      * 
* * .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17; @@ -5601,7 +5695,7 @@ public Builder clearSentimentAnalysisResult() { */ public com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult.Builder getSentimentAnalysisResultBuilder() { - + bitField0_ |= 0x00008000; onChanged(); return getSentimentAnalysisResultFieldBuilder().getBuilder(); } @@ -5611,7 +5705,8 @@ public Builder clearSentimentAnalysisResult() { *
      * The sentiment analyss result, which depends on
      * [`analyze_query_text_sentiment`]
-     * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+     * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+     * specified in the request.
      * 
* * .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17; @@ -5633,7 +5728,8 @@ public Builder clearSentimentAnalysisResult() { *
      * The sentiment analyss result, which depends on
      * [`analyze_query_text_sentiment`]
-     * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+     * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+     * specified in the request.
      * 
* * .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java index 68ac525e48aa..48dde3e24184 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java @@ -27,8 +27,8 @@ public interface QueryResultOrBuilder * * *
-   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-   * will contain a copy of the text.
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+   * provided as input, this field will contain a copy of the text.
    * 
* * string text = 1; @@ -40,8 +40,8 @@ public interface QueryResultOrBuilder * * *
-   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-   * will contain a copy of the text.
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+   * provided as input, this field will contain a copy of the text.
    * 
* * string text = 1; @@ -53,8 +53,8 @@ public interface QueryResultOrBuilder * * *
-   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-   * will contain a copy of the text.
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+   * provided as input, this field will contain a copy of the text.
    * 
* * string text = 1; @@ -67,9 +67,9 @@ public interface QueryResultOrBuilder * * *
-   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-   * contain a copy of the intent identifier.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+   * input, this field will contain a copy of the intent identifier. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
    * 
* @@ -82,9 +82,9 @@ public interface QueryResultOrBuilder * * *
-   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-   * contain a copy of the intent identifier.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+   * input, this field will contain a copy of the intent identifier. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
    * 
* @@ -97,9 +97,9 @@ public interface QueryResultOrBuilder * * *
-   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-   * contain a copy of the intent identifier.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+   * input, this field will contain a copy of the intent identifier. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
    * 
* @@ -113,7 +113,8 @@ public interface QueryResultOrBuilder * * *
-   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * If [natural language speech
+   * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
    * this field will contain the transcript for the audio.
    * 
* @@ -126,7 +127,8 @@ public interface QueryResultOrBuilder * * *
-   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * If [natural language speech
+   * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
    * this field will contain the transcript for the audio.
    * 
* @@ -139,7 +141,8 @@ public interface QueryResultOrBuilder * * *
-   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * If [natural language speech
+   * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
    * this field will contain the transcript for the audio.
    * 
* @@ -153,8 +156,8 @@ public interface QueryResultOrBuilder * * *
-   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-   * the name of the event.
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+   * input, this field will contain the name of the event.
    * 
* * string trigger_event = 14; @@ -166,8 +169,8 @@ public interface QueryResultOrBuilder * * *
-   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-   * the name of the event.
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+   * input, this field will contain the name of the event.
    * 
* * string trigger_event = 14; @@ -179,8 +182,8 @@ public interface QueryResultOrBuilder * * *
-   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-   * the name of the event.
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+   * input, this field will contain the name of the event.
    * 
* * string trigger_event = 14; @@ -262,7 +265,8 @@ public interface QueryResultOrBuilder * * *
-   * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+   * The collected [session
+   * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
    * Depending on your protocol or client library language, this is a
    * map, associative array, symbol table, dictionary, or JSON object
    * composed of a collection of (MapKey, MapValue) pairs:
@@ -285,7 +289,8 @@ public interface QueryResultOrBuilder
    *
    *
    * 
-   * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+   * The collected [session
+   * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
    * Depending on your protocol or client library language, this is a
    * map, associative array, symbol table, dictionary, or JSON object
    * composed of a collection of (MapKey, MapValue) pairs:
@@ -308,7 +313,8 @@ public interface QueryResultOrBuilder
    *
    *
    * 
-   * The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+   * The collected [session
+   * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
    * Depending on your protocol or client library language, this is a
    * map, associative array, symbol table, dictionary, or JSON object
    * composed of a collection of (MapKey, MapValue) pairs:
@@ -444,8 +450,9 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr
    *
    *
    * 
-   * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-   * the order of call sequence. If some webhook call fails or doesn't return
+   * The list of webhook payload in
+   * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+   * in the order of call sequence. If some webhook call fails or doesn't return
    * any payload, an empty `Struct` would be used instead.
    * 
* @@ -456,8 +463,9 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr * * *
-   * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-   * the order of call sequence. If some webhook call fails or doesn't return
+   * The list of webhook payload in
+   * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+   * in the order of call sequence. If some webhook call fails or doesn't return
    * any payload, an empty `Struct` would be used instead.
    * 
* @@ -468,8 +476,9 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr * * *
-   * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-   * the order of call sequence. If some webhook call fails or doesn't return
+   * The list of webhook payload in
+   * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+   * in the order of call sequence. If some webhook call fails or doesn't return
    * any payload, an empty `Struct` would be used instead.
    * 
* @@ -480,8 +489,9 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr * * *
-   * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-   * the order of call sequence. If some webhook call fails or doesn't return
+   * The list of webhook payload in
+   * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+   * in the order of call sequence. If some webhook call fails or doesn't return
    * any payload, an empty `Struct` would be used instead.
    * 
* @@ -492,8 +502,9 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr * * *
-   * The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in
-   * the order of call sequence. If some webhook call fails or doesn't return
+   * The list of webhook payload in
+   * [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload],
+   * in the order of call sequence. If some webhook call fails or doesn't return
    * any payload, an empty `Struct` would be used instead.
    * 
* @@ -505,8 +516,9 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr * * *
-   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-   * including but not limited to `name` and `display_name`.
+   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+   * fields are filled in this message, including but not limited to `name` and
+   * `display_name`.
    * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 7; @@ -518,8 +530,9 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr * * *
-   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-   * including but not limited to `name` and `display_name`.
+   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+   * fields are filled in this message, including but not limited to `name` and
+   * `display_name`.
    * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 7; @@ -531,8 +544,9 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr * * *
-   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message,
-   * including but not limited to `name` and `display_name`.
+   * The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all
+   * fields are filled in this message, including but not limited to `name` and
+   * `display_name`.
    * 
* * .google.cloud.dialogflow.cx.v3.Page current_page = 7; @@ -543,16 +557,18 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr * * *
-   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
-   * are filled in this message, including but not limited to: `name` and
-   * `display_name`.
-   * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+   * conversational query. Some, not all fields are filled in this message,
+   * including but not limited to: `name` and `display_name`. This field is
+   * deprecated, please use
+   * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+   * instead.
    * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=604 + * google/cloud/dialogflow/cx/v3/session.proto;l=642 * @return Whether the intent field is set. */ @java.lang.Deprecated @@ -561,16 +577,18 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr * * *
-   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
-   * are filled in this message, including but not limited to: `name` and
-   * `display_name`.
-   * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+   * conversational query. Some, not all fields are filled in this message,
+   * including but not limited to: `name` and `display_name`. This field is
+   * deprecated, please use
+   * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+   * instead.
    * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent is deprecated. See - * google/cloud/dialogflow/cx/v3/session.proto;l=604 + * google/cloud/dialogflow/cx/v3/session.proto;l=642 * @return The intent. */ @java.lang.Deprecated @@ -579,10 +597,12 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr * * *
-   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields
-   * are filled in this message, including but not limited to: `name` and
-   * `display_name`.
-   * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead.
+   * The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the
+   * conversational query. Some, not all fields are filled in this message,
+   * including but not limited to: `name` and `display_name`. This field is
+   * deprecated, please use
+   * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match]
+   * instead.
    * 
* * .google.cloud.dialogflow.cx.v3.Intent intent = 8 [deprecated = true]; @@ -600,13 +620,15 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr * help match the best intent within the classification threshold. * This value may change for the same end-user expression at any time due to a * model retraining or change in implementation. - * This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead. + * This field is deprecated, please use + * [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] + * instead. *
* * float intent_detection_confidence = 9 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.QueryResult.intent_detection_confidence is - * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=613 + * deprecated. See google/cloud/dialogflow/cx/v3/session.proto;l=653 * @return The intentDetectionConfidence. */ @java.lang.Deprecated @@ -730,7 +752,8 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr *
    * The sentiment analyss result, which depends on
    * [`analyze_query_text_sentiment`]
-   * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+   * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+   * specified in the request.
    * 
* * .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17; @@ -745,7 +768,8 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr *
    * The sentiment analyss result, which depends on
    * [`analyze_query_text_sentiment`]
-   * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+   * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+   * specified in the request.
    * 
* * .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17; @@ -760,7 +784,8 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr *
    * The sentiment analyss result, which depends on
    * [`analyze_query_text_sentiment`]
-   * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request.
+   * [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment],
+   * specified in the request.
    * 
* * .google.cloud.dialogflow.cx.v3.SentimentAnalysisResult sentiment_analysis_result = 17; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResourceName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResourceName.java index 0e1175210895..aef7b180a29d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResourceName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResourceName.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -118,7 +120,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -372,10 +376,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - return this; } @@ -403,12 +406,23 @@ public com.google.cloud.dialogflow.cx.v3.ResourceName build() { public com.google.cloud.dialogflow.cx.v3.ResourceName buildPartial() { com.google.cloud.dialogflow.cx.v3.ResourceName result = new com.google.cloud.dialogflow.cx.v3.ResourceName(this); - result.name_ = name_; - result.displayName_ = displayName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ResourceName result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -456,10 +470,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ResourceName other) { if (other == com.google.cloud.dialogflow.cx.v3.ResourceName.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -491,13 +507,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -517,6 +533,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -578,8 +596,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -595,8 +613,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -617,8 +635,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -684,8 +702,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -701,8 +719,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -723,8 +741,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessage.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessage.java index a17d306ed0bd..6601132121c9 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessage.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessage.java @@ -50,7 +50,9 @@ private ResponseMessage(com.google.protobuf.GeneratedMessageV3.Builder builde super(builder); } - private ResponseMessage() {} + private ResponseMessage() { + channel_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -138,8 +140,8 @@ public interface TextOrBuilder * * *
-     * Output only. Whether the playback of this message can be interrupted by the end
-     * user's speech and the client can then starts the next Dialogflow
+     * Output only. Whether the playback of this message can be interrupted by
+     * the end user's speech and the client can then starts the next Dialogflow
      * request.
      * 
* @@ -200,6 +202,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TEXT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList text_; /** * @@ -261,13 +265,13 @@ public com.google.protobuf.ByteString getTextBytes(int index) { } public static final int ALLOW_PLAYBACK_INTERRUPTION_FIELD_NUMBER = 2; - private boolean allowPlaybackInterruption_; + private boolean allowPlaybackInterruption_ = false; /** * * *
-     * Output only. Whether the playback of this message can be interrupted by the end
-     * user's speech and the client can then starts the next Dialogflow
+     * Output only. Whether the playback of this message can be interrupted by
+     * the end user's speech and the client can then starts the next Dialogflow
      * request.
      * 
* @@ -498,10 +502,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; text_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); allowPlaybackInterruption_ = false; - return this; } @@ -529,15 +533,28 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text build() { public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text buildPartial() { com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text result = new com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text result) { if (((bitField0_ & 0x00000001) != 0)) { text_ = text_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.text_ = text_; - result.allowPlaybackInterruption_ = allowPlaybackInterruption_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.allowPlaybackInterruption_ = allowPlaybackInterruption_; + } } @java.lang.Override @@ -637,7 +654,7 @@ public Builder mergeFrom( case 16: { allowPlaybackInterruption_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -832,8 +849,8 @@ public Builder addTextBytes(com.google.protobuf.ByteString value) { * * *
-       * Output only. Whether the playback of this message can be interrupted by the end
-       * user's speech and the client can then starts the next Dialogflow
+       * Output only. Whether the playback of this message can be interrupted by
+       * the end user's speech and the client can then starts the next Dialogflow
        * request.
        * 
* @@ -850,8 +867,8 @@ public boolean getAllowPlaybackInterruption() { * * *
-       * Output only. Whether the playback of this message can be interrupted by the end
-       * user's speech and the client can then starts the next Dialogflow
+       * Output only. Whether the playback of this message can be interrupted by
+       * the end user's speech and the client can then starts the next Dialogflow
        * request.
        * 
* @@ -864,6 +881,7 @@ public boolean getAllowPlaybackInterruption() { public Builder setAllowPlaybackInterruption(boolean value) { allowPlaybackInterruption_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -871,8 +889,8 @@ public Builder setAllowPlaybackInterruption(boolean value) { * * *
-       * Output only. Whether the playback of this message can be interrupted by the end
-       * user's speech and the client can then starts the next Dialogflow
+       * Output only. Whether the playback of this message can be interrupted by
+       * the end user's speech and the client can then starts the next Dialogflow
        * request.
        * 
* @@ -882,7 +900,7 @@ public Builder setAllowPlaybackInterruption(boolean value) { * @return This builder for chaining. */ public Builder clearAllowPlaybackInterruption() { - + bitField0_ = (bitField0_ & ~0x00000002); allowPlaybackInterruption_ = false; onChanged(); return this; @@ -1004,7 +1022,9 @@ public interface LiveAgentHandoffOrBuilder * to a human agent for measurement purposes. What else to do with this signal * is up to you and your handoff procedures. * You may set this, for example: - * * In the [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment] of a [Page][google.cloud.dialogflow.cx.v3.Page] if + * * In the + * [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment] + * of a [Page][google.cloud.dialogflow.cx.v3.Page] if * entering the page indicates something went extremely wrong in the * conversation. * * In a webhook response when you determine that the customer issue can only @@ -1097,7 +1117,7 @@ public com.google.protobuf.Struct getMetadata() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } private byte memoizedIsInitialized = -1; @@ -1276,7 +1296,9 @@ protected Builder newBuilderForType( * to a human agent for measurement purposes. What else to do with this signal * is up to you and your handoff procedures. * You may set this, for example: - * * In the [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment] of a [Page][google.cloud.dialogflow.cx.v3.Page] if + * * In the + * [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment] + * of a [Page][google.cloud.dialogflow.cx.v3.Page] if * entering the page indicates something went extremely wrong in the * conversation. * * In a webhook response when you determine that the customer issue can only @@ -1316,10 +1338,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + bitField0_ = 0; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; @@ -1351,15 +1373,21 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff build( public com.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff buildPartial() { com.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff result = new com.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff(this); - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1443,7 +1471,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -1463,6 +1491,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Struct metadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, @@ -1482,7 +1512,7 @@ public Builder mergeFrom( * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1519,11 +1549,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) { throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1539,11 +1569,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) { public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1558,17 +1588,18 @@ public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Struct value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1582,14 +1613,13 @@ public Builder mergeMetadata(com.google.protobuf.Struct value) { * .google.protobuf.Struct metadata = 1; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -1603,7 +1633,7 @@ public Builder clearMetadata() { * .google.protobuf.Struct metadata = 1; */ public com.google.protobuf.Struct.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -1770,7 +1800,9 @@ public interface ConversationSuccessOrBuilder * conversation end page as successful even if they don't return * [ConversationSuccess][google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess]. * You may set this, for example: - * * In the [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment] of a [Page][google.cloud.dialogflow.cx.v3.Page] if + * * In the + * [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment] + * of a [Page][google.cloud.dialogflow.cx.v3.Page] if * entering the page indicates that the conversation succeeded. * * In a webhook response when you determine that you handled the customer * issue. @@ -1859,7 +1891,7 @@ public com.google.protobuf.Struct getMetadata() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } private byte memoizedIsInitialized = -1; @@ -2041,7 +2073,9 @@ protected Builder newBuilderForType( * conversation end page as successful even if they don't return * [ConversationSuccess][google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess]. * You may set this, for example: - * * In the [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment] of a [Page][google.cloud.dialogflow.cx.v3.Page] if + * * In the + * [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment] + * of a [Page][google.cloud.dialogflow.cx.v3.Page] if * entering the page indicates that the conversation succeeded. * * In a webhook response when you determine that you handled the customer * issue. @@ -2081,10 +2115,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + bitField0_ = 0; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; @@ -2117,15 +2151,21 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess bui public com.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess buildPartial() { com.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess result = new com.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess(this); - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2210,7 +2250,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -2230,6 +2270,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Struct metadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, @@ -2248,7 +2290,7 @@ public Builder mergeFrom( * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -2283,11 +2325,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) { throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2302,11 +2344,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) { public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2320,17 +2362,18 @@ public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Struct value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2343,14 +2386,13 @@ public Builder mergeMetadata(com.google.protobuf.Struct value) { * .google.protobuf.Struct metadata = 1; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -2363,7 +2405,7 @@ public Builder clearMetadata() { * .google.protobuf.Struct metadata = 1; */ public com.google.protobuf.Struct.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -2563,8 +2605,8 @@ public interface OutputAudioTextOrBuilder * * *
-     * Output only. Whether the playback of this message can be interrupted by the end
-     * user's speech and the client can then starts the next Dialogflow
+     * Output only. Whether the playback of this message can be interrupted by
+     * the end user's speech and the client can then starts the next Dialogflow
      * request.
      * 
* @@ -2817,13 +2859,13 @@ public com.google.protobuf.ByteString getSsmlBytes() { } public static final int ALLOW_PLAYBACK_INTERRUPTION_FIELD_NUMBER = 3; - private boolean allowPlaybackInterruption_; + private boolean allowPlaybackInterruption_ = false; /** * * *
-     * Output only. Whether the playback of this message can be interrupted by the end
-     * user's speech and the client can then starts the next Dialogflow
+     * Output only. Whether the playback of this message can be interrupted by
+     * the end user's speech and the client can then starts the next Dialogflow
      * request.
      * 
* @@ -3076,8 +3118,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; allowPlaybackInterruption_ = false; - sourceCase_ = 0; source_ = null; return this; @@ -3109,18 +3151,28 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText build() public com.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText buildPartial() { com.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText result = new com.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText(this); - if (sourceCase_ == 1) { - result.source_ = source_; - } - if (sourceCase_ == 2) { - result.source_ = source_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.allowPlaybackInterruption_ = allowPlaybackInterruption_; - result.sourceCase_ = sourceCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.allowPlaybackInterruption_ = allowPlaybackInterruption_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioText result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3238,7 +3290,7 @@ public Builder mergeFrom( case 24: { allowPlaybackInterruption_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -3272,6 +3324,8 @@ public Builder clearSource() { return this; } + private int bitField0_; + /** * * @@ -3551,8 +3605,8 @@ public Builder setSsmlBytes(com.google.protobuf.ByteString value) { * * *
-       * Output only. Whether the playback of this message can be interrupted by the end
-       * user's speech and the client can then starts the next Dialogflow
+       * Output only. Whether the playback of this message can be interrupted by
+       * the end user's speech and the client can then starts the next Dialogflow
        * request.
        * 
* @@ -3569,8 +3623,8 @@ public boolean getAllowPlaybackInterruption() { * * *
-       * Output only. Whether the playback of this message can be interrupted by the end
-       * user's speech and the client can then starts the next Dialogflow
+       * Output only. Whether the playback of this message can be interrupted by
+       * the end user's speech and the client can then starts the next Dialogflow
        * request.
        * 
* @@ -3583,6 +3637,7 @@ public boolean getAllowPlaybackInterruption() { public Builder setAllowPlaybackInterruption(boolean value) { allowPlaybackInterruption_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3590,8 +3645,8 @@ public Builder setAllowPlaybackInterruption(boolean value) { * * *
-       * Output only. Whether the playback of this message can be interrupted by the end
-       * user's speech and the client can then starts the next Dialogflow
+       * Output only. Whether the playback of this message can be interrupted by
+       * the end user's speech and the client can then starts the next Dialogflow
        * request.
        * 
* @@ -3601,7 +3656,7 @@ public Builder setAllowPlaybackInterruption(boolean value) { * @return This builder for chaining. */ public Builder clearAllowPlaybackInterruption() { - + bitField0_ = (bitField0_ & ~0x00000004); allowPlaybackInterruption_ = false; onChanged(); return this; @@ -4125,8 +4180,8 @@ public interface PlayAudioOrBuilder * * *
-     * Required. URI of the audio clip. Dialogflow does not impose any validation on this
-     * value. It is specific to the client that reads it.
+     * Required. URI of the audio clip. Dialogflow does not impose any
+     * validation on this value. It is specific to the client that reads it.
      * 
* * string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -4138,8 +4193,8 @@ public interface PlayAudioOrBuilder * * *
-     * Required. URI of the audio clip. Dialogflow does not impose any validation on this
-     * value. It is specific to the client that reads it.
+     * Required. URI of the audio clip. Dialogflow does not impose any
+     * validation on this value. It is specific to the client that reads it.
      * 
* * string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -4152,8 +4207,8 @@ public interface PlayAudioOrBuilder * * *
-     * Output only. Whether the playback of this message can be interrupted by the end
-     * user's speech and the client can then starts the next Dialogflow
+     * Output only. Whether the playback of this message can be interrupted by
+     * the end user's speech and the client can then starts the next Dialogflow
      * request.
      * 
* @@ -4214,13 +4269,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int AUDIO_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object audioUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object audioUri_ = ""; /** * * *
-     * Required. URI of the audio clip. Dialogflow does not impose any validation on this
-     * value. It is specific to the client that reads it.
+     * Required. URI of the audio clip. Dialogflow does not impose any
+     * validation on this value. It is specific to the client that reads it.
      * 
* * string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -4243,8 +4300,8 @@ public java.lang.String getAudioUri() { * * *
-     * Required. URI of the audio clip. Dialogflow does not impose any validation on this
-     * value. It is specific to the client that reads it.
+     * Required. URI of the audio clip. Dialogflow does not impose any
+     * validation on this value. It is specific to the client that reads it.
      * 
* * string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -4265,13 +4322,13 @@ public com.google.protobuf.ByteString getAudioUriBytes() { } public static final int ALLOW_PLAYBACK_INTERRUPTION_FIELD_NUMBER = 2; - private boolean allowPlaybackInterruption_; + private boolean allowPlaybackInterruption_ = false; /** * * *
-     * Output only. Whether the playback of this message can be interrupted by the end
-     * user's speech and the client can then starts the next Dialogflow
+     * Output only. Whether the playback of this message can be interrupted by
+     * the end user's speech and the client can then starts the next Dialogflow
      * request.
      * 
* @@ -4495,10 +4552,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; audioUri_ = ""; - allowPlaybackInterruption_ = false; - return this; } @@ -4527,12 +4583,24 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio build() { public com.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio buildPartial() { com.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio result = new com.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio(this); - result.audioUri_ = audioUri_; - result.allowPlaybackInterruption_ = allowPlaybackInterruption_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.audioUri_ = audioUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.allowPlaybackInterruption_ = allowPlaybackInterruption_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -4584,6 +4652,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayA return this; if (!other.getAudioUri().isEmpty()) { audioUri_ = other.audioUri_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getAllowPlaybackInterruption() != false) { @@ -4618,13 +4687,13 @@ public Builder mergeFrom( case 10: { audioUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { allowPlaybackInterruption_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -4644,13 +4713,15 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object audioUri_ = ""; /** * * *
-       * Required. URI of the audio clip. Dialogflow does not impose any validation on this
-       * value. It is specific to the client that reads it.
+       * Required. URI of the audio clip. Dialogflow does not impose any
+       * validation on this value. It is specific to the client that reads it.
        * 
* * string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -4672,8 +4743,8 @@ public java.lang.String getAudioUri() { * * *
-       * Required. URI of the audio clip. Dialogflow does not impose any validation on this
-       * value. It is specific to the client that reads it.
+       * Required. URI of the audio clip. Dialogflow does not impose any
+       * validation on this value. It is specific to the client that reads it.
        * 
* * string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -4695,8 +4766,8 @@ public com.google.protobuf.ByteString getAudioUriBytes() { * * *
-       * Required. URI of the audio clip. Dialogflow does not impose any validation on this
-       * value. It is specific to the client that reads it.
+       * Required. URI of the audio clip. Dialogflow does not impose any
+       * validation on this value. It is specific to the client that reads it.
        * 
* * string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -4708,8 +4779,8 @@ public Builder setAudioUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - audioUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4717,8 +4788,8 @@ public Builder setAudioUri(java.lang.String value) { * * *
-       * Required. URI of the audio clip. Dialogflow does not impose any validation on this
-       * value. It is specific to the client that reads it.
+       * Required. URI of the audio clip. Dialogflow does not impose any
+       * validation on this value. It is specific to the client that reads it.
        * 
* * string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -4726,8 +4797,8 @@ public Builder setAudioUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAudioUri() { - audioUri_ = getDefaultInstance().getAudioUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -4735,8 +4806,8 @@ public Builder clearAudioUri() { * * *
-       * Required. URI of the audio clip. Dialogflow does not impose any validation on this
-       * value. It is specific to the client that reads it.
+       * Required. URI of the audio clip. Dialogflow does not impose any
+       * validation on this value. It is specific to the client that reads it.
        * 
* * string audio_uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -4749,8 +4820,8 @@ public Builder setAudioUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - audioUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4760,8 +4831,8 @@ public Builder setAudioUriBytes(com.google.protobuf.ByteString value) { * * *
-       * Output only. Whether the playback of this message can be interrupted by the end
-       * user's speech and the client can then starts the next Dialogflow
+       * Output only. Whether the playback of this message can be interrupted by
+       * the end user's speech and the client can then starts the next Dialogflow
        * request.
        * 
* @@ -4778,8 +4849,8 @@ public boolean getAllowPlaybackInterruption() { * * *
-       * Output only. Whether the playback of this message can be interrupted by the end
-       * user's speech and the client can then starts the next Dialogflow
+       * Output only. Whether the playback of this message can be interrupted by
+       * the end user's speech and the client can then starts the next Dialogflow
        * request.
        * 
* @@ -4792,6 +4863,7 @@ public boolean getAllowPlaybackInterruption() { public Builder setAllowPlaybackInterruption(boolean value) { allowPlaybackInterruption_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4799,8 +4871,8 @@ public Builder setAllowPlaybackInterruption(boolean value) { * * *
-       * Output only. Whether the playback of this message can be interrupted by the end
-       * user's speech and the client can then starts the next Dialogflow
+       * Output only. Whether the playback of this message can be interrupted by
+       * the end user's speech and the client can then starts the next Dialogflow
        * request.
        * 
* @@ -4810,7 +4882,7 @@ public Builder setAllowPlaybackInterruption(boolean value) { * @return This builder for chaining. */ public Builder clearAllowPlaybackInterruption() { - + bitField0_ = (bitField0_ & ~0x00000002); allowPlaybackInterruption_ = false; onChanged(); return this; @@ -5082,9 +5154,9 @@ public interface SegmentOrBuilder * * *
-       * Output only. Whether the playback of this segment can be interrupted by the end
-       * user's speech and the client should then start the next Dialogflow
-       * request.
+       * Output only. Whether the playback of this segment can be interrupted by
+       * the end user's speech and the client should then start the next
+       * Dialogflow request.
        * 
* * bool allow_playback_interruption = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -5302,14 +5374,14 @@ public com.google.protobuf.ByteString getUriBytes() { } public static final int ALLOW_PLAYBACK_INTERRUPTION_FIELD_NUMBER = 3; - private boolean allowPlaybackInterruption_; + private boolean allowPlaybackInterruption_ = false; /** * * *
-       * Output only. Whether the playback of this segment can be interrupted by the end
-       * user's speech and the client should then start the next Dialogflow
-       * request.
+       * Output only. Whether the playback of this segment can be interrupted by
+       * the end user's speech and the client should then start the next
+       * Dialogflow request.
        * 
* * bool allow_playback_interruption = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -5566,8 +5638,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; allowPlaybackInterruption_ = false; - contentCase_ = 0; content_ = null; return this; @@ -5600,18 +5672,28 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment buil public com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment buildPartial() { com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment result = new com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment(this); - if (contentCase_ == 1) { - result.content_ = content_; - } - if (contentCase_ == 2) { - result.content_ = content_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.allowPlaybackInterruption_ = allowPlaybackInterruption_; - result.contentCase_ = contentCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.allowPlaybackInterruption_ = allowPlaybackInterruption_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment result) { + result.contentCase_ = contentCase_; + result.content_ = this.content_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -5727,7 +5809,7 @@ public Builder mergeFrom( case 24: { allowPlaybackInterruption_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -5761,6 +5843,8 @@ public Builder clearContent() { return this; } + private int bitField0_; + /** * * @@ -5982,9 +6066,9 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { * * *
-         * Output only. Whether the playback of this segment can be interrupted by the end
-         * user's speech and the client should then start the next Dialogflow
-         * request.
+         * Output only. Whether the playback of this segment can be interrupted by
+         * the end user's speech and the client should then start the next
+         * Dialogflow request.
          * 
* * bool allow_playback_interruption = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -6000,9 +6084,9 @@ public boolean getAllowPlaybackInterruption() { * * *
-         * Output only. Whether the playback of this segment can be interrupted by the end
-         * user's speech and the client should then start the next Dialogflow
-         * request.
+         * Output only. Whether the playback of this segment can be interrupted by
+         * the end user's speech and the client should then start the next
+         * Dialogflow request.
          * 
* * bool allow_playback_interruption = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -6014,6 +6098,7 @@ public boolean getAllowPlaybackInterruption() { public Builder setAllowPlaybackInterruption(boolean value) { allowPlaybackInterruption_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -6021,9 +6106,9 @@ public Builder setAllowPlaybackInterruption(boolean value) { * * *
-         * Output only. Whether the playback of this segment can be interrupted by the end
-         * user's speech and the client should then start the next Dialogflow
-         * request.
+         * Output only. Whether the playback of this segment can be interrupted by
+         * the end user's speech and the client should then start the next
+         * Dialogflow request.
          * 
* * bool allow_playback_interruption = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -6032,7 +6117,7 @@ public Builder setAllowPlaybackInterruption(boolean value) { * @return This builder for chaining. */ public Builder clearAllowPlaybackInterruption() { - + bitField0_ = (bitField0_ & ~0x00000004); allowPlaybackInterruption_ = false; onChanged(); return this; @@ -6107,6 +6192,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int SEGMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List segments_; /** @@ -6398,6 +6485,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); } else { @@ -6433,7 +6521,16 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio build() { public com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio buildPartial() { com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio result = new com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio result) { if (segmentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); @@ -6443,8 +6540,11 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio buildPartial } else { result.segments_ = segmentsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -7494,6 +7594,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; endpointCase_ = 0; endpoint_ = null; return this; @@ -7527,14 +7628,25 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall b buildPartial() { com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall result = new com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall(this); - if (endpointCase_ == 1) { - result.endpoint_ = endpoint_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.endpointCase_ = endpointCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall result) { + result.endpointCase_ = endpointCase_; + result.endpoint_ = this.endpoint_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -7664,6 +7776,8 @@ public Builder clearEndpoint() { return this; } + private int bitField0_; + /** * * @@ -8221,10 +8335,10 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoff getLiv * * *
-   * Output only. A signal that indicates the interaction with the Dialogflow agent has
-   * ended.
-   * This message is generated by Dialogflow only when the conversation
-   * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+   * Output only. A signal that indicates the interaction with the Dialogflow
+   * agent has ended. This message is generated by Dialogflow only when the
+   * conversation reaches `END_SESSION` page. It is not supposed to be defined
+   * by the user.
    * It's guaranteed that there is at most one such message in each response.
    * 
* @@ -8242,10 +8356,10 @@ public boolean hasEndInteraction() { * * *
-   * Output only. A signal that indicates the interaction with the Dialogflow agent has
-   * ended.
-   * This message is generated by Dialogflow only when the conversation
-   * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+   * Output only. A signal that indicates the interaction with the Dialogflow
+   * agent has ended. This message is generated by Dialogflow only when the
+   * conversation reaches `END_SESSION` page. It is not supposed to be defined
+   * by the user.
    * It's guaranteed that there is at most one such message in each response.
    * 
* @@ -8266,10 +8380,10 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction getEndIn * * *
-   * Output only. A signal that indicates the interaction with the Dialogflow agent has
-   * ended.
-   * This message is generated by Dialogflow only when the conversation
-   * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+   * Output only. A signal that indicates the interaction with the Dialogflow
+   * agent has ended. This message is generated by Dialogflow only when the
+   * conversation reaches `END_SESSION` page. It is not supposed to be defined
+   * by the user.
    * It's guaranteed that there is at most one such message in each response.
    * 
* @@ -8293,8 +8407,9 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction getEndIn *
    * Signal that the client should play an audio clip hosted at a
    * client-specific URI. Dialogflow uses this to construct
-   * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
-   * does not try to read or process the URI in any way.
+   * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+   * However, Dialogflow itself does not try to read or process the URI in any
+   * way.
    * 
* * .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12; @@ -8311,8 +8426,9 @@ public boolean hasPlayAudio() { *
    * Signal that the client should play an audio clip hosted at a
    * client-specific URI. Dialogflow uses this to construct
-   * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
-   * does not try to read or process the URI in any way.
+   * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+   * However, Dialogflow itself does not try to read or process the URI in any
+   * way.
    * 
* * .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12; @@ -8332,8 +8448,9 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio getPlayAudio( *
    * Signal that the client should play an audio clip hosted at a
    * client-specific URI. Dialogflow uses this to construct
-   * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
-   * does not try to read or process the URI in any way.
+   * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+   * However, Dialogflow itself does not try to read or process the URI in any
+   * way.
    * 
* * .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12; @@ -8352,8 +8469,8 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio getPlayAudio( * * *
-   * Output only. An audio response message composed of both the synthesized Dialogflow
-   * agent responses and responses defined via
+   * Output only. An audio response message composed of both the synthesized
+   * Dialogflow agent responses and responses defined via
    * [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
    * This message is generated by Dialogflow only and not supposed to be
    * defined by the user.
@@ -8373,8 +8490,8 @@ public boolean hasMixedAudio() {
    *
    *
    * 
-   * Output only. An audio response message composed of both the synthesized Dialogflow
-   * agent responses and responses defined via
+   * Output only. An audio response message composed of both the synthesized
+   * Dialogflow agent responses and responses defined via
    * [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
    * This message is generated by Dialogflow only and not supposed to be
    * defined by the user.
@@ -8397,8 +8514,8 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio getMixedAudi
    *
    *
    * 
-   * Output only. An audio response message composed of both the synthesized Dialogflow
-   * agent responses and responses defined via
+   * Output only. An audio response message composed of both the synthesized
+   * Dialogflow agent responses and responses defined via
    * [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
    * This message is generated by Dialogflow only and not supposed to be
    * defined by the user.
@@ -8481,6 +8598,63 @@ public boolean hasTelephonyTransferCall() {
         .getDefaultInstance();
   }
 
+  public static final int CHANNEL_FIELD_NUMBER = 19;
+
+  @SuppressWarnings("serial")
+  private volatile java.lang.Object channel_ = "";
+  /**
+   *
+   *
+   * 
+   * The channel which the response is associated with. Clients can specify the
+   * channel via
+   * [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel],
+   * and only associated channel response will be returned.
+   * 
+ * + * string channel = 19; + * + * @return The channel. + */ + @java.lang.Override + public java.lang.String getChannel() { + java.lang.Object ref = channel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + channel_ = s; + return s; + } + } + /** + * + * + *
+   * The channel which the response is associated with. Clients can specify the
+   * channel via
+   * [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel],
+   * and only associated channel response will be returned.
+   * 
+ * + * string channel = 19; + * + * @return The bytes for channel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getChannelBytes() { + java.lang.Object ref = channel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + channel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -8529,6 +8703,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 18, (com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) message_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, channel_); + } getUnknownFields().writeTo(output); } @@ -8584,6 +8761,9 @@ public int getSerializedSize() { 18, (com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall) message_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(channel_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, channel_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8600,6 +8780,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.dialogflow.cx.v3.ResponseMessage other = (com.google.cloud.dialogflow.cx.v3.ResponseMessage) obj; + if (!getChannel().equals(other.getChannel())) return false; if (!getMessageCase().equals(other.getMessageCase())) return false; switch (messageCase_) { case 1: @@ -8643,6 +8824,8 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + getChannel().hashCode(); switch (messageCase_) { case 1: hash = (37 * hash) + TEXT_FIELD_NUMBER; @@ -8834,6 +9017,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (textBuilder_ != null) { textBuilder_.clear(); } @@ -8861,6 +9045,7 @@ public Builder clear() { if (telephonyTransferCallBuilder_ != null) { telephonyTransferCallBuilder_.clear(); } + channel_ = ""; messageCase_ = 0; message_ = null; return this; @@ -8890,72 +9075,51 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage build() { public com.google.cloud.dialogflow.cx.v3.ResponseMessage buildPartial() { com.google.cloud.dialogflow.cx.v3.ResponseMessage result = new com.google.cloud.dialogflow.cx.v3.ResponseMessage(this); - if (messageCase_ == 1) { - if (textBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = textBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (messageCase_ == 2) { - if (payloadBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = payloadBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ResponseMessage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000200) != 0)) { + result.channel_ = channel_; } - if (messageCase_ == 9) { - if (conversationSuccessBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = conversationSuccessBuilder_.build(); - } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.ResponseMessage result) { + result.messageCase_ = messageCase_; + result.message_ = this.message_; + if (messageCase_ == 1 && textBuilder_ != null) { + result.message_ = textBuilder_.build(); } - if (messageCase_ == 8) { - if (outputAudioTextBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = outputAudioTextBuilder_.build(); - } + if (messageCase_ == 2 && payloadBuilder_ != null) { + result.message_ = payloadBuilder_.build(); } - if (messageCase_ == 10) { - if (liveAgentHandoffBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = liveAgentHandoffBuilder_.build(); - } + if (messageCase_ == 9 && conversationSuccessBuilder_ != null) { + result.message_ = conversationSuccessBuilder_.build(); } - if (messageCase_ == 11) { - if (endInteractionBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = endInteractionBuilder_.build(); - } + if (messageCase_ == 8 && outputAudioTextBuilder_ != null) { + result.message_ = outputAudioTextBuilder_.build(); } - if (messageCase_ == 12) { - if (playAudioBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = playAudioBuilder_.build(); - } + if (messageCase_ == 10 && liveAgentHandoffBuilder_ != null) { + result.message_ = liveAgentHandoffBuilder_.build(); } - if (messageCase_ == 13) { - if (mixedAudioBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = mixedAudioBuilder_.build(); - } + if (messageCase_ == 11 && endInteractionBuilder_ != null) { + result.message_ = endInteractionBuilder_.build(); } - if (messageCase_ == 18) { - if (telephonyTransferCallBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = telephonyTransferCallBuilder_.build(); - } + if (messageCase_ == 12 && playAudioBuilder_ != null) { + result.message_ = playAudioBuilder_.build(); + } + if (messageCase_ == 13 && mixedAudioBuilder_ != null) { + result.message_ = mixedAudioBuilder_.build(); + } + if (messageCase_ == 18 && telephonyTransferCallBuilder_ != null) { + result.message_ = telephonyTransferCallBuilder_.build(); } - result.messageCase_ = messageCase_; - onBuilt(); - return result; } @java.lang.Override @@ -9004,6 +9168,11 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ResponseMessage other) { if (other == com.google.cloud.dialogflow.cx.v3.ResponseMessage.getDefaultInstance()) return this; + if (!other.getChannel().isEmpty()) { + channel_ = other.channel_; + bitField0_ |= 0x00000200; + onChanged(); + } switch (other.getMessageCase()) { case TEXT: { @@ -9138,6 +9307,12 @@ public Builder mergeFrom( messageCase_ = 18; break; } // case 146 + case 154: + { + channel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 154 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -9169,6 +9344,8 @@ public Builder clearMessage() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text, com.google.cloud.dialogflow.cx.v3.ResponseMessage.Text.Builder, @@ -9376,7 +9553,6 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.TextOrBuilder getTextOr } messageCase_ = 1; onChanged(); - ; return textBuilder_; } @@ -9581,7 +9757,6 @@ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { } messageCase_ = 2; onChanged(); - ; return payloadBuilder_; } @@ -9823,7 +9998,6 @@ public Builder clearConversationSuccess() { } messageCase_ = 9; onChanged(); - ; return conversationSuccessBuilder_; } @@ -10062,7 +10236,6 @@ public Builder clearOutputAudioText() { } messageCase_ = 8; onChanged(); - ; return outputAudioTextBuilder_; } @@ -10303,7 +10476,6 @@ public Builder clearLiveAgentHandoff() { } messageCase_ = 10; onChanged(); - ; return liveAgentHandoffBuilder_; } @@ -10316,10 +10488,10 @@ public Builder clearLiveAgentHandoff() { * * *
-     * Output only. A signal that indicates the interaction with the Dialogflow agent has
-     * ended.
-     * This message is generated by Dialogflow only when the conversation
-     * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+     * Output only. A signal that indicates the interaction with the Dialogflow
+     * agent has ended. This message is generated by Dialogflow only when the
+     * conversation reaches `END_SESSION` page. It is not supposed to be defined
+     * by the user.
      * It's guaranteed that there is at most one such message in each response.
      * 
* @@ -10337,10 +10509,10 @@ public boolean hasEndInteraction() { * * *
-     * Output only. A signal that indicates the interaction with the Dialogflow agent has
-     * ended.
-     * This message is generated by Dialogflow only when the conversation
-     * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+     * Output only. A signal that indicates the interaction with the Dialogflow
+     * agent has ended. This message is generated by Dialogflow only when the
+     * conversation reaches `END_SESSION` page. It is not supposed to be defined
+     * by the user.
      * It's guaranteed that there is at most one such message in each response.
      * 
* @@ -10370,10 +10542,10 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction getEndIn * * *
-     * Output only. A signal that indicates the interaction with the Dialogflow agent has
-     * ended.
-     * This message is generated by Dialogflow only when the conversation
-     * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+     * Output only. A signal that indicates the interaction with the Dialogflow
+     * agent has ended. This message is generated by Dialogflow only when the
+     * conversation reaches `END_SESSION` page. It is not supposed to be defined
+     * by the user.
      * It's guaranteed that there is at most one such message in each response.
      * 
* @@ -10399,10 +10571,10 @@ public Builder setEndInteraction( * * *
-     * Output only. A signal that indicates the interaction with the Dialogflow agent has
-     * ended.
-     * This message is generated by Dialogflow only when the conversation
-     * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+     * Output only. A signal that indicates the interaction with the Dialogflow
+     * agent has ended. This message is generated by Dialogflow only when the
+     * conversation reaches `END_SESSION` page. It is not supposed to be defined
+     * by the user.
      * It's guaranteed that there is at most one such message in each response.
      * 
* @@ -10425,10 +10597,10 @@ public Builder setEndInteraction( * * *
-     * Output only. A signal that indicates the interaction with the Dialogflow agent has
-     * ended.
-     * This message is generated by Dialogflow only when the conversation
-     * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+     * Output only. A signal that indicates the interaction with the Dialogflow
+     * agent has ended. This message is generated by Dialogflow only when the
+     * conversation reaches `END_SESSION` page. It is not supposed to be defined
+     * by the user.
      * It's guaranteed that there is at most one such message in each response.
      * 
* @@ -10466,10 +10638,10 @@ public Builder mergeEndInteraction( * * *
-     * Output only. A signal that indicates the interaction with the Dialogflow agent has
-     * ended.
-     * This message is generated by Dialogflow only when the conversation
-     * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+     * Output only. A signal that indicates the interaction with the Dialogflow
+     * agent has ended. This message is generated by Dialogflow only when the
+     * conversation reaches `END_SESSION` page. It is not supposed to be defined
+     * by the user.
      * It's guaranteed that there is at most one such message in each response.
      * 
* @@ -10497,10 +10669,10 @@ public Builder clearEndInteraction() { * * *
-     * Output only. A signal that indicates the interaction with the Dialogflow agent has
-     * ended.
-     * This message is generated by Dialogflow only when the conversation
-     * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+     * Output only. A signal that indicates the interaction with the Dialogflow
+     * agent has ended. This message is generated by Dialogflow only when the
+     * conversation reaches `END_SESSION` page. It is not supposed to be defined
+     * by the user.
      * It's guaranteed that there is at most one such message in each response.
      * 
* @@ -10516,10 +10688,10 @@ public Builder clearEndInteraction() { * * *
-     * Output only. A signal that indicates the interaction with the Dialogflow agent has
-     * ended.
-     * This message is generated by Dialogflow only when the conversation
-     * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+     * Output only. A signal that indicates the interaction with the Dialogflow
+     * agent has ended. This message is generated by Dialogflow only when the
+     * conversation reaches `END_SESSION` page. It is not supposed to be defined
+     * by the user.
      * It's guaranteed that there is at most one such message in each response.
      * 
* @@ -10544,10 +10716,10 @@ public Builder clearEndInteraction() { * * *
-     * Output only. A signal that indicates the interaction with the Dialogflow agent has
-     * ended.
-     * This message is generated by Dialogflow only when the conversation
-     * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+     * Output only. A signal that indicates the interaction with the Dialogflow
+     * agent has ended. This message is generated by Dialogflow only when the
+     * conversation reaches `END_SESSION` page. It is not supposed to be defined
+     * by the user.
      * It's guaranteed that there is at most one such message in each response.
      * 
* @@ -10577,7 +10749,6 @@ public Builder clearEndInteraction() { } messageCase_ = 11; onChanged(); - ; return endInteractionBuilder_; } @@ -10592,8 +10763,9 @@ public Builder clearEndInteraction() { *
      * Signal that the client should play an audio clip hosted at a
      * client-specific URI. Dialogflow uses this to construct
-     * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
-     * does not try to read or process the URI in any way.
+     * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+     * However, Dialogflow itself does not try to read or process the URI in any
+     * way.
      * 
* * .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12; @@ -10610,8 +10782,9 @@ public boolean hasPlayAudio() { *
      * Signal that the client should play an audio clip hosted at a
      * client-specific URI. Dialogflow uses this to construct
-     * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
-     * does not try to read or process the URI in any way.
+     * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+     * However, Dialogflow itself does not try to read or process the URI in any
+     * way.
      * 
* * .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12; @@ -10638,8 +10811,9 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio getPlayAudio( *
      * Signal that the client should play an audio clip hosted at a
      * client-specific URI. Dialogflow uses this to construct
-     * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
-     * does not try to read or process the URI in any way.
+     * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+     * However, Dialogflow itself does not try to read or process the URI in any
+     * way.
      * 
* * .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12; @@ -10663,8 +10837,9 @@ public Builder setPlayAudio(com.google.cloud.dialogflow.cx.v3.ResponseMessage.Pl *
      * Signal that the client should play an audio clip hosted at a
      * client-specific URI. Dialogflow uses this to construct
-     * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
-     * does not try to read or process the URI in any way.
+     * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+     * However, Dialogflow itself does not try to read or process the URI in any
+     * way.
      * 
* * .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12; @@ -10686,8 +10861,9 @@ public Builder setPlayAudio( *
      * Signal that the client should play an audio clip hosted at a
      * client-specific URI. Dialogflow uses this to construct
-     * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
-     * does not try to read or process the URI in any way.
+     * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+     * However, Dialogflow itself does not try to read or process the URI in any
+     * way.
      * 
* * .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12; @@ -10724,8 +10900,9 @@ public Builder mergePlayAudio( *
      * Signal that the client should play an audio clip hosted at a
      * client-specific URI. Dialogflow uses this to construct
-     * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
-     * does not try to read or process the URI in any way.
+     * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+     * However, Dialogflow itself does not try to read or process the URI in any
+     * way.
      * 
* * .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12; @@ -10752,8 +10929,9 @@ public Builder clearPlayAudio() { *
      * Signal that the client should play an audio clip hosted at a
      * client-specific URI. Dialogflow uses this to construct
-     * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
-     * does not try to read or process the URI in any way.
+     * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+     * However, Dialogflow itself does not try to read or process the URI in any
+     * way.
      * 
* * .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12; @@ -10768,8 +10946,9 @@ public Builder clearPlayAudio() { *
      * Signal that the client should play an audio clip hosted at a
      * client-specific URI. Dialogflow uses this to construct
-     * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
-     * does not try to read or process the URI in any way.
+     * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+     * However, Dialogflow itself does not try to read or process the URI in any
+     * way.
      * 
* * .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12; @@ -10792,8 +10971,9 @@ public Builder clearPlayAudio() { *
      * Signal that the client should play an audio clip hosted at a
      * client-specific URI. Dialogflow uses this to construct
-     * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
-     * does not try to read or process the URI in any way.
+     * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+     * However, Dialogflow itself does not try to read or process the URI in any
+     * way.
      * 
* * .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12; @@ -10820,7 +11000,6 @@ public Builder clearPlayAudio() { } messageCase_ = 12; onChanged(); - ; return playAudioBuilder_; } @@ -10833,8 +11012,8 @@ public Builder clearPlayAudio() { * * *
-     * Output only. An audio response message composed of both the synthesized Dialogflow
-     * agent responses and responses defined via
+     * Output only. An audio response message composed of both the synthesized
+     * Dialogflow agent responses and responses defined via
      * [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
      * This message is generated by Dialogflow only and not supposed to be
      * defined by the user.
@@ -10854,8 +11033,8 @@ public boolean hasMixedAudio() {
      *
      *
      * 
-     * Output only. An audio response message composed of both the synthesized Dialogflow
-     * agent responses and responses defined via
+     * Output only. An audio response message composed of both the synthesized
+     * Dialogflow agent responses and responses defined via
      * [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
      * This message is generated by Dialogflow only and not supposed to be
      * defined by the user.
@@ -10885,8 +11064,8 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio getMixedAudi
      *
      *
      * 
-     * Output only. An audio response message composed of both the synthesized Dialogflow
-     * agent responses and responses defined via
+     * Output only. An audio response message composed of both the synthesized
+     * Dialogflow agent responses and responses defined via
      * [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
      * This message is generated by Dialogflow only and not supposed to be
      * defined by the user.
@@ -10914,8 +11093,8 @@ public Builder setMixedAudio(
      *
      *
      * 
-     * Output only. An audio response message composed of both the synthesized Dialogflow
-     * agent responses and responses defined via
+     * Output only. An audio response message composed of both the synthesized
+     * Dialogflow agent responses and responses defined via
      * [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
      * This message is generated by Dialogflow only and not supposed to be
      * defined by the user.
@@ -10940,8 +11119,8 @@ public Builder setMixedAudio(
      *
      *
      * 
-     * Output only. An audio response message composed of both the synthesized Dialogflow
-     * agent responses and responses defined via
+     * Output only. An audio response message composed of both the synthesized
+     * Dialogflow agent responses and responses defined via
      * [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
      * This message is generated by Dialogflow only and not supposed to be
      * defined by the user.
@@ -10981,8 +11160,8 @@ public Builder mergeMixedAudio(
      *
      *
      * 
-     * Output only. An audio response message composed of both the synthesized Dialogflow
-     * agent responses and responses defined via
+     * Output only. An audio response message composed of both the synthesized
+     * Dialogflow agent responses and responses defined via
      * [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
      * This message is generated by Dialogflow only and not supposed to be
      * defined by the user.
@@ -11012,8 +11191,8 @@ public Builder clearMixedAudio() {
      *
      *
      * 
-     * Output only. An audio response message composed of both the synthesized Dialogflow
-     * agent responses and responses defined via
+     * Output only. An audio response message composed of both the synthesized
+     * Dialogflow agent responses and responses defined via
      * [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
      * This message is generated by Dialogflow only and not supposed to be
      * defined by the user.
@@ -11031,8 +11210,8 @@ public Builder clearMixedAudio() {
      *
      *
      * 
-     * Output only. An audio response message composed of both the synthesized Dialogflow
-     * agent responses and responses defined via
+     * Output only. An audio response message composed of both the synthesized
+     * Dialogflow agent responses and responses defined via
      * [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
      * This message is generated by Dialogflow only and not supposed to be
      * defined by the user.
@@ -11058,8 +11237,8 @@ public Builder clearMixedAudio() {
      *
      *
      * 
-     * Output only. An audio response message composed of both the synthesized Dialogflow
-     * agent responses and responses defined via
+     * Output only. An audio response message composed of both the synthesized
+     * Dialogflow agent responses and responses defined via
      * [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
      * This message is generated by Dialogflow only and not supposed to be
      * defined by the user.
@@ -11091,7 +11270,6 @@ public Builder clearMixedAudio() {
       }
       messageCase_ = 13;
       onChanged();
-      ;
       return mixedAudioBuilder_;
     }
 
@@ -11342,10 +11520,130 @@ public Builder clearTelephonyTransferCall() {
       }
       messageCase_ = 18;
       onChanged();
-      ;
       return telephonyTransferCallBuilder_;
     }
 
+    private java.lang.Object channel_ = "";
+    /**
+     *
+     *
+     * 
+     * The channel which the response is associated with. Clients can specify the
+     * channel via
+     * [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel],
+     * and only associated channel response will be returned.
+     * 
+ * + * string channel = 19; + * + * @return The channel. + */ + public java.lang.String getChannel() { + java.lang.Object ref = channel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + channel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The channel which the response is associated with. Clients can specify the
+     * channel via
+     * [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel],
+     * and only associated channel response will be returned.
+     * 
+ * + * string channel = 19; + * + * @return The bytes for channel. + */ + public com.google.protobuf.ByteString getChannelBytes() { + java.lang.Object ref = channel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + channel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The channel which the response is associated with. Clients can specify the
+     * channel via
+     * [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel],
+     * and only associated channel response will be returned.
+     * 
+ * + * string channel = 19; + * + * @param value The channel to set. + * @return This builder for chaining. + */ + public Builder setChannel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + channel_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * The channel which the response is associated with. Clients can specify the
+     * channel via
+     * [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel],
+     * and only associated channel response will be returned.
+     * 
+ * + * string channel = 19; + * + * @return This builder for chaining. + */ + public Builder clearChannel() { + channel_ = getDefaultInstance().getChannel(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * + * + *
+     * The channel which the response is associated with. Clients can specify the
+     * channel via
+     * [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel],
+     * and only associated channel response will be returned.
+     * 
+ * + * string channel = 19; + * + * @param value The bytes for channel to set. + * @return This builder for chaining. + */ + public Builder setChannelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + channel_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageOrBuilder.java index 48643e3c91f8..39f494c11b95 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageOrBuilder.java @@ -220,10 +220,10 @@ public interface ResponseMessageOrBuilder * * *
-   * Output only. A signal that indicates the interaction with the Dialogflow agent has
-   * ended.
-   * This message is generated by Dialogflow only when the conversation
-   * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+   * Output only. A signal that indicates the interaction with the Dialogflow
+   * agent has ended. This message is generated by Dialogflow only when the
+   * conversation reaches `END_SESSION` page. It is not supposed to be defined
+   * by the user.
    * It's guaranteed that there is at most one such message in each response.
    * 
* @@ -238,10 +238,10 @@ public interface ResponseMessageOrBuilder * * *
-   * Output only. A signal that indicates the interaction with the Dialogflow agent has
-   * ended.
-   * This message is generated by Dialogflow only when the conversation
-   * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+   * Output only. A signal that indicates the interaction with the Dialogflow
+   * agent has ended. This message is generated by Dialogflow only when the
+   * conversation reaches `END_SESSION` page. It is not supposed to be defined
+   * by the user.
    * It's guaranteed that there is at most one such message in each response.
    * 
* @@ -256,10 +256,10 @@ public interface ResponseMessageOrBuilder * * *
-   * Output only. A signal that indicates the interaction with the Dialogflow agent has
-   * ended.
-   * This message is generated by Dialogflow only when the conversation
-   * reaches `END_SESSION` page. It is not supposed to be defined by the user.
+   * Output only. A signal that indicates the interaction with the Dialogflow
+   * agent has ended. This message is generated by Dialogflow only when the
+   * conversation reaches `END_SESSION` page. It is not supposed to be defined
+   * by the user.
    * It's guaranteed that there is at most one such message in each response.
    * 
* @@ -276,8 +276,9 @@ public interface ResponseMessageOrBuilder *
    * Signal that the client should play an audio clip hosted at a
    * client-specific URI. Dialogflow uses this to construct
-   * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
-   * does not try to read or process the URI in any way.
+   * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+   * However, Dialogflow itself does not try to read or process the URI in any
+   * way.
    * 
* * .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12; @@ -291,8 +292,9 @@ public interface ResponseMessageOrBuilder *
    * Signal that the client should play an audio clip hosted at a
    * client-specific URI. Dialogflow uses this to construct
-   * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
-   * does not try to read or process the URI in any way.
+   * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+   * However, Dialogflow itself does not try to read or process the URI in any
+   * way.
    * 
* * .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12; @@ -306,8 +308,9 @@ public interface ResponseMessageOrBuilder *
    * Signal that the client should play an audio clip hosted at a
    * client-specific URI. Dialogflow uses this to construct
-   * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself
-   * does not try to read or process the URI in any way.
+   * [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio].
+   * However, Dialogflow itself does not try to read or process the URI in any
+   * way.
    * 
* * .google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio play_audio = 12; @@ -318,8 +321,8 @@ public interface ResponseMessageOrBuilder * * *
-   * Output only. An audio response message composed of both the synthesized Dialogflow
-   * agent responses and responses defined via
+   * Output only. An audio response message composed of both the synthesized
+   * Dialogflow agent responses and responses defined via
    * [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
    * This message is generated by Dialogflow only and not supposed to be
    * defined by the user.
@@ -336,8 +339,8 @@ public interface ResponseMessageOrBuilder
    *
    *
    * 
-   * Output only. An audio response message composed of both the synthesized Dialogflow
-   * agent responses and responses defined via
+   * Output only. An audio response message composed of both the synthesized
+   * Dialogflow agent responses and responses defined via
    * [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
    * This message is generated by Dialogflow only and not supposed to be
    * defined by the user.
@@ -354,8 +357,8 @@ public interface ResponseMessageOrBuilder
    *
    *
    * 
-   * Output only. An audio response message composed of both the synthesized Dialogflow
-   * agent responses and responses defined via
+   * Output only. An audio response message composed of both the synthesized
+   * Dialogflow agent responses and responses defined via
    * [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio].
    * This message is generated by Dialogflow only and not supposed to be
    * defined by the user.
@@ -413,5 +416,36 @@ public interface ResponseMessageOrBuilder
   com.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCallOrBuilder
       getTelephonyTransferCallOrBuilder();
 
+  /**
+   *
+   *
+   * 
+   * The channel which the response is associated with. Clients can specify the
+   * channel via
+   * [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel],
+   * and only associated channel response will be returned.
+   * 
+ * + * string channel = 19; + * + * @return The channel. + */ + java.lang.String getChannel(); + /** + * + * + *
+   * The channel which the response is associated with. Clients can specify the
+   * channel via
+   * [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel],
+   * and only associated channel response will be returned.
+   * 
+ * + * string channel = 19; + * + * @return The bytes for channel. + */ + com.google.protobuf.ByteString getChannelBytes(); + public com.google.cloud.dialogflow.cx.v3.ResponseMessage.MessageCase getMessageCase(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageProto.java index adf814e51213..2f9b939501bb 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ResponseMessageProto.java @@ -79,7 +79,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n4google/cloud/dialogflow/cx/v3/response" + "_message.proto\022\035google.cloud.dialogflow." + "cx.v3\032\037google/api/field_behavior.proto\032\034" - + "google/protobuf/struct.proto\"\253\013\n\017Respons" + + "google/protobuf/struct.proto\"\274\013\n\017Respons" + "eMessage\022C\n\004text\030\001 \001(\01323.google.cloud.di" + "alogflow.cx.v3.ResponseMessage.TextH\000\022*\n" + "\007payload\030\002 \001(\0132\027.google.protobuf.StructH" @@ -99,29 +99,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "sponseMessage.MixedAudioB\003\340A\003H\000\022g\n\027telep" + "hony_transfer_call\030\022 \001(\0132D.google.cloud." + "dialogflow.cx.v3.ResponseMessage.Telepho" - + "nyTransferCallH\000\032C\n\004Text\022\021\n\004text\030\001 \003(\tB\003" - + "\340A\002\022(\n\033allow_playback_interruption\030\002 \001(\010" - + "B\003\340A\003\032=\n\020LiveAgentHandoff\022)\n\010metadata\030\001 " - + "\001(\0132\027.google.protobuf.Struct\032@\n\023Conversa" - + "tionSuccess\022)\n\010metadata\030\001 \001(\0132\027.google.p" - + "rotobuf.Struct\032e\n\017OutputAudioText\022\016\n\004tex" - + "t\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\tH\000\022(\n\033allow_playb" - + "ack_interruption\030\003 \001(\010B\003\340A\003B\010\n\006source\032\020\n" - + "\016EndInteraction\032M\n\tPlayAudio\022\026\n\taudio_ur" - + "i\030\001 \001(\tB\003\340A\002\022(\n\033allow_playback_interrupt" - + "ion\030\002 \001(\010B\003\340A\003\032\301\001\n\nMixedAudio\022S\n\010segment" - + "s\030\001 \003(\0132A.google.cloud.dialogflow.cx.v3." - + "ResponseMessage.MixedAudio.Segment\032^\n\007Se" - + "gment\022\017\n\005audio\030\001 \001(\014H\000\022\r\n\003uri\030\002 \001(\tH\000\022(\n" - + "\033allow_playback_interruption\030\003 \001(\010B\003\340A\003B" - + "\t\n\007content\032;\n\025TelephonyTransferCall\022\026\n\014p" - + "hone_number\030\001 \001(\tH\000B\n\n\010endpointB\t\n\007messa" - + "geB\310\001\n!com.google.cloud.dialogflow.cx.v3" - + "B\024ResponseMessageProtoP\001Z?google.golang." - + "org/genproto/googleapis/cloud/dialogflow" - + "/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogf" - + "low.Cx.V3\352\002!Google::Cloud::Dialogflow::C" - + "X::V3b\006proto3" + + "nyTransferCallH\000\022\017\n\007channel\030\023 \001(\t\032C\n\004Tex" + + "t\022\021\n\004text\030\001 \003(\tB\003\340A\002\022(\n\033allow_playback_i" + + "nterruption\030\002 \001(\010B\003\340A\003\032=\n\020LiveAgentHando" + + "ff\022)\n\010metadata\030\001 \001(\0132\027.google.protobuf.S" + + "truct\032@\n\023ConversationSuccess\022)\n\010metadata" + + "\030\001 \001(\0132\027.google.protobuf.Struct\032e\n\017Outpu" + + "tAudioText\022\016\n\004text\030\001 \001(\tH\000\022\016\n\004ssml\030\002 \001(\t" + + "H\000\022(\n\033allow_playback_interruption\030\003 \001(\010B" + + "\003\340A\003B\010\n\006source\032\020\n\016EndInteraction\032M\n\tPlay" + + "Audio\022\026\n\taudio_uri\030\001 \001(\tB\003\340A\002\022(\n\033allow_p" + + "layback_interruption\030\002 \001(\010B\003\340A\003\032\301\001\n\nMixe" + + "dAudio\022S\n\010segments\030\001 \003(\0132A.google.cloud." + + "dialogflow.cx.v3.ResponseMessage.MixedAu" + + "dio.Segment\032^\n\007Segment\022\017\n\005audio\030\001 \001(\014H\000\022" + + "\r\n\003uri\030\002 \001(\tH\000\022(\n\033allow_playback_interru" + + "ption\030\003 \001(\010B\003\340A\003B\t\n\007content\032;\n\025Telephony" + + "TransferCall\022\026\n\014phone_number\030\001 \001(\tH\000B\n\n\010" + + "endpointB\t\n\007messageB\272\001\n!com.google.cloud" + + ".dialogflow.cx.v3B\024ResponseMessageProtoP" + + "\001Z1cloud.google.com/go/dialogflow/cx/api" + + "v3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dial" + + "ogflow.Cx.V3\352\002!Google::Cloud::Dialogflow" + + "::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -145,6 +145,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PlayAudio", "MixedAudio", "TelephonyTransferCall", + "Channel", "Message", }); internal_static_google_cloud_dialogflow_cx_v3_ResponseMessage_Text_descriptor = diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RestoreAgentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RestoreAgentRequest.java index dd1496f876a0..7ca989a9a921 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RestoreAgentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RestoreAgentRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3.Agents.RestoreAgent].
+ * The request message for
+ * [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3.Agents.RestoreAgent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.RestoreAgentRequest} @@ -281,7 +282,9 @@ public AgentCase getAgentCase() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -462,7 +465,7 @@ public com.google.protobuf.ByteString getAgentContent() { } public static final int RESTORE_OPTION_FIELD_NUMBER = 5; - private int restoreOption_; + private int restoreOption_ = 0; /** * * @@ -493,9 +496,9 @@ public int getRestoreOptionValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption getRestoreOption() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption result = - com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption.valueOf(restoreOption_); + com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption.forNumber( + restoreOption_); return result == null ? com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption.UNRECOGNIZED : result; @@ -717,7 +720,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3.Agents.RestoreAgent].
+   * The request message for
+   * [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3.Agents.RestoreAgent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.RestoreAgentRequest} @@ -751,10 +755,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - restoreOption_ = 0; - agentCase_ = 0; agent_ = null; return this; @@ -784,19 +787,29 @@ public com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest build() { public com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest result = new com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest(this); - result.name_ = name_; - if (agentCase_ == 2) { - result.agent_ = agent_; - } - if (agentCase_ == 3) { - result.agent_ = agent_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.restoreOption_ = restoreOption_; - result.agentCase_ = agentCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.restoreOption_ = restoreOption_; + } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest result) { + result.agentCase_ = agentCase_; + result.agent_ = this.agent_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -845,6 +858,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest o return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.restoreOption_ != 0) { @@ -897,7 +911,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -916,7 +930,7 @@ public Builder mergeFrom( case 40: { restoreOption_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 40 default: @@ -950,6 +964,8 @@ public Builder clearAgent() { return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -1020,8 +1036,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1040,8 +1056,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1065,8 +1081,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1350,8 +1366,8 @@ public int getRestoreOptionValue() { * @return This builder for chaining. */ public Builder setRestoreOptionValue(int value) { - restoreOption_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1369,9 +1385,8 @@ public Builder setRestoreOptionValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption getRestoreOption() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption result = - com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption.valueOf( + com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption.forNumber( restoreOption_); return result == null ? com.google.cloud.dialogflow.cx.v3.RestoreAgentRequest.RestoreOption.UNRECOGNIZED @@ -1395,7 +1410,7 @@ public Builder setRestoreOption( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; restoreOption_ = value.getNumber(); onChanged(); return this; @@ -1413,7 +1428,7 @@ public Builder setRestoreOption( * @return This builder for chaining. */ public Builder clearRestoreOption() { - + bitField0_ = (bitField0_ & ~0x00000008); restoreOption_ = 0; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutConfig.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutConfig.java index c483d3e4b2b1..62da7db89d33 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutConfig.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutConfig.java @@ -204,7 +204,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -253,7 +255,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int TRAFFIC_PERCENT_FIELD_NUMBER = 2; - private int trafficPercent_; + private int trafficPercent_ = 0; /** * * @@ -322,7 +324,9 @@ public com.google.protobuf.Duration getMinDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder() { - return getMinDuration(); + return minDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minDuration_; } private byte memoizedIsInitialized = -1; @@ -548,14 +552,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; displayName_ = ""; - trafficPercent_ = 0; - - if (minDurationBuilder_ == null) { - minDuration_ = null; - } else { - minDuration_ = null; + minDuration_ = null; + if (minDurationBuilder_ != null) { + minDurationBuilder_.dispose(); minDurationBuilder_ = null; } return this; @@ -586,17 +588,28 @@ public com.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep build() { public com.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep buildPartial() { com.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep result = new com.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep(this); - result.displayName_ = displayName_; - result.trafficPercent_ = trafficPercent_; - if (minDurationBuilder_ == null) { - result.minDuration_ = minDuration_; - } else { - result.minDuration_ = minDurationBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.trafficPercent_ = trafficPercent_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.minDuration_ = + minDurationBuilder_ == null ? minDuration_ : minDurationBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -648,6 +661,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.RolloutConfig.Rollout return this; if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getTrafficPercent() != 0) { @@ -685,19 +699,19 @@ public Builder mergeFrom( case 10: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { trafficPercent_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage(getMinDurationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -717,6 +731,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object displayName_ = ""; /** * @@ -778,8 +794,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -795,8 +811,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -817,8 +833,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -856,6 +872,7 @@ public int getTrafficPercent() { public Builder setTrafficPercent(int value) { trafficPercent_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -872,7 +889,7 @@ public Builder setTrafficPercent(int value) { * @return This builder for chaining. */ public Builder clearTrafficPercent() { - + bitField0_ = (bitField0_ & ~0x00000002); trafficPercent_ = 0; onChanged(); return this; @@ -898,7 +915,7 @@ public Builder clearTrafficPercent() { * @return Whether the minDuration field is set. */ public boolean hasMinDuration() { - return minDurationBuilder_ != null || minDuration_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -939,11 +956,11 @@ public Builder setMinDuration(com.google.protobuf.Duration value) { throw new NullPointerException(); } minDuration_ = value; - onChanged(); } else { minDurationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -960,11 +977,11 @@ public Builder setMinDuration(com.google.protobuf.Duration value) { public Builder setMinDuration(com.google.protobuf.Duration.Builder builderForValue) { if (minDurationBuilder_ == null) { minDuration_ = builderForValue.build(); - onChanged(); } else { minDurationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -980,19 +997,18 @@ public Builder setMinDuration(com.google.protobuf.Duration.Builder builderForVal */ public Builder mergeMinDuration(com.google.protobuf.Duration value) { if (minDurationBuilder_ == null) { - if (minDuration_ != null) { - minDuration_ = - com.google.protobuf.Duration.newBuilder(minDuration_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && minDuration_ != null + && minDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMinDurationBuilder().mergeFrom(value); } else { minDuration_ = value; } - onChanged(); } else { minDurationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1007,14 +1023,13 @@ public Builder mergeMinDuration(com.google.protobuf.Duration value) { * .google.protobuf.Duration min_duration = 3; */ public Builder clearMinDuration() { - if (minDurationBuilder_ == null) { - minDuration_ = null; - onChanged(); - } else { - minDuration_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + minDuration_ = null; + if (minDurationBuilder_ != null) { + minDurationBuilder_.dispose(); minDurationBuilder_ = null; } - + onChanged(); return this; } /** @@ -1029,7 +1044,7 @@ public Builder clearMinDuration() { * .google.protobuf.Duration min_duration = 3; */ public com.google.protobuf.Duration.Builder getMinDurationBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getMinDurationFieldBuilder().getBuilder(); } @@ -1147,6 +1162,8 @@ public com.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep getDefaultIns } public static final int ROLLOUT_STEPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List rolloutSteps_; /** * @@ -1229,7 +1246,9 @@ public com.google.cloud.dialogflow.cx.v3.RolloutConfig.RolloutStep getRolloutSte } public static final int ROLLOUT_CONDITION_FIELD_NUMBER = 2; - private volatile java.lang.Object rolloutCondition_; + + @SuppressWarnings("serial") + private volatile java.lang.Object rolloutCondition_ = ""; /** * * @@ -1286,7 +1305,9 @@ public com.google.protobuf.ByteString getRolloutConditionBytes() { } public static final int FAILURE_CONDITION_FIELD_NUMBER = 3; - private volatile java.lang.Object failureCondition_; + + @SuppressWarnings("serial") + private volatile java.lang.Object failureCondition_ = ""; /** * * @@ -1557,6 +1578,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (rolloutStepsBuilder_ == null) { rolloutSteps_ = java.util.Collections.emptyList(); } else { @@ -1565,9 +1587,7 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); rolloutCondition_ = ""; - failureCondition_ = ""; - return this; } @@ -1595,7 +1615,16 @@ public com.google.cloud.dialogflow.cx.v3.RolloutConfig build() { public com.google.cloud.dialogflow.cx.v3.RolloutConfig buildPartial() { com.google.cloud.dialogflow.cx.v3.RolloutConfig result = new com.google.cloud.dialogflow.cx.v3.RolloutConfig(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.RolloutConfig result) { if (rolloutStepsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { rolloutSteps_ = java.util.Collections.unmodifiableList(rolloutSteps_); @@ -1605,10 +1634,16 @@ public com.google.cloud.dialogflow.cx.v3.RolloutConfig buildPartial() { } else { result.rolloutSteps_ = rolloutStepsBuilder_.build(); } - result.rolloutCondition_ = rolloutCondition_; - result.failureCondition_ = failureCondition_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.RolloutConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rolloutCondition_ = rolloutCondition_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.failureCondition_ = failureCondition_; + } } @java.lang.Override @@ -1686,10 +1721,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.RolloutConfig other) } if (!other.getRolloutCondition().isEmpty()) { rolloutCondition_ = other.rolloutCondition_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getFailureCondition().isEmpty()) { failureCondition_ = other.failureCondition_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1735,13 +1772,13 @@ public Builder mergeFrom( case 18: { rolloutCondition_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { failureCondition_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -2239,8 +2276,8 @@ public Builder setRolloutCondition(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - rolloutCondition_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2260,8 +2297,8 @@ public Builder setRolloutCondition(java.lang.String value) { * @return This builder for chaining. */ public Builder clearRolloutCondition() { - rolloutCondition_ = getDefaultInstance().getRolloutCondition(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2286,8 +2323,8 @@ public Builder setRolloutConditionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - rolloutCondition_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2362,8 +2399,8 @@ public Builder setFailureCondition(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - failureCondition_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2382,8 +2419,8 @@ public Builder setFailureCondition(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFailureCondition() { - failureCondition_ = getDefaultInstance().getFailureCondition(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2407,8 +2444,8 @@ public Builder setFailureConditionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - failureCondition_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutState.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutState.java index 09f62bf03ac0..aa1d324de57f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutState.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RolloutState.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int STEP_FIELD_NUMBER = 1; - private volatile java.lang.Object step_; + + @SuppressWarnings("serial") + private volatile java.lang.Object step_ = ""; /** * * @@ -117,7 +119,7 @@ public com.google.protobuf.ByteString getStepBytes() { } public static final int STEP_INDEX_FIELD_NUMBER = 3; - private int stepIndex_; + private int stepIndex_ = 0; /** * * @@ -177,7 +179,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } private byte memoizedIsInitialized = -1; @@ -400,14 +402,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; step_ = ""; - stepIndex_ = 0; - - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } return this; @@ -437,17 +437,26 @@ public com.google.cloud.dialogflow.cx.v3.RolloutState build() { public com.google.cloud.dialogflow.cx.v3.RolloutState buildPartial() { com.google.cloud.dialogflow.cx.v3.RolloutState result = new com.google.cloud.dialogflow.cx.v3.RolloutState(this); - result.step_ = step_; - result.stepIndex_ = stepIndex_; - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.RolloutState result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.step_ = step_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.stepIndex_ = stepIndex_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -495,6 +504,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.RolloutState other) { if (other == com.google.cloud.dialogflow.cx.v3.RolloutState.getDefaultInstance()) return this; if (!other.getStep().isEmpty()) { step_ = other.step_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getStepIndex() != 0) { @@ -532,19 +542,19 @@ public Builder mergeFrom( case 10: { step_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 18 case 24: { stepIndex_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 24 default: @@ -564,6 +574,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object step_ = ""; /** * @@ -625,8 +637,8 @@ public Builder setStep(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - step_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -642,8 +654,8 @@ public Builder setStep(java.lang.String value) { * @return This builder for chaining. */ public Builder clearStep() { - step_ = getDefaultInstance().getStep(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -664,8 +676,8 @@ public Builder setStepBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - step_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -701,6 +713,7 @@ public int getStepIndex() { public Builder setStepIndex(int value) { stepIndex_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -716,7 +729,7 @@ public Builder setStepIndex(int value) { * @return This builder for chaining. */ public Builder clearStepIndex() { - + bitField0_ = (bitField0_ & ~0x00000002); stepIndex_ = 0; onChanged(); return this; @@ -740,7 +753,7 @@ public Builder clearStepIndex() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -775,11 +788,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -794,11 +807,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -812,17 +825,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -835,14 +849,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp start_time = 2; */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -855,7 +868,7 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 2; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestMetadata.java index cbf74210bead..3e28de6a749d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestMetadata.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestMetadata.java @@ -22,8 +22,9 @@ * * *
- * Metadata returned for the [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest] long running
- * operation.
+ * Metadata returned for the
+ * [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest]
+ * long running operation.
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata} @@ -69,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ERRORS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List errors_; /** * @@ -303,8 +306,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Metadata returned for the [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest] long running
-   * operation.
+   * Metadata returned for the
+   * [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest]
+   * long running operation.
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata} @@ -338,6 +342,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (errorsBuilder_ == null) { errors_ = java.util.Collections.emptyList(); } else { @@ -372,7 +377,16 @@ public com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata build() { public com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata buildPartial() { com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata result = new com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata result) { if (errorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -382,8 +396,10 @@ public com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata buildPartial( } else { result.errors_ = errorsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequest.java index 9ef935e1a689..1a94e7b86230 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
+ * The request message for
+ * [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.RunContinuousTestRequest} @@ -68,13 +69,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENVIRONMENT_FIELD_NUMBER = 1; - private volatile java.lang.Object environment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object environment_ = ""; /** * * *
-   * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/environments/<Environment ID>`.
+   * Required. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/environments/<Environment ID>`.
    * 
* * @@ -99,8 +102,8 @@ public java.lang.String getEnvironment() { * * *
-   * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/environments/<Environment ID>`.
+   * Required. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/environments/<Environment ID>`.
    * 
* * @@ -286,7 +289,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
+   * The request message for
+   * [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.RunContinuousTestRequest} @@ -320,8 +324,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; environment_ = ""; - return this; } @@ -349,11 +353,20 @@ public com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest build() { public com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest result = new com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest(this); - result.environment_ = environment_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.environment_ = environment_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -402,6 +415,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.RunContinuousTestRequ return this; if (!other.getEnvironment().isEmpty()) { environment_ = other.environment_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -433,7 +447,7 @@ public Builder mergeFrom( case 10: { environment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -453,13 +467,15 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object environment_ = ""; /** * * *
-     * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/environments/<Environment ID>`.
+     * Required. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/environments/<Environment ID>`.
      * 
* * @@ -483,8 +499,8 @@ public java.lang.String getEnvironment() { * * *
-     * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/environments/<Environment ID>`.
+     * Required. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/environments/<Environment ID>`.
      * 
* * @@ -508,8 +524,8 @@ public com.google.protobuf.ByteString getEnvironmentBytes() { * * *
-     * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/environments/<Environment ID>`.
+     * Required. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/environments/<Environment ID>`.
      * 
* * @@ -523,8 +539,8 @@ public Builder setEnvironment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - environment_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -532,8 +548,8 @@ public Builder setEnvironment(java.lang.String value) { * * *
-     * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/environments/<Environment ID>`.
+     * Required. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/environments/<Environment ID>`.
      * 
* * @@ -543,8 +559,8 @@ public Builder setEnvironment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEnvironment() { - environment_ = getDefaultInstance().getEnvironment(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -552,8 +568,8 @@ public Builder clearEnvironment() { * * *
-     * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/environments/<Environment ID>`.
+     * Required. Format: `projects/<Project ID>/locations/<Location
+     * ID>/agents/<Agent ID>/environments/<Environment ID>`.
      * 
* * @@ -568,8 +584,8 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - environment_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequestOrBuilder.java index e4e56e6531aa..83fc6ec1d9f4 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface RunContinuousTestRequestOrBuilder * * *
-   * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/environments/<Environment ID>`.
+   * Required. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/environments/<Environment ID>`.
    * 
* * @@ -42,8 +42,8 @@ public interface RunContinuousTestRequestOrBuilder * * *
-   * Required. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/environments/<Environment ID>`.
+   * Required. Format: `projects/<Project ID>/locations/<Location
+   * ID>/agents/<Agent ID>/environments/<Environment ID>`.
    * 
* * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestResponse.java index a6ba8491e810..15a831f6e7a1 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunContinuousTestResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
+ * The response message for
+ * [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.RunContinuousTestResponse} @@ -111,7 +112,9 @@ public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult getContinuousTestR @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ContinuousTestResultOrBuilder getContinuousTestResultOrBuilder() { - return getContinuousTestResult(); + return continuousTestResult_ == null + ? com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.getDefaultInstance() + : continuousTestResult_; } private byte memoizedIsInitialized = -1; @@ -284,7 +287,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
+   * The response message for
+   * [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.RunContinuousTestResponse} @@ -318,10 +322,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (continuousTestResultBuilder_ == null) { - continuousTestResult_ = null; - } else { - continuousTestResult_ = null; + bitField0_ = 0; + continuousTestResult_ = null; + if (continuousTestResultBuilder_ != null) { + continuousTestResultBuilder_.dispose(); continuousTestResultBuilder_ = null; } return this; @@ -351,15 +355,23 @@ public com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse build() { public com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse result = new com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse(this); - if (continuousTestResultBuilder_ == null) { - result.continuousTestResult_ = continuousTestResult_; - } else { - result.continuousTestResult_ = continuousTestResultBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.RunContinuousTestResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.continuousTestResult_ = + continuousTestResultBuilder_ == null + ? continuousTestResult_ + : continuousTestResultBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -439,7 +451,7 @@ public Builder mergeFrom( { input.readMessage( getContinuousTestResultFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +471,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.ContinuousTestResult continuousTestResult_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.ContinuousTestResult, @@ -477,7 +491,7 @@ public Builder mergeFrom( * @return Whether the continuousTestResult field is set. */ public boolean hasContinuousTestResult() { - return continuousTestResultBuilder_ != null || continuousTestResult_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -515,11 +529,11 @@ public Builder setContinuousTestResult( throw new NullPointerException(); } continuousTestResult_ = value; - onChanged(); } else { continuousTestResultBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -535,11 +549,11 @@ public Builder setContinuousTestResult( com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder builderForValue) { if (continuousTestResultBuilder_ == null) { continuousTestResult_ = builderForValue.build(); - onChanged(); } else { continuousTestResultBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -554,20 +568,19 @@ public Builder setContinuousTestResult( public Builder mergeContinuousTestResult( com.google.cloud.dialogflow.cx.v3.ContinuousTestResult value) { if (continuousTestResultBuilder_ == null) { - if (continuousTestResult_ != null) { - continuousTestResult_ = - com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.newBuilder( - continuousTestResult_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && continuousTestResult_ != null + && continuousTestResult_ + != com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.getDefaultInstance()) { + getContinuousTestResultBuilder().mergeFrom(value); } else { continuousTestResult_ = value; } - onChanged(); } else { continuousTestResultBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -580,14 +593,13 @@ public Builder mergeContinuousTestResult( * .google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_result = 1; */ public Builder clearContinuousTestResult() { - if (continuousTestResultBuilder_ == null) { - continuousTestResult_ = null; - onChanged(); - } else { - continuousTestResult_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + continuousTestResult_ = null; + if (continuousTestResultBuilder_ != null) { + continuousTestResultBuilder_.dispose(); continuousTestResultBuilder_ = null; } - + onChanged(); return this; } /** @@ -601,7 +613,7 @@ public Builder clearContinuousTestResult() { */ public com.google.cloud.dialogflow.cx.v3.ContinuousTestResult.Builder getContinuousTestResultBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getContinuousTestResultFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseMetadata.java index 2041e27405fa..ad07ce8fbb7c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseMetadata.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseMetadata.java @@ -22,8 +22,9 @@ * * *
- * Metadata returned for the [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase] long running operation.
- * This message currently has no fields.
+ * Metadata returned for the
+ * [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase]
+ * long running operation. This message currently has no fields.
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} @@ -221,8 +222,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Metadata returned for the [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase] long running operation.
-   * This message currently has no fields.
+   * Metadata returned for the
+   * [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase]
+   * long running operation. This message currently has no fields.
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.RunTestCaseMetadata} diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequest.java index 4b8d4b40bc2a..36ad5f79ba4b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase].
+ * The request message for
+ * [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.RunTestCaseRequest} @@ -69,13 +70,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
-   * Required. Format of test case name to run: `projects/<Project ID>/locations/
-   * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
+   * Required. Format of test case name to run: `projects/<Project
+   * ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
    * 
* * @@ -100,8 +103,8 @@ public java.lang.String getName() { * * *
-   * Required. Format of test case name to run: `projects/<Project ID>/locations/
-   * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
+   * Required. Format of test case name to run: `projects/<Project
+   * ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
    * 
* * @@ -124,7 +127,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int ENVIRONMENT_FIELD_NUMBER = 2; - private volatile java.lang.Object environment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object environment_ = ""; /** * * @@ -352,7 +357,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase].
+   * The request message for
+   * [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.RunTestCaseRequest} @@ -386,10 +392,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - environment_ = ""; - return this; } @@ -417,12 +422,23 @@ public com.google.cloud.dialogflow.cx.v3.RunTestCaseRequest build() { public com.google.cloud.dialogflow.cx.v3.RunTestCaseRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.RunTestCaseRequest result = new com.google.cloud.dialogflow.cx.v3.RunTestCaseRequest(this); - result.name_ = name_; - result.environment_ = environment_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.RunTestCaseRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.environment_ = environment_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -471,10 +487,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.RunTestCaseRequest ot return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getEnvironment().isEmpty()) { environment_ = other.environment_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -506,13 +524,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { environment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -532,13 +550,15 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * * *
-     * Required. Format of test case name to run: `projects/<Project ID>/locations/
-     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
+     * Required. Format of test case name to run: `projects/<Project
+     * ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
      * 
* * @@ -562,8 +582,8 @@ public java.lang.String getName() { * * *
-     * Required. Format of test case name to run: `projects/<Project ID>/locations/
-     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
+     * Required. Format of test case name to run: `projects/<Project
+     * ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
      * 
* * @@ -587,8 +607,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. Format of test case name to run: `projects/<Project ID>/locations/
-     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
+     * Required. Format of test case name to run: `projects/<Project
+     * ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
      * 
* * @@ -602,8 +622,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -611,8 +631,8 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. Format of test case name to run: `projects/<Project ID>/locations/
-     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
+     * Required. Format of test case name to run: `projects/<Project
+     * ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
      * 
* * @@ -622,8 +642,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -631,8 +651,8 @@ public Builder clearName() { * * *
-     * Required. Format of test case name to run: `projects/<Project ID>/locations/
-     * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
+     * Required. Format of test case name to run: `projects/<Project
+     * ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
      * 
* * @@ -647,8 +667,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -726,8 +746,8 @@ public Builder setEnvironment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - environment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -747,8 +767,8 @@ public Builder setEnvironment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEnvironment() { - environment_ = getDefaultInstance().getEnvironment(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -773,8 +793,8 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - environment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequestOrBuilder.java index c458ce12ecca..2badd4a874aa 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface RunTestCaseRequestOrBuilder * * *
-   * Required. Format of test case name to run: `projects/<Project ID>/locations/
-   * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
+   * Required. Format of test case name to run: `projects/<Project
+   * ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
    * 
* * @@ -42,8 +42,8 @@ public interface RunTestCaseRequestOrBuilder * * *
-   * Required. Format of test case name to run: `projects/<Project ID>/locations/
-   * <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
+   * Required. Format of test case name to run: `projects/<Project
+   * ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>`.
    * 
* * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseResponse.java index 6f94f92d9134..53159ed430e5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/RunTestCaseResponse.java @@ -22,7 +22,8 @@ * * *
- * The response message for [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase].
+ * The response message for
+ * [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.RunTestCaseResponse} @@ -110,7 +111,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseResult getResult() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TestCaseResultOrBuilder getResultOrBuilder() { - return getResult(); + return result_ == null + ? com.google.cloud.dialogflow.cx.v3.TestCaseResult.getDefaultInstance() + : result_; } private byte memoizedIsInitialized = -1; @@ -282,7 +285,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response message for [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase].
+   * The response message for
+   * [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.RunTestCaseResponse} @@ -316,10 +320,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (resultBuilder_ == null) { - result_ = null; - } else { - result_ = null; + bitField0_ = 0; + result_ = null; + if (resultBuilder_ != null) { + resultBuilder_.dispose(); resultBuilder_ = null; } return this; @@ -349,15 +353,20 @@ public com.google.cloud.dialogflow.cx.v3.RunTestCaseResponse build() { public com.google.cloud.dialogflow.cx.v3.RunTestCaseResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.RunTestCaseResponse result = new com.google.cloud.dialogflow.cx.v3.RunTestCaseResponse(this); - if (resultBuilder_ == null) { - result.result_ = result_; - } else { - result.result_ = resultBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.RunTestCaseResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -436,7 +445,7 @@ public Builder mergeFrom( case 18: { input.readMessage(getResultFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 18 default: @@ -456,6 +465,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.TestCaseResult result_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TestCaseResult, @@ -474,7 +485,7 @@ public Builder mergeFrom( * @return Whether the result field is set. */ public boolean hasResult() { - return resultBuilder_ != null || result_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -511,11 +522,11 @@ public Builder setResult(com.google.cloud.dialogflow.cx.v3.TestCaseResult value) throw new NullPointerException(); } result_ = value; - onChanged(); } else { resultBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -531,11 +542,11 @@ public Builder setResult( com.google.cloud.dialogflow.cx.v3.TestCaseResult.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); - onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -549,19 +560,18 @@ public Builder setResult( */ public Builder mergeResult(com.google.cloud.dialogflow.cx.v3.TestCaseResult value) { if (resultBuilder_ == null) { - if (result_ != null) { - result_ = - com.google.cloud.dialogflow.cx.v3.TestCaseResult.newBuilder(result_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && result_ != null + && result_ != com.google.cloud.dialogflow.cx.v3.TestCaseResult.getDefaultInstance()) { + getResultBuilder().mergeFrom(value); } else { result_ = value; } - onChanged(); } else { resultBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -574,14 +584,13 @@ public Builder mergeResult(com.google.cloud.dialogflow.cx.v3.TestCaseResult valu * .google.cloud.dialogflow.cx.v3.TestCaseResult result = 2; */ public Builder clearResult() { - if (resultBuilder_ == null) { - result_ = null; - onChanged(); - } else { - result_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + result_ = null; + if (resultBuilder_ != null) { + resultBuilder_.dispose(); resultBuilder_ = null; } - + onChanged(); return this; } /** @@ -594,7 +603,7 @@ public Builder clearResult() { * .google.cloud.dialogflow.cx.v3.TestCaseResult result = 2; */ public com.google.cloud.dialogflow.cx.v3.TestCaseResult.Builder getResultBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getResultFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettings.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettings.java index 3f675a33c98d..a3fd75988956 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettings.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettings.java @@ -839,7 +839,9 @@ private AudioFormat(int value) { } public static final int GCS_BUCKET_FIELD_NUMBER = 1; - private volatile java.lang.Object gcsBucket_; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsBucket_ = ""; /** * * @@ -896,7 +898,9 @@ public com.google.protobuf.ByteString getGcsBucketBytes() { } public static final int AUDIO_EXPORT_PATTERN_FIELD_NUMBER = 2; - private volatile java.lang.Object audioExportPattern_; + + @SuppressWarnings("serial") + private volatile java.lang.Object audioExportPattern_ = ""; /** * * @@ -945,7 +949,7 @@ public com.google.protobuf.ByteString getAudioExportPatternBytes() { } public static final int ENABLE_AUDIO_REDACTION_FIELD_NUMBER = 3; - private boolean enableAudioRedaction_; + private boolean enableAudioRedaction_ = false; /** * * @@ -963,7 +967,7 @@ public boolean getEnableAudioRedaction() { } public static final int AUDIO_FORMAT_FIELD_NUMBER = 4; - private int audioFormat_; + private int audioFormat_ = 0; /** * * @@ -999,10 +1003,9 @@ public int getAudioFormatValue() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat getAudioFormat() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat result = com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat - .valueOf(audioFormat_); + .forNumber(audioFormat_); return result == null ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat .UNRECOGNIZED @@ -1246,14 +1249,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; gcsBucket_ = ""; - audioExportPattern_ = ""; - enableAudioRedaction_ = false; - audioFormat_ = 0; - return this; } @@ -1284,14 +1284,30 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings bu public com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings buildPartial() { com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings result = new com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings(this); - result.gcsBucket_ = gcsBucket_; - result.audioExportPattern_ = audioExportPattern_; - result.enableAudioRedaction_ = enableAudioRedaction_; - result.audioFormat_ = audioFormat_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gcsBucket_ = gcsBucket_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.audioExportPattern_ = audioExportPattern_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableAudioRedaction_ = enableAudioRedaction_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.audioFormat_ = audioFormat_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1346,10 +1362,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getGcsBucket().isEmpty()) { gcsBucket_ = other.gcsBucket_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getAudioExportPattern().isEmpty()) { audioExportPattern_ = other.audioExportPattern_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getEnableAudioRedaction() != false) { @@ -1387,25 +1405,25 @@ public Builder mergeFrom( case 10: { gcsBucket_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { audioExportPattern_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { enableAudioRedaction_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 case 32: { audioFormat_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 default: @@ -1425,6 +1443,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object gcsBucket_ = ""; /** * @@ -1498,8 +1518,8 @@ public Builder setGcsBucket(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - gcsBucket_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1519,8 +1539,8 @@ public Builder setGcsBucket(java.lang.String value) { * @return This builder for chaining. */ public Builder clearGcsBucket() { - gcsBucket_ = getDefaultInstance().getGcsBucket(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1545,8 +1565,8 @@ public Builder setGcsBucketBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - gcsBucket_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1612,8 +1632,8 @@ public Builder setAudioExportPattern(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - audioExportPattern_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1629,8 +1649,8 @@ public Builder setAudioExportPattern(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAudioExportPattern() { - audioExportPattern_ = getDefaultInstance().getAudioExportPattern(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1651,8 +1671,8 @@ public Builder setAudioExportPatternBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - audioExportPattern_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1688,6 +1708,7 @@ public boolean getEnableAudioRedaction() { public Builder setEnableAudioRedaction(boolean value) { enableAudioRedaction_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1703,7 +1724,7 @@ public Builder setEnableAudioRedaction(boolean value) { * @return This builder for chaining. */ public Builder clearEnableAudioRedaction() { - + bitField0_ = (bitField0_ & ~0x00000004); enableAudioRedaction_ = false; onChanged(); return this; @@ -1744,8 +1765,8 @@ public int getAudioFormatValue() { * @return This builder for chaining. */ public Builder setAudioFormatValue(int value) { - audioFormat_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1766,10 +1787,9 @@ public Builder setAudioFormatValue(int value) { @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat getAudioFormat() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat result = com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat - .valueOf(audioFormat_); + .forNumber(audioFormat_); return result == null ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat .UNRECOGNIZED @@ -1796,7 +1816,7 @@ public Builder setAudioFormat( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; audioFormat_ = value.getNumber(); onChanged(); return this; @@ -1816,7 +1836,7 @@ public Builder setAudioFormat( * @return This builder for chaining. */ public Builder clearAudioFormat() { - + bitField0_ = (bitField0_ & ~0x00000008); audioFormat_ = 0; onChanged(); return this; @@ -1959,7 +1979,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENABLE_INSIGHTS_EXPORT_FIELD_NUMBER = 1; - private boolean enableInsightsExport_; + private boolean enableInsightsExport_ = false; /** * * @@ -2187,8 +2207,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; enableInsightsExport_ = false; - return this; } @@ -2220,11 +2240,21 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings buildPartial() { com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings result = new com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings(this); - result.enableInsightsExport_ = enableInsightsExport_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableInsightsExport_ = enableInsightsExport_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2309,7 +2339,7 @@ public Builder mergeFrom( case 8: { enableInsightsExport_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -2329,6 +2359,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean enableInsightsExport_; /** * @@ -2362,6 +2394,7 @@ public boolean getEnableInsightsExport() { public Builder setEnableInsightsExport(boolean value) { enableInsightsExport_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2378,7 +2411,7 @@ public Builder setEnableInsightsExport(boolean value) { * @return This builder for chaining. */ public Builder clearEnableInsightsExport() { - + bitField0_ = (bitField0_ & ~0x00000001); enableInsightsExport_ = false; onChanged(); return this; @@ -2497,17 +2530,20 @@ public DataRetentionCase getDataRetentionCase() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
    * Resource name of the settings.
-   * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
-   * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
-   * automatically.
-   * Format: `projects/<Project ID>/locations/<Location
-   * ID>/securitySettings/<Security Settings ID>`.
+   * Required for the
+   * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]
+   * method.
+   * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings]
+   * populates the name automatically. Format: `projects/<Project
+   * ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.
    * 
* * string name = 1; @@ -2531,11 +2567,12 @@ public java.lang.String getName() { * *
    * Resource name of the settings.
-   * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
-   * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
-   * automatically.
-   * Format: `projects/<Project ID>/locations/<Location
-   * ID>/securitySettings/<Security Settings ID>`.
+   * Required for the
+   * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]
+   * method.
+   * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings]
+   * populates the name automatically. Format: `projects/<Project
+   * ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.
    * 
* * string name = 1; @@ -2556,13 +2593,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * *
-   * Required. The human-readable name of the security settings, unique within the
-   * location.
+   * Required. The human-readable name of the security settings, unique within
+   * the location.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -2585,8 +2624,8 @@ public java.lang.String getDisplayName() { * * *
-   * Required. The human-readable name of the security settings, unique within the
-   * location.
+   * Required. The human-readable name of the security settings, unique within
+   * the location.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -2607,7 +2646,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int REDACTION_STRATEGY_FIELD_NUMBER = 3; - private int redactionStrategy_; + private int redactionStrategy_ = 0; /** * * @@ -2639,9 +2678,8 @@ public int getRedactionStrategyValue() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy getRedactionStrategy() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy result = - com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy.valueOf( + com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy.forNumber( redactionStrategy_); return result == null ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy.UNRECOGNIZED @@ -2649,7 +2687,7 @@ public int getRedactionStrategyValue() { } public static final int REDACTION_SCOPE_FIELD_NUMBER = 4; - private int redactionScope_; + private int redactionScope_ = 0; /** * * @@ -2684,16 +2722,18 @@ public int getRedactionScopeValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope getRedactionScope() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope result = - com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope.valueOf(redactionScope_); + com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope.forNumber( + redactionScope_); return result == null ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope.UNRECOGNIZED : result; } public static final int INSPECT_TEMPLATE_FIELD_NUMBER = 9; - private volatile java.lang.Object inspectTemplate_; + + @SuppressWarnings("serial") + private volatile java.lang.Object inspectTemplate_ = ""; /** * * @@ -2766,7 +2806,9 @@ public com.google.protobuf.ByteString getInspectTemplateBytes() { } public static final int DEIDENTIFY_TEMPLATE_FIELD_NUMBER = 17; - private volatile java.lang.Object deidentifyTemplate_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deidentifyTemplate_ = ""; /** * * @@ -2882,7 +2924,10 @@ public int getRetentionWindowDays() { } public static final int PURGE_DATA_TYPES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") private java.util.List purgeDataTypes_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType> purgeDataTypes_converter_ = @@ -2891,9 +2936,8 @@ public int getRetentionWindowDays() { com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType>() { public com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType convert( java.lang.Integer from) { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType result = - com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType.valueOf(from); + com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType.forNumber(from); return result == null ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType.UNRECOGNIZED : result; @@ -3003,13 +3047,17 @@ public int getPurgeDataTypesValue(int index) { * Controls audio export settings for post-conversation analytics when * ingesting audio to conversations via [Participants.AnalyzeContent][] or * [Participants.StreamingAnalyzeContent][]. - * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or - * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled. + * If + * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] + * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][] + * is empty, audio export is disabled. * If audio export is enabled, audio is recorded and saved to * [audio_export_settings.gcs_bucket][], subject to retention policy of * [audio_export_settings.gcs_bucket][]. * This setting won't effect audio input for implicit sessions via - * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. + * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] + * or + * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. *
* * @@ -3029,13 +3077,17 @@ public boolean hasAudioExportSettings() { * Controls audio export settings for post-conversation analytics when * ingesting audio to conversations via [Participants.AnalyzeContent][] or * [Participants.StreamingAnalyzeContent][]. - * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or - * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled. + * If + * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] + * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][] + * is empty, audio export is disabled. * If audio export is enabled, audio is recorded and saved to * [audio_export_settings.gcs_bucket][], subject to retention policy of * [audio_export_settings.gcs_bucket][]. * This setting won't effect audio input for implicit sessions via - * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. + * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] + * or + * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. *
* * @@ -3059,13 +3111,17 @@ public boolean hasAudioExportSettings() { * Controls audio export settings for post-conversation analytics when * ingesting audio to conversations via [Participants.AnalyzeContent][] or * [Participants.StreamingAnalyzeContent][]. - * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or - * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled. + * If + * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] + * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][] + * is empty, audio export is disabled. * If audio export is enabled, audio is recorded and saved to * [audio_export_settings.gcs_bucket][], subject to retention policy of * [audio_export_settings.gcs_bucket][]. * This setting won't effect audio input for implicit sessions via - * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. + * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] + * or + * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. *
* * @@ -3075,7 +3131,10 @@ public boolean hasAudioExportSettings() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettingsOrBuilder getAudioExportSettingsOrBuilder() { - return getAudioExportSettings(); + return audioExportSettings_ == null + ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings + .getDefaultInstance() + : audioExportSettings_; } public static final int INSIGHTS_EXPORT_SETTINGS_FIELD_NUMBER = 13; @@ -3087,8 +3146,10 @@ public boolean hasAudioExportSettings() { *
    * Controls conversation exporting settings to Insights after conversation is
    * completed.
-   * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
-   * Insights export is disabled no matter what you configure here.
+   * If
+   * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+   * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+   * what you configure here.
    * 
* * @@ -3107,8 +3168,10 @@ public boolean hasInsightsExportSettings() { *
    * Controls conversation exporting settings to Insights after conversation is
    * completed.
-   * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
-   * Insights export is disabled no matter what you configure here.
+   * If
+   * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+   * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+   * what you configure here.
    * 
* * @@ -3131,8 +3194,10 @@ public boolean hasInsightsExportSettings() { *
    * Controls conversation exporting settings to Insights after conversation is
    * completed.
-   * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
-   * Insights export is disabled no matter what you configure here.
+   * If
+   * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+   * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+   * what you configure here.
    * 
* * @@ -3142,7 +3207,10 @@ public boolean hasInsightsExportSettings() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettingsOrBuilder getInsightsExportSettingsOrBuilder() { - return getInsightsExportSettings(); + return insightsExportSettings_ == null + ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings + .getDefaultInstance() + : insightsExportSettings_; } private byte memoizedIsInitialized = -1; @@ -3481,30 +3549,23 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - redactionStrategy_ = 0; - redactionScope_ = 0; - inspectTemplate_ = ""; - deidentifyTemplate_ = ""; - purgeDataTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - if (audioExportSettingsBuilder_ == null) { - audioExportSettings_ = null; - } else { - audioExportSettings_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + audioExportSettings_ = null; + if (audioExportSettingsBuilder_ != null) { + audioExportSettingsBuilder_.dispose(); audioExportSettingsBuilder_ = null; } - if (insightsExportSettingsBuilder_ == null) { - insightsExportSettings_ = null; - } else { - insightsExportSettings_ = null; + insightsExportSettings_ = null; + if (insightsExportSettingsBuilder_ != null) { + insightsExportSettingsBuilder_.dispose(); insightsExportSettingsBuilder_ = null; } dataRetentionCase_ = 0; @@ -3536,34 +3597,61 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings build() { public com.google.cloud.dialogflow.cx.v3.SecuritySettings buildPartial() { com.google.cloud.dialogflow.cx.v3.SecuritySettings result = new com.google.cloud.dialogflow.cx.v3.SecuritySettings(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.redactionStrategy_ = redactionStrategy_; - result.redactionScope_ = redactionScope_; - result.inspectTemplate_ = inspectTemplate_; - result.deidentifyTemplate_ = deidentifyTemplate_; - if (dataRetentionCase_ == 6) { - result.dataRetention_ = dataRetention_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.SecuritySettings result) { + if (((bitField0_ & 0x00000080) != 0)) { purgeDataTypes_ = java.util.Collections.unmodifiableList(purgeDataTypes_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); } result.purgeDataTypes_ = purgeDataTypes_; - if (audioExportSettingsBuilder_ == null) { - result.audioExportSettings_ = audioExportSettings_; - } else { - result.audioExportSettings_ = audioExportSettingsBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.SecuritySettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (insightsExportSettingsBuilder_ == null) { - result.insightsExportSettings_ = insightsExportSettings_; - } else { - result.insightsExportSettings_ = insightsExportSettingsBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.redactionStrategy_ = redactionStrategy_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.redactionScope_ = redactionScope_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.inspectTemplate_ = inspectTemplate_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.deidentifyTemplate_ = deidentifyTemplate_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.audioExportSettings_ = + audioExportSettingsBuilder_ == null + ? audioExportSettings_ + : audioExportSettingsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.insightsExportSettings_ = + insightsExportSettingsBuilder_ == null + ? insightsExportSettings_ + : insightsExportSettingsBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.SecuritySettings result) { result.dataRetentionCase_ = dataRetentionCase_; - onBuilt(); - return result; + result.dataRetention_ = this.dataRetention_; } @java.lang.Override @@ -3614,10 +3702,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.SecuritySettings othe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.redactionStrategy_ != 0) { @@ -3628,16 +3718,18 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.SecuritySettings othe } if (!other.getInspectTemplate().isEmpty()) { inspectTemplate_ = other.inspectTemplate_; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getDeidentifyTemplate().isEmpty()) { deidentifyTemplate_ = other.deidentifyTemplate_; + bitField0_ |= 0x00000020; onChanged(); } if (!other.purgeDataTypes_.isEmpty()) { if (purgeDataTypes_.isEmpty()) { purgeDataTypes_ = other.purgeDataTypes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensurePurgeDataTypesIsMutable(); purgeDataTypes_.addAll(other.purgeDataTypes_); @@ -3690,25 +3782,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { redactionStrategy_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 24 case 32: { redactionScope_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 case 48: @@ -3739,27 +3831,27 @@ public Builder mergeFrom( case 74: { inspectTemplate_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 74 case 98: { input.readMessage( getAudioExportSettingsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 98 case 106: { input.readMessage( getInsightsExportSettingsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 106 case 138: { deidentifyTemplate_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 138 default: @@ -3801,11 +3893,12 @@ public Builder clearDataRetention() { * *
      * Resource name of the settings.
-     * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
-     * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
-     * automatically.
-     * Format: `projects/<Project ID>/locations/<Location
-     * ID>/securitySettings/<Security Settings ID>`.
+     * Required for the
+     * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]
+     * method.
+     * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings]
+     * populates the name automatically. Format: `projects/<Project
+     * ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.
      * 
* * string name = 1; @@ -3828,11 +3921,12 @@ public java.lang.String getName() { * *
      * Resource name of the settings.
-     * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
-     * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
-     * automatically.
-     * Format: `projects/<Project ID>/locations/<Location
-     * ID>/securitySettings/<Security Settings ID>`.
+     * Required for the
+     * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]
+     * method.
+     * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings]
+     * populates the name automatically. Format: `projects/<Project
+     * ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.
      * 
* * string name = 1; @@ -3855,11 +3949,12 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * Resource name of the settings.
-     * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
-     * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
-     * automatically.
-     * Format: `projects/<Project ID>/locations/<Location
-     * ID>/securitySettings/<Security Settings ID>`.
+     * Required for the
+     * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]
+     * method.
+     * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings]
+     * populates the name automatically. Format: `projects/<Project
+     * ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.
      * 
* * string name = 1; @@ -3871,8 +3966,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3881,11 +3976,12 @@ public Builder setName(java.lang.String value) { * *
      * Resource name of the settings.
-     * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
-     * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
-     * automatically.
-     * Format: `projects/<Project ID>/locations/<Location
-     * ID>/securitySettings/<Security Settings ID>`.
+     * Required for the
+     * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]
+     * method.
+     * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings]
+     * populates the name automatically. Format: `projects/<Project
+     * ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.
      * 
* * string name = 1; @@ -3893,8 +3989,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3903,11 +3999,12 @@ public Builder clearName() { * *
      * Resource name of the settings.
-     * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
-     * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
-     * automatically.
-     * Format: `projects/<Project ID>/locations/<Location
-     * ID>/securitySettings/<Security Settings ID>`.
+     * Required for the
+     * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]
+     * method.
+     * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings]
+     * populates the name automatically. Format: `projects/<Project
+     * ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.
      * 
* * string name = 1; @@ -3920,8 +4017,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3931,8 +4028,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The human-readable name of the security settings, unique within the
-     * location.
+     * Required. The human-readable name of the security settings, unique within
+     * the location.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -3954,8 +4051,8 @@ public java.lang.String getDisplayName() { * * *
-     * Required. The human-readable name of the security settings, unique within the
-     * location.
+     * Required. The human-readable name of the security settings, unique within
+     * the location.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -3977,8 +4074,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * Required. The human-readable name of the security settings, unique within the
-     * location.
+     * Required. The human-readable name of the security settings, unique within
+     * the location.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -3990,8 +4087,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3999,8 +4096,8 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * Required. The human-readable name of the security settings, unique within the
-     * location.
+     * Required. The human-readable name of the security settings, unique within
+     * the location.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -4008,8 +4105,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -4017,8 +4114,8 @@ public Builder clearDisplayName() { * * *
-     * Required. The human-readable name of the security settings, unique within the
-     * location.
+     * Required. The human-readable name of the security settings, unique within
+     * the location.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -4031,8 +4128,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4070,8 +4167,8 @@ public int getRedactionStrategyValue() { * @return This builder for chaining. */ public Builder setRedactionStrategyValue(int value) { - redactionStrategy_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4091,9 +4188,8 @@ public Builder setRedactionStrategyValue(int value) { @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy getRedactionStrategy() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy result = - com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy.valueOf( + com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy.forNumber( redactionStrategy_); return result == null ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy.UNRECOGNIZED @@ -4118,7 +4214,7 @@ public Builder setRedactionStrategy( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; redactionStrategy_ = value.getNumber(); onChanged(); return this; @@ -4137,7 +4233,7 @@ public Builder setRedactionStrategy( * @return This builder for chaining. */ public Builder clearRedactionStrategy() { - + bitField0_ = (bitField0_ & ~0x00000004); redactionStrategy_ = 0; onChanged(); return this; @@ -4178,8 +4274,8 @@ public int getRedactionScopeValue() { * @return This builder for chaining. */ public Builder setRedactionScopeValue(int value) { - redactionScope_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -4199,9 +4295,8 @@ public Builder setRedactionScopeValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope getRedactionScope() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope result = - com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope.valueOf( + com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope.forNumber( redactionScope_); return result == null ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope.UNRECOGNIZED @@ -4227,7 +4322,7 @@ public Builder setRedactionScope( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; redactionScope_ = value.getNumber(); onChanged(); return this; @@ -4247,7 +4342,7 @@ public Builder setRedactionScope( * @return This builder for chaining. */ public Builder clearRedactionScope() { - + bitField0_ = (bitField0_ & ~0x00000008); redactionScope_ = 0; onChanged(); return this; @@ -4350,8 +4445,8 @@ public Builder setInspectTemplate(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - inspectTemplate_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -4379,8 +4474,8 @@ public Builder setInspectTemplate(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInspectTemplate() { - inspectTemplate_ = getDefaultInstance().getInspectTemplate(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -4413,8 +4508,8 @@ public Builder setInspectTemplateBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - inspectTemplate_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -4516,8 +4611,8 @@ public Builder setDeidentifyTemplate(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deidentifyTemplate_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4545,8 +4640,8 @@ public Builder setDeidentifyTemplate(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeidentifyTemplate() { - deidentifyTemplate_ = getDefaultInstance().getDeidentifyTemplate(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -4579,8 +4674,8 @@ public Builder setDeidentifyTemplateBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - deidentifyTemplate_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4641,6 +4736,7 @@ public int getRetentionWindowDays() { * @return This builder for chaining. */ public Builder setRetentionWindowDays(int value) { + dataRetentionCase_ = 6; dataRetention_ = value; onChanged(); @@ -4673,9 +4769,9 @@ public Builder clearRetentionWindowDays() { private java.util.List purgeDataTypes_ = java.util.Collections.emptyList(); private void ensurePurgeDataTypesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { purgeDataTypes_ = new java.util.ArrayList(purgeDataTypes_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000080; } } /** @@ -4820,7 +4916,7 @@ public Builder addAllPurgeDataTypes( */ public Builder clearPurgeDataTypes() { purgeDataTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -4935,13 +5031,17 @@ public Builder addAllPurgeDataTypesValue(java.lang.Iterable v * Controls audio export settings for post-conversation analytics when * ingesting audio to conversations via [Participants.AnalyzeContent][] or * [Participants.StreamingAnalyzeContent][]. - * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or - * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled. + * If + * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] + * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][] + * is empty, audio export is disabled. * If audio export is enabled, audio is recorded and saved to * [audio_export_settings.gcs_bucket][], subject to retention policy of * [audio_export_settings.gcs_bucket][]. * This setting won't effect audio input for implicit sessions via - * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. + * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] + * or + * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. *
* * @@ -4951,7 +5051,7 @@ public Builder addAllPurgeDataTypesValue(java.lang.Iterable v * @return Whether the audioExportSettings field is set. */ public boolean hasAudioExportSettings() { - return audioExportSettingsBuilder_ != null || audioExportSettings_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -4960,13 +5060,17 @@ public boolean hasAudioExportSettings() { * Controls audio export settings for post-conversation analytics when * ingesting audio to conversations via [Participants.AnalyzeContent][] or * [Participants.StreamingAnalyzeContent][]. - * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or - * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled. + * If + * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] + * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][] + * is empty, audio export is disabled. * If audio export is enabled, audio is recorded and saved to * [audio_export_settings.gcs_bucket][], subject to retention policy of * [audio_export_settings.gcs_bucket][]. * This setting won't effect audio input for implicit sessions via - * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. + * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] + * or + * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. *
* * @@ -4993,13 +5097,17 @@ public boolean hasAudioExportSettings() { * Controls audio export settings for post-conversation analytics when * ingesting audio to conversations via [Participants.AnalyzeContent][] or * [Participants.StreamingAnalyzeContent][]. - * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or - * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled. + * If + * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] + * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][] + * is empty, audio export is disabled. * If audio export is enabled, audio is recorded and saved to * [audio_export_settings.gcs_bucket][], subject to retention policy of * [audio_export_settings.gcs_bucket][]. * This setting won't effect audio input for implicit sessions via - * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. + * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] + * or + * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. *
* * @@ -5013,11 +5121,11 @@ public Builder setAudioExportSettings( throw new NullPointerException(); } audioExportSettings_ = value; - onChanged(); } else { audioExportSettingsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -5027,13 +5135,17 @@ public Builder setAudioExportSettings( * Controls audio export settings for post-conversation analytics when * ingesting audio to conversations via [Participants.AnalyzeContent][] or * [Participants.StreamingAnalyzeContent][]. - * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or - * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled. + * If + * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] + * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][] + * is empty, audio export is disabled. * If audio export is enabled, audio is recorded and saved to * [audio_export_settings.gcs_bucket][], subject to retention policy of * [audio_export_settings.gcs_bucket][]. * This setting won't effect audio input for implicit sessions via - * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. + * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] + * or + * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. *
* * @@ -5045,11 +5157,11 @@ public Builder setAudioExportSettings( builderForValue) { if (audioExportSettingsBuilder_ == null) { audioExportSettings_ = builderForValue.build(); - onChanged(); } else { audioExportSettingsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -5059,13 +5171,17 @@ public Builder setAudioExportSettings( * Controls audio export settings for post-conversation analytics when * ingesting audio to conversations via [Participants.AnalyzeContent][] or * [Participants.StreamingAnalyzeContent][]. - * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or - * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled. + * If + * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] + * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][] + * is empty, audio export is disabled. * If audio export is enabled, audio is recorded and saved to * [audio_export_settings.gcs_bucket][], subject to retention policy of * [audio_export_settings.gcs_bucket][]. * This setting won't effect audio input for implicit sessions via - * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. + * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] + * or + * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. *
* * @@ -5075,20 +5191,20 @@ public Builder setAudioExportSettings( public Builder mergeAudioExportSettings( com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings value) { if (audioExportSettingsBuilder_ == null) { - if (audioExportSettings_ != null) { - audioExportSettings_ = - com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.newBuilder( - audioExportSettings_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && audioExportSettings_ != null + && audioExportSettings_ + != com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings + .getDefaultInstance()) { + getAudioExportSettingsBuilder().mergeFrom(value); } else { audioExportSettings_ = value; } - onChanged(); } else { audioExportSettingsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -5098,13 +5214,17 @@ public Builder mergeAudioExportSettings( * Controls audio export settings for post-conversation analytics when * ingesting audio to conversations via [Participants.AnalyzeContent][] or * [Participants.StreamingAnalyzeContent][]. - * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or - * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled. + * If + * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] + * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][] + * is empty, audio export is disabled. * If audio export is enabled, audio is recorded and saved to * [audio_export_settings.gcs_bucket][], subject to retention policy of * [audio_export_settings.gcs_bucket][]. * This setting won't effect audio input for implicit sessions via - * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. + * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] + * or + * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. *
* * @@ -5112,14 +5232,13 @@ public Builder mergeAudioExportSettings( * */ public Builder clearAudioExportSettings() { - if (audioExportSettingsBuilder_ == null) { - audioExportSettings_ = null; - onChanged(); - } else { - audioExportSettings_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + audioExportSettings_ = null; + if (audioExportSettingsBuilder_ != null) { + audioExportSettingsBuilder_.dispose(); audioExportSettingsBuilder_ = null; } - + onChanged(); return this; } /** @@ -5129,13 +5248,17 @@ public Builder clearAudioExportSettings() { * Controls audio export settings for post-conversation analytics when * ingesting audio to conversations via [Participants.AnalyzeContent][] or * [Participants.StreamingAnalyzeContent][]. - * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or - * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled. + * If + * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] + * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][] + * is empty, audio export is disabled. * If audio export is enabled, audio is recorded and saved to * [audio_export_settings.gcs_bucket][], subject to retention policy of * [audio_export_settings.gcs_bucket][]. * This setting won't effect audio input for implicit sessions via - * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. + * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] + * or + * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. *
* * @@ -5144,7 +5267,7 @@ public Builder clearAudioExportSettings() { */ public com.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.Builder getAudioExportSettingsBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getAudioExportSettingsFieldBuilder().getBuilder(); } @@ -5155,13 +5278,17 @@ public Builder clearAudioExportSettings() { * Controls audio export settings for post-conversation analytics when * ingesting audio to conversations via [Participants.AnalyzeContent][] or * [Participants.StreamingAnalyzeContent][]. - * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or - * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled. + * If + * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] + * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][] + * is empty, audio export is disabled. * If audio export is enabled, audio is recorded and saved to * [audio_export_settings.gcs_bucket][], subject to retention policy of * [audio_export_settings.gcs_bucket][]. * This setting won't effect audio input for implicit sessions via - * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. + * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] + * or + * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. *
* * @@ -5186,13 +5313,17 @@ public Builder clearAudioExportSettings() { * Controls audio export settings for post-conversation analytics when * ingesting audio to conversations via [Participants.AnalyzeContent][] or * [Participants.StreamingAnalyzeContent][]. - * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or - * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled. + * If + * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] + * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][] + * is empty, audio export is disabled. * If audio export is enabled, audio is recorded and saved to * [audio_export_settings.gcs_bucket][], subject to retention policy of * [audio_export_settings.gcs_bucket][]. * This setting won't effect audio input for implicit sessions via - * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. + * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] + * or + * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. *
* * @@ -5229,8 +5360,10 @@ public Builder clearAudioExportSettings() { *
      * Controls conversation exporting settings to Insights after conversation is
      * completed.
-     * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
-     * Insights export is disabled no matter what you configure here.
+     * If
+     * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+     * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+     * what you configure here.
      * 
* * @@ -5240,7 +5373,7 @@ public Builder clearAudioExportSettings() { * @return Whether the insightsExportSettings field is set. */ public boolean hasInsightsExportSettings() { - return insightsExportSettingsBuilder_ != null || insightsExportSettings_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -5248,8 +5381,10 @@ public boolean hasInsightsExportSettings() { *
      * Controls conversation exporting settings to Insights after conversation is
      * completed.
-     * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
-     * Insights export is disabled no matter what you configure here.
+     * If
+     * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+     * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+     * what you configure here.
      * 
* * @@ -5275,8 +5410,10 @@ public boolean hasInsightsExportSettings() { *
      * Controls conversation exporting settings to Insights after conversation is
      * completed.
-     * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
-     * Insights export is disabled no matter what you configure here.
+     * If
+     * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+     * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+     * what you configure here.
      * 
* * @@ -5290,11 +5427,11 @@ public Builder setInsightsExportSettings( throw new NullPointerException(); } insightsExportSettings_ = value; - onChanged(); } else { insightsExportSettingsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -5303,8 +5440,10 @@ public Builder setInsightsExportSettings( *
      * Controls conversation exporting settings to Insights after conversation is
      * completed.
-     * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
-     * Insights export is disabled no matter what you configure here.
+     * If
+     * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+     * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+     * what you configure here.
      * 
* * @@ -5316,11 +5455,11 @@ public Builder setInsightsExportSettings( builderForValue) { if (insightsExportSettingsBuilder_ == null) { insightsExportSettings_ = builderForValue.build(); - onChanged(); } else { insightsExportSettingsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -5329,8 +5468,10 @@ public Builder setInsightsExportSettings( *
      * Controls conversation exporting settings to Insights after conversation is
      * completed.
-     * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
-     * Insights export is disabled no matter what you configure here.
+     * If
+     * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+     * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+     * what you configure here.
      * 
* * @@ -5340,20 +5481,20 @@ public Builder setInsightsExportSettings( public Builder mergeInsightsExportSettings( com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings value) { if (insightsExportSettingsBuilder_ == null) { - if (insightsExportSettings_ != null) { - insightsExportSettings_ = - com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.newBuilder( - insightsExportSettings_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && insightsExportSettings_ != null + && insightsExportSettings_ + != com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings + .getDefaultInstance()) { + getInsightsExportSettingsBuilder().mergeFrom(value); } else { insightsExportSettings_ = value; } - onChanged(); } else { insightsExportSettingsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -5362,8 +5503,10 @@ public Builder mergeInsightsExportSettings( *
      * Controls conversation exporting settings to Insights after conversation is
      * completed.
-     * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
-     * Insights export is disabled no matter what you configure here.
+     * If
+     * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+     * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+     * what you configure here.
      * 
* * @@ -5371,14 +5514,13 @@ public Builder mergeInsightsExportSettings( * */ public Builder clearInsightsExportSettings() { - if (insightsExportSettingsBuilder_ == null) { - insightsExportSettings_ = null; - onChanged(); - } else { - insightsExportSettings_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + insightsExportSettings_ = null; + if (insightsExportSettingsBuilder_ != null) { + insightsExportSettingsBuilder_.dispose(); insightsExportSettingsBuilder_ = null; } - + onChanged(); return this; } /** @@ -5387,8 +5529,10 @@ public Builder clearInsightsExportSettings() { *
      * Controls conversation exporting settings to Insights after conversation is
      * completed.
-     * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
-     * Insights export is disabled no matter what you configure here.
+     * If
+     * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+     * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+     * what you configure here.
      * 
* * @@ -5397,7 +5541,7 @@ public Builder clearInsightsExportSettings() { */ public com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.Builder getInsightsExportSettingsBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getInsightsExportSettingsFieldBuilder().getBuilder(); } @@ -5407,8 +5551,10 @@ public Builder clearInsightsExportSettings() { *
      * Controls conversation exporting settings to Insights after conversation is
      * completed.
-     * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
-     * Insights export is disabled no matter what you configure here.
+     * If
+     * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+     * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+     * what you configure here.
      * 
* * @@ -5432,8 +5578,10 @@ public Builder clearInsightsExportSettings() { *
      * Controls conversation exporting settings to Insights after conversation is
      * completed.
-     * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
-     * Insights export is disabled no matter what you configure here.
+     * If
+     * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+     * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+     * what you configure here.
      * 
* * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsOrBuilder.java index af81bc651593..5ea1018d4ebb 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsOrBuilder.java @@ -28,11 +28,12 @@ public interface SecuritySettingsOrBuilder * *
    * Resource name of the settings.
-   * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
-   * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
-   * automatically.
-   * Format: `projects/<Project ID>/locations/<Location
-   * ID>/securitySettings/<Security Settings ID>`.
+   * Required for the
+   * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]
+   * method.
+   * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings]
+   * populates the name automatically. Format: `projects/<Project
+   * ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.
    * 
* * string name = 1; @@ -45,11 +46,12 @@ public interface SecuritySettingsOrBuilder * *
    * Resource name of the settings.
-   * Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method.
-   * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name
-   * automatically.
-   * Format: `projects/<Project ID>/locations/<Location
-   * ID>/securitySettings/<Security Settings ID>`.
+   * Required for the
+   * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings]
+   * method.
+   * [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings]
+   * populates the name automatically. Format: `projects/<Project
+   * ID>/locations/<Location ID>/securitySettings/<Security Settings ID>`.
    * 
* * string name = 1; @@ -62,8 +64,8 @@ public interface SecuritySettingsOrBuilder * * *
-   * Required. The human-readable name of the security settings, unique within the
-   * location.
+   * Required. The human-readable name of the security settings, unique within
+   * the location.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -75,8 +77,8 @@ public interface SecuritySettingsOrBuilder * * *
-   * Required. The human-readable name of the security settings, unique within the
-   * location.
+   * Required. The human-readable name of the security settings, unique within
+   * the location.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -355,13 +357,17 @@ public interface SecuritySettingsOrBuilder * Controls audio export settings for post-conversation analytics when * ingesting audio to conversations via [Participants.AnalyzeContent][] or * [Participants.StreamingAnalyzeContent][]. - * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or - * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled. + * If + * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] + * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][] + * is empty, audio export is disabled. * If audio export is enabled, audio is recorded and saved to * [audio_export_settings.gcs_bucket][], subject to retention policy of * [audio_export_settings.gcs_bucket][]. * This setting won't effect audio input for implicit sessions via - * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. + * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] + * or + * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. *
* * @@ -378,13 +384,17 @@ public interface SecuritySettingsOrBuilder * Controls audio export settings for post-conversation analytics when * ingesting audio to conversations via [Participants.AnalyzeContent][] or * [Participants.StreamingAnalyzeContent][]. - * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or - * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled. + * If + * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] + * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][] + * is empty, audio export is disabled. * If audio export is enabled, audio is recorded and saved to * [audio_export_settings.gcs_bucket][], subject to retention policy of * [audio_export_settings.gcs_bucket][]. * This setting won't effect audio input for implicit sessions via - * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. + * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] + * or + * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. *
* * @@ -401,13 +411,17 @@ public interface SecuritySettingsOrBuilder * Controls audio export settings for post-conversation analytics when * ingesting audio to conversations via [Participants.AnalyzeContent][] or * [Participants.StreamingAnalyzeContent][]. - * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or - * [audio_export_settings.gcs_bucket][] is empty, audio export is disabled. + * If + * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] + * is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][] + * is empty, audio export is disabled. * If audio export is enabled, audio is recorded and saved to * [audio_export_settings.gcs_bucket][], subject to retention policy of * [audio_export_settings.gcs_bucket][]. * This setting won't effect audio input for implicit sessions via - * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. + * [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] + * or + * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. *
* * @@ -423,8 +437,10 @@ public interface SecuritySettingsOrBuilder *
    * Controls conversation exporting settings to Insights after conversation is
    * completed.
-   * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
-   * Insights export is disabled no matter what you configure here.
+   * If
+   * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+   * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+   * what you configure here.
    * 
* * @@ -440,8 +456,10 @@ public interface SecuritySettingsOrBuilder *
    * Controls conversation exporting settings to Insights after conversation is
    * completed.
-   * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
-   * Insights export is disabled no matter what you configure here.
+   * If
+   * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+   * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+   * what you configure here.
    * 
* * @@ -458,8 +476,10 @@ public interface SecuritySettingsOrBuilder *
    * Controls conversation exporting settings to Insights after conversation is
    * completed.
-   * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
-   * Insights export is disabled no matter what you configure here.
+   * If
+   * [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
+   * is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
+   * what you configure here.
    * 
* * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsProto.java index 7fa5bcb2f40c..a3e369af39af 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsProto.java @@ -166,23 +166,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tySettings/*}\332A\004name\032x\312A\031dialogflow.goog" + "leapis.com\322AYhttps://www.googleapis.com/" + "auth/cloud-platform,https://www.googleap" - + "is.com/auth/dialogflowB\360\004\n!com.google.cl" + + "is.com/auth/dialogflowB\342\004\n!com.google.cl" + "oud.dialogflow.cx.v3B\025SecuritySettingsPr" - + "otoP\001Z?google.golang.org/genproto/google" - + "apis/cloud/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002" - + "\035Google.Cloud.Dialogflow.Cx.V3\352\002!Google:" - + ":Cloud::Dialogflow::CX::V3\352A\310\001\n\"dlp.goog" - + "leapis.com/InspectTemplate\022Uorganization" - + "s/{organization}/locations/{location}/in" - + "spectTemplates/{inspect_template}\022Kproje" - + "cts/{project}/locations/{location}/inspe" - + "ctTemplates/{inspect_template}\352A\327\001\n%dlp." - + "googleapis.com/DeidentifyTemplate\022[organ" - + "izations/{organization}/locations/{locat" - + "ion}/deidentifyTemplates/{deidentify_tem" - + "plate}\022Qprojects/{project}/locations/{lo" - + "cation}/deidentifyTemplates/{deidentify_" - + "template}b\006proto3" + + "otoP\001Z1cloud.google.com/go/dialogflow/cx" + + "/apiv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.Cloud." + + "Dialogflow.Cx.V3\352\002!Google::Cloud::Dialog" + + "flow::CX::V3\352A\310\001\n\"dlp.googleapis.com/Ins" + + "pectTemplate\022Uorganizations/{organizatio" + + "n}/locations/{location}/inspectTemplates" + + "/{inspect_template}\022Kprojects/{project}/" + + "locations/{location}/inspectTemplates/{i" + + "nspect_template}\352A\327\001\n%dlp.googleapis.com" + + "/DeidentifyTemplate\022[organizations/{orga" + + "nization}/locations/{location}/deidentif" + + "yTemplates/{deidentify_template}\022Qprojec" + + "ts/{project}/locations/{location}/deiden" + + "tifyTemplates/{deidentify_template}b\006pro" + + "to3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SentimentAnalysisResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SentimentAnalysisResult.java index c2991cf01554..0ed0ccc28dde 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SentimentAnalysisResult.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SentimentAnalysisResult.java @@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SCORE_FIELD_NUMBER = 1; - private float score_; + private float score_ = 0F; /** * * @@ -87,7 +87,7 @@ public float getScore() { } public static final int MAGNITUDE_FIELD_NUMBER = 2; - private float magnitude_; + private float magnitude_ = 0F; /** * * @@ -316,10 +316,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; score_ = 0F; - magnitude_ = 0F; - return this; } @@ -347,12 +346,23 @@ public com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult build() { public com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult buildPartial() { com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult result = new com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult(this); - result.score_ = score_; - result.magnitude_ = magnitude_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.SentimentAnalysisResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.score_ = score_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.magnitude_ = magnitude_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -434,13 +444,13 @@ public Builder mergeFrom( case 13: { score_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 case 21: { magnitude_ = input.readFloat(); - + bitField0_ |= 0x00000002; break; } // case 21 default: @@ -460,6 +470,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float score_; /** * @@ -493,6 +505,7 @@ public float getScore() { public Builder setScore(float value) { score_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -509,7 +522,7 @@ public Builder setScore(float value) { * @return This builder for chaining. */ public Builder clearScore() { - + bitField0_ = (bitField0_ & ~0x00000001); score_ = 0F; onChanged(); return this; @@ -548,6 +561,7 @@ public float getMagnitude() { public Builder setMagnitude(float value) { magnitude_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -564,7 +578,7 @@ public Builder setMagnitude(float value) { * @return This builder for chaining. */ public Builder clearMagnitude() { - + bitField0_ = (bitField0_ & ~0x00000002); magnitude_ = 0F; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityType.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityType.java index ec4fabb63a42..61f0b28411e3 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityType.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityType.java @@ -26,9 +26,9 @@ * entities that are built for an individual user such as favorites, * preferences, playlists, and so on. * You can redefine a session entity type at the session level to extend or - * replace a [custom entity type][google.cloud.dialogflow.cx.v3.EntityType] at the user session level (we - * refer to the entity types defined at the agent level as "custom entity - * types"). + * replace a [custom entity type][google.cloud.dialogflow.cx.v3.EntityType] at + * the user session level (we refer to the entity types defined at the agent + * level as "custom entity types"). * Note: session entity types apply to all queries, regardless of the language. * For more information about entity types, see the [Dialogflow * documentation](https://cloud.google.com/dialogflow/docs/entities-overview). @@ -119,8 +119,9 @@ public enum EntityOverrideMode implements com.google.protobuf.ProtocolMessageEnu * `GetSessionEntityType`, `CreateSessionEntityType` and * `UpdateSessionEntityType` only return the additional entities added in * this session entity type. If you want to get the supplemented list, - * please call [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType] on the custom entity type - * and merge. + * please call + * [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType] + * on the custom entity type and merge. *
* * ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2; @@ -160,8 +161,9 @@ public enum EntityOverrideMode implements com.google.protobuf.ProtocolMessageEnu * `GetSessionEntityType`, `CreateSessionEntityType` and * `UpdateSessionEntityType` only return the additional entities added in * this session entity type. If you want to get the supplemented list, - * please call [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType] on the custom entity type - * and merge. + * please call + * [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType] + * on the custom entity type and merge. *
* * ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2; @@ -257,7 +259,9 @@ private EntityOverrideMode(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -318,13 +322,13 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int ENTITY_OVERRIDE_MODE_FIELD_NUMBER = 3; - private int entityOverrideMode_; + private int entityOverrideMode_ = 0; /** * * *
-   * Required. Indicates whether the additional data should override or supplement the
-   * custom entity type definition.
+   * Required. Indicates whether the additional data should override or
+   * supplement the custom entity type definition.
    * 
* * @@ -341,8 +345,8 @@ public int getEntityOverrideModeValue() { * * *
-   * Required. Indicates whether the additional data should override or supplement the
-   * custom entity type definition.
+   * Required. Indicates whether the additional data should override or
+   * supplement the custom entity type definition.
    * 
* * @@ -354,9 +358,8 @@ public int getEntityOverrideModeValue() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode getEntityOverrideMode() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode result = - com.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode.valueOf( + com.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode.forNumber( entityOverrideMode_); return result == null ? com.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode.UNRECOGNIZED @@ -364,13 +367,15 @@ public int getEntityOverrideModeValue() { } public static final int ENTITIES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List entities_; /** * * *
-   * Required. The collection of entities to override or supplement the custom entity
-   * type.
+   * Required. The collection of entities to override or supplement the custom
+   * entity type.
    * 
* * @@ -385,8 +390,8 @@ public java.util.List getEn * * *
-   * Required. The collection of entities to override or supplement the custom entity
-   * type.
+   * Required. The collection of entities to override or supplement the custom
+   * entity type.
    * 
* * @@ -402,8 +407,8 @@ public java.util.List getEn * * *
-   * Required. The collection of entities to override or supplement the custom entity
-   * type.
+   * Required. The collection of entities to override or supplement the custom
+   * entity type.
    * 
* * @@ -418,8 +423,8 @@ public int getEntitiesCount() { * * *
-   * Required. The collection of entities to override or supplement the custom entity
-   * type.
+   * Required. The collection of entities to override or supplement the custom
+   * entity type.
    * 
* * @@ -434,8 +439,8 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.Entity getEntities(int index * * *
-   * Required. The collection of entities to override or supplement the custom entity
-   * type.
+   * Required. The collection of entities to override or supplement the custom
+   * entity type.
    * 
* * @@ -641,9 +646,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * entities that are built for an individual user such as favorites, * preferences, playlists, and so on. * You can redefine a session entity type at the session level to extend or - * replace a [custom entity type][google.cloud.dialogflow.cx.v3.EntityType] at the user session level (we - * refer to the entity types defined at the agent level as "custom entity - * types"). + * replace a [custom entity type][google.cloud.dialogflow.cx.v3.EntityType] at + * the user session level (we refer to the entity types defined at the agent + * level as "custom entity types"). * Note: session entity types apply to all queries, regardless of the language. * For more information about entity types, see the [Dialogflow * documentation](https://cloud.google.com/dialogflow/docs/entities-overview). @@ -680,17 +685,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - entityOverrideMode_ = 0; - if (entitiesBuilder_ == null) { entities_ = java.util.Collections.emptyList(); } else { entities_ = null; entitiesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -718,20 +722,35 @@ public com.google.cloud.dialogflow.cx.v3.SessionEntityType build() { public com.google.cloud.dialogflow.cx.v3.SessionEntityType buildPartial() { com.google.cloud.dialogflow.cx.v3.SessionEntityType result = new com.google.cloud.dialogflow.cx.v3.SessionEntityType(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.entityOverrideMode_ = entityOverrideMode_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.SessionEntityType result) { if (entitiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { entities_ = java.util.Collections.unmodifiableList(entities_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.entities_ = entities_; } else { result.entities_ = entitiesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.SessionEntityType result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entityOverrideMode_ = entityOverrideMode_; + } } @java.lang.Override @@ -782,6 +801,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.SessionEntityType oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.entityOverrideMode_ != 0) { @@ -791,7 +811,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.SessionEntityType oth if (!other.entities_.isEmpty()) { if (entities_.isEmpty()) { entities_ = other.entities_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureEntitiesIsMutable(); entities_.addAll(other.entities_); @@ -804,7 +824,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.SessionEntityType oth entitiesBuilder_.dispose(); entitiesBuilder_ = null; entities_ = other.entities_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); entitiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntitiesFieldBuilder() @@ -843,13 +863,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 24: { entityOverrideMode_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 24 case 34: @@ -964,8 +984,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -987,8 +1007,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1015,8 +1035,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1026,8 +1046,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Indicates whether the additional data should override or supplement the
-     * custom entity type definition.
+     * Required. Indicates whether the additional data should override or
+     * supplement the custom entity type definition.
      * 
* * @@ -1044,8 +1064,8 @@ public int getEntityOverrideModeValue() { * * *
-     * Required. Indicates whether the additional data should override or supplement the
-     * custom entity type definition.
+     * Required. Indicates whether the additional data should override or
+     * supplement the custom entity type definition.
      * 
* * @@ -1056,8 +1076,8 @@ public int getEntityOverrideModeValue() { * @return This builder for chaining. */ public Builder setEntityOverrideModeValue(int value) { - entityOverrideMode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1065,8 +1085,8 @@ public Builder setEntityOverrideModeValue(int value) { * * *
-     * Required. Indicates whether the additional data should override or supplement the
-     * custom entity type definition.
+     * Required. Indicates whether the additional data should override or
+     * supplement the custom entity type definition.
      * 
* * @@ -1078,9 +1098,8 @@ public Builder setEntityOverrideModeValue(int value) { @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode getEntityOverrideMode() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode result = - com.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode.valueOf( + com.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode.forNumber( entityOverrideMode_); return result == null ? com.google.cloud.dialogflow.cx.v3.SessionEntityType.EntityOverrideMode.UNRECOGNIZED @@ -1090,8 +1109,8 @@ public Builder setEntityOverrideModeValue(int value) { * * *
-     * Required. Indicates whether the additional data should override or supplement the
-     * custom entity type definition.
+     * Required. Indicates whether the additional data should override or
+     * supplement the custom entity type definition.
      * 
* * @@ -1106,7 +1125,7 @@ public Builder setEntityOverrideMode( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; entityOverrideMode_ = value.getNumber(); onChanged(); return this; @@ -1115,8 +1134,8 @@ public Builder setEntityOverrideMode( * * *
-     * Required. Indicates whether the additional data should override or supplement the
-     * custom entity type definition.
+     * Required. Indicates whether the additional data should override or
+     * supplement the custom entity type definition.
      * 
* * @@ -1126,7 +1145,7 @@ public Builder setEntityOverrideMode( * @return This builder for chaining. */ public Builder clearEntityOverrideMode() { - + bitField0_ = (bitField0_ & ~0x00000002); entityOverrideMode_ = 0; onChanged(); return this; @@ -1136,10 +1155,10 @@ public Builder clearEntityOverrideMode() { java.util.Collections.emptyList(); private void ensureEntitiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { entities_ = new java.util.ArrayList(entities_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -1153,8 +1172,8 @@ private void ensureEntitiesIsMutable() { * * *
-     * Required. The collection of entities to override or supplement the custom entity
-     * type.
+     * Required. The collection of entities to override or supplement the custom
+     * entity type.
      * 
* * @@ -1172,8 +1191,8 @@ public java.util.List getEn * * *
-     * Required. The collection of entities to override or supplement the custom entity
-     * type.
+     * Required. The collection of entities to override or supplement the custom
+     * entity type.
      * 
* * @@ -1191,8 +1210,8 @@ public int getEntitiesCount() { * * *
-     * Required. The collection of entities to override or supplement the custom entity
-     * type.
+     * Required. The collection of entities to override or supplement the custom
+     * entity type.
      * 
* * @@ -1210,8 +1229,8 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.Entity getEntities(int index * * *
-     * Required. The collection of entities to override or supplement the custom entity
-     * type.
+     * Required. The collection of entities to override or supplement the custom
+     * entity type.
      * 
* * @@ -1236,8 +1255,8 @@ public Builder setEntities( * * *
-     * Required. The collection of entities to override or supplement the custom entity
-     * type.
+     * Required. The collection of entities to override or supplement the custom
+     * entity type.
      * 
* * @@ -1259,8 +1278,8 @@ public Builder setEntities( * * *
-     * Required. The collection of entities to override or supplement the custom entity
-     * type.
+     * Required. The collection of entities to override or supplement the custom
+     * entity type.
      * 
* * @@ -1284,8 +1303,8 @@ public Builder addEntities(com.google.cloud.dialogflow.cx.v3.EntityType.Entity v * * *
-     * Required. The collection of entities to override or supplement the custom entity
-     * type.
+     * Required. The collection of entities to override or supplement the custom
+     * entity type.
      * 
* * @@ -1310,8 +1329,8 @@ public Builder addEntities( * * *
-     * Required. The collection of entities to override or supplement the custom entity
-     * type.
+     * Required. The collection of entities to override or supplement the custom
+     * entity type.
      * 
* * @@ -1333,8 +1352,8 @@ public Builder addEntities( * * *
-     * Required. The collection of entities to override or supplement the custom entity
-     * type.
+     * Required. The collection of entities to override or supplement the custom
+     * entity type.
      * 
* * @@ -1356,8 +1375,8 @@ public Builder addEntities( * * *
-     * Required. The collection of entities to override or supplement the custom entity
-     * type.
+     * Required. The collection of entities to override or supplement the custom
+     * entity type.
      * 
* * @@ -1379,8 +1398,8 @@ public Builder addAllEntities( * * *
-     * Required. The collection of entities to override or supplement the custom entity
-     * type.
+     * Required. The collection of entities to override or supplement the custom
+     * entity type.
      * 
* * @@ -1390,7 +1409,7 @@ public Builder addAllEntities( public Builder clearEntities() { if (entitiesBuilder_ == null) { entities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { entitiesBuilder_.clear(); @@ -1401,8 +1420,8 @@ public Builder clearEntities() { * * *
-     * Required. The collection of entities to override or supplement the custom entity
-     * type.
+     * Required. The collection of entities to override or supplement the custom
+     * entity type.
      * 
* * @@ -1423,8 +1442,8 @@ public Builder removeEntities(int index) { * * *
-     * Required. The collection of entities to override or supplement the custom entity
-     * type.
+     * Required. The collection of entities to override or supplement the custom
+     * entity type.
      * 
* * @@ -1439,8 +1458,8 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.Entity.Builder getEntitiesBu * * *
-     * Required. The collection of entities to override or supplement the custom entity
-     * type.
+     * Required. The collection of entities to override or supplement the custom
+     * entity type.
      * 
* * @@ -1459,8 +1478,8 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.EntityOrBuilder getEntitiesO * * *
-     * Required. The collection of entities to override or supplement the custom entity
-     * type.
+     * Required. The collection of entities to override or supplement the custom
+     * entity type.
      * 
* * @@ -1479,8 +1498,8 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.EntityOrBuilder getEntitiesO * * *
-     * Required. The collection of entities to override or supplement the custom entity
-     * type.
+     * Required. The collection of entities to override or supplement the custom
+     * entity type.
      * 
* * @@ -1495,8 +1514,8 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.Entity.Builder addEntitiesBu * * *
-     * Required. The collection of entities to override or supplement the custom entity
-     * type.
+     * Required. The collection of entities to override or supplement the custom
+     * entity type.
      * 
* * @@ -1513,8 +1532,8 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.Entity.Builder addEntitiesBu * * *
-     * Required. The collection of entities to override or supplement the custom entity
-     * type.
+     * Required. The collection of entities to override or supplement the custom
+     * entity type.
      * 
* * @@ -1537,7 +1556,7 @@ public com.google.cloud.dialogflow.cx.v3.EntityType.Entity.Builder addEntitiesBu com.google.cloud.dialogflow.cx.v3.EntityType.Entity, com.google.cloud.dialogflow.cx.v3.EntityType.Entity.Builder, com.google.cloud.dialogflow.cx.v3.EntityType.EntityOrBuilder>( - entities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entities_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); entities_ = null; } return entitiesBuilder_; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypeOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypeOrBuilder.java index 393f70f9bb78..025cfa9382e1 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypeOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypeOrBuilder.java @@ -64,8 +64,8 @@ public interface SessionEntityTypeOrBuilder * * *
-   * Required. Indicates whether the additional data should override or supplement the
-   * custom entity type definition.
+   * Required. Indicates whether the additional data should override or
+   * supplement the custom entity type definition.
    * 
* * @@ -79,8 +79,8 @@ public interface SessionEntityTypeOrBuilder * * *
-   * Required. Indicates whether the additional data should override or supplement the
-   * custom entity type definition.
+   * Required. Indicates whether the additional data should override or
+   * supplement the custom entity type definition.
    * 
* * @@ -95,8 +95,8 @@ public interface SessionEntityTypeOrBuilder * * *
-   * Required. The collection of entities to override or supplement the custom entity
-   * type.
+   * Required. The collection of entities to override or supplement the custom
+   * entity type.
    * 
* * @@ -108,8 +108,8 @@ public interface SessionEntityTypeOrBuilder * * *
-   * Required. The collection of entities to override or supplement the custom entity
-   * type.
+   * Required. The collection of entities to override or supplement the custom
+   * entity type.
    * 
* * @@ -121,8 +121,8 @@ public interface SessionEntityTypeOrBuilder * * *
-   * Required. The collection of entities to override or supplement the custom entity
-   * type.
+   * Required. The collection of entities to override or supplement the custom
+   * entity type.
    * 
* * @@ -134,8 +134,8 @@ public interface SessionEntityTypeOrBuilder * * *
-   * Required. The collection of entities to override or supplement the custom entity
-   * type.
+   * Required. The collection of entities to override or supplement the custom
+   * entity type.
    * 
* * @@ -148,8 +148,8 @@ public interface SessionEntityTypeOrBuilder * * *
-   * Required. The collection of entities to override or supplement the custom entity
-   * type.
+   * Required. The collection of entities to override or supplement the custom
+   * entity type.
    * 
* * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypeProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypeProto.java index 0844329de765..b996b0c8f2ae 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypeProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypeProto.java @@ -155,12 +155,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "A\004name\032x\312A\031dialogflow.googleapis.com\322AYh" + "ttps://www.googleapis.com/auth/cloud-pla" + "tform,https://www.googleapis.com/auth/di" - + "alogflowB\312\001\n!com.google.cloud.dialogflow" - + ".cx.v3B\026SessionEntityTypeProtoP\001Z?google" - + ".golang.org/genproto/googleapis/cloud/di" - + "alogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud" - + ".Dialogflow.Cx.V3\352\002!Google::Cloud::Dialo" - + "gflow::CX::V3b\006proto3" + + "alogflowB\274\001\n!com.google.cloud.dialogflow" + + ".cx.v3B\026SessionEntityTypeProtoP\001Z1cloud." + + "google.com/go/dialogflow/cx/apiv3/cxpb;c" + + "xpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx" + + ".V3\352\002!Google::Cloud::Dialogflow::CX::V3b" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionInfo.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionInfo.java index efbdbce9b0d5..14781c500d64 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionInfo.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionInfo.java @@ -79,13 +79,18 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int SESSION_FIELD_NUMBER = 1; - private volatile java.lang.Object session_; + + @SuppressWarnings("serial") + private volatile java.lang.Object session_ = ""; /** * * *
-   * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
+   * Always present for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+   * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+   * unique identifier of the
+   * [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
    * field can be used by the webhook to identify a session.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/sessions/<Session ID>` or `projects/<Project ID>/locations/<Location
@@ -113,8 +118,11 @@ public java.lang.String getSession() {
    *
    *
    * 
-   * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
+   * Always present for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+   * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+   * unique identifier of the
+   * [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
    * field can be used by the webhook to identify a session.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/sessions/<Session ID>` or `projects/<Project ID>/locations/<Location
@@ -154,6 +162,7 @@ private static final class ParametersDefaultEntryHolder {
                     com.google.protobuf.Value.getDefaultInstance());
   }
 
+  @SuppressWarnings("serial")
   private com.google.protobuf.MapField parameters_;
 
   private com.google.protobuf.MapField
@@ -171,12 +180,14 @@ public int getParametersCount() {
    *
    *
    * 
-   * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * All parameters collected from forms and intents during the session.
-   * Parameters can be created, updated, or removed by the webhook. To remove a
-   * parameter from the session, the webhook should explicitly set the parameter
-   * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
-   * display names.
+   * Optional for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+   * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+   * parameters collected from forms and intents during the session. Parameters
+   * can be created, updated, or removed by the webhook. To remove a parameter
+   * from the session, the webhook should explicitly set the parameter value to
+   * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+   * The map is keyed by parameters' display names.
    * 
* * map<string, .google.protobuf.Value> parameters = 2; @@ -198,12 +209,14 @@ public java.util.Map getParameters( * * *
-   * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * All parameters collected from forms and intents during the session.
-   * Parameters can be created, updated, or removed by the webhook. To remove a
-   * parameter from the session, the webhook should explicitly set the parameter
-   * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
-   * display names.
+   * Optional for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+   * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+   * parameters collected from forms and intents during the session. Parameters
+   * can be created, updated, or removed by the webhook. To remove a parameter
+   * from the session, the webhook should explicitly set the parameter value to
+   * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+   * The map is keyed by parameters' display names.
    * 
* * map<string, .google.protobuf.Value> parameters = 2; @@ -216,19 +229,23 @@ public java.util.Map getParametersM * * *
-   * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * All parameters collected from forms and intents during the session.
-   * Parameters can be created, updated, or removed by the webhook. To remove a
-   * parameter from the session, the webhook should explicitly set the parameter
-   * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
-   * display names.
+   * Optional for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+   * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+   * parameters collected from forms and intents during the session. Parameters
+   * can be created, updated, or removed by the webhook. To remove a parameter
+   * from the session, the webhook should explicitly set the parameter value to
+   * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+   * The map is keyed by parameters' display names.
    * 
* * map<string, .google.protobuf.Value> parameters = 2; */ @java.lang.Override - public com.google.protobuf.Value getParametersOrDefault( - java.lang.String key, com.google.protobuf.Value defaultValue) { + public /* nullable */ com.google.protobuf.Value getParametersOrDefault( + java.lang.String key, + /* nullable */ + com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -240,12 +257,14 @@ public com.google.protobuf.Value getParametersOrDefault( * * *
-   * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * All parameters collected from forms and intents during the session.
-   * Parameters can be created, updated, or removed by the webhook. To remove a
-   * parameter from the session, the webhook should explicitly set the parameter
-   * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
-   * display names.
+   * Optional for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+   * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+   * parameters collected from forms and intents during the session. Parameters
+   * can be created, updated, or removed by the webhook. To remove a parameter
+   * from the session, the webhook should explicitly set the parameter value to
+   * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+   * The map is keyed by parameters' display names.
    * 
* * map<string, .google.protobuf.Value> parameters = 2; @@ -497,8 +516,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; session_ = ""; - internalGetMutableParameters().clear(); return this; } @@ -527,14 +546,24 @@ public com.google.cloud.dialogflow.cx.v3.SessionInfo build() { public com.google.cloud.dialogflow.cx.v3.SessionInfo buildPartial() { com.google.cloud.dialogflow.cx.v3.SessionInfo result = new com.google.cloud.dialogflow.cx.v3.SessionInfo(this); - int from_bitField0_ = bitField0_; - result.session_ = session_; - result.parameters_ = internalGetParameters(); - result.parameters_.makeImmutable(); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.SessionInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.session_ = session_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parameters_ = internalGetParameters(); + result.parameters_.makeImmutable(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -582,9 +611,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.SessionInfo other) { if (other == com.google.cloud.dialogflow.cx.v3.SessionInfo.getDefaultInstance()) return this; if (!other.getSession().isEmpty()) { session_ = other.session_; + bitField0_ |= 0x00000001; onChanged(); } internalGetMutableParameters().mergeFrom(other.internalGetParameters()); + bitField0_ |= 0x00000002; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -614,7 +645,7 @@ public Builder mergeFrom( case 10: { session_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -627,6 +658,7 @@ public Builder mergeFrom( internalGetMutableParameters() .getMutableMap() .put(parameters__.getKey(), parameters__.getValue()); + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -653,8 +685,11 @@ public Builder mergeFrom( * * *
-     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
+     * Always present for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * unique identifier of the
+     * [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
      * field can be used by the webhook to identify a session.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/sessions/<Session ID>` or `projects/<Project ID>/locations/<Location
@@ -681,8 +716,11 @@ public java.lang.String getSession() {
      *
      *
      * 
-     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
+     * Always present for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * unique identifier of the
+     * [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
      * field can be used by the webhook to identify a session.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/sessions/<Session ID>` or `projects/<Project ID>/locations/<Location
@@ -709,8 +747,11 @@ public com.google.protobuf.ByteString getSessionBytes() {
      *
      *
      * 
-     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
+     * Always present for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * unique identifier of the
+     * [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
      * field can be used by the webhook to identify a session.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/sessions/<Session ID>` or `projects/<Project ID>/locations/<Location
@@ -727,8 +768,8 @@ public Builder setSession(java.lang.String value) {
       if (value == null) {
         throw new NullPointerException();
       }
-
       session_ = value;
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -736,8 +777,11 @@ public Builder setSession(java.lang.String value) {
      *
      *
      * 
-     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
+     * Always present for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * unique identifier of the
+     * [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
      * field can be used by the webhook to identify a session.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/sessions/<Session ID>` or `projects/<Project ID>/locations/<Location
@@ -750,8 +794,8 @@ public Builder setSession(java.lang.String value) {
      * @return This builder for chaining.
      */
     public Builder clearSession() {
-
       session_ = getDefaultInstance().getSession();
+      bitField0_ = (bitField0_ & ~0x00000001);
       onChanged();
       return this;
     }
@@ -759,8 +803,11 @@ public Builder clearSession() {
      *
      *
      * 
-     * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
+     * Always present for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+     * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+     * unique identifier of the
+     * [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
      * field can be used by the webhook to identify a session.
      * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/sessions/<Session ID>` or `projects/<Project ID>/locations/<Location
@@ -778,8 +825,8 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) {
         throw new NullPointerException();
       }
       checkByteStringIsUtf8(value);
-
       session_ = value;
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -797,8 +844,6 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) {
 
     private com.google.protobuf.MapField
         internalGetMutableParameters() {
-      onChanged();
-      ;
       if (parameters_ == null) {
         parameters_ =
             com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry);
@@ -806,6 +851,8 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) {
       if (!parameters_.isMutable()) {
         parameters_ = parameters_.copy();
       }
+      bitField0_ |= 0x00000002;
+      onChanged();
       return parameters_;
     }
 
@@ -816,12 +863,14 @@ public int getParametersCount() {
      *
      *
      * 
-     * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * All parameters collected from forms and intents during the session.
-     * Parameters can be created, updated, or removed by the webhook. To remove a
-     * parameter from the session, the webhook should explicitly set the parameter
-     * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
-     * display names.
+     * Optional for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+     * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+     * parameters collected from forms and intents during the session. Parameters
+     * can be created, updated, or removed by the webhook. To remove a parameter
+     * from the session, the webhook should explicitly set the parameter value to
+     * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * The map is keyed by parameters' display names.
      * 
* * map<string, .google.protobuf.Value> parameters = 2; @@ -843,12 +892,14 @@ public java.util.Map getParameters( * * *
-     * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * All parameters collected from forms and intents during the session.
-     * Parameters can be created, updated, or removed by the webhook. To remove a
-     * parameter from the session, the webhook should explicitly set the parameter
-     * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
-     * display names.
+     * Optional for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+     * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+     * parameters collected from forms and intents during the session. Parameters
+     * can be created, updated, or removed by the webhook. To remove a parameter
+     * from the session, the webhook should explicitly set the parameter value to
+     * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * The map is keyed by parameters' display names.
      * 
* * map<string, .google.protobuf.Value> parameters = 2; @@ -861,19 +912,23 @@ public java.util.Map getParametersM * * *
-     * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * All parameters collected from forms and intents during the session.
-     * Parameters can be created, updated, or removed by the webhook. To remove a
-     * parameter from the session, the webhook should explicitly set the parameter
-     * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
-     * display names.
+     * Optional for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+     * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+     * parameters collected from forms and intents during the session. Parameters
+     * can be created, updated, or removed by the webhook. To remove a parameter
+     * from the session, the webhook should explicitly set the parameter value to
+     * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * The map is keyed by parameters' display names.
      * 
* * map<string, .google.protobuf.Value> parameters = 2; */ @java.lang.Override - public com.google.protobuf.Value getParametersOrDefault( - java.lang.String key, com.google.protobuf.Value defaultValue) { + public /* nullable */ com.google.protobuf.Value getParametersOrDefault( + java.lang.String key, + /* nullable */ + com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -885,12 +940,14 @@ public com.google.protobuf.Value getParametersOrDefault( * * *
-     * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * All parameters collected from forms and intents during the session.
-     * Parameters can be created, updated, or removed by the webhook. To remove a
-     * parameter from the session, the webhook should explicitly set the parameter
-     * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
-     * display names.
+     * Optional for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+     * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+     * parameters collected from forms and intents during the session. Parameters
+     * can be created, updated, or removed by the webhook. To remove a parameter
+     * from the session, the webhook should explicitly set the parameter value to
+     * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * The map is keyed by parameters' display names.
      * 
* * map<string, .google.protobuf.Value> parameters = 2; @@ -909,6 +966,7 @@ public com.google.protobuf.Value getParametersOrThrow(java.lang.String key) { } public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableParameters().getMutableMap().clear(); return this; } @@ -916,12 +974,14 @@ public Builder clearParameters() { * * *
-     * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * All parameters collected from forms and intents during the session.
-     * Parameters can be created, updated, or removed by the webhook. To remove a
-     * parameter from the session, the webhook should explicitly set the parameter
-     * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
-     * display names.
+     * Optional for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+     * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+     * parameters collected from forms and intents during the session. Parameters
+     * can be created, updated, or removed by the webhook. To remove a parameter
+     * from the session, the webhook should explicitly set the parameter value to
+     * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * The map is keyed by parameters' display names.
      * 
* * map<string, .google.protobuf.Value> parameters = 2; @@ -936,18 +996,21 @@ public Builder removeParameters(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableParameters() { + bitField0_ |= 0x00000002; return internalGetMutableParameters().getMutableMap(); } /** * * *
-     * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * All parameters collected from forms and intents during the session.
-     * Parameters can be created, updated, or removed by the webhook. To remove a
-     * parameter from the session, the webhook should explicitly set the parameter
-     * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
-     * display names.
+     * Optional for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+     * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+     * parameters collected from forms and intents during the session. Parameters
+     * can be created, updated, or removed by the webhook. To remove a parameter
+     * from the session, the webhook should explicitly set the parameter value to
+     * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * The map is keyed by parameters' display names.
      * 
* * map<string, .google.protobuf.Value> parameters = 2; @@ -959,20 +1022,22 @@ public Builder putParameters(java.lang.String key, com.google.protobuf.Value val if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableParameters().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; return this; } /** * * *
-     * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-     * All parameters collected from forms and intents during the session.
-     * Parameters can be created, updated, or removed by the webhook. To remove a
-     * parameter from the session, the webhook should explicitly set the parameter
-     * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
-     * display names.
+     * Optional for
+     * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+     * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+     * parameters collected from forms and intents during the session. Parameters
+     * can be created, updated, or removed by the webhook. To remove a parameter
+     * from the session, the webhook should explicitly set the parameter value to
+     * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+     * The map is keyed by parameters' display names.
      * 
* * map<string, .google.protobuf.Value> parameters = 2; @@ -980,6 +1045,7 @@ public Builder putParameters(java.lang.String key, com.google.protobuf.Value val public Builder putAllParameters( java.util.Map values) { internalGetMutableParameters().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionInfoOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionInfoOrBuilder.java index b8cdac21a2e7..33d8adec8cd5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionInfoOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionInfoOrBuilder.java @@ -27,8 +27,11 @@ public interface SessionInfoOrBuilder * * *
-   * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
+   * Always present for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+   * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+   * unique identifier of the
+   * [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
    * field can be used by the webhook to identify a session.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/sessions/<Session ID>` or `projects/<Project ID>/locations/<Location
@@ -45,8 +48,11 @@ public interface SessionInfoOrBuilder
    *
    *
    * 
-   * Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
+   * Always present for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for
+   * [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The
+   * unique identifier of the
+   * [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This
    * field can be used by the webhook to identify a session.
    * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/sessions/<Session ID>` or `projects/<Project ID>/locations/<Location
@@ -64,12 +70,14 @@ public interface SessionInfoOrBuilder
    *
    *
    * 
-   * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * All parameters collected from forms and intents during the session.
-   * Parameters can be created, updated, or removed by the webhook. To remove a
-   * parameter from the session, the webhook should explicitly set the parameter
-   * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
-   * display names.
+   * Optional for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+   * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+   * parameters collected from forms and intents during the session. Parameters
+   * can be created, updated, or removed by the webhook. To remove a parameter
+   * from the session, the webhook should explicitly set the parameter value to
+   * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+   * The map is keyed by parameters' display names.
    * 
* * map<string, .google.protobuf.Value> parameters = 2; @@ -79,12 +87,14 @@ public interface SessionInfoOrBuilder * * *
-   * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * All parameters collected from forms and intents during the session.
-   * Parameters can be created, updated, or removed by the webhook. To remove a
-   * parameter from the session, the webhook should explicitly set the parameter
-   * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
-   * display names.
+   * Optional for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+   * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+   * parameters collected from forms and intents during the session. Parameters
+   * can be created, updated, or removed by the webhook. To remove a parameter
+   * from the session, the webhook should explicitly set the parameter value to
+   * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+   * The map is keyed by parameters' display names.
    * 
* * map<string, .google.protobuf.Value> parameters = 2; @@ -97,12 +107,14 @@ public interface SessionInfoOrBuilder * * *
-   * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * All parameters collected from forms and intents during the session.
-   * Parameters can be created, updated, or removed by the webhook. To remove a
-   * parameter from the session, the webhook should explicitly set the parameter
-   * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
-   * display names.
+   * Optional for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+   * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+   * parameters collected from forms and intents during the session. Parameters
+   * can be created, updated, or removed by the webhook. To remove a parameter
+   * from the session, the webhook should explicitly set the parameter value to
+   * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+   * The map is keyed by parameters' display names.
    * 
* * map<string, .google.protobuf.Value> parameters = 2; @@ -112,17 +124,18 @@ public interface SessionInfoOrBuilder * * *
-   * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * All parameters collected from forms and intents during the session.
-   * Parameters can be created, updated, or removed by the webhook. To remove a
-   * parameter from the session, the webhook should explicitly set the parameter
-   * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
-   * display names.
+   * Optional for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+   * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+   * parameters collected from forms and intents during the session. Parameters
+   * can be created, updated, or removed by the webhook. To remove a parameter
+   * from the session, the webhook should explicitly set the parameter value to
+   * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+   * The map is keyed by parameters' display names.
    * 
* * map<string, .google.protobuf.Value> parameters = 2; */ - /* nullable */ com.google.protobuf.Value getParametersOrDefault( java.lang.String key, @@ -132,12 +145,14 @@ com.google.protobuf.Value getParametersOrDefault( * * *
-   * Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
-   * All parameters collected from forms and intents during the session.
-   * Parameters can be created, updated, or removed by the webhook. To remove a
-   * parameter from the session, the webhook should explicitly set the parameter
-   * value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters'
-   * display names.
+   * Optional for
+   * [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional
+   * for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All
+   * parameters collected from forms and intents during the session. Parameters
+   * can be created, updated, or removed by the webhook. To remove a parameter
+   * from the session, the webhook should explicitly set the parameter value to
+   * null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse].
+   * The map is keyed by parameters' display names.
    * 
* * map<string, .google.protobuf.Value> parameters = 2; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java index 6e1c3e794319..ae6b78e1ee29 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionProto.java @@ -172,7 +172,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".google.protobuf.Duration\022\025\n\rlanguage_co" + "de\030\n \001(\t\"X\n\013MessageType\022\034\n\030MESSAGE_TYPE_" + "UNSPECIFIED\020\000\022\016\n\nTRANSCRIPT\020\001\022\033\n\027END_OF_" - + "SINGLE_UTTERANCE\020\002\"\303\004\n\017QueryParameters\022\021" + + "SINGLE_UTTERANCE\020\002\"\324\004\n\017QueryParameters\022\021" + "\n\ttime_zone\030\001 \001(\t\022)\n\014geo_location\030\002 \001(\0132" + "\023.google.type.LatLng\022N\n\024session_entity_t" + "ypes\030\003 \003(\01320.google.cloud.dialogflow.cx." @@ -185,120 +185,120 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_headers\030\n \003(\0132B.google.cloud.dialogflow" + ".cx.v3.QueryParameters.WebhookHeadersEnt" + "ry\022=\n\rflow_versions\030\016 \003(\tB&\372A#\n!dialogfl" - + "ow.googleapis.com/Version\0325\n\023WebhookHead" - + "ersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + "\"\333\002\n\nQueryInput\0228\n\004text\030\002 \001(\0132(.google.c" - + "loud.dialogflow.cx.v3.TextInputH\000\022<\n\006int" - + "ent\030\003 \001(\0132*.google.cloud.dialogflow.cx.v" - + "3.IntentInputH\000\022:\n\005audio\030\005 \001(\0132).google." - + "cloud.dialogflow.cx.v3.AudioInputH\000\022:\n\005e" - + "vent\030\006 \001(\0132).google.cloud.dialogflow.cx." - + "v3.EventInputH\000\0228\n\004dtmf\030\007 \001(\0132(.google.c" - + "loud.dialogflow.cx.v3.DtmfInputH\000\022\032\n\rlan" - + "guage_code\030\004 \001(\tB\003\340A\002B\007\n\005input\"\241\006\n\013Query" - + "Result\022\016\n\004text\030\001 \001(\tH\000\022?\n\016trigger_intent" - + "\030\013 \001(\tB%\372A\"\n dialogflow.googleapis.com/I" - + "ntentH\000\022\024\n\ntranscript\030\014 \001(\tH\000\022\027\n\rtrigger" - + "_event\030\016 \001(\tH\000\0228\n\004dtmf\030\027 \001(\0132(.google.cl" - + "oud.dialogflow.cx.v3.DtmfInputH\000\022\025\n\rlang" - + "uage_code\030\002 \001(\t\022+\n\nparameters\030\003 \001(\0132\027.go" - + "ogle.protobuf.Struct\022I\n\021response_message" - + "s\030\004 \003(\0132..google.cloud.dialogflow.cx.v3." - + "ResponseMessage\022,\n\020webhook_statuses\030\r \003(" - + "\0132\022.google.rpc.Status\0221\n\020webhook_payload" - + "s\030\006 \003(\0132\027.google.protobuf.Struct\0229\n\014curr" - + "ent_page\030\007 \001(\0132#.google.cloud.dialogflow" - + ".cx.v3.Page\0229\n\006intent\030\010 \001(\0132%.google.clo" - + "ud.dialogflow.cx.v3.IntentB\002\030\001\022\'\n\033intent" - + "_detection_confidence\030\t \001(\002B\002\030\001\0223\n\005match" - + "\030\017 \001(\0132$.google.cloud.dialogflow.cx.v3.M" - + "atch\0220\n\017diagnostic_info\030\n \001(\0132\027.google.p" - + "rotobuf.Struct\022Y\n\031sentiment_analysis_res" - + "ult\030\021 \001(\01326.google.cloud.dialogflow.cx.v" - + "3.SentimentAnalysisResultB\007\n\005query\"\036\n\tTe" - + "xtInput\022\021\n\004text\030\001 \001(\tB\003\340A\002\"G\n\013IntentInpu" - + "t\0228\n\006intent\030\001 \001(\tB(\340A\002\372A\"\n dialogflow.go" - + "ogleapis.com/Intent\"a\n\nAudioInput\022D\n\006con" - + "fig\030\001 \001(\0132/.google.cloud.dialogflow.cx.v" - + "3.InputAudioConfigB\003\340A\002\022\r\n\005audio\030\002 \001(\014\"\033" - + "\n\nEventInput\022\r\n\005event\030\001 \001(\t\"1\n\tDtmfInput" - + "\022\016\n\006digits\030\001 \001(\t\022\024\n\014finish_digit\030\002 \001(\t\"\361" - + "\002\n\005Match\0225\n\006intent\030\001 \001(\0132%.google.cloud." - + "dialogflow.cx.v3.Intent\022\r\n\005event\030\006 \001(\t\022+" - + "\n\nparameters\030\002 \001(\0132\027.google.protobuf.Str" - + "uct\022\026\n\016resolved_input\030\003 \001(\t\022B\n\nmatch_typ" - + "e\030\004 \001(\0162..google.cloud.dialogflow.cx.v3." - + "Match.MatchType\022\022\n\nconfidence\030\005 \001(\002\"\204\001\n\t" - + "MatchType\022\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\n\n" - + "\006INTENT\020\001\022\021\n\rDIRECT_INTENT\020\002\022\025\n\021PARAMETE" - + "R_FILLING\020\003\022\014\n\010NO_MATCH\020\004\022\014\n\010NO_INPUT\020\005\022" - + "\t\n\005EVENT\020\006\"\333\001\n\022MatchIntentRequest\022:\n\007ses" - + "sion\030\001 \001(\tB)\340A\002\372A#\n!dialogflow.googleapi" - + "s.com/Session\022D\n\014query_params\030\002 \001(\0132..go" - + "ogle.cloud.dialogflow.cx.v3.QueryParamet" - + "ers\022C\n\013query_input\030\003 \001(\0132).google.cloud." - + "dialogflow.cx.v3.QueryInputB\003\340A\002\"\220\002\n\023Mat" - + "chIntentResponse\022\016\n\004text\030\001 \001(\tH\000\022?\n\016trig" - + "ger_intent\030\002 \001(\tB%\372A\"\n dialogflow.google" - + "apis.com/IntentH\000\022\024\n\ntranscript\030\003 \001(\tH\000\022" - + "\027\n\rtrigger_event\030\006 \001(\tH\000\0225\n\007matches\030\004 \003(" - + "\0132$.google.cloud.dialogflow.cx.v3.Match\022" - + "9\n\014current_page\030\005 \001(\0132#.google.cloud.dia" - + "logflow.cx.v3.PageB\007\n\005query\"\353\001\n\024FulfillI" - + "ntentRequest\022O\n\024match_intent_request\030\001 \001" - + "(\01321.google.cloud.dialogflow.cx.v3.Match" - + "IntentRequest\0223\n\005match\030\002 \001(\0132$.google.cl" - + "oud.dialogflow.cx.v3.Match\022M\n\023output_aud" - + "io_config\030\003 \001(\01320.google.cloud.dialogflo" - + "w.cx.v3.OutputAudioConfig\"\323\001\n\025FulfillInt" - + "entResponse\022\023\n\013response_id\030\001 \001(\t\022@\n\014quer" - + "y_result\030\002 \001(\0132*.google.cloud.dialogflow" - + ".cx.v3.QueryResult\022\024\n\014output_audio\030\003 \001(\014" - + "\022M\n\023output_audio_config\030\004 \001(\01320.google.c" - + "loud.dialogflow.cx.v3.OutputAudioConfig\"" - + ";\n\027SentimentAnalysisResult\022\r\n\005score\030\001 \001(" - + "\002\022\021\n\tmagnitude\030\002 \001(\0022\304\t\n\010Sessions\022\246\002\n\014De" - + "tectIntent\0222.google.cloud.dialogflow.cx." - + "v3.DetectIntentRequest\0323.google.cloud.di" - + "alogflow.cx.v3.DetectIntentResponse\"\254\001\202\323" - + "\344\223\002\245\001\"E/v3/{session=projects/*/locations" - + "/*/agents/*/sessions/*}:detectIntent:\001*Z" - + "Y\"T/v3/{session=projects/*/locations/*/a" - + "gents/*/environments/*/sessions/*}:detec" - + "tIntent:\001*\022\230\001\n\025StreamingDetectIntent\022;.g" - + "oogle.cloud.dialogflow.cx.v3.StreamingDe" - + "tectIntentRequest\032<.google.cloud.dialogf" - + "low.cx.v3.StreamingDetectIntentResponse\"" - + "\000(\0010\001\022\241\002\n\013MatchIntent\0221.google.cloud.dia" - + "logflow.cx.v3.MatchIntentRequest\0322.googl" - + "e.cloud.dialogflow.cx.v3.MatchIntentResp" - + "onse\"\252\001\202\323\344\223\002\243\001\"D/v3/{session=projects/*/" - + "locations/*/agents/*/sessions/*}:matchIn" - + "tent:\001*ZX\"S/v3/{session=projects/*/locat" - + "ions/*/agents/*/environments/*/sessions/" - + "*}:matchIntent:\001*\022\325\002\n\rFulfillIntent\0223.go" - + "ogle.cloud.dialogflow.cx.v3.FulfillInten" - + "tRequest\0324.google.cloud.dialogflow.cx.v3" - + ".FulfillIntentResponse\"\330\001\202\323\344\223\002\321\001\"[/v3/{m" - + "atch_intent_request.session=projects/*/l" - + "ocations/*/agents/*/sessions/*}:fulfillI" - + "ntent:\001*Zo\"j/v3/{match_intent_request.se" - + "ssion=projects/*/locations/*/agents/*/en" - + "vironments/*/sessions/*}:fulfillIntent:\001" - + "*\032x\312A\031dialogflow.googleapis.com\322AYhttps:" - + "//www.googleapis.com/auth/cloud-platform" - + ",https://www.googleapis.com/auth/dialogf" - + "lowB\230\003\n!com.google.cloud.dialogflow.cx.v" - + "3B\014SessionProtoP\001Z?google.golang.org/gen" - + "proto/googleapis/cloud/dialogflow/cx/v3;" - + "cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx." - + "V3\352\002!Google::Cloud::Dialogflow::CX::V3\352A" - + "\324\001\n!dialogflow.googleapis.com/Session\022Ip" - + "rojects/{project}/locations/{location}/a" - + "gents/{agent}/sessions/{session}\022dprojec" - + "ts/{project}/locations/{location}/agents" - + "/{agent}/environments/{environment}/sess" - + "ions/{session}b\006proto3" + + "ow.googleapis.com/Version\022\017\n\007channel\030\017 \001" + + "(\t\0325\n\023WebhookHeadersEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\"\333\002\n\nQueryInput\0228\n\004text" + + "\030\002 \001(\0132(.google.cloud.dialogflow.cx.v3.T" + + "extInputH\000\022<\n\006intent\030\003 \001(\0132*.google.clou" + + "d.dialogflow.cx.v3.IntentInputH\000\022:\n\005audi" + + "o\030\005 \001(\0132).google.cloud.dialogflow.cx.v3." + + "AudioInputH\000\022:\n\005event\030\006 \001(\0132).google.clo" + + "ud.dialogflow.cx.v3.EventInputH\000\0228\n\004dtmf" + + "\030\007 \001(\0132(.google.cloud.dialogflow.cx.v3.D" + + "tmfInputH\000\022\032\n\rlanguage_code\030\004 \001(\tB\003\340A\002B\007" + + "\n\005input\"\241\006\n\013QueryResult\022\016\n\004text\030\001 \001(\tH\000\022" + + "?\n\016trigger_intent\030\013 \001(\tB%\372A\"\n dialogflow" + + ".googleapis.com/IntentH\000\022\024\n\ntranscript\030\014" + + " \001(\tH\000\022\027\n\rtrigger_event\030\016 \001(\tH\000\0228\n\004dtmf\030" + + "\027 \001(\0132(.google.cloud.dialogflow.cx.v3.Dt" + + "mfInputH\000\022\025\n\rlanguage_code\030\002 \001(\t\022+\n\npara" + + "meters\030\003 \001(\0132\027.google.protobuf.Struct\022I\n" + + "\021response_messages\030\004 \003(\0132..google.cloud." + + "dialogflow.cx.v3.ResponseMessage\022,\n\020webh" + + "ook_statuses\030\r \003(\0132\022.google.rpc.Status\0221" + + "\n\020webhook_payloads\030\006 \003(\0132\027.google.protob" + + "uf.Struct\0229\n\014current_page\030\007 \001(\0132#.google" + + ".cloud.dialogflow.cx.v3.Page\0229\n\006intent\030\010" + + " \001(\0132%.google.cloud.dialogflow.cx.v3.Int" + + "entB\002\030\001\022\'\n\033intent_detection_confidence\030\t" + + " \001(\002B\002\030\001\0223\n\005match\030\017 \001(\0132$.google.cloud.d" + + "ialogflow.cx.v3.Match\0220\n\017diagnostic_info" + + "\030\n \001(\0132\027.google.protobuf.Struct\022Y\n\031senti" + + "ment_analysis_result\030\021 \001(\01326.google.clou" + + "d.dialogflow.cx.v3.SentimentAnalysisResu" + + "ltB\007\n\005query\"\036\n\tTextInput\022\021\n\004text\030\001 \001(\tB\003" + + "\340A\002\"G\n\013IntentInput\0228\n\006intent\030\001 \001(\tB(\340A\002\372" + + "A\"\n dialogflow.googleapis.com/Intent\"a\n\n" + + "AudioInput\022D\n\006config\030\001 \001(\0132/.google.clou" + + "d.dialogflow.cx.v3.InputAudioConfigB\003\340A\002" + + "\022\r\n\005audio\030\002 \001(\014\"\033\n\nEventInput\022\r\n\005event\030\001" + + " \001(\t\"1\n\tDtmfInput\022\016\n\006digits\030\001 \001(\t\022\024\n\014fin" + + "ish_digit\030\002 \001(\t\"\361\002\n\005Match\0225\n\006intent\030\001 \001(" + + "\0132%.google.cloud.dialogflow.cx.v3.Intent" + + "\022\r\n\005event\030\006 \001(\t\022+\n\nparameters\030\002 \001(\0132\027.go" + + "ogle.protobuf.Struct\022\026\n\016resolved_input\030\003" + + " \001(\t\022B\n\nmatch_type\030\004 \001(\0162..google.cloud." + + "dialogflow.cx.v3.Match.MatchType\022\022\n\nconf" + + "idence\030\005 \001(\002\"\204\001\n\tMatchType\022\032\n\026MATCH_TYPE" + + "_UNSPECIFIED\020\000\022\n\n\006INTENT\020\001\022\021\n\rDIRECT_INT" + + "ENT\020\002\022\025\n\021PARAMETER_FILLING\020\003\022\014\n\010NO_MATCH" + + "\020\004\022\014\n\010NO_INPUT\020\005\022\t\n\005EVENT\020\006\"\333\001\n\022MatchInt" + + "entRequest\022:\n\007session\030\001 \001(\tB)\340A\002\372A#\n!dia" + + "logflow.googleapis.com/Session\022D\n\014query_" + + "params\030\002 \001(\0132..google.cloud.dialogflow.c" + + "x.v3.QueryParameters\022C\n\013query_input\030\003 \001(" + + "\0132).google.cloud.dialogflow.cx.v3.QueryI" + + "nputB\003\340A\002\"\220\002\n\023MatchIntentResponse\022\016\n\004tex" + + "t\030\001 \001(\tH\000\022?\n\016trigger_intent\030\002 \001(\tB%\372A\"\n " + + "dialogflow.googleapis.com/IntentH\000\022\024\n\ntr" + + "anscript\030\003 \001(\tH\000\022\027\n\rtrigger_event\030\006 \001(\tH" + + "\000\0225\n\007matches\030\004 \003(\0132$.google.cloud.dialog" + + "flow.cx.v3.Match\0229\n\014current_page\030\005 \001(\0132#" + + ".google.cloud.dialogflow.cx.v3.PageB\007\n\005q" + + "uery\"\353\001\n\024FulfillIntentRequest\022O\n\024match_i" + + "ntent_request\030\001 \001(\01321.google.cloud.dialo" + + "gflow.cx.v3.MatchIntentRequest\0223\n\005match\030" + + "\002 \001(\0132$.google.cloud.dialogflow.cx.v3.Ma" + + "tch\022M\n\023output_audio_config\030\003 \001(\01320.googl" + + "e.cloud.dialogflow.cx.v3.OutputAudioConf" + + "ig\"\323\001\n\025FulfillIntentResponse\022\023\n\013response" + + "_id\030\001 \001(\t\022@\n\014query_result\030\002 \001(\0132*.google" + + ".cloud.dialogflow.cx.v3.QueryResult\022\024\n\014o" + + "utput_audio\030\003 \001(\014\022M\n\023output_audio_config" + + "\030\004 \001(\01320.google.cloud.dialogflow.cx.v3.O" + + "utputAudioConfig\";\n\027SentimentAnalysisRes" + + "ult\022\r\n\005score\030\001 \001(\002\022\021\n\tmagnitude\030\002 \001(\0022\304\t" + + "\n\010Sessions\022\246\002\n\014DetectIntent\0222.google.clo" + + "ud.dialogflow.cx.v3.DetectIntentRequest\032" + + "3.google.cloud.dialogflow.cx.v3.DetectIn" + + "tentResponse\"\254\001\202\323\344\223\002\245\001\"E/v3/{session=pro" + + "jects/*/locations/*/agents/*/sessions/*}" + + ":detectIntent:\001*ZY\"T/v3/{session=project" + + "s/*/locations/*/agents/*/environments/*/" + + "sessions/*}:detectIntent:\001*\022\230\001\n\025Streamin" + + "gDetectIntent\022;.google.cloud.dialogflow." + + "cx.v3.StreamingDetectIntentRequest\032<.goo" + + "gle.cloud.dialogflow.cx.v3.StreamingDete" + + "ctIntentResponse\"\000(\0010\001\022\241\002\n\013MatchIntent\0221" + + ".google.cloud.dialogflow.cx.v3.MatchInte" + + "ntRequest\0322.google.cloud.dialogflow.cx.v" + + "3.MatchIntentResponse\"\252\001\202\323\344\223\002\243\001\"D/v3/{se" + + "ssion=projects/*/locations/*/agents/*/se" + + "ssions/*}:matchIntent:\001*ZX\"S/v3/{session" + + "=projects/*/locations/*/agents/*/environ" + + "ments/*/sessions/*}:matchIntent:\001*\022\325\002\n\rF" + + "ulfillIntent\0223.google.cloud.dialogflow.c" + + "x.v3.FulfillIntentRequest\0324.google.cloud" + + ".dialogflow.cx.v3.FulfillIntentResponse\"" + + "\330\001\202\323\344\223\002\321\001\"[/v3/{match_intent_request.ses" + + "sion=projects/*/locations/*/agents/*/ses" + + "sions/*}:fulfillIntent:\001*Zo\"j/v3/{match_" + + "intent_request.session=projects/*/locati" + + "ons/*/agents/*/environments/*/sessions/*" + + "}:fulfillIntent:\001*\032x\312A\031dialogflow.google" + + "apis.com\322AYhttps://www.googleapis.com/au" + + "th/cloud-platform,https://www.googleapis" + + ".com/auth/dialogflowB\212\003\n!com.google.clou" + + "d.dialogflow.cx.v3B\014SessionProtoP\001Z1clou" + + "d.google.com/go/dialogflow/cx/apiv3/cxpb" + + ";cxpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow." + + "Cx.V3\352\002!Google::Cloud::Dialogflow::CX::V" + + "3\352A\324\001\n!dialogflow.googleapis.com/Session" + + "\022Iprojects/{project}/locations/{location" + + "}/agents/{agent}/sessions/{session}\022dpro" + + "jects/{project}/locations/{location}/age" + + "nts/{agent}/environments/{environment}/s" + + "essions/{session}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -386,6 +386,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AnalyzeQueryTextSentiment", "WebhookHeaders", "FlowVersions", + "Channel", }); internal_static_google_cloud_dialogflow_cx_v3_QueryParameters_WebhookHeadersEntry_descriptor = internal_static_google_cloud_dialogflow_cx_v3_QueryParameters_descriptor diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechModelVariant.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechModelVariant.java index 79464acf36de..5bdee29d6c63 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechModelVariant.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechModelVariant.java @@ -22,7 +22,8 @@ * * *
- * Variant of the specified [Speech model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
+ * Variant of the specified [Speech
+ * model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] to use.
  * See the [Cloud Speech
  * documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
  * for which models have different variants. For example, the "phone_call" model
@@ -77,8 +78,8 @@ public enum SpeechModelVariant implements com.google.protobuf.ProtocolMessageEnu
    * 
    * Use an enhanced model variant:
    * * If an enhanced variant does not exist for the given
-   *   [model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] and request language, Dialogflow falls
-   *   back to the standard variant.
+   *   [model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] and request
+   *   language, Dialogflow falls back to the standard variant.
    *   The [Cloud Speech
    *   documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
    *   describes which models have enhanced variants.
@@ -138,8 +139,8 @@ public enum SpeechModelVariant implements com.google.protobuf.ProtocolMessageEnu
    * 
    * Use an enhanced model variant:
    * * If an enhanced variant does not exist for the given
-   *   [model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] and request language, Dialogflow falls
-   *   back to the standard variant.
+   *   [model][google.cloud.dialogflow.cx.v3.InputAudioConfig.model] and request
+   *   language, Dialogflow falls back to the standard variant.
    *   The [Cloud Speech
    *   documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
    *   describes which models have enhanced variants.
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechToTextSettings.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechToTextSettings.java
index aa8285a3e093..f4c5652028c6 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechToTextSettings.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechToTextSettings.java
@@ -66,7 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
   }
 
   public static final int ENABLE_SPEECH_ADAPTATION_FIELD_NUMBER = 1;
-  private boolean enableSpeechAdaptation_;
+  private boolean enableSpeechAdaptation_ = false;
   /**
    *
    *
@@ -281,8 +281,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     @java.lang.Override
     public Builder clear() {
       super.clear();
+      bitField0_ = 0;
       enableSpeechAdaptation_ = false;
-
       return this;
     }
 
@@ -310,11 +310,20 @@ public com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings build() {
     public com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings buildPartial() {
       com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings result =
           new com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings(this);
-      result.enableSpeechAdaptation_ = enableSpeechAdaptation_;
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
+    private void buildPartial0(com.google.cloud.dialogflow.cx.v3.SpeechToTextSettings result) {
+      int from_bitField0_ = bitField0_;
+      if (((from_bitField0_ & 0x00000001) != 0)) {
+        result.enableSpeechAdaptation_ = enableSpeechAdaptation_;
+      }
+    }
+
     @java.lang.Override
     public Builder clone() {
       return super.clone();
@@ -393,7 +402,7 @@ public Builder mergeFrom(
             case 8:
               {
                 enableSpeechAdaptation_ = input.readBool();
-
+                bitField0_ |= 0x00000001;
                 break;
               } // case 8
             default:
@@ -413,6 +422,8 @@ public Builder mergeFrom(
       return this;
     }
 
+    private int bitField0_;
+
     private boolean enableSpeechAdaptation_;
     /**
      *
@@ -444,6 +455,7 @@ public boolean getEnableSpeechAdaptation() {
     public Builder setEnableSpeechAdaptation(boolean value) {
 
       enableSpeechAdaptation_ = value;
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -459,7 +471,7 @@ public Builder setEnableSpeechAdaptation(boolean value) {
      * @return This builder for chaining.
      */
     public Builder clearEnableSpeechAdaptation() {
-
+      bitField0_ = (bitField0_ & ~0x00000001);
       enableSpeechAdaptation_ = false;
       onChanged();
       return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechWordInfo.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechWordInfo.java
index 1b85d5026eff..c9e2643f199a 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechWordInfo.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SpeechWordInfo.java
@@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
   }
 
   public static final int WORD_FIELD_NUMBER = 3;
-  private volatile java.lang.Object word_;
+
+  @SuppressWarnings("serial")
+  private volatile java.lang.Object word_ = "";
   /**
    *
    *
@@ -165,7 +167,7 @@ public com.google.protobuf.Duration getStartOffset() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
-    return getStartOffset();
+    return startOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startOffset_;
   }
 
   public static final int END_OFFSET_FIELD_NUMBER = 2;
@@ -217,11 +219,11 @@ public com.google.protobuf.Duration getEndOffset() {
    */
   @java.lang.Override
   public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() {
-    return getEndOffset();
+    return endOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endOffset_;
   }
 
   public static final int CONFIDENCE_FIELD_NUMBER = 4;
-  private float confidence_;
+  private float confidence_ = 0F;
   /**
    *
    *
@@ -478,22 +480,19 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     @java.lang.Override
     public Builder clear() {
       super.clear();
+      bitField0_ = 0;
       word_ = "";
-
-      if (startOffsetBuilder_ == null) {
-        startOffset_ = null;
-      } else {
-        startOffset_ = null;
+      startOffset_ = null;
+      if (startOffsetBuilder_ != null) {
+        startOffsetBuilder_.dispose();
         startOffsetBuilder_ = null;
       }
-      if (endOffsetBuilder_ == null) {
-        endOffset_ = null;
-      } else {
-        endOffset_ = null;
+      endOffset_ = null;
+      if (endOffsetBuilder_ != null) {
+        endOffsetBuilder_.dispose();
         endOffsetBuilder_ = null;
       }
       confidence_ = 0F;
-
       return this;
     }
 
@@ -521,22 +520,30 @@ public com.google.cloud.dialogflow.cx.v3.SpeechWordInfo build() {
     public com.google.cloud.dialogflow.cx.v3.SpeechWordInfo buildPartial() {
       com.google.cloud.dialogflow.cx.v3.SpeechWordInfo result =
           new com.google.cloud.dialogflow.cx.v3.SpeechWordInfo(this);
-      result.word_ = word_;
-      if (startOffsetBuilder_ == null) {
-        result.startOffset_ = startOffset_;
-      } else {
-        result.startOffset_ = startOffsetBuilder_.build();
-      }
-      if (endOffsetBuilder_ == null) {
-        result.endOffset_ = endOffset_;
-      } else {
-        result.endOffset_ = endOffsetBuilder_.build();
+      if (bitField0_ != 0) {
+        buildPartial0(result);
       }
-      result.confidence_ = confidence_;
       onBuilt();
       return result;
     }
 
+    private void buildPartial0(com.google.cloud.dialogflow.cx.v3.SpeechWordInfo result) {
+      int from_bitField0_ = bitField0_;
+      if (((from_bitField0_ & 0x00000001) != 0)) {
+        result.word_ = word_;
+      }
+      if (((from_bitField0_ & 0x00000002) != 0)) {
+        result.startOffset_ =
+            startOffsetBuilder_ == null ? startOffset_ : startOffsetBuilder_.build();
+      }
+      if (((from_bitField0_ & 0x00000004) != 0)) {
+        result.endOffset_ = endOffsetBuilder_ == null ? endOffset_ : endOffsetBuilder_.build();
+      }
+      if (((from_bitField0_ & 0x00000008) != 0)) {
+        result.confidence_ = confidence_;
+      }
+    }
+
     @java.lang.Override
     public Builder clone() {
       return super.clone();
@@ -585,6 +592,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.SpeechWordInfo other)
         return this;
       if (!other.getWord().isEmpty()) {
         word_ = other.word_;
+        bitField0_ |= 0x00000001;
         onChanged();
       }
       if (other.hasStartOffset()) {
@@ -625,25 +633,25 @@ public Builder mergeFrom(
             case 10:
               {
                 input.readMessage(getStartOffsetFieldBuilder().getBuilder(), extensionRegistry);
-
+                bitField0_ |= 0x00000002;
                 break;
               } // case 10
             case 18:
               {
                 input.readMessage(getEndOffsetFieldBuilder().getBuilder(), extensionRegistry);
-
+                bitField0_ |= 0x00000004;
                 break;
               } // case 18
             case 26:
               {
                 word_ = input.readStringRequireUtf8();
-
+                bitField0_ |= 0x00000001;
                 break;
               } // case 26
             case 37:
               {
                 confidence_ = input.readFloat();
-
+                bitField0_ |= 0x00000008;
                 break;
               } // case 37
             default:
@@ -663,6 +671,8 @@ public Builder mergeFrom(
       return this;
     }
 
+    private int bitField0_;
+
     private java.lang.Object word_ = "";
     /**
      *
@@ -724,8 +734,8 @@ public Builder setWord(java.lang.String value) {
       if (value == null) {
         throw new NullPointerException();
       }
-
       word_ = value;
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -741,8 +751,8 @@ public Builder setWord(java.lang.String value) {
      * @return This builder for chaining.
      */
     public Builder clearWord() {
-
       word_ = getDefaultInstance().getWord();
+      bitField0_ = (bitField0_ & ~0x00000001);
       onChanged();
       return this;
     }
@@ -763,8 +773,8 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) {
         throw new NullPointerException();
       }
       checkByteStringIsUtf8(value);
-
       word_ = value;
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -789,7 +799,7 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) {
      * @return Whether the startOffset field is set.
      */
     public boolean hasStartOffset() {
-      return startOffsetBuilder_ != null || startOffset_ != null;
+      return ((bitField0_ & 0x00000002) != 0);
     }
     /**
      *
@@ -830,11 +840,11 @@ public Builder setStartOffset(com.google.protobuf.Duration value) {
           throw new NullPointerException();
         }
         startOffset_ = value;
-        onChanged();
       } else {
         startOffsetBuilder_.setMessage(value);
       }
-
+      bitField0_ |= 0x00000002;
+      onChanged();
       return this;
     }
     /**
@@ -851,11 +861,11 @@ public Builder setStartOffset(com.google.protobuf.Duration value) {
     public Builder setStartOffset(com.google.protobuf.Duration.Builder builderForValue) {
       if (startOffsetBuilder_ == null) {
         startOffset_ = builderForValue.build();
-        onChanged();
       } else {
         startOffsetBuilder_.setMessage(builderForValue.build());
       }
-
+      bitField0_ |= 0x00000002;
+      onChanged();
       return this;
     }
     /**
@@ -871,17 +881,18 @@ public Builder setStartOffset(com.google.protobuf.Duration.Builder builderForVal
      */
     public Builder mergeStartOffset(com.google.protobuf.Duration value) {
       if (startOffsetBuilder_ == null) {
-        if (startOffset_ != null) {
-          startOffset_ =
-              com.google.protobuf.Duration.newBuilder(startOffset_).mergeFrom(value).buildPartial();
+        if (((bitField0_ & 0x00000002) != 0)
+            && startOffset_ != null
+            && startOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          getStartOffsetBuilder().mergeFrom(value);
         } else {
           startOffset_ = value;
         }
-        onChanged();
       } else {
         startOffsetBuilder_.mergeFrom(value);
       }
-
+      bitField0_ |= 0x00000002;
+      onChanged();
       return this;
     }
     /**
@@ -896,14 +907,13 @@ public Builder mergeStartOffset(com.google.protobuf.Duration value) {
      * .google.protobuf.Duration start_offset = 1;
      */
     public Builder clearStartOffset() {
-      if (startOffsetBuilder_ == null) {
-        startOffset_ = null;
-        onChanged();
-      } else {
-        startOffset_ = null;
+      bitField0_ = (bitField0_ & ~0x00000002);
+      startOffset_ = null;
+      if (startOffsetBuilder_ != null) {
+        startOffsetBuilder_.dispose();
         startOffsetBuilder_ = null;
       }
-
+      onChanged();
       return this;
     }
     /**
@@ -918,7 +928,7 @@ public Builder clearStartOffset() {
      * .google.protobuf.Duration start_offset = 1;
      */
     public com.google.protobuf.Duration.Builder getStartOffsetBuilder() {
-
+      bitField0_ |= 0x00000002;
       onChanged();
       return getStartOffsetFieldBuilder().getBuilder();
     }
@@ -990,7 +1000,7 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() {
      * @return Whether the endOffset field is set.
      */
     public boolean hasEndOffset() {
-      return endOffsetBuilder_ != null || endOffset_ != null;
+      return ((bitField0_ & 0x00000004) != 0);
     }
     /**
      *
@@ -1029,11 +1039,11 @@ public Builder setEndOffset(com.google.protobuf.Duration value) {
           throw new NullPointerException();
         }
         endOffset_ = value;
-        onChanged();
       } else {
         endOffsetBuilder_.setMessage(value);
       }
-
+      bitField0_ |= 0x00000004;
+      onChanged();
       return this;
     }
     /**
@@ -1050,11 +1060,11 @@ public Builder setEndOffset(com.google.protobuf.Duration value) {
     public Builder setEndOffset(com.google.protobuf.Duration.Builder builderForValue) {
       if (endOffsetBuilder_ == null) {
         endOffset_ = builderForValue.build();
-        onChanged();
       } else {
         endOffsetBuilder_.setMessage(builderForValue.build());
       }
-
+      bitField0_ |= 0x00000004;
+      onChanged();
       return this;
     }
     /**
@@ -1070,17 +1080,18 @@ public Builder setEndOffset(com.google.protobuf.Duration.Builder builderForValue
      */
     public Builder mergeEndOffset(com.google.protobuf.Duration value) {
       if (endOffsetBuilder_ == null) {
-        if (endOffset_ != null) {
-          endOffset_ =
-              com.google.protobuf.Duration.newBuilder(endOffset_).mergeFrom(value).buildPartial();
+        if (((bitField0_ & 0x00000004) != 0)
+            && endOffset_ != null
+            && endOffset_ != com.google.protobuf.Duration.getDefaultInstance()) {
+          getEndOffsetBuilder().mergeFrom(value);
         } else {
           endOffset_ = value;
         }
-        onChanged();
       } else {
         endOffsetBuilder_.mergeFrom(value);
       }
-
+      bitField0_ |= 0x00000004;
+      onChanged();
       return this;
     }
     /**
@@ -1095,14 +1106,13 @@ public Builder mergeEndOffset(com.google.protobuf.Duration value) {
      * .google.protobuf.Duration end_offset = 2;
      */
     public Builder clearEndOffset() {
-      if (endOffsetBuilder_ == null) {
-        endOffset_ = null;
-        onChanged();
-      } else {
-        endOffset_ = null;
+      bitField0_ = (bitField0_ & ~0x00000004);
+      endOffset_ = null;
+      if (endOffsetBuilder_ != null) {
+        endOffsetBuilder_.dispose();
         endOffsetBuilder_ = null;
       }
-
+      onChanged();
       return this;
     }
     /**
@@ -1117,7 +1127,7 @@ public Builder clearEndOffset() {
      * .google.protobuf.Duration end_offset = 2;
      */
     public com.google.protobuf.Duration.Builder getEndOffsetBuilder() {
-
+      bitField0_ |= 0x00000004;
       onChanged();
       return getEndOffsetFieldBuilder().getBuilder();
     }
@@ -1208,6 +1218,7 @@ public float getConfidence() {
     public Builder setConfidence(float value) {
 
       confidence_ = value;
+      bitField0_ |= 0x00000008;
       onChanged();
       return this;
     }
@@ -1228,7 +1239,7 @@ public Builder setConfidence(float value) {
      * @return This builder for chaining.
      */
     public Builder clearConfidence() {
-
+      bitField0_ = (bitField0_ & ~0x00000008);
       confidence_ = 0F;
       onChanged();
       return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StartExperimentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StartExperimentRequest.java
index e566543c5782..57567d1c02af 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StartExperimentRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StartExperimentRequest.java
@@ -22,7 +22,8 @@
  *
  *
  * 
- * The request message for [Experiments.StartExperiment][google.cloud.dialogflow.cx.v3.Experiments.StartExperiment].
+ * The request message for
+ * [Experiments.StartExperiment][google.cloud.dialogflow.cx.v3.Experiments.StartExperiment].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.StartExperimentRequest} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -288,7 +291,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Experiments.StartExperiment][google.cloud.dialogflow.cx.v3.Experiments.StartExperiment].
+   * The request message for
+   * [Experiments.StartExperiment][google.cloud.dialogflow.cx.v3.Experiments.StartExperiment].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.StartExperimentRequest} @@ -322,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -351,11 +355,20 @@ public com.google.cloud.dialogflow.cx.v3.StartExperimentRequest build() { public com.google.cloud.dialogflow.cx.v3.StartExperimentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.StartExperimentRequest result = new com.google.cloud.dialogflow.cx.v3.StartExperimentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.StartExperimentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.StartExperimentReques return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -435,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -455,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -528,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -549,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -575,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StopExperimentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StopExperimentRequest.java index 063322f527ec..b033f943dff2 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StopExperimentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StopExperimentRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Experiments.StopExperiment][google.cloud.dialogflow.cx.v3.Experiments.StopExperiment].
+ * The request message for
+ * [Experiments.StopExperiment][google.cloud.dialogflow.cx.v3.Experiments.StopExperiment].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.StopExperimentRequest} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -288,7 +291,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Experiments.StopExperiment][google.cloud.dialogflow.cx.v3.Experiments.StopExperiment].
+   * The request message for
+   * [Experiments.StopExperiment][google.cloud.dialogflow.cx.v3.Experiments.StopExperiment].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.StopExperimentRequest} @@ -322,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -351,11 +355,20 @@ public com.google.cloud.dialogflow.cx.v3.StopExperimentRequest build() { public com.google.cloud.dialogflow.cx.v3.StopExperimentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.StopExperimentRequest result = new com.google.cloud.dialogflow.cx.v3.StopExperimentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.StopExperimentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.StopExperimentRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -435,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -455,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -528,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -549,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -575,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentRequest.java index 7b079fd8d490..7b464e3fc8ac 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentRequest.java @@ -23,21 +23,26 @@ * *
  * The top-level message sent by the client to the
- * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] method.
+ * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]
+ * method.
  * Multiple request messages should be sent in order:
  * 1.  The first message must contain
  *     [session][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.session],
- *     [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input] plus optionally
- *     [query_params][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_params]. If the client
- *     wants to receive an audio response, it should also contain
+ *     [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input]
+ *     plus optionally
+ *     [query_params][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_params].
+ *     If the client wants to receive an audio response, it should also contain
  *     [output_audio_config][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.output_audio_config].
- * 2.  If [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input] was set to
- *     [query_input.audio.config][google.cloud.dialogflow.cx.v3.AudioInput.config], all subsequent messages
- *     must contain [query_input.audio.audio][google.cloud.dialogflow.cx.v3.AudioInput.audio] to continue with
- *     Speech recognition.
- *     If you decide to rather detect an intent from text
- *     input after you already started Speech recognition, please send a message
- *     with [query_input.text][google.cloud.dialogflow.cx.v3.QueryInput.text].
+ * 2.  If
+ * [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input]
+ * was set to
+ *     [query_input.audio.config][google.cloud.dialogflow.cx.v3.AudioInput.config],
+ *     all subsequent messages must contain
+ *     [query_input.audio.audio][google.cloud.dialogflow.cx.v3.AudioInput.audio]
+ *     to continue with Speech recognition. If you decide to rather detect an
+ *     intent from text input after you already started Speech recognition,
+ *     please send a message with
+ *     [query_input.text][google.cloud.dialogflow.cx.v3.QueryInput.text].
  *     However, note that:
  *     * Dialogflow will bill you for the audio duration so far.
  *     * Dialogflow discards all Speech recognition results in favor of the
@@ -89,7 +94,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
   }
 
   public static final int SESSION_FIELD_NUMBER = 1;
-  private volatile java.lang.Object session_;
+
+  @SuppressWarnings("serial")
+  private volatile java.lang.Object session_ = "";
   /**
    *
    *
@@ -210,7 +217,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryParameters getQueryParams() {
    */
   @java.lang.Override
   public com.google.cloud.dialogflow.cx.v3.QueryParametersOrBuilder getQueryParamsOrBuilder() {
-    return getQueryParams();
+    return queryParams_ == null
+        ? com.google.cloud.dialogflow.cx.v3.QueryParameters.getDefaultInstance()
+        : queryParams_;
   }
 
   public static final int QUERY_INPUT_FIELD_NUMBER = 3;
@@ -264,7 +273,9 @@ public com.google.cloud.dialogflow.cx.v3.QueryInput getQueryInput() {
    */
   @java.lang.Override
   public com.google.cloud.dialogflow.cx.v3.QueryInputOrBuilder getQueryInputOrBuilder() {
-    return getQueryInput();
+    return queryInput_ == null
+        ? com.google.cloud.dialogflow.cx.v3.QueryInput.getDefaultInstance()
+        : queryInput_;
   }
 
   public static final int OUTPUT_AUDIO_CONFIG_FIELD_NUMBER = 4;
@@ -313,11 +324,13 @@ public com.google.cloud.dialogflow.cx.v3.OutputAudioConfig getOutputAudioConfig(
   @java.lang.Override
   public com.google.cloud.dialogflow.cx.v3.OutputAudioConfigOrBuilder
       getOutputAudioConfigOrBuilder() {
-    return getOutputAudioConfig();
+    return outputAudioConfig_ == null
+        ? com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.getDefaultInstance()
+        : outputAudioConfig_;
   }
 
   public static final int ENABLE_PARTIAL_RESPONSE_FIELD_NUMBER = 5;
-  private boolean enablePartialResponse_;
+  private boolean enablePartialResponse_ = false;
   /**
    *
    *
@@ -553,21 +566,26 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * 
    * The top-level message sent by the client to the
-   * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] method.
+   * [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]
+   * method.
    * Multiple request messages should be sent in order:
    * 1.  The first message must contain
    *     [session][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.session],
-   *     [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input] plus optionally
-   *     [query_params][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_params]. If the client
-   *     wants to receive an audio response, it should also contain
+   *     [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input]
+   *     plus optionally
+   *     [query_params][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_params].
+   *     If the client wants to receive an audio response, it should also contain
    *     [output_audio_config][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.output_audio_config].
-   * 2.  If [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input] was set to
-   *     [query_input.audio.config][google.cloud.dialogflow.cx.v3.AudioInput.config], all subsequent messages
-   *     must contain [query_input.audio.audio][google.cloud.dialogflow.cx.v3.AudioInput.audio] to continue with
-   *     Speech recognition.
-   *     If you decide to rather detect an intent from text
-   *     input after you already started Speech recognition, please send a message
-   *     with [query_input.text][google.cloud.dialogflow.cx.v3.QueryInput.text].
+   * 2.  If
+   * [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input]
+   * was set to
+   *     [query_input.audio.config][google.cloud.dialogflow.cx.v3.AudioInput.config],
+   *     all subsequent messages must contain
+   *     [query_input.audio.audio][google.cloud.dialogflow.cx.v3.AudioInput.audio]
+   *     to continue with Speech recognition. If you decide to rather detect an
+   *     intent from text input after you already started Speech recognition,
+   *     please send a message with
+   *     [query_input.text][google.cloud.dialogflow.cx.v3.QueryInput.text].
    *     However, note that:
    *     * Dialogflow will bill you for the audio duration so far.
    *     * Dialogflow discards all Speech recognition results in favor of the
@@ -607,28 +625,24 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     @java.lang.Override
     public Builder clear() {
       super.clear();
+      bitField0_ = 0;
       session_ = "";
-
-      if (queryParamsBuilder_ == null) {
-        queryParams_ = null;
-      } else {
-        queryParams_ = null;
+      queryParams_ = null;
+      if (queryParamsBuilder_ != null) {
+        queryParamsBuilder_.dispose();
         queryParamsBuilder_ = null;
       }
-      if (queryInputBuilder_ == null) {
-        queryInput_ = null;
-      } else {
-        queryInput_ = null;
+      queryInput_ = null;
+      if (queryInputBuilder_ != null) {
+        queryInputBuilder_.dispose();
         queryInputBuilder_ = null;
       }
-      if (outputAudioConfigBuilder_ == null) {
-        outputAudioConfig_ = null;
-      } else {
-        outputAudioConfig_ = null;
+      outputAudioConfig_ = null;
+      if (outputAudioConfigBuilder_ != null) {
+        outputAudioConfigBuilder_.dispose();
         outputAudioConfigBuilder_ = null;
       }
       enablePartialResponse_ = false;
-
       return this;
     }
 
@@ -657,27 +671,37 @@ public com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest build() {
     public com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest buildPartial() {
       com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest result =
           new com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest(this);
-      result.session_ = session_;
-      if (queryParamsBuilder_ == null) {
-        result.queryParams_ = queryParams_;
-      } else {
-        result.queryParams_ = queryParamsBuilder_.build();
+      if (bitField0_ != 0) {
+        buildPartial0(result);
       }
-      if (queryInputBuilder_ == null) {
-        result.queryInput_ = queryInput_;
-      } else {
-        result.queryInput_ = queryInputBuilder_.build();
-      }
-      if (outputAudioConfigBuilder_ == null) {
-        result.outputAudioConfig_ = outputAudioConfig_;
-      } else {
-        result.outputAudioConfig_ = outputAudioConfigBuilder_.build();
-      }
-      result.enablePartialResponse_ = enablePartialResponse_;
       onBuilt();
       return result;
     }
 
+    private void buildPartial0(
+        com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest result) {
+      int from_bitField0_ = bitField0_;
+      if (((from_bitField0_ & 0x00000001) != 0)) {
+        result.session_ = session_;
+      }
+      if (((from_bitField0_ & 0x00000002) != 0)) {
+        result.queryParams_ =
+            queryParamsBuilder_ == null ? queryParams_ : queryParamsBuilder_.build();
+      }
+      if (((from_bitField0_ & 0x00000004) != 0)) {
+        result.queryInput_ = queryInputBuilder_ == null ? queryInput_ : queryInputBuilder_.build();
+      }
+      if (((from_bitField0_ & 0x00000008) != 0)) {
+        result.outputAudioConfig_ =
+            outputAudioConfigBuilder_ == null
+                ? outputAudioConfig_
+                : outputAudioConfigBuilder_.build();
+      }
+      if (((from_bitField0_ & 0x00000010) != 0)) {
+        result.enablePartialResponse_ = enablePartialResponse_;
+      }
+    }
+
     @java.lang.Override
     public Builder clone() {
       return super.clone();
@@ -727,6 +751,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.StreamingDetectIntent
         return this;
       if (!other.getSession().isEmpty()) {
         session_ = other.session_;
+        bitField0_ |= 0x00000001;
         onChanged();
       }
       if (other.hasQueryParams()) {
@@ -770,32 +795,32 @@ public Builder mergeFrom(
             case 10:
               {
                 session_ = input.readStringRequireUtf8();
-
+                bitField0_ |= 0x00000001;
                 break;
               } // case 10
             case 18:
               {
                 input.readMessage(getQueryParamsFieldBuilder().getBuilder(), extensionRegistry);
-
+                bitField0_ |= 0x00000002;
                 break;
               } // case 18
             case 26:
               {
                 input.readMessage(getQueryInputFieldBuilder().getBuilder(), extensionRegistry);
-
+                bitField0_ |= 0x00000004;
                 break;
               } // case 26
             case 34:
               {
                 input.readMessage(
                     getOutputAudioConfigFieldBuilder().getBuilder(), extensionRegistry);
-
+                bitField0_ |= 0x00000008;
                 break;
               } // case 34
             case 40:
               {
                 enablePartialResponse_ = input.readBool();
-
+                bitField0_ |= 0x00000010;
                 break;
               } // case 40
             default:
@@ -815,6 +840,8 @@ public Builder mergeFrom(
       return this;
     }
 
+    private int bitField0_;
+
     private java.lang.Object session_ = "";
     /**
      *
@@ -918,8 +945,8 @@ public Builder setSession(java.lang.String value) {
       if (value == null) {
         throw new NullPointerException();
       }
-
       session_ = value;
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -949,8 +976,8 @@ public Builder setSession(java.lang.String value) {
      * @return This builder for chaining.
      */
     public Builder clearSession() {
-
       session_ = getDefaultInstance().getSession();
+      bitField0_ = (bitField0_ & ~0x00000001);
       onChanged();
       return this;
     }
@@ -985,8 +1012,8 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) {
         throw new NullPointerException();
       }
       checkByteStringIsUtf8(value);
-
       session_ = value;
+      bitField0_ |= 0x00000001;
       onChanged();
       return this;
     }
@@ -1009,7 +1036,7 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) {
      * @return Whether the queryParams field is set.
      */
     public boolean hasQueryParams() {
-      return queryParamsBuilder_ != null || queryParams_ != null;
+      return ((bitField0_ & 0x00000002) != 0);
     }
     /**
      *
@@ -1046,11 +1073,11 @@ public Builder setQueryParams(com.google.cloud.dialogflow.cx.v3.QueryParameters
           throw new NullPointerException();
         }
         queryParams_ = value;
-        onChanged();
       } else {
         queryParamsBuilder_.setMessage(value);
       }
-
+      bitField0_ |= 0x00000002;
+      onChanged();
       return this;
     }
     /**
@@ -1066,11 +1093,11 @@ public Builder setQueryParams(
         com.google.cloud.dialogflow.cx.v3.QueryParameters.Builder builderForValue) {
       if (queryParamsBuilder_ == null) {
         queryParams_ = builderForValue.build();
-        onChanged();
       } else {
         queryParamsBuilder_.setMessage(builderForValue.build());
       }
-
+      bitField0_ |= 0x00000002;
+      onChanged();
       return this;
     }
     /**
@@ -1084,19 +1111,19 @@ public Builder setQueryParams(
      */
     public Builder mergeQueryParams(com.google.cloud.dialogflow.cx.v3.QueryParameters value) {
       if (queryParamsBuilder_ == null) {
-        if (queryParams_ != null) {
-          queryParams_ =
-              com.google.cloud.dialogflow.cx.v3.QueryParameters.newBuilder(queryParams_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (((bitField0_ & 0x00000002) != 0)
+            && queryParams_ != null
+            && queryParams_
+                != com.google.cloud.dialogflow.cx.v3.QueryParameters.getDefaultInstance()) {
+          getQueryParamsBuilder().mergeFrom(value);
         } else {
           queryParams_ = value;
         }
-        onChanged();
       } else {
         queryParamsBuilder_.mergeFrom(value);
       }
-
+      bitField0_ |= 0x00000002;
+      onChanged();
       return this;
     }
     /**
@@ -1109,14 +1136,13 @@ public Builder mergeQueryParams(com.google.cloud.dialogflow.cx.v3.QueryParameter
      * .google.cloud.dialogflow.cx.v3.QueryParameters query_params = 2;
      */
     public Builder clearQueryParams() {
-      if (queryParamsBuilder_ == null) {
-        queryParams_ = null;
-        onChanged();
-      } else {
-        queryParams_ = null;
+      bitField0_ = (bitField0_ & ~0x00000002);
+      queryParams_ = null;
+      if (queryParamsBuilder_ != null) {
+        queryParamsBuilder_.dispose();
         queryParamsBuilder_ = null;
       }
-
+      onChanged();
       return this;
     }
     /**
@@ -1129,7 +1155,7 @@ public Builder clearQueryParams() {
      * .google.cloud.dialogflow.cx.v3.QueryParameters query_params = 2;
      */
     public com.google.cloud.dialogflow.cx.v3.QueryParameters.Builder getQueryParamsBuilder() {
-
+      bitField0_ |= 0x00000002;
       onChanged();
       return getQueryParamsFieldBuilder().getBuilder();
     }
@@ -1197,7 +1223,7 @@ public com.google.cloud.dialogflow.cx.v3.QueryParametersOrBuilder getQueryParams
      * @return Whether the queryInput field is set.
      */
     public boolean hasQueryInput() {
-      return queryInputBuilder_ != null || queryInput_ != null;
+      return ((bitField0_ & 0x00000004) != 0);
     }
     /**
      *
@@ -1238,11 +1264,11 @@ public Builder setQueryInput(com.google.cloud.dialogflow.cx.v3.QueryInput value)
           throw new NullPointerException();
         }
         queryInput_ = value;
-        onChanged();
       } else {
         queryInputBuilder_.setMessage(value);
       }
-
+      bitField0_ |= 0x00000004;
+      onChanged();
       return this;
     }
     /**
@@ -1260,11 +1286,11 @@ public Builder setQueryInput(
         com.google.cloud.dialogflow.cx.v3.QueryInput.Builder builderForValue) {
       if (queryInputBuilder_ == null) {
         queryInput_ = builderForValue.build();
-        onChanged();
       } else {
         queryInputBuilder_.setMessage(builderForValue.build());
       }
-
+      bitField0_ |= 0x00000004;
+      onChanged();
       return this;
     }
     /**
@@ -1280,19 +1306,18 @@ public Builder setQueryInput(
      */
     public Builder mergeQueryInput(com.google.cloud.dialogflow.cx.v3.QueryInput value) {
       if (queryInputBuilder_ == null) {
-        if (queryInput_ != null) {
-          queryInput_ =
-              com.google.cloud.dialogflow.cx.v3.QueryInput.newBuilder(queryInput_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (((bitField0_ & 0x00000004) != 0)
+            && queryInput_ != null
+            && queryInput_ != com.google.cloud.dialogflow.cx.v3.QueryInput.getDefaultInstance()) {
+          getQueryInputBuilder().mergeFrom(value);
         } else {
           queryInput_ = value;
         }
-        onChanged();
       } else {
         queryInputBuilder_.mergeFrom(value);
       }
-
+      bitField0_ |= 0x00000004;
+      onChanged();
       return this;
     }
     /**
@@ -1307,14 +1332,13 @@ public Builder mergeQueryInput(com.google.cloud.dialogflow.cx.v3.QueryInput valu
      * 
      */
     public Builder clearQueryInput() {
-      if (queryInputBuilder_ == null) {
-        queryInput_ = null;
-        onChanged();
-      } else {
-        queryInput_ = null;
+      bitField0_ = (bitField0_ & ~0x00000004);
+      queryInput_ = null;
+      if (queryInputBuilder_ != null) {
+        queryInputBuilder_.dispose();
         queryInputBuilder_ = null;
       }
-
+      onChanged();
       return this;
     }
     /**
@@ -1329,7 +1353,7 @@ public Builder clearQueryInput() {
      * 
      */
     public com.google.cloud.dialogflow.cx.v3.QueryInput.Builder getQueryInputBuilder() {
-
+      bitField0_ |= 0x00000004;
       onChanged();
       return getQueryInputFieldBuilder().getBuilder();
     }
@@ -1399,7 +1423,7 @@ public com.google.cloud.dialogflow.cx.v3.QueryInputOrBuilder getQueryInputOrBuil
      * @return Whether the outputAudioConfig field is set.
      */
     public boolean hasOutputAudioConfig() {
-      return outputAudioConfigBuilder_ != null || outputAudioConfig_ != null;
+      return ((bitField0_ & 0x00000008) != 0);
     }
     /**
      *
@@ -1436,11 +1460,11 @@ public Builder setOutputAudioConfig(com.google.cloud.dialogflow.cx.v3.OutputAudi
           throw new NullPointerException();
         }
         outputAudioConfig_ = value;
-        onChanged();
       } else {
         outputAudioConfigBuilder_.setMessage(value);
       }
-
+      bitField0_ |= 0x00000008;
+      onChanged();
       return this;
     }
     /**
@@ -1456,11 +1480,11 @@ public Builder setOutputAudioConfig(
         com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.Builder builderForValue) {
       if (outputAudioConfigBuilder_ == null) {
         outputAudioConfig_ = builderForValue.build();
-        onChanged();
       } else {
         outputAudioConfigBuilder_.setMessage(builderForValue.build());
       }
-
+      bitField0_ |= 0x00000008;
+      onChanged();
       return this;
     }
     /**
@@ -1475,19 +1499,19 @@ public Builder setOutputAudioConfig(
     public Builder mergeOutputAudioConfig(
         com.google.cloud.dialogflow.cx.v3.OutputAudioConfig value) {
       if (outputAudioConfigBuilder_ == null) {
-        if (outputAudioConfig_ != null) {
-          outputAudioConfig_ =
-              com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.newBuilder(outputAudioConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (((bitField0_ & 0x00000008) != 0)
+            && outputAudioConfig_ != null
+            && outputAudioConfig_
+                != com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.getDefaultInstance()) {
+          getOutputAudioConfigBuilder().mergeFrom(value);
         } else {
           outputAudioConfig_ = value;
         }
-        onChanged();
       } else {
         outputAudioConfigBuilder_.mergeFrom(value);
       }
-
+      bitField0_ |= 0x00000008;
+      onChanged();
       return this;
     }
     /**
@@ -1500,14 +1524,13 @@ public Builder mergeOutputAudioConfig(
      * .google.cloud.dialogflow.cx.v3.OutputAudioConfig output_audio_config = 4;
      */
     public Builder clearOutputAudioConfig() {
-      if (outputAudioConfigBuilder_ == null) {
-        outputAudioConfig_ = null;
-        onChanged();
-      } else {
-        outputAudioConfig_ = null;
+      bitField0_ = (bitField0_ & ~0x00000008);
+      outputAudioConfig_ = null;
+      if (outputAudioConfigBuilder_ != null) {
+        outputAudioConfigBuilder_.dispose();
         outputAudioConfigBuilder_ = null;
       }
-
+      onChanged();
       return this;
     }
     /**
@@ -1521,7 +1544,7 @@ public Builder clearOutputAudioConfig() {
      */
     public com.google.cloud.dialogflow.cx.v3.OutputAudioConfig.Builder
         getOutputAudioConfigBuilder() {
-
+      bitField0_ |= 0x00000008;
       onChanged();
       return getOutputAudioConfigFieldBuilder().getBuilder();
     }
@@ -1607,6 +1630,7 @@ public boolean getEnablePartialResponse() {
     public Builder setEnablePartialResponse(boolean value) {
 
       enablePartialResponse_ = value;
+      bitField0_ |= 0x00000010;
       onChanged();
       return this;
     }
@@ -1625,7 +1649,7 @@ public Builder setEnablePartialResponse(boolean value) {
      * @return This builder for chaining.
      */
     public Builder clearEnablePartialResponse() {
-
+      bitField0_ = (bitField0_ & ~0x00000010);
       enablePartialResponse_ = false;
       onChanged();
       return this;
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentResponse.java
index 53953cbcad5d..e3124b01cb69 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentResponse.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingDetectIntentResponse.java
@@ -23,7 +23,8 @@
  *
  * 
  * The top-level message returned from the
- * [StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] method.
+ * [StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]
+ * method.
  * Multiple response messages (N) can be returned in order.
  * The first (N-1) responses set either the `recognition_result` or
  * `detect_intent_response` field, depending on the request:
@@ -31,15 +32,19 @@
  *     set, and the `StreamingDetectIntentRequest.enable_partial_response`
  *     field was false, the `recognition_result` field is populated for each
  *     of the (N-1) responses.
- *     See the [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] message for details
- *     about the result message sequence.
+ *     See the
+ *     [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult]
+ *     message for details about the result message sequence.
  * *   If the `StreamingDetectIntentRequest.enable_partial_response` field was
  *     true, the `detect_intent_response` field is populated for each
  *     of the (N-1) responses, where 1 <= N <= 4.
- *     These responses set the [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] field
- *     to `PARTIAL`.
+ *     These responses set the
+ *     [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type]
+ *     field to `PARTIAL`.
  * For the final Nth response message, the `detect_intent_response` is fully
- * populated, and [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] is set to `FINAL`.
+ * populated, and
+ * [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type]
+ * is set to `FINAL`.
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} @@ -429,7 +434,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * The top-level message returned from the
-   * [StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] method.
+   * [StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]
+   * method.
    * Multiple response messages (N) can be returned in order.
    * The first (N-1) responses set either the `recognition_result` or
    * `detect_intent_response` field, depending on the request:
@@ -437,15 +443,19 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *     set, and the `StreamingDetectIntentRequest.enable_partial_response`
    *     field was false, the `recognition_result` field is populated for each
    *     of the (N-1) responses.
-   *     See the [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] message for details
-   *     about the result message sequence.
+   *     See the
+   *     [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult]
+   *     message for details about the result message sequence.
    * *   If the `StreamingDetectIntentRequest.enable_partial_response` field was
    *     true, the `detect_intent_response` field is populated for each
    *     of the (N-1) responses, where 1 <= N <= 4.
-   *     These responses set the [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] field
-   *     to `PARTIAL`.
+   *     These responses set the
+   *     [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type]
+   *     field to `PARTIAL`.
    * For the final Nth response message, the `detect_intent_response` is fully
-   * populated, and [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] is set to `FINAL`.
+   * populated, and
+   * [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type]
+   * is set to `FINAL`.
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse} @@ -479,6 +489,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (recognitionResultBuilder_ != null) { recognitionResultBuilder_.clear(); } @@ -515,25 +526,31 @@ public com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse build() { public com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse result = new com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse(this); - if (responseCase_ == 1) { - if (recognitionResultBuilder_ == null) { - result.response_ = response_; - } else { - result.response_ = recognitionResultBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (responseCase_ == 2) { - if (detectIntentResponseBuilder_ == null) { - result.response_ = response_; - } else { - result.response_ = detectIntentResponseBuilder_.build(); - } - } - result.responseCase_ = responseCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse result) { + result.responseCase_ = responseCase_; + result.response_ = this.response_; + if (responseCase_ == 1 && recognitionResultBuilder_ != null) { + result.response_ = recognitionResultBuilder_.build(); + } + if (responseCase_ == 2 && detectIntentResponseBuilder_ != null) { + result.response_ = detectIntentResponseBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -669,6 +686,8 @@ public Builder clearResponse() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult, com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.Builder, @@ -891,7 +910,6 @@ public Builder clearRecognitionResult() { } responseCase_ = 1; onChanged(); - ; return recognitionResultBuilder_; } @@ -1106,7 +1124,6 @@ public Builder clearDetectIntentResponse() { } responseCase_ = 2; onChanged(); - ; return detectIntentResponseBuilder_; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingRecognitionResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingRecognitionResult.java index 81a066c97e7a..995f74770f25 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingRecognitionResult.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingRecognitionResult.java @@ -140,8 +140,8 @@ public enum MessageType implements com.google.protobuf.ProtocolMessageEnum { * additional results). The client should stop sending additional audio * data, half-close the gRPC connection, and wait for any additional results * until the server closes the gRPC connection. This message is only sent if - * [`single_utterance`][google.cloud.dialogflow.cx.v3.InputAudioConfig.single_utterance] was set to - * `true`, and is not used otherwise. + * [`single_utterance`][google.cloud.dialogflow.cx.v3.InputAudioConfig.single_utterance] + * was set to `true`, and is not used otherwise. *
* * END_OF_SINGLE_UTTERANCE = 2; @@ -180,8 +180,8 @@ public enum MessageType implements com.google.protobuf.ProtocolMessageEnum { * additional results). The client should stop sending additional audio * data, half-close the gRPC connection, and wait for any additional results * until the server closes the gRPC connection. This message is only sent if - * [`single_utterance`][google.cloud.dialogflow.cx.v3.InputAudioConfig.single_utterance] was set to - * `true`, and is not used otherwise. + * [`single_utterance`][google.cloud.dialogflow.cx.v3.InputAudioConfig.single_utterance] + * was set to `true`, and is not used otherwise. *
* * END_OF_SINGLE_UTTERANCE = 2; @@ -274,7 +274,7 @@ private MessageType(int value) { } public static final int MESSAGE_TYPE_FIELD_NUMBER = 1; - private int messageType_; + private int messageType_ = 0; /** * * @@ -305,9 +305,8 @@ public int getMessageTypeValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType getMessageType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType result = - com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType.valueOf( + com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType.forNumber( messageType_); return result == null ? com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType.UNRECOGNIZED @@ -315,7 +314,9 @@ public com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType } public static final int TRANSCRIPT_FIELD_NUMBER = 2; - private volatile java.lang.Object transcript_; + + @SuppressWarnings("serial") + private volatile java.lang.Object transcript_ = ""; /** * * @@ -366,7 +367,7 @@ public com.google.protobuf.ByteString getTranscriptBytes() { } public static final int IS_FINAL_FIELD_NUMBER = 3; - private boolean isFinal_; + private boolean isFinal_ = false; /** * * @@ -387,7 +388,7 @@ public boolean getIsFinal() { } public static final int CONFIDENCE_FIELD_NUMBER = 4; - private float confidence_; + private float confidence_ = 0F; /** * * @@ -410,7 +411,7 @@ public float getConfidence() { } public static final int STABILITY_FIELD_NUMBER = 6; - private float stability_; + private float stability_ = 0F; /** * * @@ -434,13 +435,16 @@ public float getStability() { } public static final int SPEECH_WORD_INFO_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") private java.util.List speechWordInfo_; /** * * *
    * Word-specific information for the words recognized by Speech in
-   * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+   * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+   * Populated if and only if `message_type` = `TRANSCRIPT` and
    * [InputAudioConfig.enable_word_info] is set.
    * 
* @@ -455,7 +459,8 @@ public java.util.List getSpeec * *
    * Word-specific information for the words recognized by Speech in
-   * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+   * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+   * Populated if and only if `message_type` = `TRANSCRIPT` and
    * [InputAudioConfig.enable_word_info] is set.
    * 
* @@ -471,7 +476,8 @@ public java.util.List getSpeec * *
    * Word-specific information for the words recognized by Speech in
-   * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+   * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+   * Populated if and only if `message_type` = `TRANSCRIPT` and
    * [InputAudioConfig.enable_word_info] is set.
    * 
* @@ -486,7 +492,8 @@ public int getSpeechWordInfoCount() { * *
    * Word-specific information for the words recognized by Speech in
-   * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+   * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+   * Populated if and only if `message_type` = `TRANSCRIPT` and
    * [InputAudioConfig.enable_word_info] is set.
    * 
* @@ -501,7 +508,8 @@ public com.google.cloud.dialogflow.cx.v3.SpeechWordInfo getSpeechWordInfo(int in * *
    * Word-specific information for the words recognized by Speech in
-   * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+   * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+   * Populated if and only if `message_type` = `TRANSCRIPT` and
    * [InputAudioConfig.enable_word_info] is set.
    * 
* @@ -564,11 +572,15 @@ public com.google.protobuf.Duration getSpeechEndOffset() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getSpeechEndOffsetOrBuilder() { - return getSpeechEndOffset(); + return speechEndOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : speechEndOffset_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 10; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -922,31 +934,25 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; messageType_ = 0; - transcript_ = ""; - isFinal_ = false; - confidence_ = 0F; - stability_ = 0F; - if (speechWordInfoBuilder_ == null) { speechWordInfo_ = java.util.Collections.emptyList(); } else { speechWordInfo_ = null; speechWordInfoBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (speechEndOffsetBuilder_ == null) { - speechEndOffset_ = null; - } else { - speechEndOffset_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + speechEndOffset_ = null; + if (speechEndOffsetBuilder_ != null) { + speechEndOffsetBuilder_.dispose(); speechEndOffsetBuilder_ = null; } languageCode_ = ""; - return this; } @@ -975,29 +981,52 @@ public com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult build() { public com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult buildPartial() { com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult result = new com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult(this); - int from_bitField0_ = bitField0_; - result.messageType_ = messageType_; - result.transcript_ = transcript_; - result.isFinal_ = isFinal_; - result.confidence_ = confidence_; - result.stability_ = stability_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult result) { if (speechWordInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { speechWordInfo_ = java.util.Collections.unmodifiableList(speechWordInfo_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); } result.speechWordInfo_ = speechWordInfo_; } else { result.speechWordInfo_ = speechWordInfoBuilder_.build(); } - if (speechEndOffsetBuilder_ == null) { - result.speechEndOffset_ = speechEndOffset_; - } else { - result.speechEndOffset_ = speechEndOffsetBuilder_.build(); + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.messageType_ = messageType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.transcript_ = transcript_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isFinal_ = isFinal_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.confidence_ = confidence_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.stability_ = stability_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.speechEndOffset_ = + speechEndOffsetBuilder_ == null ? speechEndOffset_ : speechEndOffsetBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.languageCode_ = languageCode_; } - result.languageCode_ = languageCode_; - onBuilt(); - return result; } @java.lang.Override @@ -1052,6 +1081,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.StreamingRecognitionR } if (!other.getTranscript().isEmpty()) { transcript_ = other.transcript_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getIsFinal() != false) { @@ -1067,7 +1097,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.StreamingRecognitionR if (!other.speechWordInfo_.isEmpty()) { if (speechWordInfo_.isEmpty()) { speechWordInfo_ = other.speechWordInfo_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureSpeechWordInfoIsMutable(); speechWordInfo_.addAll(other.speechWordInfo_); @@ -1080,7 +1110,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.StreamingRecognitionR speechWordInfoBuilder_.dispose(); speechWordInfoBuilder_ = null; speechWordInfo_ = other.speechWordInfo_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); speechWordInfoBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSpeechWordInfoFieldBuilder() @@ -1095,6 +1125,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.StreamingRecognitionR } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000080; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1126,31 +1157,31 @@ public Builder mergeFrom( case 8: { messageType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { transcript_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { isFinal_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 case 37: { confidence_ = input.readFloat(); - + bitField0_ |= 0x00000008; break; } // case 37 case 53: { stability_ = input.readFloat(); - + bitField0_ |= 0x00000010; break; } // case 53 case 58: @@ -1170,13 +1201,13 @@ public Builder mergeFrom( case 66: { input.readMessage(getSpeechEndOffsetFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 66 case 82: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 82 default: @@ -1229,8 +1260,8 @@ public int getMessageTypeValue() { * @return This builder for chaining. */ public Builder setMessageTypeValue(int value) { - messageType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1249,9 +1280,8 @@ public Builder setMessageTypeValue(int value) { @java.lang.Override public com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType getMessageType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType result = - com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType.valueOf( + com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType.forNumber( messageType_); return result == null ? com.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.MessageType.UNRECOGNIZED @@ -1275,7 +1305,7 @@ public Builder setMessageType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; messageType_ = value.getNumber(); onChanged(); return this; @@ -1293,7 +1323,7 @@ public Builder setMessageType( * @return This builder for chaining. */ public Builder clearMessageType() { - + bitField0_ = (bitField0_ & ~0x00000001); messageType_ = 0; onChanged(); return this; @@ -1363,8 +1393,8 @@ public Builder setTranscript(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - transcript_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1381,8 +1411,8 @@ public Builder setTranscript(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTranscript() { - transcript_ = getDefaultInstance().getTranscript(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1404,8 +1434,8 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - transcript_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1447,6 +1477,7 @@ public boolean getIsFinal() { public Builder setIsFinal(boolean value) { isFinal_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1465,7 +1496,7 @@ public Builder setIsFinal(boolean value) { * @return This builder for chaining. */ public Builder clearIsFinal() { - + bitField0_ = (bitField0_ & ~0x00000004); isFinal_ = false; onChanged(); return this; @@ -1512,6 +1543,7 @@ public float getConfidence() { public Builder setConfidence(float value) { confidence_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1532,7 +1564,7 @@ public Builder setConfidence(float value) { * @return This builder for chaining. */ public Builder clearConfidence() { - + bitField0_ = (bitField0_ & ~0x00000008); confidence_ = 0F; onChanged(); return this; @@ -1581,6 +1613,7 @@ public float getStability() { public Builder setStability(float value) { stability_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1602,7 +1635,7 @@ public Builder setStability(float value) { * @return This builder for chaining. */ public Builder clearStability() { - + bitField0_ = (bitField0_ & ~0x00000010); stability_ = 0F; onChanged(); return this; @@ -1612,11 +1645,11 @@ public Builder clearStability() { java.util.Collections.emptyList(); private void ensureSpeechWordInfoIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { speechWordInfo_ = new java.util.ArrayList( speechWordInfo_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000020; } } @@ -1631,7 +1664,8 @@ private void ensureSpeechWordInfoIsMutable() { * *
      * Word-specific information for the words recognized by Speech in
-     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+     * Populated if and only if `message_type` = `TRANSCRIPT` and
      * [InputAudioConfig.enable_word_info] is set.
      * 
* @@ -1650,7 +1684,8 @@ private void ensureSpeechWordInfoIsMutable() { * *
      * Word-specific information for the words recognized by Speech in
-     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+     * Populated if and only if `message_type` = `TRANSCRIPT` and
      * [InputAudioConfig.enable_word_info] is set.
      * 
* @@ -1668,7 +1703,8 @@ public int getSpeechWordInfoCount() { * *
      * Word-specific information for the words recognized by Speech in
-     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+     * Populated if and only if `message_type` = `TRANSCRIPT` and
      * [InputAudioConfig.enable_word_info] is set.
      * 
* @@ -1686,7 +1722,8 @@ public com.google.cloud.dialogflow.cx.v3.SpeechWordInfo getSpeechWordInfo(int in * *
      * Word-specific information for the words recognized by Speech in
-     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+     * Populated if and only if `message_type` = `TRANSCRIPT` and
      * [InputAudioConfig.enable_word_info] is set.
      * 
* @@ -1711,7 +1748,8 @@ public Builder setSpeechWordInfo( * *
      * Word-specific information for the words recognized by Speech in
-     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+     * Populated if and only if `message_type` = `TRANSCRIPT` and
      * [InputAudioConfig.enable_word_info] is set.
      * 
* @@ -1733,7 +1771,8 @@ public Builder setSpeechWordInfo( * *
      * Word-specific information for the words recognized by Speech in
-     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+     * Populated if and only if `message_type` = `TRANSCRIPT` and
      * [InputAudioConfig.enable_word_info] is set.
      * 
* @@ -1757,7 +1796,8 @@ public Builder addSpeechWordInfo(com.google.cloud.dialogflow.cx.v3.SpeechWordInf * *
      * Word-specific information for the words recognized by Speech in
-     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+     * Populated if and only if `message_type` = `TRANSCRIPT` and
      * [InputAudioConfig.enable_word_info] is set.
      * 
* @@ -1782,7 +1822,8 @@ public Builder addSpeechWordInfo( * *
      * Word-specific information for the words recognized by Speech in
-     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+     * Populated if and only if `message_type` = `TRANSCRIPT` and
      * [InputAudioConfig.enable_word_info] is set.
      * 
* @@ -1804,7 +1845,8 @@ public Builder addSpeechWordInfo( * *
      * Word-specific information for the words recognized by Speech in
-     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+     * Populated if and only if `message_type` = `TRANSCRIPT` and
      * [InputAudioConfig.enable_word_info] is set.
      * 
* @@ -1826,7 +1868,8 @@ public Builder addSpeechWordInfo( * *
      * Word-specific information for the words recognized by Speech in
-     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+     * Populated if and only if `message_type` = `TRANSCRIPT` and
      * [InputAudioConfig.enable_word_info] is set.
      * 
* @@ -1848,7 +1891,8 @@ public Builder addAllSpeechWordInfo( * *
      * Word-specific information for the words recognized by Speech in
-     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+     * Populated if and only if `message_type` = `TRANSCRIPT` and
      * [InputAudioConfig.enable_word_info] is set.
      * 
* @@ -1857,7 +1901,7 @@ public Builder addAllSpeechWordInfo( public Builder clearSpeechWordInfo() { if (speechWordInfoBuilder_ == null) { speechWordInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { speechWordInfoBuilder_.clear(); @@ -1869,7 +1913,8 @@ public Builder clearSpeechWordInfo() { * *
      * Word-specific information for the words recognized by Speech in
-     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+     * Populated if and only if `message_type` = `TRANSCRIPT` and
      * [InputAudioConfig.enable_word_info] is set.
      * 
* @@ -1890,7 +1935,8 @@ public Builder removeSpeechWordInfo(int index) { * *
      * Word-specific information for the words recognized by Speech in
-     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+     * Populated if and only if `message_type` = `TRANSCRIPT` and
      * [InputAudioConfig.enable_word_info] is set.
      * 
* @@ -1905,7 +1951,8 @@ public com.google.cloud.dialogflow.cx.v3.SpeechWordInfo.Builder getSpeechWordInf * *
      * Word-specific information for the words recognized by Speech in
-     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+     * Populated if and only if `message_type` = `TRANSCRIPT` and
      * [InputAudioConfig.enable_word_info] is set.
      * 
* @@ -1924,7 +1971,8 @@ public com.google.cloud.dialogflow.cx.v3.SpeechWordInfoOrBuilder getSpeechWordIn * *
      * Word-specific information for the words recognized by Speech in
-     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+     * Populated if and only if `message_type` = `TRANSCRIPT` and
      * [InputAudioConfig.enable_word_info] is set.
      * 
* @@ -1943,7 +1991,8 @@ public com.google.cloud.dialogflow.cx.v3.SpeechWordInfoOrBuilder getSpeechWordIn * *
      * Word-specific information for the words recognized by Speech in
-     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+     * Populated if and only if `message_type` = `TRANSCRIPT` and
      * [InputAudioConfig.enable_word_info] is set.
      * 
* @@ -1958,7 +2007,8 @@ public com.google.cloud.dialogflow.cx.v3.SpeechWordInfo.Builder addSpeechWordInf * *
      * Word-specific information for the words recognized by Speech in
-     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+     * Populated if and only if `message_type` = `TRANSCRIPT` and
      * [InputAudioConfig.enable_word_info] is set.
      * 
* @@ -1974,7 +2024,8 @@ public com.google.cloud.dialogflow.cx.v3.SpeechWordInfo.Builder addSpeechWordInf * *
      * Word-specific information for the words recognized by Speech in
-     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+     * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+     * Populated if and only if `message_type` = `TRANSCRIPT` and
      * [InputAudioConfig.enable_word_info] is set.
      * 
* @@ -1997,7 +2048,7 @@ public com.google.cloud.dialogflow.cx.v3.SpeechWordInfo.Builder addSpeechWordInf com.google.cloud.dialogflow.cx.v3.SpeechWordInfo.Builder, com.google.cloud.dialogflow.cx.v3.SpeechWordInfoOrBuilder>( speechWordInfo_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); speechWordInfo_ = null; @@ -2025,7 +2076,7 @@ public com.google.cloud.dialogflow.cx.v3.SpeechWordInfo.Builder addSpeechWordInf * @return Whether the speechEndOffset field is set. */ public boolean hasSpeechEndOffset() { - return speechEndOffsetBuilder_ != null || speechEndOffset_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2066,11 +2117,11 @@ public Builder setSpeechEndOffset(com.google.protobuf.Duration value) { throw new NullPointerException(); } speechEndOffset_ = value; - onChanged(); } else { speechEndOffsetBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2087,11 +2138,11 @@ public Builder setSpeechEndOffset(com.google.protobuf.Duration value) { public Builder setSpeechEndOffset(com.google.protobuf.Duration.Builder builderForValue) { if (speechEndOffsetBuilder_ == null) { speechEndOffset_ = builderForValue.build(); - onChanged(); } else { speechEndOffsetBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2107,19 +2158,18 @@ public Builder setSpeechEndOffset(com.google.protobuf.Duration.Builder builderFo */ public Builder mergeSpeechEndOffset(com.google.protobuf.Duration value) { if (speechEndOffsetBuilder_ == null) { - if (speechEndOffset_ != null) { - speechEndOffset_ = - com.google.protobuf.Duration.newBuilder(speechEndOffset_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && speechEndOffset_ != null + && speechEndOffset_ != com.google.protobuf.Duration.getDefaultInstance()) { + getSpeechEndOffsetBuilder().mergeFrom(value); } else { speechEndOffset_ = value; } - onChanged(); } else { speechEndOffsetBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2134,14 +2184,13 @@ public Builder mergeSpeechEndOffset(com.google.protobuf.Duration value) { * .google.protobuf.Duration speech_end_offset = 8; */ public Builder clearSpeechEndOffset() { - if (speechEndOffsetBuilder_ == null) { - speechEndOffset_ = null; - onChanged(); - } else { - speechEndOffset_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + speechEndOffset_ = null; + if (speechEndOffsetBuilder_ != null) { + speechEndOffsetBuilder_.dispose(); speechEndOffsetBuilder_ = null; } - + onChanged(); return this; } /** @@ -2156,7 +2205,7 @@ public Builder clearSpeechEndOffset() { * .google.protobuf.Duration speech_end_offset = 8; */ public com.google.protobuf.Duration.Builder getSpeechEndOffsetBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getSpeechEndOffsetFieldBuilder().getBuilder(); } @@ -2269,8 +2318,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2286,8 +2335,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -2308,8 +2357,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingRecognitionResultOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingRecognitionResultOrBuilder.java index a7d740fb7859..0d255c754546 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingRecognitionResultOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/StreamingRecognitionResultOrBuilder.java @@ -135,7 +135,8 @@ public interface StreamingRecognitionResultOrBuilder * *
    * Word-specific information for the words recognized by Speech in
-   * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+   * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+   * Populated if and only if `message_type` = `TRANSCRIPT` and
    * [InputAudioConfig.enable_word_info] is set.
    * 
* @@ -147,7 +148,8 @@ public interface StreamingRecognitionResultOrBuilder * *
    * Word-specific information for the words recognized by Speech in
-   * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+   * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+   * Populated if and only if `message_type` = `TRANSCRIPT` and
    * [InputAudioConfig.enable_word_info] is set.
    * 
* @@ -159,7 +161,8 @@ public interface StreamingRecognitionResultOrBuilder * *
    * Word-specific information for the words recognized by Speech in
-   * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+   * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+   * Populated if and only if `message_type` = `TRANSCRIPT` and
    * [InputAudioConfig.enable_word_info] is set.
    * 
* @@ -171,7 +174,8 @@ public interface StreamingRecognitionResultOrBuilder * *
    * Word-specific information for the words recognized by Speech in
-   * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+   * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+   * Populated if and only if `message_type` = `TRANSCRIPT` and
    * [InputAudioConfig.enable_word_info] is set.
    * 
* @@ -184,7 +188,8 @@ public interface StreamingRecognitionResultOrBuilder * *
    * Word-specific information for the words recognized by Speech in
-   * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and
+   * [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript].
+   * Populated if and only if `message_type` = `TRANSCRIPT` and
    * [InputAudioConfig.enable_word_info] is set.
    * 
* diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SynthesizeSpeechConfig.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SynthesizeSpeechConfig.java index a62c88901619..c5d930448e38 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SynthesizeSpeechConfig.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/SynthesizeSpeechConfig.java @@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SPEAKING_RATE_FIELD_NUMBER = 1; - private double speakingRate_; + private double speakingRate_ = 0D; /** * * @@ -89,7 +89,7 @@ public double getSpeakingRate() { } public static final int PITCH_FIELD_NUMBER = 2; - private double pitch_; + private double pitch_ = 0D; /** * * @@ -109,7 +109,7 @@ public double getPitch() { } public static final int VOLUME_GAIN_DB_FIELD_NUMBER = 3; - private double volumeGainDb_; + private double volumeGainDb_ = 0D; /** * * @@ -134,6 +134,8 @@ public double getVolumeGainDb() { } public static final int EFFECTS_PROFILE_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList effectsProfileId_; /** * @@ -247,7 +249,9 @@ public com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams getVoice() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() { - return getVoice(); + return voice_ == null + ? com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.getDefaultInstance() + : voice_; } private byte memoizedIsInitialized = -1; @@ -507,18 +511,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; speakingRate_ = 0D; - pitch_ = 0D; - volumeGainDb_ = 0D; - effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (voiceBuilder_ == null) { - voice_ = null; - } else { - voice_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + voice_ = null; + if (voiceBuilder_ != null) { + voiceBuilder_.dispose(); voiceBuilder_ = null; } return this; @@ -548,22 +549,37 @@ public com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig build() { public com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig buildPartial() { com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig result = new com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig(this); - int from_bitField0_ = bitField0_; - result.speakingRate_ = speakingRate_; - result.pitch_ = pitch_; - result.volumeGainDb_ = volumeGainDb_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig result) { + if (((bitField0_ & 0x00000008) != 0)) { effectsProfileId_ = effectsProfileId_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.effectsProfileId_ = effectsProfileId_; - if (voiceBuilder_ == null) { - result.voice_ = voice_; - } else { - result.voice_ = voiceBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.speakingRate_ = speakingRate_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pitch_ = pitch_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.volumeGainDb_ = volumeGainDb_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.voice_ = voiceBuilder_ == null ? voice_ : voiceBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -624,7 +640,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.SynthesizeSpeechConfi if (!other.effectsProfileId_.isEmpty()) { if (effectsProfileId_.isEmpty()) { effectsProfileId_ = other.effectsProfileId_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureEffectsProfileIdIsMutable(); effectsProfileId_.addAll(other.effectsProfileId_); @@ -663,25 +679,25 @@ public Builder mergeFrom( case 9: { speakingRate_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 case 17: { pitch_ = input.readDouble(); - + bitField0_ |= 0x00000002; break; } // case 17 case 25: { volumeGainDb_ = input.readDouble(); - + bitField0_ |= 0x00000004; break; } // case 25 case 34: { input.readMessage(getVoiceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 34 case 42: @@ -747,6 +763,7 @@ public double getSpeakingRate() { public Builder setSpeakingRate(double value) { speakingRate_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -765,7 +782,7 @@ public Builder setSpeakingRate(double value) { * @return This builder for chaining. */ public Builder clearSpeakingRate() { - + bitField0_ = (bitField0_ & ~0x00000001); speakingRate_ = 0D; onChanged(); return this; @@ -806,6 +823,7 @@ public double getPitch() { public Builder setPitch(double value) { pitch_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -823,7 +841,7 @@ public Builder setPitch(double value) { * @return This builder for chaining. */ public Builder clearPitch() { - + bitField0_ = (bitField0_ & ~0x00000002); pitch_ = 0D; onChanged(); return this; @@ -874,6 +892,7 @@ public double getVolumeGainDb() { public Builder setVolumeGainDb(double value) { volumeGainDb_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -896,7 +915,7 @@ public Builder setVolumeGainDb(double value) { * @return This builder for chaining. */ public Builder clearVolumeGainDb() { - + bitField0_ = (bitField0_ & ~0x00000004); volumeGainDb_ = 0D; onChanged(); return this; @@ -906,9 +925,9 @@ public Builder clearVolumeGainDb() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureEffectsProfileIdIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { effectsProfileId_ = new com.google.protobuf.LazyStringArrayList(effectsProfileId_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } /** @@ -1059,7 +1078,7 @@ public Builder addAllEffectsProfileId(java.lang.Iterable value */ public Builder clearEffectsProfileId() { effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1106,7 +1125,7 @@ public Builder addEffectsProfileIdBytes(com.google.protobuf.ByteString value) { * @return Whether the voice field is set. */ public boolean hasVoice() { - return voiceBuilder_ != null || voice_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1143,11 +1162,11 @@ public Builder setVoice(com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams v throw new NullPointerException(); } voice_ = value; - onChanged(); } else { voiceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1163,11 +1182,11 @@ public Builder setVoice( com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.Builder builderForValue) { if (voiceBuilder_ == null) { voice_ = builderForValue.build(); - onChanged(); } else { voiceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1181,19 +1200,19 @@ public Builder setVoice( */ public Builder mergeVoice(com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams value) { if (voiceBuilder_ == null) { - if (voice_ != null) { - voice_ = - com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.newBuilder(voice_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && voice_ != null + && voice_ + != com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.getDefaultInstance()) { + getVoiceBuilder().mergeFrom(value); } else { voice_ = value; } - onChanged(); } else { voiceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1206,14 +1225,13 @@ public Builder mergeVoice(com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams * .google.cloud.dialogflow.cx.v3.VoiceSelectionParams voice = 4; */ public Builder clearVoice() { - if (voiceBuilder_ == null) { - voice_ = null; - onChanged(); - } else { - voice_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + voice_ = null; + if (voiceBuilder_ != null) { + voiceBuilder_.dispose(); voiceBuilder_ = null; } - + onChanged(); return this; } /** @@ -1226,7 +1244,7 @@ public Builder clearVoice() { * .google.cloud.dialogflow.cx.v3.VoiceSelectionParams voice = 4; */ public com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams.Builder getVoiceBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getVoiceFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCase.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCase.java index 8c4d0226e52d..dacf94d13925 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCase.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCase.java @@ -72,14 +72,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
    * The unique identifier of the test case.
-   * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically.
-   * Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/
+   * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]
+   * will populate the name automatically. Otherwise use format:
+   * `projects/<Project ID>/locations/<LocationID>/agents/
    * <AgentID>/testCases/<TestCase ID>`.
    * 
* @@ -104,8 +107,9 @@ public java.lang.String getName() { * *
    * The unique identifier of the test case.
-   * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically.
-   * Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/
+   * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]
+   * will populate the name automatically. Otherwise use format:
+   * `projects/<Project ID>/locations/<LocationID>/agents/
    * <AgentID>/testCases/<TestCase ID>`.
    * 
* @@ -127,6 +131,8 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int TAGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList tags_; /** * @@ -196,13 +202,15 @@ public com.google.protobuf.ByteString getTagsBytes(int index) { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * *
-   * Required. The human-readable name of the test case, unique within the agent. Limit of
-   * 200 characters.
+   * Required. The human-readable name of the test case, unique within the
+   * agent. Limit of 200 characters.
    * 
* * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -225,8 +233,8 @@ public java.lang.String getDisplayName() { * * *
-   * Required. The human-readable name of the test case, unique within the agent. Limit of
-   * 200 characters.
+   * Required. The human-readable name of the test case, unique within the
+   * agent. Limit of 200 characters.
    * 
* * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -247,7 +255,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int NOTES_FIELD_NUMBER = 4; - private volatile java.lang.Object notes_; + + @SuppressWarnings("serial") + private volatile java.lang.Object notes_ = ""; /** * * @@ -340,10 +350,14 @@ public com.google.cloud.dialogflow.cx.v3.TestConfig getTestConfig() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TestConfigOrBuilder getTestConfigOrBuilder() { - return getTestConfig(); + return testConfig_ == null + ? com.google.cloud.dialogflow.cx.v3.TestConfig.getDefaultInstance() + : testConfig_; } public static final int TEST_CASE_CONVERSATION_TURNS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private java.util.List testCaseConversationTurns_; /** @@ -487,7 +501,9 @@ public com.google.protobuf.Timestamp getCreationTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { - return getCreationTime(); + return creationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : creationTime_; } public static final int LAST_TEST_RESULT_FIELD_NUMBER = 12; @@ -535,7 +551,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseResult getLastTestResult() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TestCaseResultOrBuilder getLastTestResultOrBuilder() { - return getLastTestResult(); + return lastTestResult_ == null + ? com.google.cloud.dialogflow.cx.v3.TestCaseResult.getDefaultInstance() + : lastTestResult_; } private byte memoizedIsInitialized = -1; @@ -825,18 +843,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); displayName_ = ""; - notes_ = ""; - - if (testConfigBuilder_ == null) { - testConfig_ = null; - } else { - testConfig_ = null; + testConfig_ = null; + if (testConfigBuilder_ != null) { + testConfigBuilder_.dispose(); testConfigBuilder_ = null; } if (testCaseConversationTurnsBuilder_ == null) { @@ -845,17 +860,15 @@ public Builder clear() { testCaseConversationTurns_ = null; testCaseConversationTurnsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); - if (creationTimeBuilder_ == null) { - creationTime_ = null; - } else { - creationTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); creationTimeBuilder_ = null; } - if (lastTestResultBuilder_ == null) { - lastTestResult_ = null; - } else { - lastTestResult_ = null; + lastTestResult_ = null; + if (lastTestResultBuilder_ != null) { + lastTestResultBuilder_.dispose(); lastTestResultBuilder_ = null; } return this; @@ -885,42 +898,54 @@ public com.google.cloud.dialogflow.cx.v3.TestCase build() { public com.google.cloud.dialogflow.cx.v3.TestCase buildPartial() { com.google.cloud.dialogflow.cx.v3.TestCase result = new com.google.cloud.dialogflow.cx.v3.TestCase(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.TestCase result) { + if (((bitField0_ & 0x00000002) != 0)) { tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.tags_ = tags_; - result.displayName_ = displayName_; - result.notes_ = notes_; - if (testConfigBuilder_ == null) { - result.testConfig_ = testConfig_; - } else { - result.testConfig_ = testConfigBuilder_.build(); - } if (testCaseConversationTurnsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { testCaseConversationTurns_ = java.util.Collections.unmodifiableList(testCaseConversationTurns_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } result.testCaseConversationTurns_ = testCaseConversationTurns_; } else { result.testCaseConversationTurns_ = testCaseConversationTurnsBuilder_.build(); } - if (creationTimeBuilder_ == null) { - result.creationTime_ = creationTime_; - } else { - result.creationTime_ = creationTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TestCase result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (lastTestResultBuilder_ == null) { - result.lastTestResult_ = lastTestResult_; - } else { - result.lastTestResult_ = lastTestResultBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.notes_ = notes_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.testConfig_ = testConfigBuilder_ == null ? testConfig_ : testConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.creationTime_ = + creationTimeBuilder_ == null ? creationTime_ : creationTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.lastTestResult_ = + lastTestResultBuilder_ == null ? lastTestResult_ : lastTestResultBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -970,12 +995,13 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TestCase other) { if (other == com.google.cloud.dialogflow.cx.v3.TestCase.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); @@ -984,10 +1010,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TestCase other) { } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getNotes().isEmpty()) { notes_ = other.notes_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasTestConfig()) { @@ -997,7 +1025,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TestCase other) { if (!other.testCaseConversationTurns_.isEmpty()) { if (testCaseConversationTurns_.isEmpty()) { testCaseConversationTurns_ = other.testCaseConversationTurns_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureTestCaseConversationTurnsIsMutable(); testCaseConversationTurns_.addAll(other.testCaseConversationTurns_); @@ -1010,7 +1038,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TestCase other) { testCaseConversationTurnsBuilder_.dispose(); testCaseConversationTurnsBuilder_ = null; testCaseConversationTurns_ = other.testCaseConversationTurns_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); testCaseConversationTurnsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTestCaseConversationTurnsFieldBuilder() @@ -1055,7 +1083,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -1068,13 +1096,13 @@ public Builder mergeFrom( case 26: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { notes_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: @@ -1094,19 +1122,19 @@ public Builder mergeFrom( case 82: { input.readMessage(getCreationTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 82 case 98: { input.readMessage(getLastTestResultFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 98 case 106: { input.readMessage(getTestConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 106 default: @@ -1134,8 +1162,9 @@ public Builder mergeFrom( * *
      * The unique identifier of the test case.
-     * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically.
-     * Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/
+     * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]
+     * will populate the name automatically. Otherwise use format:
+     * `projects/<Project ID>/locations/<LocationID>/agents/
      * <AgentID>/testCases/<TestCase ID>`.
      * 
* @@ -1159,8 +1188,9 @@ public java.lang.String getName() { * *
      * The unique identifier of the test case.
-     * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically.
-     * Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/
+     * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]
+     * will populate the name automatically. Otherwise use format:
+     * `projects/<Project ID>/locations/<LocationID>/agents/
      * <AgentID>/testCases/<TestCase ID>`.
      * 
* @@ -1184,8 +1214,9 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * The unique identifier of the test case.
-     * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically.
-     * Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/
+     * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]
+     * will populate the name automatically. Otherwise use format:
+     * `projects/<Project ID>/locations/<LocationID>/agents/
      * <AgentID>/testCases/<TestCase ID>`.
      * 
* @@ -1198,8 +1229,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1208,8 +1239,9 @@ public Builder setName(java.lang.String value) { * *
      * The unique identifier of the test case.
-     * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically.
-     * Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/
+     * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]
+     * will populate the name automatically. Otherwise use format:
+     * `projects/<Project ID>/locations/<LocationID>/agents/
      * <AgentID>/testCases/<TestCase ID>`.
      * 
* @@ -1218,8 +1250,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1228,8 +1260,9 @@ public Builder clearName() { * *
      * The unique identifier of the test case.
-     * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically.
-     * Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/
+     * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]
+     * will populate the name automatically. Otherwise use format:
+     * `projects/<Project ID>/locations/<LocationID>/agents/
      * <AgentID>/testCases/<TestCase ID>`.
      * 
* @@ -1243,8 +1276,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1253,9 +1286,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -1406,7 +1439,7 @@ public Builder addAllTags(java.lang.Iterable values) { */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1440,8 +1473,8 @@ public Builder addTagsBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The human-readable name of the test case, unique within the agent. Limit of
-     * 200 characters.
+     * Required. The human-readable name of the test case, unique within the
+     * agent. Limit of 200 characters.
      * 
* * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1463,8 +1496,8 @@ public java.lang.String getDisplayName() { * * *
-     * Required. The human-readable name of the test case, unique within the agent. Limit of
-     * 200 characters.
+     * Required. The human-readable name of the test case, unique within the
+     * agent. Limit of 200 characters.
      * 
* * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1486,8 +1519,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * Required. The human-readable name of the test case, unique within the agent. Limit of
-     * 200 characters.
+     * Required. The human-readable name of the test case, unique within the
+     * agent. Limit of 200 characters.
      * 
* * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1499,8 +1532,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1508,8 +1541,8 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * Required. The human-readable name of the test case, unique within the agent. Limit of
-     * 200 characters.
+     * Required. The human-readable name of the test case, unique within the
+     * agent. Limit of 200 characters.
      * 
* * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1517,8 +1550,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1526,8 +1559,8 @@ public Builder clearDisplayName() { * * *
-     * Required. The human-readable name of the test case, unique within the agent. Limit of
-     * 200 characters.
+     * Required. The human-readable name of the test case, unique within the
+     * agent. Limit of 200 characters.
      * 
* * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -1540,8 +1573,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1607,8 +1640,8 @@ public Builder setNotes(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - notes_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1624,8 +1657,8 @@ public Builder setNotes(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNotes() { - notes_ = getDefaultInstance().getNotes(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1646,8 +1679,8 @@ public Builder setNotesBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - notes_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1670,7 +1703,7 @@ public Builder setNotesBytes(com.google.protobuf.ByteString value) { * @return Whether the testConfig field is set. */ public boolean hasTestConfig() { - return testConfigBuilder_ != null || testConfig_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1707,11 +1740,11 @@ public Builder setTestConfig(com.google.cloud.dialogflow.cx.v3.TestConfig value) throw new NullPointerException(); } testConfig_ = value; - onChanged(); } else { testConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1727,11 +1760,11 @@ public Builder setTestConfig( com.google.cloud.dialogflow.cx.v3.TestConfig.Builder builderForValue) { if (testConfigBuilder_ == null) { testConfig_ = builderForValue.build(); - onChanged(); } else { testConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1745,19 +1778,18 @@ public Builder setTestConfig( */ public Builder mergeTestConfig(com.google.cloud.dialogflow.cx.v3.TestConfig value) { if (testConfigBuilder_ == null) { - if (testConfig_ != null) { - testConfig_ = - com.google.cloud.dialogflow.cx.v3.TestConfig.newBuilder(testConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && testConfig_ != null + && testConfig_ != com.google.cloud.dialogflow.cx.v3.TestConfig.getDefaultInstance()) { + getTestConfigBuilder().mergeFrom(value); } else { testConfig_ = value; } - onChanged(); } else { testConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1770,14 +1802,13 @@ public Builder mergeTestConfig(com.google.cloud.dialogflow.cx.v3.TestConfig valu * .google.cloud.dialogflow.cx.v3.TestConfig test_config = 13; */ public Builder clearTestConfig() { - if (testConfigBuilder_ == null) { - testConfig_ = null; - onChanged(); - } else { - testConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + testConfig_ = null; + if (testConfigBuilder_ != null) { + testConfigBuilder_.dispose(); testConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1790,7 +1821,7 @@ public Builder clearTestConfig() { * .google.cloud.dialogflow.cx.v3.TestConfig test_config = 13; */ public com.google.cloud.dialogflow.cx.v3.TestConfig.Builder getTestConfigBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getTestConfigFieldBuilder().getBuilder(); } @@ -1842,11 +1873,11 @@ public com.google.cloud.dialogflow.cx.v3.TestConfigOrBuilder getTestConfigOrBuil testCaseConversationTurns_ = java.util.Collections.emptyList(); private void ensureTestCaseConversationTurnsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { testCaseConversationTurns_ = new java.util.ArrayList( testCaseConversationTurns_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000020; } } @@ -2111,7 +2142,7 @@ public Builder addAllTestCaseConversationTurns( public Builder clearTestCaseConversationTurns() { if (testCaseConversationTurnsBuilder_ == null) { testCaseConversationTurns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { testCaseConversationTurnsBuilder_.clear(); @@ -2267,7 +2298,7 @@ public Builder removeTestCaseConversationTurns(int index) { com.google.cloud.dialogflow.cx.v3.ConversationTurn.Builder, com.google.cloud.dialogflow.cx.v3.ConversationTurnOrBuilder>( testCaseConversationTurns_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); testCaseConversationTurns_ = null; @@ -2295,7 +2326,7 @@ public Builder removeTestCaseConversationTurns(int index) { * @return Whether the creationTime field is set. */ public boolean hasCreationTime() { - return creationTimeBuilder_ != null || creationTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2336,11 +2367,11 @@ public Builder setCreationTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } creationTime_ = value; - onChanged(); } else { creationTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2357,11 +2388,11 @@ public Builder setCreationTime(com.google.protobuf.Timestamp value) { public Builder setCreationTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (creationTimeBuilder_ == null) { creationTime_ = builderForValue.build(); - onChanged(); } else { creationTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2377,19 +2408,18 @@ public Builder setCreationTime(com.google.protobuf.Timestamp.Builder builderForV */ public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { if (creationTimeBuilder_ == null) { - if (creationTime_ != null) { - creationTime_ = - com.google.protobuf.Timestamp.newBuilder(creationTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && creationTime_ != null + && creationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreationTimeBuilder().mergeFrom(value); } else { creationTime_ = value; } - onChanged(); } else { creationTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2404,14 +2434,13 @@ public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreationTime() { - if (creationTimeBuilder_ == null) { - creationTime_ = null; - onChanged(); - } else { - creationTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); creationTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2426,7 +2455,7 @@ public Builder clearCreationTime() { *
*/ public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getCreationTimeFieldBuilder().getBuilder(); } @@ -2496,7 +2525,7 @@ public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { * @return Whether the lastTestResult field is set. */ public boolean hasLastTestResult() { - return lastTestResultBuilder_ != null || lastTestResult_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2533,11 +2562,11 @@ public Builder setLastTestResult(com.google.cloud.dialogflow.cx.v3.TestCaseResul throw new NullPointerException(); } lastTestResult_ = value; - onChanged(); } else { lastTestResultBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2553,11 +2582,11 @@ public Builder setLastTestResult( com.google.cloud.dialogflow.cx.v3.TestCaseResult.Builder builderForValue) { if (lastTestResultBuilder_ == null) { lastTestResult_ = builderForValue.build(); - onChanged(); } else { lastTestResultBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2571,19 +2600,19 @@ public Builder setLastTestResult( */ public Builder mergeLastTestResult(com.google.cloud.dialogflow.cx.v3.TestCaseResult value) { if (lastTestResultBuilder_ == null) { - if (lastTestResult_ != null) { - lastTestResult_ = - com.google.cloud.dialogflow.cx.v3.TestCaseResult.newBuilder(lastTestResult_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && lastTestResult_ != null + && lastTestResult_ + != com.google.cloud.dialogflow.cx.v3.TestCaseResult.getDefaultInstance()) { + getLastTestResultBuilder().mergeFrom(value); } else { lastTestResult_ = value; } - onChanged(); } else { lastTestResultBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2596,14 +2625,13 @@ public Builder mergeLastTestResult(com.google.cloud.dialogflow.cx.v3.TestCaseRes * .google.cloud.dialogflow.cx.v3.TestCaseResult last_test_result = 12; */ public Builder clearLastTestResult() { - if (lastTestResultBuilder_ == null) { - lastTestResult_ = null; - onChanged(); - } else { - lastTestResult_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + lastTestResult_ = null; + if (lastTestResultBuilder_ != null) { + lastTestResultBuilder_.dispose(); lastTestResultBuilder_ = null; } - + onChanged(); return this; } /** @@ -2616,7 +2644,7 @@ public Builder clearLastTestResult() { * .google.cloud.dialogflow.cx.v3.TestCaseResult last_test_result = 12; */ public com.google.cloud.dialogflow.cx.v3.TestCaseResult.Builder getLastTestResultBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getLastTestResultFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseError.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseError.java index 25bfe8061abf..3d5ed494fa13 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseError.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseError.java @@ -110,7 +110,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCase getTestCase() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TestCaseOrBuilder getTestCaseOrBuilder() { - return getTestCase(); + return testCase_ == null + ? com.google.cloud.dialogflow.cx.v3.TestCase.getDefaultInstance() + : testCase_; } public static final int STATUS_FIELD_NUMBER = 2; @@ -156,7 +158,7 @@ public com.google.rpc.Status getStatus() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - return getStatus(); + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } private byte memoizedIsInitialized = -1; @@ -375,16 +377,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (testCaseBuilder_ == null) { - testCase_ = null; - } else { - testCase_ = null; + bitField0_ = 0; + testCase_ = null; + if (testCaseBuilder_ != null) { + testCaseBuilder_.dispose(); testCaseBuilder_ = null; } - if (statusBuilder_ == null) { - status_ = null; - } else { - status_ = null; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); statusBuilder_ = null; } return this; @@ -414,20 +415,23 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseError build() { public com.google.cloud.dialogflow.cx.v3.TestCaseError buildPartial() { com.google.cloud.dialogflow.cx.v3.TestCaseError result = new com.google.cloud.dialogflow.cx.v3.TestCaseError(this); - if (testCaseBuilder_ == null) { - result.testCase_ = testCase_; - } else { - result.testCase_ = testCaseBuilder_.build(); - } - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TestCaseError result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.testCase_ = testCaseBuilder_ == null ? testCase_ : testCaseBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -509,13 +513,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getTestCaseFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -535,6 +539,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.TestCase testCase_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TestCase, @@ -553,7 +559,7 @@ public Builder mergeFrom( * @return Whether the testCase field is set. */ public boolean hasTestCase() { - return testCaseBuilder_ != null || testCase_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -590,11 +596,11 @@ public Builder setTestCase(com.google.cloud.dialogflow.cx.v3.TestCase value) { throw new NullPointerException(); } testCase_ = value; - onChanged(); } else { testCaseBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -609,11 +615,11 @@ public Builder setTestCase(com.google.cloud.dialogflow.cx.v3.TestCase value) { public Builder setTestCase(com.google.cloud.dialogflow.cx.v3.TestCase.Builder builderForValue) { if (testCaseBuilder_ == null) { testCase_ = builderForValue.build(); - onChanged(); } else { testCaseBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -627,19 +633,18 @@ public Builder setTestCase(com.google.cloud.dialogflow.cx.v3.TestCase.Builder bu */ public Builder mergeTestCase(com.google.cloud.dialogflow.cx.v3.TestCase value) { if (testCaseBuilder_ == null) { - if (testCase_ != null) { - testCase_ = - com.google.cloud.dialogflow.cx.v3.TestCase.newBuilder(testCase_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && testCase_ != null + && testCase_ != com.google.cloud.dialogflow.cx.v3.TestCase.getDefaultInstance()) { + getTestCaseBuilder().mergeFrom(value); } else { testCase_ = value; } - onChanged(); } else { testCaseBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -652,14 +657,13 @@ public Builder mergeTestCase(com.google.cloud.dialogflow.cx.v3.TestCase value) { * .google.cloud.dialogflow.cx.v3.TestCase test_case = 1; */ public Builder clearTestCase() { - if (testCaseBuilder_ == null) { - testCase_ = null; - onChanged(); - } else { - testCase_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + testCase_ = null; + if (testCaseBuilder_ != null) { + testCaseBuilder_.dispose(); testCaseBuilder_ = null; } - + onChanged(); return this; } /** @@ -672,7 +676,7 @@ public Builder clearTestCase() { * .google.cloud.dialogflow.cx.v3.TestCase test_case = 1; */ public com.google.cloud.dialogflow.cx.v3.TestCase.Builder getTestCaseBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getTestCaseFieldBuilder().getBuilder(); } @@ -736,7 +740,7 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseOrBuilder getTestCaseOrBuilder( * @return Whether the status field is set. */ public boolean hasStatus() { - return statusBuilder_ != null || status_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -771,11 +775,11 @@ public Builder setStatus(com.google.rpc.Status value) { throw new NullPointerException(); } status_ = value; - onChanged(); } else { statusBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -790,11 +794,11 @@ public Builder setStatus(com.google.rpc.Status value) { public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); - onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -808,16 +812,18 @@ 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(); + if (((bitField0_ & 0x00000002) != 0) + && status_ != null + && status_ != com.google.rpc.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); } else { status_ = value; } - onChanged(); } else { statusBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -830,14 +836,13 @@ public Builder mergeStatus(com.google.rpc.Status value) { * .google.rpc.Status status = 2; */ public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; - onChanged(); - } else { - status_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); statusBuilder_ = null; } - + onChanged(); return this; } /** @@ -850,7 +855,7 @@ public Builder clearStatus() { * .google.rpc.Status status = 2; */ public com.google.rpc.Status.Builder getStatusBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getStatusFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseOrBuilder.java index 37f92f80c174..2688880c83e6 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseOrBuilder.java @@ -28,8 +28,9 @@ public interface TestCaseOrBuilder * *
    * The unique identifier of the test case.
-   * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically.
-   * Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/
+   * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]
+   * will populate the name automatically. Otherwise use format:
+   * `projects/<Project ID>/locations/<LocationID>/agents/
    * <AgentID>/testCases/<TestCase ID>`.
    * 
* @@ -43,8 +44,9 @@ public interface TestCaseOrBuilder * *
    * The unique identifier of the test case.
-   * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] will populate the name automatically.
-   * Otherwise use format: `projects/<Project ID>/locations/<LocationID>/agents/
+   * [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]
+   * will populate the name automatically. Otherwise use format:
+   * `projects/<Project ID>/locations/<LocationID>/agents/
    * <AgentID>/testCases/<TestCase ID>`.
    * 
* @@ -117,8 +119,8 @@ public interface TestCaseOrBuilder * * *
-   * Required. The human-readable name of the test case, unique within the agent. Limit of
-   * 200 characters.
+   * Required. The human-readable name of the test case, unique within the
+   * agent. Limit of 200 characters.
    * 
* * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -130,8 +132,8 @@ public interface TestCaseOrBuilder * * *
-   * Required. The human-readable name of the test case, unique within the agent. Limit of
-   * 200 characters.
+   * Required. The human-readable name of the test case, unique within the
+   * agent. Limit of 200 characters.
    * 
* * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseProto.java index 54aeb07ea97b..16ed0e3a9362 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseProto.java @@ -455,12 +455,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tCases/*/results/*}\332A\004name\032x\312A\031dialogflo" + "w.googleapis.com\322AYhttps://www.googleapi" + "s.com/auth/cloud-platform,https://www.go" - + "ogleapis.com/auth/dialogflowB\301\001\n!com.goo" + + "ogleapis.com/auth/dialogflowB\263\001\n!com.goo" + "gle.cloud.dialogflow.cx.v3B\rTestCaseProt" - + "oP\001Z?google.golang.org/genproto/googleap" - + "is/cloud/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035G" - + "oogle.Cloud.Dialogflow.Cx.V3\352\002!Google::C" - + "loud::Dialogflow::CX::V3b\006proto3" + + "oP\001Z1cloud.google.com/go/dialogflow/cx/a" + + "piv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Di" + + "alogflow.Cx.V3\352\002!Google::Cloud::Dialogfl" + + "ow::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseResult.java index ea25030551b9..5b5ab8bce4e2 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseResult.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCaseResult.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -124,7 +126,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int ENVIRONMENT_FIELD_NUMBER = 2; - private volatile java.lang.Object environment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object environment_ = ""; /** * * @@ -175,6 +179,8 @@ public com.google.protobuf.ByteString getEnvironmentBytes() { } public static final int CONVERSATION_TURNS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List conversationTurns_; /** * @@ -251,7 +257,7 @@ public com.google.cloud.dialogflow.cx.v3.ConversationTurnOrBuilder getConversati } public static final int TEST_RESULT_FIELD_NUMBER = 4; - private int testResult_; + private int testResult_ = 0; /** * * @@ -280,9 +286,8 @@ public int getTestResultValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TestResult getTestResult() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.TestResult result = - com.google.cloud.dialogflow.cx.v3.TestResult.valueOf(testResult_); + com.google.cloud.dialogflow.cx.v3.TestResult.forNumber(testResult_); return result == null ? com.google.cloud.dialogflow.cx.v3.TestResult.UNRECOGNIZED : result; } @@ -329,7 +334,7 @@ public com.google.protobuf.Timestamp getTestTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTestTimeOrBuilder() { - return getTestTime(); + return testTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : testTime_; } private byte memoizedIsInitialized = -1; @@ -575,23 +580,20 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - environment_ = ""; - if (conversationTurnsBuilder_ == null) { conversationTurns_ = java.util.Collections.emptyList(); } else { conversationTurns_ = null; conversationTurnsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); testResult_ = 0; - - if (testTimeBuilder_ == null) { - testTime_ = null; - } else { - testTime_ = null; + testTime_ = null; + if (testTimeBuilder_ != null) { + testTimeBuilder_.dispose(); testTimeBuilder_ = null; } return this; @@ -621,26 +623,41 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseResult build() { public com.google.cloud.dialogflow.cx.v3.TestCaseResult buildPartial() { com.google.cloud.dialogflow.cx.v3.TestCaseResult result = new com.google.cloud.dialogflow.cx.v3.TestCaseResult(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.environment_ = environment_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.TestCaseResult result) { if (conversationTurnsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { conversationTurns_ = java.util.Collections.unmodifiableList(conversationTurns_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.conversationTurns_ = conversationTurns_; } else { result.conversationTurns_ = conversationTurnsBuilder_.build(); } - result.testResult_ = testResult_; - if (testTimeBuilder_ == null) { - result.testTime_ = testTime_; - } else { - result.testTime_ = testTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TestCaseResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.environment_ = environment_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.testResult_ = testResult_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.testTime_ = testTimeBuilder_ == null ? testTime_ : testTimeBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -691,17 +708,19 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TestCaseResult other) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getEnvironment().isEmpty()) { environment_ = other.environment_; + bitField0_ |= 0x00000002; onChanged(); } if (conversationTurnsBuilder_ == null) { if (!other.conversationTurns_.isEmpty()) { if (conversationTurns_.isEmpty()) { conversationTurns_ = other.conversationTurns_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureConversationTurnsIsMutable(); conversationTurns_.addAll(other.conversationTurns_); @@ -714,7 +733,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TestCaseResult other) conversationTurnsBuilder_.dispose(); conversationTurnsBuilder_ = null; conversationTurns_ = other.conversationTurns_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); conversationTurnsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConversationTurnsFieldBuilder() @@ -759,13 +778,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { environment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -785,13 +804,13 @@ public Builder mergeFrom( case 32: { testResult_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage(getTestTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -880,8 +899,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -899,8 +918,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -923,8 +942,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -993,8 +1012,8 @@ public Builder setEnvironment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - environment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1011,8 +1030,8 @@ public Builder setEnvironment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEnvironment() { - environment_ = getDefaultInstance().getEnvironment(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1034,8 +1053,8 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - environment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1044,11 +1063,11 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureConversationTurnsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { conversationTurns_ = new java.util.ArrayList( conversationTurns_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -1278,7 +1297,7 @@ public Builder addAllConversationTurns( public Builder clearConversationTurns() { if (conversationTurnsBuilder_ == null) { conversationTurns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { conversationTurnsBuilder_.clear(); @@ -1413,7 +1432,7 @@ public com.google.cloud.dialogflow.cx.v3.ConversationTurn.Builder addConversatio com.google.cloud.dialogflow.cx.v3.ConversationTurn.Builder, com.google.cloud.dialogflow.cx.v3.ConversationTurnOrBuilder>( conversationTurns_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); conversationTurns_ = null; @@ -1450,8 +1469,8 @@ public int getTestResultValue() { * @return This builder for chaining. */ public Builder setTestResultValue(int value) { - testResult_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1468,9 +1487,8 @@ public Builder setTestResultValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TestResult getTestResult() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.TestResult result = - com.google.cloud.dialogflow.cx.v3.TestResult.valueOf(testResult_); + com.google.cloud.dialogflow.cx.v3.TestResult.forNumber(testResult_); return result == null ? com.google.cloud.dialogflow.cx.v3.TestResult.UNRECOGNIZED : result; } /** @@ -1489,7 +1507,7 @@ public Builder setTestResult(com.google.cloud.dialogflow.cx.v3.TestResult value) if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; testResult_ = value.getNumber(); onChanged(); return this; @@ -1506,7 +1524,7 @@ public Builder setTestResult(com.google.cloud.dialogflow.cx.v3.TestResult value) * @return This builder for chaining. */ public Builder clearTestResult() { - + bitField0_ = (bitField0_ & ~0x00000008); testResult_ = 0; onChanged(); return this; @@ -1530,7 +1548,7 @@ public Builder clearTestResult() { * @return Whether the testTime field is set. */ public boolean hasTestTime() { - return testTimeBuilder_ != null || testTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1565,11 +1583,11 @@ public Builder setTestTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } testTime_ = value; - onChanged(); } else { testTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1584,11 +1602,11 @@ public Builder setTestTime(com.google.protobuf.Timestamp value) { public Builder setTestTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (testTimeBuilder_ == null) { testTime_ = builderForValue.build(); - onChanged(); } else { testTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1602,17 +1620,18 @@ public Builder setTestTime(com.google.protobuf.Timestamp.Builder builderForValue */ public Builder mergeTestTime(com.google.protobuf.Timestamp value) { if (testTimeBuilder_ == null) { - if (testTime_ != null) { - testTime_ = - com.google.protobuf.Timestamp.newBuilder(testTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && testTime_ != null + && testTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getTestTimeBuilder().mergeFrom(value); } else { testTime_ = value; } - onChanged(); } else { testTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1625,14 +1644,13 @@ public Builder mergeTestTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp test_time = 5; */ public Builder clearTestTime() { - if (testTimeBuilder_ == null) { - testTime_ = null; - onChanged(); - } else { - testTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + testTime_ = null; + if (testTimeBuilder_ != null) { + testTimeBuilder_.dispose(); testTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1645,7 +1663,7 @@ public Builder clearTestTime() { * .google.protobuf.Timestamp test_time = 5; */ public com.google.protobuf.Timestamp.Builder getTestTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getTestTimeFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestConfig.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestConfig.java index efe83b254728..d881c896af5b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestConfig.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestConfig.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRACKING_PARAMETERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList trackingParameters_; /** * @@ -131,7 +133,9 @@ public com.google.protobuf.ByteString getTrackingParametersBytes(int index) { } public static final int FLOW_FIELD_NUMBER = 2; - private volatile java.lang.Object flow_; + + @SuppressWarnings("serial") + private volatile java.lang.Object flow_ = ""; /** * * @@ -192,7 +196,9 @@ public com.google.protobuf.ByteString getFlowBytes() { } public static final int PAGE_FIELD_NUMBER = 3; - private volatile java.lang.Object page_; + + @SuppressWarnings("serial") + private volatile java.lang.Object page_ = ""; /** * * @@ -474,12 +480,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; trackingParameters_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); flow_ = ""; - page_ = ""; - return this; } @@ -507,16 +512,30 @@ public com.google.cloud.dialogflow.cx.v3.TestConfig build() { public com.google.cloud.dialogflow.cx.v3.TestConfig buildPartial() { com.google.cloud.dialogflow.cx.v3.TestConfig result = new com.google.cloud.dialogflow.cx.v3.TestConfig(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3.TestConfig result) { if (((bitField0_ & 0x00000001) != 0)) { trackingParameters_ = trackingParameters_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.trackingParameters_ = trackingParameters_; - result.flow_ = flow_; - result.page_ = page_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TestConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.flow_ = flow_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.page_ = page_; + } } @java.lang.Override @@ -576,10 +595,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TestConfig other) { } if (!other.getFlow().isEmpty()) { flow_ = other.flow_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getPage().isEmpty()) { page_ = other.page_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -618,13 +639,13 @@ public Builder mergeFrom( case 18: { flow_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { page_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -893,8 +914,8 @@ public Builder setFlow(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - flow_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -916,8 +937,8 @@ public Builder setFlow(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFlow() { - flow_ = getDefaultInstance().getFlow(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -944,8 +965,8 @@ public Builder setFlowBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - flow_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1029,8 +1050,8 @@ public Builder setPage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - page_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1052,8 +1073,8 @@ public Builder setPage(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPage() { - page_ = getDefaultInstance().getPage(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1080,8 +1101,8 @@ public Builder setPageBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - page_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestError.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestError.java index c48e5344bd3f..ce81cd4d524e 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestError.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestError.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TEST_CASE_FIELD_NUMBER = 1; - private volatile java.lang.Object testCase_; + + @SuppressWarnings("serial") + private volatile java.lang.Object testCase_ = ""; /** * * @@ -159,7 +161,7 @@ public com.google.rpc.Status getStatus() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - return getStatus(); + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } public static final int TEST_TIME_FIELD_NUMBER = 3; @@ -205,7 +207,7 @@ public com.google.protobuf.Timestamp getTestTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTestTimeOrBuilder() { - return getTestTime(); + return testTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : testTime_; } private byte memoizedIsInitialized = -1; @@ -433,18 +435,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; testCase_ = ""; - - if (statusBuilder_ == null) { - status_ = null; - } else { - status_ = null; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); statusBuilder_ = null; } - if (testTimeBuilder_ == null) { - testTime_ = null; - } else { - testTime_ = null; + testTime_ = null; + if (testTimeBuilder_ != null) { + testTimeBuilder_.dispose(); testTimeBuilder_ = null; } return this; @@ -474,21 +474,26 @@ public com.google.cloud.dialogflow.cx.v3.TestError build() { public com.google.cloud.dialogflow.cx.v3.TestError buildPartial() { com.google.cloud.dialogflow.cx.v3.TestError result = new com.google.cloud.dialogflow.cx.v3.TestError(this); - result.testCase_ = testCase_; - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); - } - if (testTimeBuilder_ == null) { - result.testTime_ = testTime_; - } else { - result.testTime_ = testTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TestError result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.testCase_ = testCase_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.testTime_ = testTimeBuilder_ == null ? testTime_ : testTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -536,6 +541,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TestError other) { if (other == com.google.cloud.dialogflow.cx.v3.TestError.getDefaultInstance()) return this; if (!other.getTestCase().isEmpty()) { testCase_ = other.testCase_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasStatus()) { @@ -573,19 +579,19 @@ public Builder mergeFrom( case 10: { testCase_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getTestTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -605,6 +611,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object testCase_ = ""; /** * @@ -666,8 +674,8 @@ public Builder setTestCase(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - testCase_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -683,8 +691,8 @@ public Builder setTestCase(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTestCase() { - testCase_ = getDefaultInstance().getTestCase(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -705,8 +713,8 @@ public Builder setTestCaseBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - testCase_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -727,7 +735,7 @@ public Builder setTestCaseBytes(com.google.protobuf.ByteString value) { * @return Whether the status field is set. */ public boolean hasStatus() { - return statusBuilder_ != null || status_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -762,11 +770,11 @@ public Builder setStatus(com.google.rpc.Status value) { throw new NullPointerException(); } status_ = value; - onChanged(); } else { statusBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -781,11 +789,11 @@ public Builder setStatus(com.google.rpc.Status value) { public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); - onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -799,16 +807,18 @@ 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(); + if (((bitField0_ & 0x00000002) != 0) + && status_ != null + && status_ != com.google.rpc.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); } else { status_ = value; } - onChanged(); } else { statusBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -821,14 +831,13 @@ public Builder mergeStatus(com.google.rpc.Status value) { * .google.rpc.Status status = 2; */ public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; - onChanged(); - } else { - status_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); statusBuilder_ = null; } - + onChanged(); return this; } /** @@ -841,7 +850,7 @@ public Builder clearStatus() { * .google.rpc.Status status = 2; */ public com.google.rpc.Status.Builder getStatusBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getStatusFieldBuilder().getBuilder(); } @@ -902,7 +911,7 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * @return Whether the testTime field is set. */ public boolean hasTestTime() { - return testTimeBuilder_ != null || testTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -937,11 +946,11 @@ public Builder setTestTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } testTime_ = value; - onChanged(); } else { testTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -956,11 +965,11 @@ public Builder setTestTime(com.google.protobuf.Timestamp value) { public Builder setTestTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (testTimeBuilder_ == null) { testTime_ = builderForValue.build(); - onChanged(); } else { testTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -974,17 +983,18 @@ public Builder setTestTime(com.google.protobuf.Timestamp.Builder builderForValue */ public Builder mergeTestTime(com.google.protobuf.Timestamp value) { if (testTimeBuilder_ == null) { - if (testTime_ != null) { - testTime_ = - com.google.protobuf.Timestamp.newBuilder(testTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && testTime_ != null + && testTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getTestTimeBuilder().mergeFrom(value); } else { testTime_ = value; } - onChanged(); } else { testTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -997,14 +1007,13 @@ public Builder mergeTestTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp test_time = 3; */ public Builder clearTestTime() { - if (testTimeBuilder_ == null) { - testTime_ = null; - onChanged(); - } else { - testTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + testTime_ = null; + if (testTimeBuilder_ != null) { + testTimeBuilder_.dispose(); testTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1017,7 +1026,7 @@ public Builder clearTestTime() { * .google.protobuf.Timestamp test_time = 3; */ public com.google.protobuf.Timestamp.Builder getTestTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getTestTimeFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestRunDifference.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestRunDifference.java index 1bfa2019541b..64553b74b227 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestRunDifference.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TestRunDifference.java @@ -272,7 +272,7 @@ private DiffType(int value) { } public static final int TYPE_FIELD_NUMBER = 1; - private int type_; + private int type_ = 0; /** * * @@ -301,16 +301,17 @@ public int getTypeValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType getType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType result = - com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType.valueOf(type_); + com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType.forNumber(type_); return result == null ? com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -568,10 +569,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; type_ = 0; - description_ = ""; - return this; } @@ -599,12 +599,23 @@ public com.google.cloud.dialogflow.cx.v3.TestRunDifference build() { public com.google.cloud.dialogflow.cx.v3.TestRunDifference buildPartial() { com.google.cloud.dialogflow.cx.v3.TestRunDifference result = new com.google.cloud.dialogflow.cx.v3.TestRunDifference(this); - result.type_ = type_; - result.description_ = description_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TestRunDifference result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -656,6 +667,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TestRunDifference oth } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -687,13 +699,13 @@ public Builder mergeFrom( case 8: { type_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -713,6 +725,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int type_ = 0; /** * @@ -742,8 +756,8 @@ public int getTypeValue() { * @return This builder for chaining. */ public Builder setTypeValue(int value) { - type_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -760,9 +774,8 @@ public Builder setTypeValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType getType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType result = - com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType.valueOf(type_); + com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType.forNumber(type_); return result == null ? com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffType.UNRECOGNIZED : result; @@ -783,7 +796,7 @@ public Builder setType(com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffT if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; @@ -800,7 +813,7 @@ public Builder setType(com.google.cloud.dialogflow.cx.v3.TestRunDifference.DiffT * @return This builder for chaining. */ public Builder clearType() { - + bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; @@ -867,8 +880,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -884,8 +897,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -906,8 +919,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TextInput.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TextInput.java index 408b56f797d7..8ed6ecbc9fd9 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TextInput.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TextInput.java @@ -68,13 +68,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TEXT_FIELD_NUMBER = 1; - private volatile java.lang.Object text_; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; /** * * *
-   * Required. The UTF-8 encoded natural language text to be processed. Text length must
-   * not exceed 256 characters.
+   * Required. The UTF-8 encoded natural language text to be processed. Text
+   * length must not exceed 256 characters.
    * 
* * string text = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -97,8 +99,8 @@ public java.lang.String getText() { * * *
-   * Required. The UTF-8 encoded natural language text to be processed. Text length must
-   * not exceed 256 characters.
+   * Required. The UTF-8 encoded natural language text to be processed. Text
+   * length must not exceed 256 characters.
    * 
* * string text = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -315,8 +317,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; text_ = ""; - return this; } @@ -344,11 +346,20 @@ public com.google.cloud.dialogflow.cx.v3.TextInput build() { public com.google.cloud.dialogflow.cx.v3.TextInput buildPartial() { com.google.cloud.dialogflow.cx.v3.TextInput result = new com.google.cloud.dialogflow.cx.v3.TextInput(this); - result.text_ = text_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TextInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.text_ = text_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -396,6 +407,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TextInput other) { if (other == com.google.cloud.dialogflow.cx.v3.TextInput.getDefaultInstance()) return this; if (!other.getText().isEmpty()) { text_ = other.text_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -427,7 +439,7 @@ public Builder mergeFrom( case 10: { text_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -447,13 +459,15 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object text_ = ""; /** * * *
-     * Required. The UTF-8 encoded natural language text to be processed. Text length must
-     * not exceed 256 characters.
+     * Required. The UTF-8 encoded natural language text to be processed. Text
+     * length must not exceed 256 characters.
      * 
* * string text = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -475,8 +489,8 @@ public java.lang.String getText() { * * *
-     * Required. The UTF-8 encoded natural language text to be processed. Text length must
-     * not exceed 256 characters.
+     * Required. The UTF-8 encoded natural language text to be processed. Text
+     * length must not exceed 256 characters.
      * 
* * string text = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -498,8 +512,8 @@ public com.google.protobuf.ByteString getTextBytes() { * * *
-     * Required. The UTF-8 encoded natural language text to be processed. Text length must
-     * not exceed 256 characters.
+     * Required. The UTF-8 encoded natural language text to be processed. Text
+     * length must not exceed 256 characters.
      * 
* * string text = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -511,8 +525,8 @@ public Builder setText(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - text_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -520,8 +534,8 @@ public Builder setText(java.lang.String value) { * * *
-     * Required. The UTF-8 encoded natural language text to be processed. Text length must
-     * not exceed 256 characters.
+     * Required. The UTF-8 encoded natural language text to be processed. Text
+     * length must not exceed 256 characters.
      * 
* * string text = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -529,8 +543,8 @@ public Builder setText(java.lang.String value) { * @return This builder for chaining. */ public Builder clearText() { - text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -538,8 +552,8 @@ public Builder clearText() { * * *
-     * Required. The UTF-8 encoded natural language text to be processed. Text length must
-     * not exceed 256 characters.
+     * Required. The UTF-8 encoded natural language text to be processed. Text
+     * length must not exceed 256 characters.
      * 
* * string text = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -552,8 +566,8 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - text_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TextInputOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TextInputOrBuilder.java index 650d4b3372ca..751d1a8ba90e 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TextInputOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TextInputOrBuilder.java @@ -27,8 +27,8 @@ public interface TextInputOrBuilder * * *
-   * Required. The UTF-8 encoded natural language text to be processed. Text length must
-   * not exceed 256 characters.
+   * Required. The UTF-8 encoded natural language text to be processed. Text
+   * length must not exceed 256 characters.
    * 
* * string text = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -40,8 +40,8 @@ public interface TextInputOrBuilder * * *
-   * Required. The UTF-8 encoded natural language text to be processed. Text length must
-   * not exceed 256 characters.
+   * Required. The UTF-8 encoded natural language text to be processed. Text
+   * length must not exceed 256 characters.
    * 
* * string text = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TrainFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TrainFlowRequest.java index 343b31bed1a2..d39ece714b3d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TrainFlowRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TrainFlowRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Flows.TrainFlow][google.cloud.dialogflow.cx.v3.Flows.TrainFlow].
+ * The request message for
+ * [Flows.TrainFlow][google.cloud.dialogflow.cx.v3.Flows.TrainFlow].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.TrainFlowRequest} @@ -68,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -287,7 +290,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Flows.TrainFlow][google.cloud.dialogflow.cx.v3.Flows.TrainFlow].
+   * The request message for
+   * [Flows.TrainFlow][google.cloud.dialogflow.cx.v3.Flows.TrainFlow].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.TrainFlowRequest} @@ -321,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -350,11 +354,20 @@ public com.google.cloud.dialogflow.cx.v3.TrainFlowRequest build() { public com.google.cloud.dialogflow.cx.v3.TrainFlowRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.TrainFlowRequest result = new com.google.cloud.dialogflow.cx.v3.TrainFlowRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TrainFlowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -403,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TrainFlowRequest othe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -434,7 +448,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -454,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -527,8 +543,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -548,8 +564,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -574,8 +590,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionCoverage.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionCoverage.java index 060b0f84e792..8e4fe7a87640 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionCoverage.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionCoverage.java @@ -78,8 +78,8 @@ public interface TransitionNodeOrBuilder * * *
-     * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
-     * displayname will be set.
+     * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+     * Only some fields such as name and displayname will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Page page = 1; @@ -91,8 +91,8 @@ public interface TransitionNodeOrBuilder * * *
-     * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
-     * displayname will be set.
+     * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+     * Only some fields such as name and displayname will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Page page = 1; @@ -104,8 +104,8 @@ public interface TransitionNodeOrBuilder * * *
-     * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
-     * displayname will be set.
+     * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+     * Only some fields such as name and displayname will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Page page = 1; @@ -116,8 +116,8 @@ public interface TransitionNodeOrBuilder * * *
-     * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
-     * displayname will be set.
+     * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+     * Only some fields such as name and displayname will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Flow flow = 2; @@ -129,8 +129,8 @@ public interface TransitionNodeOrBuilder * * *
-     * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
-     * displayname will be set.
+     * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+     * Only some fields such as name and displayname will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Flow flow = 2; @@ -142,8 +142,8 @@ public interface TransitionNodeOrBuilder * * *
-     * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
-     * displayname will be set.
+     * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+     * Only some fields such as name and displayname will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Flow flow = 2; @@ -252,8 +252,8 @@ public KindCase getKindCase() { * * *
-     * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
-     * displayname will be set.
+     * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+     * Only some fields such as name and displayname will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Page page = 1; @@ -268,8 +268,8 @@ public boolean hasPage() { * * *
-     * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
-     * displayname will be set.
+     * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+     * Only some fields such as name and displayname will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Page page = 1; @@ -287,8 +287,8 @@ public com.google.cloud.dialogflow.cx.v3.Page getPage() { * * *
-     * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
-     * displayname will be set.
+     * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+     * Only some fields such as name and displayname will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Page page = 1; @@ -306,8 +306,8 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getPageOrBuilder() { * * *
-     * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
-     * displayname will be set.
+     * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+     * Only some fields such as name and displayname will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Flow flow = 2; @@ -322,8 +322,8 @@ public boolean hasFlow() { * * *
-     * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
-     * displayname will be set.
+     * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+     * Only some fields such as name and displayname will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Flow flow = 2; @@ -341,8 +341,8 @@ public com.google.cloud.dialogflow.cx.v3.Flow getFlow() { * * *
-     * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
-     * displayname will be set.
+     * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+     * Only some fields such as name and displayname will be set.
      * 
* * .google.cloud.dialogflow.cx.v3.Flow flow = 2; @@ -587,6 +587,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (pageBuilder_ != null) { pageBuilder_.clear(); } @@ -624,25 +625,31 @@ public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode build public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode buildPartial() { com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode result = new com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode(this); - if (kindCase_ == 1) { - if (pageBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = pageBuilder_.build(); - } - } - if (kindCase_ == 2) { - if (flowBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = flowBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - result.kindCase_ = kindCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode result) { + result.kindCase_ = kindCase_; + result.kind_ = this.kind_; + if (kindCase_ == 1 && pageBuilder_ != null) { + result.kind_ = pageBuilder_.build(); + } + if (kindCase_ == 2 && flowBuilder_ != null) { + result.kind_ = flowBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -779,6 +786,8 @@ public Builder clearKind() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.Page, com.google.cloud.dialogflow.cx.v3.Page.Builder, @@ -788,8 +797,8 @@ public Builder clearKind() { * * *
-       * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
-       * displayname will be set.
+       * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+       * Only some fields such as name and displayname will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Page page = 1; @@ -804,8 +813,8 @@ public boolean hasPage() { * * *
-       * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
-       * displayname will be set.
+       * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+       * Only some fields such as name and displayname will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Page page = 1; @@ -830,8 +839,8 @@ public com.google.cloud.dialogflow.cx.v3.Page getPage() { * * *
-       * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
-       * displayname will be set.
+       * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+       * Only some fields such as name and displayname will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Page page = 1; @@ -853,8 +862,8 @@ public Builder setPage(com.google.cloud.dialogflow.cx.v3.Page value) { * * *
-       * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
-       * displayname will be set.
+       * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+       * Only some fields such as name and displayname will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Page page = 1; @@ -873,8 +882,8 @@ public Builder setPage(com.google.cloud.dialogflow.cx.v3.Page.Builder builderFor * * *
-       * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
-       * displayname will be set.
+       * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+       * Only some fields such as name and displayname will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Page page = 1; @@ -906,8 +915,8 @@ public Builder mergePage(com.google.cloud.dialogflow.cx.v3.Page value) { * * *
-       * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
-       * displayname will be set.
+       * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+       * Only some fields such as name and displayname will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Page page = 1; @@ -932,8 +941,8 @@ public Builder clearPage() { * * *
-       * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
-       * displayname will be set.
+       * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+       * Only some fields such as name and displayname will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Page page = 1; @@ -945,8 +954,8 @@ public com.google.cloud.dialogflow.cx.v3.Page.Builder getPageBuilder() { * * *
-       * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
-       * displayname will be set.
+       * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+       * Only some fields such as name and displayname will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Page page = 1; @@ -966,8 +975,8 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getPageOrBuilder() { * * *
-       * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page]. Only some fields such as name and
-       * displayname will be set.
+       * Indicates a transition to a [Page][google.cloud.dialogflow.cx.v3.Page].
+       * Only some fields such as name and displayname will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Page page = 1; @@ -993,7 +1002,6 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getPageOrBuilder() { } kindCase_ = 1; onChanged(); - ; return pageBuilder_; } @@ -1006,8 +1014,8 @@ public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getPageOrBuilder() { * * *
-       * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
-       * displayname will be set.
+       * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+       * Only some fields such as name and displayname will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Flow flow = 2; @@ -1022,8 +1030,8 @@ public boolean hasFlow() { * * *
-       * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
-       * displayname will be set.
+       * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+       * Only some fields such as name and displayname will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Flow flow = 2; @@ -1048,8 +1056,8 @@ public com.google.cloud.dialogflow.cx.v3.Flow getFlow() { * * *
-       * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
-       * displayname will be set.
+       * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+       * Only some fields such as name and displayname will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Flow flow = 2; @@ -1071,8 +1079,8 @@ public Builder setFlow(com.google.cloud.dialogflow.cx.v3.Flow value) { * * *
-       * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
-       * displayname will be set.
+       * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+       * Only some fields such as name and displayname will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Flow flow = 2; @@ -1091,8 +1099,8 @@ public Builder setFlow(com.google.cloud.dialogflow.cx.v3.Flow.Builder builderFor * * *
-       * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
-       * displayname will be set.
+       * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+       * Only some fields such as name and displayname will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Flow flow = 2; @@ -1124,8 +1132,8 @@ public Builder mergeFlow(com.google.cloud.dialogflow.cx.v3.Flow value) { * * *
-       * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
-       * displayname will be set.
+       * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+       * Only some fields such as name and displayname will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Flow flow = 2; @@ -1150,8 +1158,8 @@ public Builder clearFlow() { * * *
-       * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
-       * displayname will be set.
+       * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+       * Only some fields such as name and displayname will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Flow flow = 2; @@ -1163,8 +1171,8 @@ public com.google.cloud.dialogflow.cx.v3.Flow.Builder getFlowBuilder() { * * *
-       * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
-       * displayname will be set.
+       * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+       * Only some fields such as name and displayname will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Flow flow = 2; @@ -1184,8 +1192,8 @@ public com.google.cloud.dialogflow.cx.v3.FlowOrBuilder getFlowOrBuilder() { * * *
-       * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow]. Only some fields such as name and
-       * displayname will be set.
+       * Indicates a transition to a [Flow][google.cloud.dialogflow.cx.v3.Flow].
+       * Only some fields such as name and displayname will be set.
        * 
* * .google.cloud.dialogflow.cx.v3.Flow flow = 2; @@ -1211,7 +1219,6 @@ public com.google.cloud.dialogflow.cx.v3.FlowOrBuilder getFlowOrBuilder() { } kindCase_ = 2; onChanged(); - ; return flowBuilder_; } @@ -1599,11 +1606,13 @@ public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode getSo @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNodeOrBuilder getSourceOrBuilder() { - return getSource(); + return source_ == null + ? com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.getDefaultInstance() + : source_; } public static final int INDEX_FIELD_NUMBER = 4; - private int index_; + private int index_ = 0; /** * * @@ -1666,11 +1675,13 @@ public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode getTa @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNodeOrBuilder getTargetOrBuilder() { - return getTarget(); + return target_ == null + ? com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.getDefaultInstance() + : target_; } public static final int COVERED_FIELD_NUMBER = 3; - private boolean covered_; + private boolean covered_ = false; /** * * @@ -2069,22 +2080,19 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (sourceBuilder_ == null) { - source_ = null; - } else { - source_ = null; + bitField0_ = 0; + source_ = null; + if (sourceBuilder_ != null) { + sourceBuilder_.dispose(); sourceBuilder_ = null; } index_ = 0; - - if (targetBuilder_ == null) { - target_ = null; - } else { - target_ = null; + target_ = null; + if (targetBuilder_ != null) { + targetBuilder_.dispose(); targetBuilder_ = null; } covered_ = false; - if (transitionRouteBuilder_ != null) { transitionRouteBuilder_.clear(); } @@ -2121,35 +2129,41 @@ public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition build() { public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition buildPartial() { com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition result = new com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition(this); - if (sourceBuilder_ == null) { - result.source_ = source_; - } else { - result.source_ = sourceBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.index_ = index_; - if (targetBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = targetBuilder_.build(); + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.source_ = sourceBuilder_ == null ? source_ : sourceBuilder_.build(); } - result.covered_ = covered_; - if (detailCase_ == 5) { - if (transitionRouteBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = transitionRouteBuilder_.build(); - } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.index_ = index_; } - if (detailCase_ == 6) { - if (eventHandlerBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = eventHandlerBuilder_.build(); - } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = targetBuilder_ == null ? target_ : targetBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.covered_ = covered_; } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition result) { result.detailCase_ = detailCase_; - onBuilt(); - return result; + result.detail_ = this.detail_; + if (detailCase_ == 5 && transitionRouteBuilder_ != null) { + result.detail_ = transitionRouteBuilder_.build(); + } + if (detailCase_ == 6 && eventHandlerBuilder_ != null) { + result.detail_ = eventHandlerBuilder_.build(); + } } @java.lang.Override @@ -2259,25 +2273,25 @@ public Builder mergeFrom( case 10: { input.readMessage(getSourceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getTargetFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 18 case 24: { covered_ = input.readBool(); - + bitField0_ |= 0x00000008; break; } // case 24 case 32: { index_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 32 case 42: @@ -2324,6 +2338,8 @@ public Builder clearDetail() { return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode source_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode, @@ -2342,7 +2358,7 @@ public Builder clearDetail() { * @return Whether the source field is set. */ public boolean hasSource() { - return sourceBuilder_ != null || source_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -2381,11 +2397,11 @@ public Builder setSource( throw new NullPointerException(); } source_ = value; - onChanged(); } else { sourceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2402,11 +2418,11 @@ public Builder setSource( builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); - onChanged(); } else { sourceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2421,20 +2437,20 @@ public Builder setSource( public Builder mergeSource( com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode value) { if (sourceBuilder_ == null) { - if (source_ != null) { - source_ = - com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.newBuilder( - source_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && source_ != null + && source_ + != com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + .getDefaultInstance()) { + getSourceBuilder().mergeFrom(value); } else { source_ = value; } - onChanged(); } else { sourceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2447,14 +2463,13 @@ public Builder mergeSource( * .google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode source = 1; */ public Builder clearSource() { - if (sourceBuilder_ == null) { - source_ = null; - onChanged(); - } else { - source_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + source_ = null; + if (sourceBuilder_ != null) { + sourceBuilder_.dispose(); sourceBuilder_ = null; } - + onChanged(); return this; } /** @@ -2468,7 +2483,7 @@ public Builder clearSource() { */ public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.Builder getSourceBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getSourceFieldBuilder().getBuilder(); } @@ -2549,6 +2564,7 @@ public int getIndex() { public Builder setIndex(int value) { index_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2564,7 +2580,7 @@ public Builder setIndex(int value) { * @return This builder for chaining. */ public Builder clearIndex() { - + bitField0_ = (bitField0_ & ~0x00000002); index_ = 0; onChanged(); return this; @@ -2588,7 +2604,7 @@ public Builder clearIndex() { * @return Whether the target field is set. */ public boolean hasTarget() { - return targetBuilder_ != null || target_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -2627,11 +2643,11 @@ public Builder setTarget( throw new NullPointerException(); } target_ = value; - onChanged(); } else { targetBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2648,11 +2664,11 @@ public Builder setTarget( builderForValue) { if (targetBuilder_ == null) { target_ = builderForValue.build(); - onChanged(); } else { targetBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2667,20 +2683,20 @@ public Builder setTarget( public Builder mergeTarget( com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode value) { if (targetBuilder_ == null) { - if (target_ != null) { - target_ = - com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.newBuilder( - target_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && target_ != null + && target_ + != com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode + .getDefaultInstance()) { + getTargetBuilder().mergeFrom(value); } else { target_ = value; } - onChanged(); } else { targetBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2693,14 +2709,13 @@ public Builder mergeTarget( * .google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode target = 2; */ public Builder clearTarget() { - if (targetBuilder_ == null) { - target_ = null; - onChanged(); - } else { - target_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + target_ = null; + if (targetBuilder_ != null) { + targetBuilder_.dispose(); targetBuilder_ = null; } - + onChanged(); return this; } /** @@ -2714,7 +2729,7 @@ public Builder clearTarget() { */ public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.TransitionNode.Builder getTargetBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getTargetFieldBuilder().getBuilder(); } @@ -2797,6 +2812,7 @@ public boolean getCovered() { public Builder setCovered(boolean value) { covered_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2813,7 +2829,7 @@ public Builder setCovered(boolean value) { * @return This builder for chaining. */ public Builder clearCovered() { - + bitField0_ = (bitField0_ & ~0x00000008); covered_ = false; onChanged(); return this; @@ -3027,7 +3043,6 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder getTransitionRo } detailCase_ = 5; onChanged(); - ; return transitionRouteBuilder_; } @@ -3237,7 +3252,6 @@ public com.google.cloud.dialogflow.cx.v3.EventHandlerOrBuilder getEventHandlerOr } detailCase_ = 6; onChanged(); - ; return eventHandlerBuilder_; } @@ -3309,6 +3323,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int TRANSITIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List transitions_; /** @@ -3387,7 +3403,7 @@ public com.google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition getTransi } public static final int COVERAGE_SCORE_FIELD_NUMBER = 2; - private float coverageScore_; + private float coverageScore_ = 0F; /** * * @@ -3615,6 +3631,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (transitionsBuilder_ == null) { transitions_ = java.util.Collections.emptyList(); } else { @@ -3623,7 +3640,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); coverageScore_ = 0F; - return this; } @@ -3651,7 +3667,16 @@ public com.google.cloud.dialogflow.cx.v3.TransitionCoverage build() { public com.google.cloud.dialogflow.cx.v3.TransitionCoverage buildPartial() { com.google.cloud.dialogflow.cx.v3.TransitionCoverage result = new com.google.cloud.dialogflow.cx.v3.TransitionCoverage(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.TransitionCoverage result) { if (transitionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { transitions_ = java.util.Collections.unmodifiableList(transitions_); @@ -3661,9 +3686,13 @@ public com.google.cloud.dialogflow.cx.v3.TransitionCoverage buildPartial() { } else { result.transitions_ = transitionsBuilder_.build(); } - result.coverageScore_ = coverageScore_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TransitionCoverage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.coverageScore_ = coverageScore_; + } } @java.lang.Override @@ -3785,7 +3814,7 @@ public Builder mergeFrom( case 21: { coverageScore_ = input.readFloat(); - + bitField0_ |= 0x00000002; break; } // case 21 default: @@ -4225,6 +4254,7 @@ public float getCoverageScore() { public Builder setCoverageScore(float value) { coverageScore_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4240,7 +4270,7 @@ public Builder setCoverageScore(float value) { * @return This builder for chaining. */ public Builder clearCoverageScore() { - + bitField0_ = (bitField0_ & ~0x00000002); coverageScore_ = 0F; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRoute.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRoute.java index db115c2d0faf..cfd4a07ae8d6 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRoute.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRoute.java @@ -22,16 +22,21 @@ * * *
- * A transition route specifies a [intent][google.cloud.dialogflow.cx.v3.Intent] that can be matched and/or a
- * data condition that can be evaluated during a session. When a specified
- * transition is matched, the following actions are taken in order:
+ * A transition route specifies a [intent][google.cloud.dialogflow.cx.v3.Intent]
+ * that can be matched and/or a data condition that can be evaluated during a
+ * session. When a specified transition is matched, the following actions are
+ * taken in order:
  * *   If there is a
- * [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.TransitionRoute.trigger_fulfillment] associated with
- * the transition, it will be called.
- * *   If there is a [`target_page`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_page] associated
- * with the transition, the session will transition into the specified page.
- * *   If there is a [`target_flow`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_flow] associated
- * with the transition, the session will transition into the specified flow.
+ * [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.TransitionRoute.trigger_fulfillment]
+ * associated with the transition, it will be called.
+ * *   If there is a
+ * [`target_page`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_page]
+ * associated with the transition, the session will transition into the
+ * specified page.
+ * *   If there is a
+ * [`target_flow`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_flow]
+ * associated with the transition, the session will transition into the
+ * specified flow.
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.TransitionRoute} @@ -126,7 +131,9 @@ public TargetCase getTargetCase() { } public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -175,7 +182,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int INTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object intent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object intent_ = ""; /** * * @@ -238,13 +247,16 @@ public com.google.protobuf.ByteString getIntentBytes() { } public static final int CONDITION_FIELD_NUMBER = 2; - private volatile java.lang.Object condition_; + + @SuppressWarnings("serial") + private volatile java.lang.Object condition_ = ""; /** * * *
-   * The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or
-   * [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+   * The condition to evaluate against [form
+   * parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
+   * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
    * See the [conditions
    * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
    * At least one of `intent` or `condition` must be specified. When both
@@ -272,8 +284,9 @@ public java.lang.String getCondition() {
    *
    *
    * 
-   * The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or
-   * [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+   * The condition to evaluate against [form
+   * parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
+   * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
    * See the [conditions
    * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
    * At least one of `intent` or `condition` must be specified. When both
@@ -349,7 +362,9 @@ public com.google.cloud.dialogflow.cx.v3.Fulfillment getTriggerFulfillment() {
    */
   @java.lang.Override
   public com.google.cloud.dialogflow.cx.v3.FulfillmentOrBuilder getTriggerFulfillmentOrBuilder() {
-    return getTriggerFulfillment();
+    return triggerFulfillment_ == null
+        ? com.google.cloud.dialogflow.cx.v3.Fulfillment.getDefaultInstance()
+        : triggerFulfillment_;
   }
 
   public static final int TARGET_PAGE_FIELD_NUMBER = 4;
@@ -734,16 +749,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    *
    * 
-   * A transition route specifies a [intent][google.cloud.dialogflow.cx.v3.Intent] that can be matched and/or a
-   * data condition that can be evaluated during a session. When a specified
-   * transition is matched, the following actions are taken in order:
+   * A transition route specifies a [intent][google.cloud.dialogflow.cx.v3.Intent]
+   * that can be matched and/or a data condition that can be evaluated during a
+   * session. When a specified transition is matched, the following actions are
+   * taken in order:
    * *   If there is a
-   * [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.TransitionRoute.trigger_fulfillment] associated with
-   * the transition, it will be called.
-   * *   If there is a [`target_page`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_page] associated
-   * with the transition, the session will transition into the specified page.
-   * *   If there is a [`target_flow`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_flow] associated
-   * with the transition, the session will transition into the specified flow.
+   * [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.TransitionRoute.trigger_fulfillment]
+   * associated with the transition, it will be called.
+   * *   If there is a
+   * [`target_page`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_page]
+   * associated with the transition, the session will transition into the
+   * specified page.
+   * *   If there is a
+   * [`target_flow`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_flow]
+   * associated with the transition, the session will transition into the
+   * specified flow.
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.TransitionRoute} @@ -777,16 +797,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - intent_ = ""; - condition_ = ""; - - if (triggerFulfillmentBuilder_ == null) { - triggerFulfillment_ = null; - } else { - triggerFulfillment_ = null; + triggerFulfillment_ = null; + if (triggerFulfillmentBuilder_ != null) { + triggerFulfillmentBuilder_.dispose(); triggerFulfillmentBuilder_ = null; } targetCase_ = 0; @@ -818,23 +835,36 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute build() { public com.google.cloud.dialogflow.cx.v3.TransitionRoute buildPartial() { com.google.cloud.dialogflow.cx.v3.TransitionRoute result = new com.google.cloud.dialogflow.cx.v3.TransitionRoute(this); - result.name_ = name_; - result.intent_ = intent_; - result.condition_ = condition_; - if (triggerFulfillmentBuilder_ == null) { - result.triggerFulfillment_ = triggerFulfillment_; - } else { - result.triggerFulfillment_ = triggerFulfillmentBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (targetCase_ == 4) { - result.target_ = target_; + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TransitionRoute result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (targetCase_ == 5) { - result.target_ = target_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.intent_ = intent_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.condition_ = condition_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.triggerFulfillment_ = + triggerFulfillmentBuilder_ == null + ? triggerFulfillment_ + : triggerFulfillmentBuilder_.build(); } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.TransitionRoute result) { result.targetCase_ = targetCase_; - onBuilt(); - return result; + result.target_ = this.target_; } @java.lang.Override @@ -885,14 +915,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TransitionRoute other return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getIntent().isEmpty()) { intent_ = other.intent_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getCondition().isEmpty()) { condition_ = other.condition_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasTriggerFulfillment()) { @@ -947,20 +980,20 @@ public Builder mergeFrom( case 10: { intent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 10 case 18: { condition_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 18 case 26: { input.readMessage( getTriggerFulfillmentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 26 case 34: @@ -980,7 +1013,7 @@ public Builder mergeFrom( case 50: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 50 default: @@ -1014,6 +1047,8 @@ public Builder clearTarget() { return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -1075,8 +1110,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1092,8 +1127,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1114,8 +1149,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1202,8 +1237,8 @@ public Builder setIntent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - intent_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1226,8 +1261,8 @@ public Builder setIntent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearIntent() { - intent_ = getDefaultInstance().getIntent(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1255,8 +1290,8 @@ public Builder setIntentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - intent_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1266,8 +1301,9 @@ public Builder setIntentBytes(com.google.protobuf.ByteString value) { * * *
-     * The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or
-     * [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+     * The condition to evaluate against [form
+     * parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
+     * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
      * See the [conditions
      * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
      * At least one of `intent` or `condition` must be specified. When both
@@ -1294,8 +1330,9 @@ public java.lang.String getCondition() {
      *
      *
      * 
-     * The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or
-     * [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+     * The condition to evaluate against [form
+     * parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
+     * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
      * See the [conditions
      * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
      * At least one of `intent` or `condition` must be specified. When both
@@ -1322,8 +1359,9 @@ public com.google.protobuf.ByteString getConditionBytes() {
      *
      *
      * 
-     * The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or
-     * [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+     * The condition to evaluate against [form
+     * parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
+     * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
      * See the [conditions
      * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
      * At least one of `intent` or `condition` must be specified. When both
@@ -1340,8 +1378,8 @@ public Builder setCondition(java.lang.String value) {
       if (value == null) {
         throw new NullPointerException();
       }
-
       condition_ = value;
+      bitField0_ |= 0x00000004;
       onChanged();
       return this;
     }
@@ -1349,8 +1387,9 @@ public Builder setCondition(java.lang.String value) {
      *
      *
      * 
-     * The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or
-     * [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+     * The condition to evaluate against [form
+     * parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
+     * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
      * See the [conditions
      * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
      * At least one of `intent` or `condition` must be specified. When both
@@ -1363,8 +1402,8 @@ public Builder setCondition(java.lang.String value) {
      * @return This builder for chaining.
      */
     public Builder clearCondition() {
-
       condition_ = getDefaultInstance().getCondition();
+      bitField0_ = (bitField0_ & ~0x00000004);
       onChanged();
       return this;
     }
@@ -1372,8 +1411,9 @@ public Builder clearCondition() {
      *
      *
      * 
-     * The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or
-     * [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+     * The condition to evaluate against [form
+     * parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
+     * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
      * See the [conditions
      * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
      * At least one of `intent` or `condition` must be specified. When both
@@ -1391,8 +1431,8 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) {
         throw new NullPointerException();
       }
       checkByteStringIsUtf8(value);
-
       condition_ = value;
+      bitField0_ |= 0x00000004;
       onChanged();
       return this;
     }
@@ -1417,7 +1457,7 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) {
      * @return Whether the triggerFulfillment field is set.
      */
     public boolean hasTriggerFulfillment() {
-      return triggerFulfillmentBuilder_ != null || triggerFulfillment_ != null;
+      return ((bitField0_ & 0x00000008) != 0);
     }
     /**
      *
@@ -1458,11 +1498,11 @@ public Builder setTriggerFulfillment(com.google.cloud.dialogflow.cx.v3.Fulfillme
           throw new NullPointerException();
         }
         triggerFulfillment_ = value;
-        onChanged();
       } else {
         triggerFulfillmentBuilder_.setMessage(value);
       }
-
+      bitField0_ |= 0x00000008;
+      onChanged();
       return this;
     }
     /**
@@ -1480,11 +1520,11 @@ public Builder setTriggerFulfillment(
         com.google.cloud.dialogflow.cx.v3.Fulfillment.Builder builderForValue) {
       if (triggerFulfillmentBuilder_ == null) {
         triggerFulfillment_ = builderForValue.build();
-        onChanged();
       } else {
         triggerFulfillmentBuilder_.setMessage(builderForValue.build());
       }
-
+      bitField0_ |= 0x00000008;
+      onChanged();
       return this;
     }
     /**
@@ -1500,19 +1540,19 @@ public Builder setTriggerFulfillment(
      */
     public Builder mergeTriggerFulfillment(com.google.cloud.dialogflow.cx.v3.Fulfillment value) {
       if (triggerFulfillmentBuilder_ == null) {
-        if (triggerFulfillment_ != null) {
-          triggerFulfillment_ =
-              com.google.cloud.dialogflow.cx.v3.Fulfillment.newBuilder(triggerFulfillment_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (((bitField0_ & 0x00000008) != 0)
+            && triggerFulfillment_ != null
+            && triggerFulfillment_
+                != com.google.cloud.dialogflow.cx.v3.Fulfillment.getDefaultInstance()) {
+          getTriggerFulfillmentBuilder().mergeFrom(value);
         } else {
           triggerFulfillment_ = value;
         }
-        onChanged();
       } else {
         triggerFulfillmentBuilder_.mergeFrom(value);
       }
-
+      bitField0_ |= 0x00000008;
+      onChanged();
       return this;
     }
     /**
@@ -1527,14 +1567,13 @@ public Builder mergeTriggerFulfillment(com.google.cloud.dialogflow.cx.v3.Fulfill
      * .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 3;
      */
     public Builder clearTriggerFulfillment() {
-      if (triggerFulfillmentBuilder_ == null) {
-        triggerFulfillment_ = null;
-        onChanged();
-      } else {
-        triggerFulfillment_ = null;
+      bitField0_ = (bitField0_ & ~0x00000008);
+      triggerFulfillment_ = null;
+      if (triggerFulfillmentBuilder_ != null) {
+        triggerFulfillmentBuilder_.dispose();
         triggerFulfillmentBuilder_ = null;
       }
-
+      onChanged();
       return this;
     }
     /**
@@ -1549,7 +1588,7 @@ public Builder clearTriggerFulfillment() {
      * .google.cloud.dialogflow.cx.v3.Fulfillment trigger_fulfillment = 3;
      */
     public com.google.cloud.dialogflow.cx.v3.Fulfillment.Builder getTriggerFulfillmentBuilder() {
-
+      bitField0_ |= 0x00000008;
       onChanged();
       return getTriggerFulfillmentFieldBuilder().getBuilder();
     }
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroup.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroup.java
index 6377f281bf8d..03630d9f8fd7 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroup.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroup.java
@@ -23,7 +23,8 @@
  *
  * 
  * An TransitionRouteGroup represents a group of
- * [`TransitionRoutes`][google.cloud.dialogflow.cx.v3.TransitionRoute] to be used by a [Page][google.cloud.dialogflow.cx.v3.Page].
+ * [`TransitionRoutes`][google.cloud.dialogflow.cx.v3.TransitionRoute] to be
+ * used by a [Page][google.cloud.dialogflow.cx.v3.Page].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.TransitionRouteGroup} @@ -71,16 +72,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * *
    * The unique identifier of the transition route group.
-   * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup] populates the name
-   * automatically.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+   * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
+   * populates the name automatically. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
+   * ID>/transitionRouteGroups/<Transition Route Group ID>`.
    * 
* * string name = 1; @@ -104,10 +107,10 @@ public java.lang.String getName() { * *
    * The unique identifier of the transition route group.
-   * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup] populates the name
-   * automatically.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+   * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
+   * populates the name automatically. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
+   * ID>/transitionRouteGroups/<Transition Route Group ID>`.
    * 
* * string name = 1; @@ -128,13 +131,15 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * *
-   * Required. The human-readable name of the transition route group, unique within
-   * the flow. The display name can be no longer than 30 characters.
+   * Required. The human-readable name of the transition route group, unique
+   * within the flow. The display name can be no longer than 30 characters.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -157,8 +162,8 @@ public java.lang.String getDisplayName() { * * *
-   * Required. The human-readable name of the transition route group, unique within
-   * the flow. The display name can be no longer than 30 characters.
+   * Required. The human-readable name of the transition route group, unique
+   * within the flow. The display name can be no longer than 30 characters.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -179,12 +184,15 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int TRANSITION_ROUTES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private java.util.List transitionRoutes_; /** * * *
-   * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+   * Transition routes associated with the
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -198,7 +206,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+   * Transition routes associated with the
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -212,7 +221,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-   * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+   * Transition routes associated with the
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -225,7 +235,8 @@ public int getTransitionRoutesCount() { * * *
-   * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+   * Transition routes associated with the
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -238,7 +249,8 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute getTransitionRoutes(int * * *
-   * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+   * Transition routes associated with the
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -434,7 +446,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * *
    * An TransitionRouteGroup represents a group of
-   * [`TransitionRoutes`][google.cloud.dialogflow.cx.v3.TransitionRoute] to be used by a [Page][google.cloud.dialogflow.cx.v3.Page].
+   * [`TransitionRoutes`][google.cloud.dialogflow.cx.v3.TransitionRoute] to be
+   * used by a [Page][google.cloud.dialogflow.cx.v3.Page].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.TransitionRouteGroup} @@ -468,17 +481,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - if (transitionRoutesBuilder_ == null) { transitionRoutes_ = java.util.Collections.emptyList(); } else { transitionRoutes_ = null; transitionRoutesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -506,20 +518,35 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup build() { public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup buildPartial() { com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup result = new com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup result) { if (transitionRoutesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { transitionRoutes_ = java.util.Collections.unmodifiableList(transitionRoutes_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.transitionRoutes_ = transitionRoutes_; } else { result.transitionRoutes_ = transitionRoutesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } } @java.lang.Override @@ -570,17 +597,19 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (transitionRoutesBuilder_ == null) { if (!other.transitionRoutes_.isEmpty()) { if (transitionRoutes_.isEmpty()) { transitionRoutes_ = other.transitionRoutes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTransitionRoutesIsMutable(); transitionRoutes_.addAll(other.transitionRoutes_); @@ -593,7 +622,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup transitionRoutesBuilder_.dispose(); transitionRoutesBuilder_ = null; transitionRoutes_ = other.transitionRoutes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); transitionRoutesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransitionRoutesFieldBuilder() @@ -632,13 +661,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 42: @@ -680,10 +709,10 @@ public Builder mergeFrom( * *
      * The unique identifier of the transition route group.
-     * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup] populates the name
-     * automatically.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+     * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
+     * populates the name automatically. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
+     * ID>/transitionRouteGroups/<Transition Route Group ID>`.
      * 
* * string name = 1; @@ -706,10 +735,10 @@ public java.lang.String getName() { * *
      * The unique identifier of the transition route group.
-     * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup] populates the name
-     * automatically.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+     * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
+     * populates the name automatically. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
+     * ID>/transitionRouteGroups/<Transition Route Group ID>`.
      * 
* * string name = 1; @@ -732,10 +761,10 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * The unique identifier of the transition route group.
-     * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup] populates the name
-     * automatically.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+     * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
+     * populates the name automatically. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
+     * ID>/transitionRouteGroups/<Transition Route Group ID>`.
      * 
* * string name = 1; @@ -747,8 +776,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -757,10 +786,10 @@ public Builder setName(java.lang.String value) { * *
      * The unique identifier of the transition route group.
-     * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup] populates the name
-     * automatically.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+     * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
+     * populates the name automatically. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
+     * ID>/transitionRouteGroups/<Transition Route Group ID>`.
      * 
* * string name = 1; @@ -768,8 +797,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -778,10 +807,10 @@ public Builder clearName() { * *
      * The unique identifier of the transition route group.
-     * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup] populates the name
-     * automatically.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+     * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
+     * populates the name automatically. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
+     * ID>/transitionRouteGroups/<Transition Route Group ID>`.
      * 
* * string name = 1; @@ -794,8 +823,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -805,8 +834,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The human-readable name of the transition route group, unique within
-     * the flow. The display name can be no longer than 30 characters.
+     * Required. The human-readable name of the transition route group, unique
+     * within the flow. The display name can be no longer than 30 characters.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -828,8 +857,8 @@ public java.lang.String getDisplayName() { * * *
-     * Required. The human-readable name of the transition route group, unique within
-     * the flow. The display name can be no longer than 30 characters.
+     * Required. The human-readable name of the transition route group, unique
+     * within the flow. The display name can be no longer than 30 characters.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -851,8 +880,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-     * Required. The human-readable name of the transition route group, unique within
-     * the flow. The display name can be no longer than 30 characters.
+     * Required. The human-readable name of the transition route group, unique
+     * within the flow. The display name can be no longer than 30 characters.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -864,8 +893,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -873,8 +902,8 @@ public Builder setDisplayName(java.lang.String value) { * * *
-     * Required. The human-readable name of the transition route group, unique within
-     * the flow. The display name can be no longer than 30 characters.
+     * Required. The human-readable name of the transition route group, unique
+     * within the flow. The display name can be no longer than 30 characters.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -882,8 +911,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -891,8 +920,8 @@ public Builder clearDisplayName() { * * *
-     * Required. The human-readable name of the transition route group, unique within
-     * the flow. The display name can be no longer than 30 characters.
+     * Required. The human-readable name of the transition route group, unique
+     * within the flow. The display name can be no longer than 30 characters.
      * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -905,8 +934,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -915,11 +944,11 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureTransitionRoutesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { transitionRoutes_ = new java.util.ArrayList( transitionRoutes_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -933,7 +962,8 @@ private void ensureTransitionRoutesIsMutable() { * * *
-     * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Transition routes associated with the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -950,7 +980,8 @@ private void ensureTransitionRoutesIsMutable() { * * *
-     * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Transition routes associated with the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -966,7 +997,8 @@ public int getTransitionRoutesCount() { * * *
-     * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Transition routes associated with the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -982,7 +1014,8 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute getTransitionRoutes(int * * *
-     * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Transition routes associated with the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -1005,7 +1038,8 @@ public Builder setTransitionRoutes( * * *
-     * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Transition routes associated with the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -1025,7 +1059,8 @@ public Builder setTransitionRoutes( * * *
-     * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Transition routes associated with the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -1047,7 +1082,8 @@ public Builder addTransitionRoutes(com.google.cloud.dialogflow.cx.v3.TransitionR * * *
-     * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Transition routes associated with the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -1070,7 +1106,8 @@ public Builder addTransitionRoutes( * * *
-     * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Transition routes associated with the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -1090,7 +1127,8 @@ public Builder addTransitionRoutes( * * *
-     * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Transition routes associated with the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -1110,7 +1148,8 @@ public Builder addTransitionRoutes( * * *
-     * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Transition routes associated with the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -1130,7 +1169,8 @@ public Builder addAllTransitionRoutes( * * *
-     * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Transition routes associated with the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -1138,7 +1178,7 @@ public Builder addAllTransitionRoutes( public Builder clearTransitionRoutes() { if (transitionRoutesBuilder_ == null) { transitionRoutes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { transitionRoutesBuilder_.clear(); @@ -1149,7 +1189,8 @@ public Builder clearTransitionRoutes() { * * *
-     * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Transition routes associated with the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -1168,7 +1209,8 @@ public Builder removeTransitionRoutes(int index) { * * *
-     * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Transition routes associated with the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -1181,7 +1223,8 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder getTransitionRo * * *
-     * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Transition routes associated with the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -1198,7 +1241,8 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionR * * *
-     * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Transition routes associated with the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -1215,7 +1259,8 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionR * * *
-     * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Transition routes associated with the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -1228,7 +1273,8 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder addTransitionRo * * *
-     * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Transition routes associated with the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -1243,7 +1289,8 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder addTransitionRo * * *
-     * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+     * Transition routes associated with the
+     * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
      * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -1265,7 +1312,7 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder addTransitionRo com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder, com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder>( transitionRoutes_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); transitionRoutes_ = null; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupCoverage.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupCoverage.java index 0b1c04edb055..4c21c5e1ca53 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupCoverage.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupCoverage.java @@ -392,11 +392,13 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRoute getTransitionRoute() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteOrBuilder getTransitionRouteOrBuilder() { - return getTransitionRoute(); + return transitionRoute_ == null + ? com.google.cloud.dialogflow.cx.v3.TransitionRoute.getDefaultInstance() + : transitionRoute_; } public static final int COVERED_FIELD_NUMBER = 2; - private boolean covered_; + private boolean covered_ = false; /** * * @@ -657,14 +659,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (transitionRouteBuilder_ == null) { - transitionRoute_ = null; - } else { - transitionRoute_ = null; + bitField0_ = 0; + transitionRoute_ = null; + if (transitionRouteBuilder_ != null) { + transitionRouteBuilder_.dispose(); transitionRouteBuilder_ = null; } covered_ = false; - return this; } @@ -699,16 +700,28 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .Transition(this); - if (transitionRouteBuilder_ == null) { - result.transitionRoute_ = transitionRoute_; - } else { - result.transitionRoute_ = transitionRouteBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.covered_ = covered_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.transitionRoute_ = + transitionRouteBuilder_ == null + ? transitionRoute_ + : transitionRouteBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.covered_ = covered_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -800,13 +813,13 @@ public Builder mergeFrom( { input.readMessage( getTransitionRouteFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { covered_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -826,6 +839,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.TransitionRoute transitionRoute_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TransitionRoute, @@ -844,7 +859,7 @@ public Builder mergeFrom( * @return Whether the transitionRoute field is set. */ public boolean hasTransitionRoute() { - return transitionRouteBuilder_ != null || transitionRoute_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -881,11 +896,11 @@ public Builder setTransitionRoute(com.google.cloud.dialogflow.cx.v3.TransitionRo throw new NullPointerException(); } transitionRoute_ = value; - onChanged(); } else { transitionRouteBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -901,11 +916,11 @@ public Builder setTransitionRoute( com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder builderForValue) { if (transitionRouteBuilder_ == null) { transitionRoute_ = builderForValue.build(); - onChanged(); } else { transitionRouteBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -920,19 +935,19 @@ public Builder setTransitionRoute( public Builder mergeTransitionRoute( com.google.cloud.dialogflow.cx.v3.TransitionRoute value) { if (transitionRouteBuilder_ == null) { - if (transitionRoute_ != null) { - transitionRoute_ = - com.google.cloud.dialogflow.cx.v3.TransitionRoute.newBuilder(transitionRoute_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && transitionRoute_ != null + && transitionRoute_ + != com.google.cloud.dialogflow.cx.v3.TransitionRoute.getDefaultInstance()) { + getTransitionRouteBuilder().mergeFrom(value); } else { transitionRoute_ = value; } - onChanged(); } else { transitionRouteBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -945,14 +960,13 @@ public Builder mergeTransitionRoute( * .google.cloud.dialogflow.cx.v3.TransitionRoute transition_route = 1; */ public Builder clearTransitionRoute() { - if (transitionRouteBuilder_ == null) { - transitionRoute_ = null; - onChanged(); - } else { - transitionRoute_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + transitionRoute_ = null; + if (transitionRouteBuilder_ != null) { + transitionRouteBuilder_.dispose(); transitionRouteBuilder_ = null; } - + onChanged(); return this; } /** @@ -966,7 +980,7 @@ public Builder clearTransitionRoute() { */ public com.google.cloud.dialogflow.cx.v3.TransitionRoute.Builder getTransitionRouteBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getTransitionRouteFieldBuilder().getBuilder(); } @@ -1048,6 +1062,7 @@ public boolean getCovered() { public Builder setCovered(boolean value) { covered_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1064,7 +1079,7 @@ public Builder setCovered(boolean value) { * @return This builder for chaining. */ public Builder clearCovered() { - + bitField0_ = (bitField0_ & ~0x00000002); covered_ = false; onChanged(); return this; @@ -1187,10 +1202,14 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup getRouteGroup() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupOrBuilder getRouteGroupOrBuilder() { - return getRouteGroup(); + return routeGroup_ == null + ? com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.getDefaultInstance() + : routeGroup_; } public static final int TRANSITIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage.Transition> transitions_; @@ -1280,7 +1299,7 @@ public int getTransitionsCount() { } public static final int COVERAGE_SCORE_FIELD_NUMBER = 3; - private float coverageScore_; + private float coverageScore_ = 0F; /** * * @@ -1528,10 +1547,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (routeGroupBuilder_ == null) { - routeGroup_ = null; - } else { - routeGroup_ = null; + bitField0_ = 0; + routeGroup_ = null; + if (routeGroupBuilder_ != null) { + routeGroupBuilder_.dispose(); routeGroupBuilder_ = null; } if (transitionsBuilder_ == null) { @@ -1540,9 +1559,8 @@ public Builder clear() { transitions_ = null; transitionsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); coverageScore_ = 0F; - return this; } @@ -1574,24 +1592,37 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage b buildPartial() { com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage result = new com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage(this); - int from_bitField0_ = bitField0_; - if (routeGroupBuilder_ == null) { - result.routeGroup_ = routeGroup_; - } else { - result.routeGroup_ = routeGroupBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage result) { if (transitionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { transitions_ = java.util.Collections.unmodifiableList(transitions_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.transitions_ = transitions_; } else { result.transitions_ = transitionsBuilder_.build(); } - result.coverageScore_ = coverageScore_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.routeGroup_ = + routeGroupBuilder_ == null ? routeGroup_ : routeGroupBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.coverageScore_ = coverageScore_; + } } @java.lang.Override @@ -1653,7 +1684,7 @@ public Builder mergeFrom( if (!other.transitions_.isEmpty()) { if (transitions_.isEmpty()) { transitions_ = other.transitions_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTransitionsIsMutable(); transitions_.addAll(other.transitions_); @@ -1666,7 +1697,7 @@ public Builder mergeFrom( transitionsBuilder_.dispose(); transitionsBuilder_ = null; transitions_ = other.transitions_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); transitionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransitionsFieldBuilder() @@ -1708,7 +1739,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getRouteGroupFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -1730,7 +1761,7 @@ public Builder mergeFrom( case 29: { coverageScore_ = input.readFloat(); - + bitField0_ |= 0x00000004; break; } // case 29 default: @@ -1770,7 +1801,7 @@ public Builder mergeFrom( * @return Whether the routeGroup field is set. */ public boolean hasRouteGroup() { - return routeGroupBuilder_ != null || routeGroup_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1807,11 +1838,11 @@ public Builder setRouteGroup(com.google.cloud.dialogflow.cx.v3.TransitionRouteGr throw new NullPointerException(); } routeGroup_ = value; - onChanged(); } else { routeGroupBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1827,11 +1858,11 @@ public Builder setRouteGroup( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.Builder builderForValue) { if (routeGroupBuilder_ == null) { routeGroup_ = builderForValue.build(); - onChanged(); } else { routeGroupBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1845,19 +1876,19 @@ public Builder setRouteGroup( */ public Builder mergeRouteGroup(com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup value) { if (routeGroupBuilder_ == null) { - if (routeGroup_ != null) { - routeGroup_ = - com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.newBuilder(routeGroup_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && routeGroup_ != null + && routeGroup_ + != com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.getDefaultInstance()) { + getRouteGroupBuilder().mergeFrom(value); } else { routeGroup_ = value; } - onChanged(); } else { routeGroupBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1870,14 +1901,13 @@ public Builder mergeRouteGroup(com.google.cloud.dialogflow.cx.v3.TransitionRoute * .google.cloud.dialogflow.cx.v3.TransitionRouteGroup route_group = 1; */ public Builder clearRouteGroup() { - if (routeGroupBuilder_ == null) { - routeGroup_ = null; - onChanged(); - } else { - routeGroup_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + routeGroup_ = null; + if (routeGroupBuilder_ != null) { + routeGroupBuilder_.dispose(); routeGroupBuilder_ = null; } - + onChanged(); return this; } /** @@ -1890,7 +1920,7 @@ public Builder clearRouteGroup() { * .google.cloud.dialogflow.cx.v3.TransitionRouteGroup route_group = 1; */ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.Builder getRouteGroupBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getRouteGroupFieldBuilder().getBuilder(); } @@ -1944,12 +1974,12 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.Builder getRouteGr transitions_ = java.util.Collections.emptyList(); private void ensureTransitionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { transitions_ = new java.util.ArrayList< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .Transition>(transitions_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -2209,7 +2239,7 @@ public Builder addAllTransitions( public Builder clearTransitions() { if (transitionsBuilder_ == null) { transitions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { transitionsBuilder_.clear(); @@ -2369,7 +2399,7 @@ public Builder removeTransitions(int index) { com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage .TransitionOrBuilder>( transitions_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); transitions_ = null; @@ -2410,6 +2440,7 @@ public float getCoverageScore() { public Builder setCoverageScore(float value) { coverageScore_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2426,7 +2457,7 @@ public Builder setCoverageScore(float value) { * @return This builder for chaining. */ public Builder clearCoverageScore() { - + bitField0_ = (bitField0_ & ~0x00000004); coverageScore_ = 0F; onChanged(); return this; @@ -2501,6 +2532,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int COVERAGES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List coverages_; /** @@ -2586,7 +2619,7 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage.Coverage g } public static final int COVERAGE_SCORE_FIELD_NUMBER = 2; - private float coverageScore_; + private float coverageScore_ = 0F; /** * * @@ -2816,6 +2849,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (coveragesBuilder_ == null) { coverages_ = java.util.Collections.emptyList(); } else { @@ -2824,7 +2858,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); coverageScore_ = 0F; - return this; } @@ -2853,7 +2886,16 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage build() { public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage buildPartial() { com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage result = new com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage result) { if (coveragesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { coverages_ = java.util.Collections.unmodifiableList(coverages_); @@ -2863,9 +2905,14 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage buildParti } else { result.coverages_ = coveragesBuilder_.build(); } - result.coverageScore_ = coverageScore_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupCoverage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.coverageScore_ = coverageScore_; + } } @java.lang.Override @@ -2989,7 +3036,7 @@ public Builder mergeFrom( case 21: { coverageScore_ = input.readFloat(); - + bitField0_ |= 0x00000002; break; } // case 21 default: @@ -3457,6 +3504,7 @@ public float getCoverageScore() { public Builder setCoverageScore(float value) { coverageScore_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3473,7 +3521,7 @@ public Builder setCoverageScore(float value) { * @return This builder for chaining. */ public Builder clearCoverageScore() { - + bitField0_ = (bitField0_ & ~0x00000002); coverageScore_ = 0F; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupOrBuilder.java index 718ae7240856..051b70458d72 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupOrBuilder.java @@ -28,10 +28,10 @@ public interface TransitionRouteGroupOrBuilder * *
    * The unique identifier of the transition route group.
-   * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup] populates the name
-   * automatically.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+   * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
+   * populates the name automatically. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
+   * ID>/transitionRouteGroups/<Transition Route Group ID>`.
    * 
* * string name = 1; @@ -44,10 +44,10 @@ public interface TransitionRouteGroupOrBuilder * *
    * The unique identifier of the transition route group.
-   * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup] populates the name
-   * automatically.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
+   * [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]
+   * populates the name automatically. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
+   * ID>/transitionRouteGroups/<Transition Route Group ID>`.
    * 
* * string name = 1; @@ -60,8 +60,8 @@ public interface TransitionRouteGroupOrBuilder * * *
-   * Required. The human-readable name of the transition route group, unique within
-   * the flow. The display name can be no longer than 30 characters.
+   * Required. The human-readable name of the transition route group, unique
+   * within the flow. The display name can be no longer than 30 characters.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -73,8 +73,8 @@ public interface TransitionRouteGroupOrBuilder * * *
-   * Required. The human-readable name of the transition route group, unique within
-   * the flow. The display name can be no longer than 30 characters.
+   * Required. The human-readable name of the transition route group, unique
+   * within the flow. The display name can be no longer than 30 characters.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -87,7 +87,8 @@ public interface TransitionRouteGroupOrBuilder * * *
-   * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+   * Transition routes associated with the
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -97,7 +98,8 @@ public interface TransitionRouteGroupOrBuilder * * *
-   * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+   * Transition routes associated with the
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -107,7 +109,8 @@ public interface TransitionRouteGroupOrBuilder * * *
-   * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+   * Transition routes associated with the
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -117,7 +120,8 @@ public interface TransitionRouteGroupOrBuilder * * *
-   * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+   * Transition routes associated with the
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; @@ -128,7 +132,8 @@ public interface TransitionRouteGroupOrBuilder * * *
-   * Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
+   * Transition routes associated with the
+   * [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
    * 
* * repeated .google.cloud.dialogflow.cx.v3.TransitionRoute transition_routes = 5; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupProto.java index c08086a59509..bfe1246fb165 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupProto.java @@ -140,13 +140,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/transitionRouteGroups/*}\332A\004name\032x\312A\031dia" + "logflow.googleapis.com\322AYhttps://www.goo" + "gleapis.com/auth/cloud-platform,https://" - + "www.googleapis.com/auth/dialogflowB\315\001\n!c" + + "www.googleapis.com/auth/dialogflowB\277\001\n!c" + "om.google.cloud.dialogflow.cx.v3B\031Transi" - + "tionRouteGroupProtoP\001Z?google.golang.org" - + "/genproto/googleapis/cloud/dialogflow/cx" - + "/v3;cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow" - + ".Cx.V3\352\002!Google::Cloud::Dialogflow::CX::" - + "V3b\006proto3" + + "tionRouteGroupProtoP\001Z1cloud.google.com/" + + "go/dialogflow/cx/apiv3/cxpb;cxpb\370\001\001\242\002\002DF" + + "\252\002\035Google.Cloud.Dialogflow.Cx.V3\352\002!Googl" + + "e::Cloud::Dialogflow::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteOrBuilder.java index 564036c10cab..2a28fdf6a75c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteOrBuilder.java @@ -91,8 +91,9 @@ public interface TransitionRouteOrBuilder * * *
-   * The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or
-   * [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+   * The condition to evaluate against [form
+   * parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
+   * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
    * See the [conditions
    * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
    * At least one of `intent` or `condition` must be specified. When both
@@ -109,8 +110,9 @@ public interface TransitionRouteOrBuilder
    *
    *
    * 
-   * The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or
-   * [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
+   * The condition to evaluate against [form
+   * parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
+   * parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
    * See the [conditions
    * reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
    * At least one of `intent` or `condition` must be specified. When both
diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateAgentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateAgentRequest.java
index f23944faca87..8787f7eb7ea1 100644
--- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateAgentRequest.java
+++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateAgentRequest.java
@@ -22,7 +22,8 @@
  *
  *
  * 
- * The request message for [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent].
+ * The request message for
+ * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateAgentRequest} @@ -111,7 +112,7 @@ public com.google.cloud.dialogflow.cx.v3.Agent getAgent() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.AgentOrBuilder getAgentOrBuilder() { - return getAgent(); + return agent_ == null ? com.google.cloud.dialogflow.cx.v3.Agent.getDefaultInstance() : agent_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -160,7 +161,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -345,7 +346,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent].
+   * The request message for
+   * [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateAgentRequest} @@ -379,16 +381,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (agentBuilder_ == null) { - agent_ = null; - } else { - agent_ = null; + bitField0_ = 0; + agent_ = null; + if (agentBuilder_ != null) { + agentBuilder_.dispose(); agentBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -418,20 +419,23 @@ public com.google.cloud.dialogflow.cx.v3.UpdateAgentRequest build() { public com.google.cloud.dialogflow.cx.v3.UpdateAgentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.UpdateAgentRequest result = new com.google.cloud.dialogflow.cx.v3.UpdateAgentRequest(this); - if (agentBuilder_ == null) { - result.agent_ = agent_; - } else { - result.agent_ = agentBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.UpdateAgentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agent_ = agentBuilder_ == null ? agent_ : agentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -513,13 +517,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getAgentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -539,6 +543,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.Agent agent_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.Agent, @@ -559,7 +565,7 @@ public Builder mergeFrom( * @return Whether the agent field is set. */ public boolean hasAgent() { - return agentBuilder_ != null || agent_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -600,11 +606,11 @@ public Builder setAgent(com.google.cloud.dialogflow.cx.v3.Agent value) { throw new NullPointerException(); } agent_ = value; - onChanged(); } else { agentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -621,11 +627,11 @@ public Builder setAgent(com.google.cloud.dialogflow.cx.v3.Agent value) { public Builder setAgent(com.google.cloud.dialogflow.cx.v3.Agent.Builder builderForValue) { if (agentBuilder_ == null) { agent_ = builderForValue.build(); - onChanged(); } else { agentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -641,19 +647,18 @@ public Builder setAgent(com.google.cloud.dialogflow.cx.v3.Agent.Builder builderF */ public Builder mergeAgent(com.google.cloud.dialogflow.cx.v3.Agent value) { if (agentBuilder_ == null) { - if (agent_ != null) { - agent_ = - com.google.cloud.dialogflow.cx.v3.Agent.newBuilder(agent_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && agent_ != null + && agent_ != com.google.cloud.dialogflow.cx.v3.Agent.getDefaultInstance()) { + getAgentBuilder().mergeFrom(value); } else { agent_ = value; } - onChanged(); } else { agentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -668,14 +673,13 @@ public Builder mergeAgent(com.google.cloud.dialogflow.cx.v3.Agent value) { * */ public Builder clearAgent() { - if (agentBuilder_ == null) { - agent_ = null; - onChanged(); - } else { - agent_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + agent_ = null; + if (agentBuilder_ != null) { + agentBuilder_.dispose(); agentBuilder_ = null; } - + onChanged(); return this; } /** @@ -690,7 +694,7 @@ public Builder clearAgent() { * */ public com.google.cloud.dialogflow.cx.v3.Agent.Builder getAgentBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getAgentFieldBuilder().getBuilder(); } @@ -761,7 +765,7 @@ public com.google.cloud.dialogflow.cx.v3.AgentOrBuilder getAgentOrBuilder() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -800,11 +804,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -820,11 +824,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -839,17 +843,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -863,14 +868,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -884,7 +888,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateEntityTypeRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateEntityTypeRequest.java index 0d24af5ca143..a0f070bd9ffd 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateEntityTypeRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateEntityTypeRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
+ * The request message for
+ * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest} @@ -118,11 +119,15 @@ public com.google.cloud.dialogflow.cx.v3.EntityType getEntityType() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.EntityTypeOrBuilder getEntityTypeOrBuilder() { - return getEntityType(); + return entityType_ == null + ? com.google.cloud.dialogflow.cx.v3.EntityType.getDefaultInstance() + : entityType_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -229,7 +234,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -424,7 +429,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
+   * The request message for
+   * [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest} @@ -458,18 +464,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (entityTypeBuilder_ == null) { - entityType_ = null; - } else { - entityType_ = null; + bitField0_ = 0; + entityType_ = null; + if (entityTypeBuilder_ != null) { + entityTypeBuilder_.dispose(); entityTypeBuilder_ = null; } languageCode_ = ""; - - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -499,21 +503,26 @@ public com.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest build() { public com.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest result = new com.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest(this); - if (entityTypeBuilder_ == null) { - result.entityType_ = entityType_; - } else { - result.entityType_ = entityTypeBuilder_.build(); - } - result.languageCode_ = languageCode_; - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.UpdateEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityType_ = entityTypeBuilder_ == null ? entityType_ : entityTypeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -565,6 +574,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.UpdateEntityTypeReque } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasUpdateMask()) { @@ -599,19 +609,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getEntityTypeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -631,6 +641,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.EntityType entityType_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.EntityType, @@ -651,7 +663,7 @@ public Builder mergeFrom( * @return Whether the entityType field is set. */ public boolean hasEntityType() { - return entityTypeBuilder_ != null || entityType_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -692,11 +704,11 @@ public Builder setEntityType(com.google.cloud.dialogflow.cx.v3.EntityType value) throw new NullPointerException(); } entityType_ = value; - onChanged(); } else { entityTypeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -714,11 +726,11 @@ public Builder setEntityType( com.google.cloud.dialogflow.cx.v3.EntityType.Builder builderForValue) { if (entityTypeBuilder_ == null) { entityType_ = builderForValue.build(); - onChanged(); } else { entityTypeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -734,19 +746,18 @@ public Builder setEntityType( */ public Builder mergeEntityType(com.google.cloud.dialogflow.cx.v3.EntityType value) { if (entityTypeBuilder_ == null) { - if (entityType_ != null) { - entityType_ = - com.google.cloud.dialogflow.cx.v3.EntityType.newBuilder(entityType_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && entityType_ != null + && entityType_ != com.google.cloud.dialogflow.cx.v3.EntityType.getDefaultInstance()) { + getEntityTypeBuilder().mergeFrom(value); } else { entityType_ = value; } - onChanged(); } else { entityTypeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -761,14 +772,13 @@ public Builder mergeEntityType(com.google.cloud.dialogflow.cx.v3.EntityType valu * */ public Builder clearEntityType() { - if (entityTypeBuilder_ == null) { - entityType_ = null; - onChanged(); - } else { - entityType_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + entityType_ = null; + if (entityTypeBuilder_ != null) { + entityTypeBuilder_.dispose(); entityTypeBuilder_ = null; } - + onChanged(); return this; } /** @@ -783,7 +793,7 @@ public Builder clearEntityType() { * */ public com.google.cloud.dialogflow.cx.v3.EntityType.Builder getEntityTypeBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getEntityTypeFieldBuilder().getBuilder(); } @@ -920,8 +930,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -945,8 +955,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -975,8 +985,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -999,7 +1009,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1036,11 +1046,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1055,11 +1065,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1073,17 +1083,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1096,14 +1107,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 3; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1116,7 +1126,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 3; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateEnvironmentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateEnvironmentRequest.java index 145a79978ef0..6dcfc7b6b554 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateEnvironmentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateEnvironmentRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Environments.UpdateEnvironment][google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironment].
+ * The request message for
+ * [Environments.UpdateEnvironment][google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironment].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest} @@ -116,7 +117,9 @@ public com.google.cloud.dialogflow.cx.v3.Environment getEnvironment() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder getEnvironmentOrBuilder() { - return getEnvironment(); + return environment_ == null + ? com.google.cloud.dialogflow.cx.v3.Environment.getDefaultInstance() + : environment_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -165,7 +168,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -351,7 +354,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Environments.UpdateEnvironment][google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironment].
+   * The request message for
+   * [Environments.UpdateEnvironment][google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironment].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest} @@ -385,16 +389,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (environmentBuilder_ == null) { - environment_ = null; - } else { - environment_ = null; + bitField0_ = 0; + environment_ = null; + if (environmentBuilder_ != null) { + environmentBuilder_.dispose(); environmentBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -424,20 +427,24 @@ public com.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest build() { public com.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest result = new com.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest(this); - if (environmentBuilder_ == null) { - result.environment_ = environment_; - } else { - result.environment_ = environmentBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.UpdateEnvironmentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.environment_ = + environmentBuilder_ == null ? environment_ : environmentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -519,13 +526,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getEnvironmentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -545,6 +552,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.Environment environment_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.Environment, @@ -565,7 +574,7 @@ public Builder mergeFrom( * @return Whether the environment field is set. */ public boolean hasEnvironment() { - return environmentBuilder_ != null || environment_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -606,11 +615,11 @@ public Builder setEnvironment(com.google.cloud.dialogflow.cx.v3.Environment valu throw new NullPointerException(); } environment_ = value; - onChanged(); } else { environmentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -628,11 +637,11 @@ public Builder setEnvironment( com.google.cloud.dialogflow.cx.v3.Environment.Builder builderForValue) { if (environmentBuilder_ == null) { environment_ = builderForValue.build(); - onChanged(); } else { environmentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -648,19 +657,18 @@ public Builder setEnvironment( */ public Builder mergeEnvironment(com.google.cloud.dialogflow.cx.v3.Environment value) { if (environmentBuilder_ == null) { - if (environment_ != null) { - environment_ = - com.google.cloud.dialogflow.cx.v3.Environment.newBuilder(environment_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && environment_ != null + && environment_ != com.google.cloud.dialogflow.cx.v3.Environment.getDefaultInstance()) { + getEnvironmentBuilder().mergeFrom(value); } else { environment_ = value; } - onChanged(); } else { environmentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -675,14 +683,13 @@ public Builder mergeEnvironment(com.google.cloud.dialogflow.cx.v3.Environment va * */ public Builder clearEnvironment() { - if (environmentBuilder_ == null) { - environment_ = null; - onChanged(); - } else { - environment_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + environment_ = null; + if (environmentBuilder_ != null) { + environmentBuilder_.dispose(); environmentBuilder_ = null; } - + onChanged(); return this; } /** @@ -697,7 +704,7 @@ public Builder clearEnvironment() { * */ public com.google.cloud.dialogflow.cx.v3.Environment.Builder getEnvironmentBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getEnvironmentFieldBuilder().getBuilder(); } @@ -768,7 +775,7 @@ public com.google.cloud.dialogflow.cx.v3.EnvironmentOrBuilder getEnvironmentOrBu * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -807,11 +814,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -827,11 +834,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -846,17 +853,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -870,14 +878,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -891,7 +898,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateExperimentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateExperimentRequest.java index f5a62ad089a8..a3920b6bf036 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateExperimentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateExperimentRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Experiments.UpdateExperiment][google.cloud.dialogflow.cx.v3.Experiments.UpdateExperiment].
+ * The request message for
+ * [Experiments.UpdateExperiment][google.cloud.dialogflow.cx.v3.Experiments.UpdateExperiment].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} @@ -116,7 +117,9 @@ public com.google.cloud.dialogflow.cx.v3.Experiment getExperiment() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ExperimentOrBuilder getExperimentOrBuilder() { - return getExperiment(); + return experiment_ == null + ? com.google.cloud.dialogflow.cx.v3.Experiment.getDefaultInstance() + : experiment_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -165,7 +168,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -351,7 +354,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Experiments.UpdateExperiment][google.cloud.dialogflow.cx.v3.Experiments.UpdateExperiment].
+   * The request message for
+   * [Experiments.UpdateExperiment][google.cloud.dialogflow.cx.v3.Experiments.UpdateExperiment].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateExperimentRequest} @@ -385,16 +389,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (experimentBuilder_ == null) { - experiment_ = null; - } else { - experiment_ = null; + bitField0_ = 0; + experiment_ = null; + if (experimentBuilder_ != null) { + experimentBuilder_.dispose(); experimentBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -424,20 +427,23 @@ public com.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest build() { public com.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest result = new com.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest(this); - if (experimentBuilder_ == null) { - result.experiment_ = experiment_; - } else { - result.experiment_ = experimentBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.UpdateExperimentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.experiment_ = experimentBuilder_ == null ? experiment_ : experimentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -519,13 +525,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getExperimentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -545,6 +551,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.Experiment experiment_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.Experiment, @@ -565,7 +573,7 @@ public Builder mergeFrom( * @return Whether the experiment field is set. */ public boolean hasExperiment() { - return experimentBuilder_ != null || experiment_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -606,11 +614,11 @@ public Builder setExperiment(com.google.cloud.dialogflow.cx.v3.Experiment value) throw new NullPointerException(); } experiment_ = value; - onChanged(); } else { experimentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -628,11 +636,11 @@ public Builder setExperiment( com.google.cloud.dialogflow.cx.v3.Experiment.Builder builderForValue) { if (experimentBuilder_ == null) { experiment_ = builderForValue.build(); - onChanged(); } else { experimentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -648,19 +656,18 @@ public Builder setExperiment( */ public Builder mergeExperiment(com.google.cloud.dialogflow.cx.v3.Experiment value) { if (experimentBuilder_ == null) { - if (experiment_ != null) { - experiment_ = - com.google.cloud.dialogflow.cx.v3.Experiment.newBuilder(experiment_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && experiment_ != null + && experiment_ != com.google.cloud.dialogflow.cx.v3.Experiment.getDefaultInstance()) { + getExperimentBuilder().mergeFrom(value); } else { experiment_ = value; } - onChanged(); } else { experimentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -675,14 +682,13 @@ public Builder mergeExperiment(com.google.cloud.dialogflow.cx.v3.Experiment valu * */ public Builder clearExperiment() { - if (experimentBuilder_ == null) { - experiment_ = null; - onChanged(); - } else { - experiment_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + experiment_ = null; + if (experimentBuilder_ != null) { + experimentBuilder_.dispose(); experimentBuilder_ = null; } - + onChanged(); return this; } /** @@ -697,7 +703,7 @@ public Builder clearExperiment() { * */ public com.google.cloud.dialogflow.cx.v3.Experiment.Builder getExperimentBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getExperimentFieldBuilder().getBuilder(); } @@ -768,7 +774,7 @@ public com.google.cloud.dialogflow.cx.v3.ExperimentOrBuilder getExperimentOrBuil * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -807,11 +813,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -827,11 +833,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -846,17 +852,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -870,14 +877,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -891,7 +897,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateFlowRequest.java index c98d39ca1211..b2ecae44eaba 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateFlowRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateFlowRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Flows.UpdateFlow][google.cloud.dialogflow.cx.v3.Flows.UpdateFlow].
+ * The request message for
+ * [Flows.UpdateFlow][google.cloud.dialogflow.cx.v3.Flows.UpdateFlow].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateFlowRequest} @@ -113,7 +114,7 @@ public com.google.cloud.dialogflow.cx.v3.Flow getFlow() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.FlowOrBuilder getFlowOrBuilder() { - return getFlow(); + return flow_ == null ? com.google.cloud.dialogflow.cx.v3.Flow.getDefaultInstance() : flow_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -162,11 +163,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -423,7 +426,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Flows.UpdateFlow][google.cloud.dialogflow.cx.v3.Flows.UpdateFlow].
+   * The request message for
+   * [Flows.UpdateFlow][google.cloud.dialogflow.cx.v3.Flows.UpdateFlow].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateFlowRequest} @@ -457,20 +461,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (flowBuilder_ == null) { - flow_ = null; - } else { - flow_ = null; + bitField0_ = 0; + flow_ = null; + if (flowBuilder_ != null) { + flowBuilder_.dispose(); flowBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } languageCode_ = ""; - return this; } @@ -498,21 +500,26 @@ public com.google.cloud.dialogflow.cx.v3.UpdateFlowRequest build() { public com.google.cloud.dialogflow.cx.v3.UpdateFlowRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.UpdateFlowRequest result = new com.google.cloud.dialogflow.cx.v3.UpdateFlowRequest(this); - if (flowBuilder_ == null) { - result.flow_ = flow_; - } else { - result.flow_ = flowBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.languageCode_ = languageCode_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.UpdateFlowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.flow_ = flowBuilder_ == null ? flow_ : flowBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -567,6 +574,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.UpdateFlowRequest oth } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -598,19 +606,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getFlowFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -630,6 +638,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.Flow flow_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.Flow, @@ -649,7 +659,7 @@ public Builder mergeFrom( * @return Whether the flow field is set. */ public boolean hasFlow() { - return flowBuilder_ != null || flow_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -686,11 +696,11 @@ public Builder setFlow(com.google.cloud.dialogflow.cx.v3.Flow value) { throw new NullPointerException(); } flow_ = value; - onChanged(); } else { flowBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -706,11 +716,11 @@ public Builder setFlow(com.google.cloud.dialogflow.cx.v3.Flow value) { public Builder setFlow(com.google.cloud.dialogflow.cx.v3.Flow.Builder builderForValue) { if (flowBuilder_ == null) { flow_ = builderForValue.build(); - onChanged(); } else { flowBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -725,19 +735,18 @@ public Builder setFlow(com.google.cloud.dialogflow.cx.v3.Flow.Builder builderFor */ public Builder mergeFlow(com.google.cloud.dialogflow.cx.v3.Flow value) { if (flowBuilder_ == null) { - if (flow_ != null) { - flow_ = - com.google.cloud.dialogflow.cx.v3.Flow.newBuilder(flow_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && flow_ != null + && flow_ != com.google.cloud.dialogflow.cx.v3.Flow.getDefaultInstance()) { + getFlowBuilder().mergeFrom(value); } else { flow_ = value; } - onChanged(); } else { flowBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -751,14 +760,13 @@ public Builder mergeFlow(com.google.cloud.dialogflow.cx.v3.Flow value) { * */ public Builder clearFlow() { - if (flowBuilder_ == null) { - flow_ = null; - onChanged(); - } else { - flow_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + flow_ = null; + if (flowBuilder_ != null) { + flowBuilder_.dispose(); flowBuilder_ = null; } - + onChanged(); return this; } /** @@ -772,7 +780,7 @@ public Builder clearFlow() { * */ public com.google.cloud.dialogflow.cx.v3.Flow.Builder getFlowBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getFlowFieldBuilder().getBuilder(); } @@ -839,7 +847,7 @@ public com.google.cloud.dialogflow.cx.v3.FlowOrBuilder getFlowOrBuilder() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -878,11 +886,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -898,11 +906,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -917,17 +925,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -941,14 +950,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -962,7 +970,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -1100,8 +1108,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1126,8 +1134,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1157,8 +1165,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateIntentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateIntentRequest.java index bf6de4615b35..6a22bfa2bc4f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateIntentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateIntentRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent].
+ * The request message for
+ * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateIntentRequest} @@ -118,11 +119,15 @@ public com.google.cloud.dialogflow.cx.v3.Intent getIntent() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.IntentOrBuilder getIntentOrBuilder() { - return getIntent(); + return intent_ == null + ? com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance() + : intent_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -228,7 +233,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -423,7 +428,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent].
+   * The request message for
+   * [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateIntentRequest} @@ -457,18 +463,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (intentBuilder_ == null) { - intent_ = null; - } else { - intent_ = null; + bitField0_ = 0; + intent_ = null; + if (intentBuilder_ != null) { + intentBuilder_.dispose(); intentBuilder_ = null; } languageCode_ = ""; - - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -498,21 +502,26 @@ public com.google.cloud.dialogflow.cx.v3.UpdateIntentRequest build() { public com.google.cloud.dialogflow.cx.v3.UpdateIntentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.UpdateIntentRequest result = new com.google.cloud.dialogflow.cx.v3.UpdateIntentRequest(this); - if (intentBuilder_ == null) { - result.intent_ = intent_; - } else { - result.intent_ = intentBuilder_.build(); - } - result.languageCode_ = languageCode_; - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.UpdateIntentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.intent_ = intentBuilder_ == null ? intent_ : intentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -564,6 +573,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.UpdateIntentRequest o } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasUpdateMask()) { @@ -598,19 +608,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getIntentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -630,6 +640,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.Intent intent_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.Intent, @@ -650,7 +662,7 @@ public Builder mergeFrom( * @return Whether the intent field is set. */ public boolean hasIntent() { - return intentBuilder_ != null || intent_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -691,11 +703,11 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent value) { throw new NullPointerException(); } intent_ = value; - onChanged(); } else { intentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -712,11 +724,11 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent value) { public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent.Builder builderForValue) { if (intentBuilder_ == null) { intent_ = builderForValue.build(); - onChanged(); } else { intentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -732,19 +744,18 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3.Intent.Builder builde */ public Builder mergeIntent(com.google.cloud.dialogflow.cx.v3.Intent value) { if (intentBuilder_ == null) { - if (intent_ != null) { - intent_ = - com.google.cloud.dialogflow.cx.v3.Intent.newBuilder(intent_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && intent_ != null + && intent_ != com.google.cloud.dialogflow.cx.v3.Intent.getDefaultInstance()) { + getIntentBuilder().mergeFrom(value); } else { intent_ = value; } - onChanged(); } else { intentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -759,14 +770,13 @@ public Builder mergeIntent(com.google.cloud.dialogflow.cx.v3.Intent value) { * */ public Builder clearIntent() { - if (intentBuilder_ == null) { - intent_ = null; - onChanged(); - } else { - intent_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + intent_ = null; + if (intentBuilder_ != null) { + intentBuilder_.dispose(); intentBuilder_ = null; } - + onChanged(); return this; } /** @@ -781,7 +791,7 @@ public Builder clearIntent() { * */ public com.google.cloud.dialogflow.cx.v3.Intent.Builder getIntentBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getIntentFieldBuilder().getBuilder(); } @@ -912,8 +922,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -935,8 +945,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -963,8 +973,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -988,7 +998,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1027,11 +1037,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1047,11 +1057,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1066,17 +1076,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1090,14 +1101,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 3; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1111,7 +1121,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 3; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdatePageRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdatePageRequest.java index d513a093a01d..63e2e598b093 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdatePageRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdatePageRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage].
+ * The request message for
+ * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdatePageRequest} @@ -113,11 +114,13 @@ public com.google.cloud.dialogflow.cx.v3.Page getPage() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.PageOrBuilder getPageOrBuilder() { - return getPage(); + return page_ == null ? com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance() : page_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -245,7 +248,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -439,7 +442,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage].
+   * The request message for
+   * [Pages.UpdatePage][google.cloud.dialogflow.cx.v3.Pages.UpdatePage].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdatePageRequest} @@ -473,18 +477,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (pageBuilder_ == null) { - page_ = null; - } else { - page_ = null; + bitField0_ = 0; + page_ = null; + if (pageBuilder_ != null) { + pageBuilder_.dispose(); pageBuilder_ = null; } languageCode_ = ""; - - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -514,21 +516,26 @@ public com.google.cloud.dialogflow.cx.v3.UpdatePageRequest build() { public com.google.cloud.dialogflow.cx.v3.UpdatePageRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.UpdatePageRequest result = new com.google.cloud.dialogflow.cx.v3.UpdatePageRequest(this); - if (pageBuilder_ == null) { - result.page_ = page_; - } else { - result.page_ = pageBuilder_.build(); - } - result.languageCode_ = languageCode_; - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.UpdatePageRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.page_ = pageBuilder_ == null ? page_ : pageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -580,6 +587,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.UpdatePageRequest oth } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasUpdateMask()) { @@ -614,19 +622,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getPageFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -646,6 +654,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.Page page_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.Page, @@ -665,7 +675,7 @@ public Builder mergeFrom( * @return Whether the page field is set. */ public boolean hasPage() { - return pageBuilder_ != null || page_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -702,11 +712,11 @@ public Builder setPage(com.google.cloud.dialogflow.cx.v3.Page value) { throw new NullPointerException(); } page_ = value; - onChanged(); } else { pageBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -722,11 +732,11 @@ public Builder setPage(com.google.cloud.dialogflow.cx.v3.Page value) { public Builder setPage(com.google.cloud.dialogflow.cx.v3.Page.Builder builderForValue) { if (pageBuilder_ == null) { page_ = builderForValue.build(); - onChanged(); } else { pageBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -741,19 +751,18 @@ public Builder setPage(com.google.cloud.dialogflow.cx.v3.Page.Builder builderFor */ public Builder mergePage(com.google.cloud.dialogflow.cx.v3.Page value) { if (pageBuilder_ == null) { - if (page_ != null) { - page_ = - com.google.cloud.dialogflow.cx.v3.Page.newBuilder(page_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && page_ != null + && page_ != com.google.cloud.dialogflow.cx.v3.Page.getDefaultInstance()) { + getPageBuilder().mergeFrom(value); } else { page_ = value; } - onChanged(); } else { pageBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -767,14 +776,13 @@ public Builder mergePage(com.google.cloud.dialogflow.cx.v3.Page value) { * */ public Builder clearPage() { - if (pageBuilder_ == null) { - page_ = null; - onChanged(); - } else { - page_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + page_ = null; + if (pageBuilder_ != null) { + pageBuilder_.dispose(); pageBuilder_ = null; } - + onChanged(); return this; } /** @@ -788,7 +796,7 @@ public Builder clearPage() { * */ public com.google.cloud.dialogflow.cx.v3.Page.Builder getPageBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getPageFieldBuilder().getBuilder(); } @@ -948,8 +956,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -982,8 +990,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1021,8 +1029,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1046,7 +1054,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1085,11 +1093,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1105,11 +1113,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1124,17 +1132,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1148,14 +1157,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 3; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1169,7 +1177,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 3; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSecuritySettingsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSecuritySettingsRequest.java index 40d1a3a519df..5c91919060ac 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSecuritySettingsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSecuritySettingsRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings].
+ * The request message for
+ * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} @@ -120,7 +121,9 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings getSecuritySettings() @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettingsOrBuilder getSecuritySettingsOrBuilder() { - return getSecuritySettings(); + return securitySettings_ == null + ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.getDefaultInstance() + : securitySettings_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -129,8 +132,8 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings getSecuritySettings() * * *
-   * Required. The mask to control which fields get updated. If the mask is not present,
-   * all fields will be updated.
+   * Required. The mask to control which fields get updated. If the mask is not
+   * present, all fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -146,8 +149,8 @@ public boolean hasUpdateMask() { * * *
-   * Required. The mask to control which fields get updated. If the mask is not present,
-   * all fields will be updated.
+   * Required. The mask to control which fields get updated. If the mask is not
+   * present, all fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -163,8 +166,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. The mask to control which fields get updated. If the mask is not present,
-   * all fields will be updated.
+   * Required. The mask to control which fields get updated. If the mask is not
+   * present, all fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -172,7 +175,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -358,7 +361,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings].
+   * The request message for
+   * [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest} @@ -392,16 +396,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (securitySettingsBuilder_ == null) { - securitySettings_ = null; - } else { - securitySettings_ = null; + bitField0_ = 0; + securitySettings_ = null; + if (securitySettingsBuilder_ != null) { + securitySettingsBuilder_.dispose(); securitySettingsBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -432,20 +435,25 @@ public com.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest build() { public com.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest result = new com.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest(this); - if (securitySettingsBuilder_ == null) { - result.securitySettings_ = securitySettings_; - } else { - result.securitySettings_ = securitySettingsBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.securitySettings_ = + securitySettingsBuilder_ == null ? securitySettings_ : securitySettingsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -530,13 +538,13 @@ public Builder mergeFrom( { input.readMessage( getSecuritySettingsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -556,6 +564,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.SecuritySettings securitySettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.SecuritySettings, @@ -577,7 +587,7 @@ public Builder mergeFrom( * @return Whether the securitySettings field is set. */ public boolean hasSecuritySettings() { - return securitySettingsBuilder_ != null || securitySettings_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -620,11 +630,11 @@ public Builder setSecuritySettings(com.google.cloud.dialogflow.cx.v3.SecuritySet throw new NullPointerException(); } securitySettings_ = value; - onChanged(); } else { securitySettingsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -643,11 +653,11 @@ public Builder setSecuritySettings( com.google.cloud.dialogflow.cx.v3.SecuritySettings.Builder builderForValue) { if (securitySettingsBuilder_ == null) { securitySettings_ = builderForValue.build(); - onChanged(); } else { securitySettingsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -664,19 +674,19 @@ public Builder setSecuritySettings( */ public Builder mergeSecuritySettings(com.google.cloud.dialogflow.cx.v3.SecuritySettings value) { if (securitySettingsBuilder_ == null) { - if (securitySettings_ != null) { - securitySettings_ = - com.google.cloud.dialogflow.cx.v3.SecuritySettings.newBuilder(securitySettings_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && securitySettings_ != null + && securitySettings_ + != com.google.cloud.dialogflow.cx.v3.SecuritySettings.getDefaultInstance()) { + getSecuritySettingsBuilder().mergeFrom(value); } else { securitySettings_ = value; } - onChanged(); } else { securitySettingsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -692,14 +702,13 @@ public Builder mergeSecuritySettings(com.google.cloud.dialogflow.cx.v3.SecurityS *
*/ public Builder clearSecuritySettings() { - if (securitySettingsBuilder_ == null) { - securitySettings_ = null; - onChanged(); - } else { - securitySettings_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + securitySettings_ = null; + if (securitySettingsBuilder_ != null) { + securitySettingsBuilder_.dispose(); securitySettingsBuilder_ = null; } - + onChanged(); return this; } /** @@ -715,7 +724,7 @@ public Builder clearSecuritySettings() { *
*/ public com.google.cloud.dialogflow.cx.v3.SecuritySettings.Builder getSecuritySettingsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getSecuritySettingsFieldBuilder().getBuilder(); } @@ -780,8 +789,8 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings.Builder getSecuritySet * * *
-     * Required. The mask to control which fields get updated. If the mask is not present,
-     * all fields will be updated.
+     * Required. The mask to control which fields get updated. If the mask is not
+     * present, all fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -790,14 +799,14 @@ public com.google.cloud.dialogflow.cx.v3.SecuritySettings.Builder getSecuritySet * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * * *
-     * Required. The mask to control which fields get updated. If the mask is not present,
-     * all fields will be updated.
+     * Required. The mask to control which fields get updated. If the mask is not
+     * present, all fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -818,8 +827,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. The mask to control which fields get updated. If the mask is not present,
-     * all fields will be updated.
+     * Required. The mask to control which fields get updated. If the mask is not
+     * present, all fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -831,19 +840,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** * * *
-     * Required. The mask to control which fields get updated. If the mask is not present,
-     * all fields will be updated.
+     * Required. The mask to control which fields get updated. If the mask is not
+     * present, all fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -852,19 +861,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** * * *
-     * Required. The mask to control which fields get updated. If the mask is not present,
-     * all fields will be updated.
+     * Required. The mask to control which fields get updated. If the mask is not
+     * present, all fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -872,54 +881,54 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** * * *
-     * Required. The mask to control which fields get updated. If the mask is not present,
-     * all fields will be updated.
+     * Required. The mask to control which fields get updated. If the mask is not
+     * present, all fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** * * *
-     * Required. The mask to control which fields get updated. If the mask is not present,
-     * all fields will be updated.
+     * Required. The mask to control which fields get updated. If the mask is not
+     * present, all fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -927,8 +936,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. The mask to control which fields get updated. If the mask is not present,
-     * all fields will be updated.
+     * Required. The mask to control which fields get updated. If the mask is not
+     * present, all fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -947,8 +956,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. The mask to control which fields get updated. If the mask is not present,
-     * all fields will be updated.
+     * Required. The mask to control which fields get updated. If the mask is not
+     * present, all fields will be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSecuritySettingsRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSecuritySettingsRequestOrBuilder.java index a922cd38e693..662cc10cbc7c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSecuritySettingsRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSecuritySettingsRequestOrBuilder.java @@ -71,8 +71,8 @@ public interface UpdateSecuritySettingsRequestOrBuilder * * *
-   * Required. The mask to control which fields get updated. If the mask is not present,
-   * all fields will be updated.
+   * Required. The mask to control which fields get updated. If the mask is not
+   * present, all fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -85,8 +85,8 @@ public interface UpdateSecuritySettingsRequestOrBuilder * * *
-   * Required. The mask to control which fields get updated. If the mask is not present,
-   * all fields will be updated.
+   * Required. The mask to control which fields get updated. If the mask is not
+   * present, all fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -99,8 +99,8 @@ public interface UpdateSecuritySettingsRequestOrBuilder * * *
-   * Required. The mask to control which fields get updated. If the mask is not present,
-   * all fields will be updated.
+   * Required. The mask to control which fields get updated. If the mask is not
+   * present, all fields will be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSessionEntityTypeRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSessionEntityTypeRequest.java index 65a597ec5f1f..67b93ec565bd 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSessionEntityTypeRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateSessionEntityTypeRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityType].
+ * The request message for
+ * [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityType].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} @@ -136,7 +137,9 @@ public com.google.cloud.dialogflow.cx.v3.SessionEntityType getSessionEntityType( @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SessionEntityTypeOrBuilder getSessionEntityTypeOrBuilder() { - return getSessionEntityType(); + return sessionEntityType_ == null + ? com.google.cloud.dialogflow.cx.v3.SessionEntityType.getDefaultInstance() + : sessionEntityType_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -182,7 +185,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -368,7 +371,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityType].
+   * The request message for
+   * [SessionEntityTypes.UpdateSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.UpdateSessionEntityType].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest} @@ -402,16 +406,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (sessionEntityTypeBuilder_ == null) { - sessionEntityType_ = null; - } else { - sessionEntityType_ = null; + bitField0_ = 0; + sessionEntityType_ = null; + if (sessionEntityTypeBuilder_ != null) { + sessionEntityTypeBuilder_.dispose(); sessionEntityTypeBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -442,20 +445,27 @@ public com.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest build() public com.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest result = new com.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest(this); - if (sessionEntityTypeBuilder_ == null) { - result.sessionEntityType_ = sessionEntityType_; - } else { - result.sessionEntityType_ = sessionEntityTypeBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.UpdateSessionEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sessionEntityType_ = + sessionEntityTypeBuilder_ == null + ? sessionEntityType_ + : sessionEntityTypeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -540,13 +550,13 @@ public Builder mergeFrom( { input.readMessage( getSessionEntityTypeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -566,6 +576,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.SessionEntityType sessionEntityType_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.SessionEntityType, @@ -592,7 +604,7 @@ public Builder mergeFrom( * @return Whether the sessionEntityType field is set. */ public boolean hasSessionEntityType() { - return sessionEntityTypeBuilder_ != null || sessionEntityType_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -645,11 +657,11 @@ public Builder setSessionEntityType(com.google.cloud.dialogflow.cx.v3.SessionEnt throw new NullPointerException(); } sessionEntityType_ = value; - onChanged(); } else { sessionEntityTypeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -673,11 +685,11 @@ public Builder setSessionEntityType( com.google.cloud.dialogflow.cx.v3.SessionEntityType.Builder builderForValue) { if (sessionEntityTypeBuilder_ == null) { sessionEntityType_ = builderForValue.build(); - onChanged(); } else { sessionEntityTypeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -700,19 +712,19 @@ public Builder setSessionEntityType( public Builder mergeSessionEntityType( com.google.cloud.dialogflow.cx.v3.SessionEntityType value) { if (sessionEntityTypeBuilder_ == null) { - if (sessionEntityType_ != null) { - sessionEntityType_ = - com.google.cloud.dialogflow.cx.v3.SessionEntityType.newBuilder(sessionEntityType_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && sessionEntityType_ != null + && sessionEntityType_ + != com.google.cloud.dialogflow.cx.v3.SessionEntityType.getDefaultInstance()) { + getSessionEntityTypeBuilder().mergeFrom(value); } else { sessionEntityType_ = value; } - onChanged(); } else { sessionEntityTypeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -733,14 +745,13 @@ public Builder mergeSessionEntityType( *
*/ public Builder clearSessionEntityType() { - if (sessionEntityTypeBuilder_ == null) { - sessionEntityType_ = null; - onChanged(); - } else { - sessionEntityType_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + sessionEntityType_ = null; + if (sessionEntityTypeBuilder_ != null) { + sessionEntityTypeBuilder_.dispose(); sessionEntityTypeBuilder_ = null; } - + onChanged(); return this; } /** @@ -762,7 +773,7 @@ public Builder clearSessionEntityType() { */ public com.google.cloud.dialogflow.cx.v3.SessionEntityType.Builder getSessionEntityTypeBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getSessionEntityTypeFieldBuilder().getBuilder(); } @@ -845,7 +856,7 @@ public Builder clearSessionEntityType() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -882,11 +893,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -901,11 +912,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -919,17 +930,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -942,14 +954,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -962,7 +973,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTestCaseRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTestCaseRequest.java index 8666b5bd8ad0..eff4a2da8de6 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTestCaseRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTestCaseRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [TestCases.UpdateTestCase][google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCase].
+ * The request message for
+ * [TestCases.UpdateTestCase][google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCase].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} @@ -116,7 +117,9 @@ public com.google.cloud.dialogflow.cx.v3.TestCase getTestCase() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TestCaseOrBuilder getTestCaseOrBuilder() { - return getTestCase(); + return testCase_ == null + ? com.google.cloud.dialogflow.cx.v3.TestCase.getDefaultInstance() + : testCase_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -127,7 +130,8 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseOrBuilder getTestCaseOrBuilder( *
    * Required. The mask to specify which fields should be updated. The
    * [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
-   * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+   * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+   * cannot be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -145,7 +149,8 @@ public boolean hasUpdateMask() { *
    * Required. The mask to specify which fields should be updated. The
    * [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
-   * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+   * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+   * cannot be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -163,7 +168,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { *
    * Required. The mask to specify which fields should be updated. The
    * [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
-   * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+   * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+   * cannot be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -171,7 +177,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -357,7 +363,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [TestCases.UpdateTestCase][google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCase].
+   * The request message for
+   * [TestCases.UpdateTestCase][google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCase].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest} @@ -391,16 +398,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (testCaseBuilder_ == null) { - testCase_ = null; - } else { - testCase_ = null; + bitField0_ = 0; + testCase_ = null; + if (testCaseBuilder_ != null) { + testCaseBuilder_.dispose(); testCaseBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -430,20 +436,23 @@ public com.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest build() { public com.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest result = new com.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest(this); - if (testCaseBuilder_ == null) { - result.testCase_ = testCase_; - } else { - result.testCase_ = testCaseBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.UpdateTestCaseRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.testCase_ = testCaseBuilder_ == null ? testCase_ : testCaseBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -525,13 +534,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getTestCaseFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -551,6 +560,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.TestCase testCase_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TestCase, @@ -571,7 +582,7 @@ public Builder mergeFrom( * @return Whether the testCase field is set. */ public boolean hasTestCase() { - return testCaseBuilder_ != null || testCase_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -612,11 +623,11 @@ public Builder setTestCase(com.google.cloud.dialogflow.cx.v3.TestCase value) { throw new NullPointerException(); } testCase_ = value; - onChanged(); } else { testCaseBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -633,11 +644,11 @@ public Builder setTestCase(com.google.cloud.dialogflow.cx.v3.TestCase value) { public Builder setTestCase(com.google.cloud.dialogflow.cx.v3.TestCase.Builder builderForValue) { if (testCaseBuilder_ == null) { testCase_ = builderForValue.build(); - onChanged(); } else { testCaseBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -653,19 +664,18 @@ public Builder setTestCase(com.google.cloud.dialogflow.cx.v3.TestCase.Builder bu */ public Builder mergeTestCase(com.google.cloud.dialogflow.cx.v3.TestCase value) { if (testCaseBuilder_ == null) { - if (testCase_ != null) { - testCase_ = - com.google.cloud.dialogflow.cx.v3.TestCase.newBuilder(testCase_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && testCase_ != null + && testCase_ != com.google.cloud.dialogflow.cx.v3.TestCase.getDefaultInstance()) { + getTestCaseBuilder().mergeFrom(value); } else { testCase_ = value; } - onChanged(); } else { testCaseBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -680,14 +690,13 @@ public Builder mergeTestCase(com.google.cloud.dialogflow.cx.v3.TestCase value) { *
*/ public Builder clearTestCase() { - if (testCaseBuilder_ == null) { - testCase_ = null; - onChanged(); - } else { - testCase_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + testCase_ = null; + if (testCaseBuilder_ != null) { + testCaseBuilder_.dispose(); testCaseBuilder_ = null; } - + onChanged(); return this; } /** @@ -702,7 +711,7 @@ public Builder clearTestCase() { *
*/ public com.google.cloud.dialogflow.cx.v3.TestCase.Builder getTestCaseBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getTestCaseFieldBuilder().getBuilder(); } @@ -766,7 +775,8 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseOrBuilder getTestCaseOrBuilder( *
      * Required. The mask to specify which fields should be updated. The
      * [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
-     * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+     * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+     * cannot be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -775,7 +785,7 @@ public com.google.cloud.dialogflow.cx.v3.TestCaseOrBuilder getTestCaseOrBuilder( * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -783,7 +793,8 @@ public boolean hasUpdateMask() { *
      * Required. The mask to specify which fields should be updated. The
      * [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
-     * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+     * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+     * cannot be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -806,7 +817,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { *
      * Required. The mask to specify which fields should be updated. The
      * [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
-     * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+     * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+     * cannot be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -818,11 +830,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -831,7 +843,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { *
      * Required. The mask to specify which fields should be updated. The
      * [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
-     * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+     * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+     * cannot be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -840,11 +853,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -853,7 +866,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal *
      * Required. The mask to specify which fields should be updated. The
      * [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
-     * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+     * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+     * cannot be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -861,17 +875,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -880,21 +895,21 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { *
      * Required. The mask to specify which fields should be updated. The
      * [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
-     * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+     * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+     * cannot be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -903,14 +918,15 @@ public Builder clearUpdateMask() { *
      * Required. The mask to specify which fields should be updated. The
      * [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
-     * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+     * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+     * cannot be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -920,7 +936,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { *
      * Required. The mask to specify which fields should be updated. The
      * [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
-     * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+     * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+     * cannot be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -941,7 +958,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { *
      * Required. The mask to specify which fields should be updated. The
      * [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
-     * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+     * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+     * cannot be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTestCaseRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTestCaseRequestOrBuilder.java index 41e75839230d..826c790fb2f4 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTestCaseRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTestCaseRequestOrBuilder.java @@ -70,7 +70,8 @@ public interface UpdateTestCaseRequestOrBuilder *
    * Required. The mask to specify which fields should be updated. The
    * [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
-   * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+   * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+   * cannot be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -85,7 +86,8 @@ public interface UpdateTestCaseRequestOrBuilder *
    * Required. The mask to specify which fields should be updated. The
    * [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
-   * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+   * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+   * cannot be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -100,7 +102,8 @@ public interface UpdateTestCaseRequestOrBuilder *
    * Required. The mask to specify which fields should be updated. The
    * [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and
-   * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated.
+   * [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result]
+   * cannot be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTransitionRouteGroupRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTransitionRouteGroupRequest.java index 857101064014..05006a96d176 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTransitionRouteGroupRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateTransitionRouteGroupRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [TransitionRouteGroups.UpdateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroup].
+ * The request message for
+ * [TransitionRouteGroups.UpdateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroup].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} @@ -120,7 +121,9 @@ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup getTransitionRoute @java.lang.Override public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroupOrBuilder getTransitionRouteGroupOrBuilder() { - return getTransitionRouteGroup(); + return transitionRouteGroup_ == null + ? com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.getDefaultInstance() + : transitionRouteGroup_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -166,11 +169,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -428,7 +433,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [TransitionRouteGroups.UpdateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroup].
+   * The request message for
+   * [TransitionRouteGroups.UpdateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroup].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest} @@ -463,20 +469,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (transitionRouteGroupBuilder_ == null) { - transitionRouteGroup_ = null; - } else { - transitionRouteGroup_ = null; + bitField0_ = 0; + transitionRouteGroup_ = null; + if (transitionRouteGroupBuilder_ != null) { + transitionRouteGroupBuilder_.dispose(); transitionRouteGroupBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } languageCode_ = ""; - return this; } @@ -506,21 +510,30 @@ public com.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest build public com.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest result = new com.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest(this); - if (transitionRouteGroupBuilder_ == null) { - result.transitionRouteGroup_ = transitionRouteGroup_; - } else { - result.transitionRouteGroup_ = transitionRouteGroupBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - result.languageCode_ = languageCode_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.UpdateTransitionRouteGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.transitionRouteGroup_ = + transitionRouteGroupBuilder_ == null + ? transitionRouteGroup_ + : transitionRouteGroupBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -578,6 +591,7 @@ public Builder mergeFrom( } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -610,19 +624,19 @@ public Builder mergeFrom( { input.readMessage( getTransitionRouteGroupFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -642,6 +656,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup transitionRouteGroup_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup, @@ -662,7 +678,7 @@ public Builder mergeFrom( * @return Whether the transitionRouteGroup field is set. */ public boolean hasTransitionRouteGroup() { - return transitionRouteGroupBuilder_ != null || transitionRouteGroup_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -704,11 +720,11 @@ public Builder setTransitionRouteGroup( throw new NullPointerException(); } transitionRouteGroup_ = value; - onChanged(); } else { transitionRouteGroupBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -726,11 +742,11 @@ public Builder setTransitionRouteGroup( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.Builder builderForValue) { if (transitionRouteGroupBuilder_ == null) { transitionRouteGroup_ = builderForValue.build(); - onChanged(); } else { transitionRouteGroupBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -747,20 +763,19 @@ public Builder setTransitionRouteGroup( public Builder mergeTransitionRouteGroup( com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup value) { if (transitionRouteGroupBuilder_ == null) { - if (transitionRouteGroup_ != null) { - transitionRouteGroup_ = - com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.newBuilder( - transitionRouteGroup_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && transitionRouteGroup_ != null + && transitionRouteGroup_ + != com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.getDefaultInstance()) { + getTransitionRouteGroupBuilder().mergeFrom(value); } else { transitionRouteGroup_ = value; } - onChanged(); } else { transitionRouteGroupBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -775,14 +790,13 @@ public Builder mergeTransitionRouteGroup( *
*/ public Builder clearTransitionRouteGroup() { - if (transitionRouteGroupBuilder_ == null) { - transitionRouteGroup_ = null; - onChanged(); - } else { - transitionRouteGroup_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + transitionRouteGroup_ = null; + if (transitionRouteGroupBuilder_ != null) { + transitionRouteGroupBuilder_.dispose(); transitionRouteGroupBuilder_ = null; } - + onChanged(); return this; } /** @@ -798,7 +812,7 @@ public Builder clearTransitionRouteGroup() { */ public com.google.cloud.dialogflow.cx.v3.TransitionRouteGroup.Builder getTransitionRouteGroupBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getTransitionRouteGroupFieldBuilder().getBuilder(); } @@ -869,7 +883,7 @@ public Builder clearTransitionRouteGroup() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -906,11 +920,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -925,11 +939,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -943,17 +957,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -966,14 +981,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -986,7 +1000,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -1119,8 +1133,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1144,8 +1158,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1174,8 +1188,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateVersionRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateVersionRequest.java index 8dc33752f2cd..4ae792f0771e 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateVersionRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateVersionRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Versions.UpdateVersion][google.cloud.dialogflow.cx.v3.Versions.UpdateVersion].
+ * The request message for
+ * [Versions.UpdateVersion][google.cloud.dialogflow.cx.v3.Versions.UpdateVersion].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateVersionRequest} @@ -116,7 +117,9 @@ public com.google.cloud.dialogflow.cx.v3.Version getVersion() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.VersionOrBuilder getVersionOrBuilder() { - return getVersion(); + return version_ == null + ? com.google.cloud.dialogflow.cx.v3.Version.getDefaultInstance() + : version_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -125,8 +128,8 @@ public com.google.cloud.dialogflow.cx.v3.VersionOrBuilder getVersionOrBuilder() * * *
-   * Required. The mask to control which fields get updated. Currently only `description`
-   * and `display_name` can be updated.
+   * Required. The mask to control which fields get updated. Currently only
+   * `description` and `display_name` can be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -142,8 +145,8 @@ public boolean hasUpdateMask() { * * *
-   * Required. The mask to control which fields get updated. Currently only `description`
-   * and `display_name` can be updated.
+   * Required. The mask to control which fields get updated. Currently only
+   * `description` and `display_name` can be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -159,8 +162,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-   * Required. The mask to control which fields get updated. Currently only `description`
-   * and `display_name` can be updated.
+   * Required. The mask to control which fields get updated. Currently only
+   * `description` and `display_name` can be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -168,7 +171,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -354,7 +357,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Versions.UpdateVersion][google.cloud.dialogflow.cx.v3.Versions.UpdateVersion].
+   * The request message for
+   * [Versions.UpdateVersion][google.cloud.dialogflow.cx.v3.Versions.UpdateVersion].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateVersionRequest} @@ -388,16 +392,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (versionBuilder_ == null) { - version_ = null; - } else { - version_ = null; + bitField0_ = 0; + version_ = null; + if (versionBuilder_ != null) { + versionBuilder_.dispose(); versionBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -427,20 +430,23 @@ public com.google.cloud.dialogflow.cx.v3.UpdateVersionRequest build() { public com.google.cloud.dialogflow.cx.v3.UpdateVersionRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.UpdateVersionRequest result = new com.google.cloud.dialogflow.cx.v3.UpdateVersionRequest(this); - if (versionBuilder_ == null) { - result.version_ = version_; - } else { - result.version_ = versionBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.UpdateVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = versionBuilder_ == null ? version_ : versionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -522,13 +528,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getVersionFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -548,6 +554,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.Version version_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.Version, @@ -568,7 +576,7 @@ public Builder mergeFrom( * @return Whether the version field is set. */ public boolean hasVersion() { - return versionBuilder_ != null || version_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -609,11 +617,11 @@ public Builder setVersion(com.google.cloud.dialogflow.cx.v3.Version value) { throw new NullPointerException(); } version_ = value; - onChanged(); } else { versionBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -630,11 +638,11 @@ public Builder setVersion(com.google.cloud.dialogflow.cx.v3.Version value) { public Builder setVersion(com.google.cloud.dialogflow.cx.v3.Version.Builder builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); - onChanged(); } else { versionBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -650,19 +658,18 @@ public Builder setVersion(com.google.cloud.dialogflow.cx.v3.Version.Builder buil */ public Builder mergeVersion(com.google.cloud.dialogflow.cx.v3.Version value) { if (versionBuilder_ == null) { - if (version_ != null) { - version_ = - com.google.cloud.dialogflow.cx.v3.Version.newBuilder(version_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && version_ != null + && version_ != com.google.cloud.dialogflow.cx.v3.Version.getDefaultInstance()) { + getVersionBuilder().mergeFrom(value); } else { version_ = value; } - onChanged(); } else { versionBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -677,14 +684,13 @@ public Builder mergeVersion(com.google.cloud.dialogflow.cx.v3.Version value) { *
*/ public Builder clearVersion() { - if (versionBuilder_ == null) { - version_ = null; - onChanged(); - } else { - version_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + version_ = null; + if (versionBuilder_ != null) { + versionBuilder_.dispose(); versionBuilder_ = null; } - + onChanged(); return this; } /** @@ -699,7 +705,7 @@ public Builder clearVersion() { *
*/ public com.google.cloud.dialogflow.cx.v3.Version.Builder getVersionBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getVersionFieldBuilder().getBuilder(); } @@ -761,8 +767,8 @@ public com.google.cloud.dialogflow.cx.v3.VersionOrBuilder getVersionOrBuilder() * * *
-     * Required. The mask to control which fields get updated. Currently only `description`
-     * and `display_name` can be updated.
+     * Required. The mask to control which fields get updated. Currently only
+     * `description` and `display_name` can be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -771,14 +777,14 @@ public com.google.cloud.dialogflow.cx.v3.VersionOrBuilder getVersionOrBuilder() * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * * *
-     * Required. The mask to control which fields get updated. Currently only `description`
-     * and `display_name` can be updated.
+     * Required. The mask to control which fields get updated. Currently only
+     * `description` and `display_name` can be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -799,8 +805,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { * * *
-     * Required. The mask to control which fields get updated. Currently only `description`
-     * and `display_name` can be updated.
+     * Required. The mask to control which fields get updated. Currently only
+     * `description` and `display_name` can be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -812,19 +818,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** * * *
-     * Required. The mask to control which fields get updated. Currently only `description`
-     * and `display_name` can be updated.
+     * Required. The mask to control which fields get updated. Currently only
+     * `description` and `display_name` can be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -833,19 +839,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** * * *
-     * Required. The mask to control which fields get updated. Currently only `description`
-     * and `display_name` can be updated.
+     * Required. The mask to control which fields get updated. Currently only
+     * `description` and `display_name` can be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -853,54 +859,54 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** * * *
-     * Required. The mask to control which fields get updated. Currently only `description`
-     * and `display_name` can be updated.
+     * Required. The mask to control which fields get updated. Currently only
+     * `description` and `display_name` can be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** * * *
-     * Required. The mask to control which fields get updated. Currently only `description`
-     * and `display_name` can be updated.
+     * Required. The mask to control which fields get updated. Currently only
+     * `description` and `display_name` can be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -908,8 +914,8 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * Required. The mask to control which fields get updated. Currently only `description`
-     * and `display_name` can be updated.
+     * Required. The mask to control which fields get updated. Currently only
+     * `description` and `display_name` can be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -928,8 +934,8 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * Required. The mask to control which fields get updated. Currently only `description`
-     * and `display_name` can be updated.
+     * Required. The mask to control which fields get updated. Currently only
+     * `description` and `display_name` can be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateVersionRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateVersionRequestOrBuilder.java index e6ae2cfed2e0..c1b33a66404d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateVersionRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateVersionRequestOrBuilder.java @@ -68,8 +68,8 @@ public interface UpdateVersionRequestOrBuilder * * *
-   * Required. The mask to control which fields get updated. Currently only `description`
-   * and `display_name` can be updated.
+   * Required. The mask to control which fields get updated. Currently only
+   * `description` and `display_name` can be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -82,8 +82,8 @@ public interface UpdateVersionRequestOrBuilder * * *
-   * Required. The mask to control which fields get updated. Currently only `description`
-   * and `display_name` can be updated.
+   * Required. The mask to control which fields get updated. Currently only
+   * `description` and `display_name` can be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -96,8 +96,8 @@ public interface UpdateVersionRequestOrBuilder * * *
-   * Required. The mask to control which fields get updated. Currently only `description`
-   * and `display_name` can be updated.
+   * Required. The mask to control which fields get updated. Currently only
+   * `description` and `display_name` can be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateWebhookRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateWebhookRequest.java index 1d9f12577f07..c98185a580c9 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateWebhookRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/UpdateWebhookRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook].
+ * The request message for
+ * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} @@ -116,7 +117,9 @@ public com.google.cloud.dialogflow.cx.v3.Webhook getWebhook() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookOrBuilder getWebhookOrBuilder() { - return getWebhook(); + return webhook_ == null + ? com.google.cloud.dialogflow.cx.v3.Webhook.getDefaultInstance() + : webhook_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -165,7 +168,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -351,7 +354,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook].
+   * The request message for
+   * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.UpdateWebhookRequest} @@ -385,16 +389,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (webhookBuilder_ == null) { - webhook_ = null; - } else { - webhook_ = null; + bitField0_ = 0; + webhook_ = null; + if (webhookBuilder_ != null) { + webhookBuilder_.dispose(); webhookBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -424,20 +427,23 @@ public com.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest build() { public com.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest result = new com.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest(this); - if (webhookBuilder_ == null) { - result.webhook_ = webhook_; - } else { - result.webhook_ = webhookBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.UpdateWebhookRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.webhook_ = webhookBuilder_ == null ? webhook_ : webhookBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -519,13 +525,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getWebhookFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -545,6 +551,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.Webhook webhook_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.Webhook, @@ -565,7 +573,7 @@ public Builder mergeFrom( * @return Whether the webhook field is set. */ public boolean hasWebhook() { - return webhookBuilder_ != null || webhook_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -606,11 +614,11 @@ public Builder setWebhook(com.google.cloud.dialogflow.cx.v3.Webhook value) { throw new NullPointerException(); } webhook_ = value; - onChanged(); } else { webhookBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -627,11 +635,11 @@ public Builder setWebhook(com.google.cloud.dialogflow.cx.v3.Webhook value) { public Builder setWebhook(com.google.cloud.dialogflow.cx.v3.Webhook.Builder builderForValue) { if (webhookBuilder_ == null) { webhook_ = builderForValue.build(); - onChanged(); } else { webhookBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -647,19 +655,18 @@ public Builder setWebhook(com.google.cloud.dialogflow.cx.v3.Webhook.Builder buil */ public Builder mergeWebhook(com.google.cloud.dialogflow.cx.v3.Webhook value) { if (webhookBuilder_ == null) { - if (webhook_ != null) { - webhook_ = - com.google.cloud.dialogflow.cx.v3.Webhook.newBuilder(webhook_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && webhook_ != null + && webhook_ != com.google.cloud.dialogflow.cx.v3.Webhook.getDefaultInstance()) { + getWebhookBuilder().mergeFrom(value); } else { webhook_ = value; } - onChanged(); } else { webhookBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -674,14 +681,13 @@ public Builder mergeWebhook(com.google.cloud.dialogflow.cx.v3.Webhook value) { *
*/ public Builder clearWebhook() { - if (webhookBuilder_ == null) { - webhook_ = null; - onChanged(); - } else { - webhook_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + webhook_ = null; + if (webhookBuilder_ != null) { + webhookBuilder_.dispose(); webhookBuilder_ = null; } - + onChanged(); return this; } /** @@ -696,7 +702,7 @@ public Builder clearWebhook() { *
*/ public com.google.cloud.dialogflow.cx.v3.Webhook.Builder getWebhookBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getWebhookFieldBuilder().getBuilder(); } @@ -767,7 +773,7 @@ public com.google.cloud.dialogflow.cx.v3.WebhookOrBuilder getWebhookOrBuilder() * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -806,11 +812,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -826,11 +832,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -845,17 +851,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -869,14 +876,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -890,7 +896,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateAgentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateAgentRequest.java index 9fbaccc88bac..785df96a3dfe 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateAgentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateAgentRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3.Agents.ValidateAgent].
+ * The request message for
+ * [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3.Agents.ValidateAgent].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ValidateAgentRequest} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -124,7 +127,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -345,7 +350,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3.Agents.ValidateAgent].
+   * The request message for
+   * [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3.Agents.ValidateAgent].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ValidateAgentRequest} @@ -379,10 +385,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - languageCode_ = ""; - return this; } @@ -410,12 +415,23 @@ public com.google.cloud.dialogflow.cx.v3.ValidateAgentRequest build() { public com.google.cloud.dialogflow.cx.v3.ValidateAgentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ValidateAgentRequest result = new com.google.cloud.dialogflow.cx.v3.ValidateAgentRequest(this); - result.name_ = name_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ValidateAgentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -464,10 +480,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ValidateAgentRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -499,13 +517,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -525,6 +543,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -595,8 +615,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -615,8 +635,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -640,8 +660,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -707,8 +727,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -724,8 +744,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -746,8 +766,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateFlowRequest.java index 2d0148b3467d..065d5718210b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateFlowRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidateFlowRequest.java @@ -22,7 +22,8 @@ * * *
- * The request message for [Flows.ValidateFlow][google.cloud.dialogflow.cx.v3.Flows.ValidateFlow].
+ * The request message for
+ * [Flows.ValidateFlow][google.cloud.dialogflow.cx.v3.Flows.ValidateFlow].
  * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ValidateFlowRequest} @@ -69,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,7 +129,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -347,7 +352,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request message for [Flows.ValidateFlow][google.cloud.dialogflow.cx.v3.Flows.ValidateFlow].
+   * The request message for
+   * [Flows.ValidateFlow][google.cloud.dialogflow.cx.v3.Flows.ValidateFlow].
    * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.ValidateFlowRequest} @@ -381,10 +387,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - languageCode_ = ""; - return this; } @@ -412,12 +417,23 @@ public com.google.cloud.dialogflow.cx.v3.ValidateFlowRequest build() { public com.google.cloud.dialogflow.cx.v3.ValidateFlowRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.ValidateFlowRequest result = new com.google.cloud.dialogflow.cx.v3.ValidateFlowRequest(this); - result.name_ = name_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ValidateFlowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -466,10 +482,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ValidateFlowRequest o return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -501,13 +519,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -527,6 +545,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -600,8 +620,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -621,8 +641,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -647,8 +667,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -714,8 +734,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -731,8 +751,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -753,8 +773,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidationMessage.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidationMessage.java index fc1e2ba624c5..f14d5747ec08 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidationMessage.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidationMessage.java @@ -654,7 +654,7 @@ private Severity(int value) { } public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; + private int resourceType_ = 0; /** * * @@ -683,15 +683,16 @@ public int getResourceTypeValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType getResourceType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType result = - com.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType.valueOf(resourceType_); + com.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType.forNumber(resourceType_); return result == null ? com.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType.UNRECOGNIZED : result; } public static final int RESOURCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList resources_; /** * @@ -765,6 +766,8 @@ public com.google.protobuf.ByteString getResourcesBytes(int index) { } public static final int RESOURCE_NAMES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") private java.util.List resourceNames_; /** * @@ -835,7 +838,7 @@ public com.google.cloud.dialogflow.cx.v3.ResourceNameOrBuilder getResourceNamesO } public static final int SEVERITY_FIELD_NUMBER = 3; - private int severity_; + private int severity_ = 0; /** * * @@ -864,16 +867,17 @@ public int getSeverityValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity getSeverity() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity result = - com.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity.valueOf(severity_); + com.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity.forNumber(severity_); return result == null ? com.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity.UNRECOGNIZED : result; } public static final int DETAIL_FIELD_NUMBER = 4; - private volatile java.lang.Object detail_; + + @SuppressWarnings("serial") + private volatile java.lang.Object detail_ = ""; /** * * @@ -1173,21 +1177,19 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; resourceType_ = 0; - resources_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); if (resourceNamesBuilder_ == null) { resourceNames_ = java.util.Collections.emptyList(); } else { resourceNames_ = null; resourceNamesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); severity_ = 0; - detail_ = ""; - return this; } @@ -1215,26 +1217,43 @@ public com.google.cloud.dialogflow.cx.v3.ValidationMessage build() { public com.google.cloud.dialogflow.cx.v3.ValidationMessage buildPartial() { com.google.cloud.dialogflow.cx.v3.ValidationMessage result = new com.google.cloud.dialogflow.cx.v3.ValidationMessage(this); - int from_bitField0_ = bitField0_; - result.resourceType_ = resourceType_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.ValidationMessage result) { + if (((bitField0_ & 0x00000002) != 0)) { resources_ = resources_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.resources_ = resources_; if (resourceNamesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { resourceNames_ = java.util.Collections.unmodifiableList(resourceNames_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.resourceNames_ = resourceNames_; } else { result.resourceNames_ = resourceNamesBuilder_.build(); } - result.severity_ = severity_; - result.detail_ = detail_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.ValidationMessage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resourceType_ = resourceType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.severity_ = severity_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.detail_ = detail_; + } } @java.lang.Override @@ -1289,7 +1308,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ValidationMessage oth if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); @@ -1300,7 +1319,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ValidationMessage oth if (!other.resourceNames_.isEmpty()) { if (resourceNames_.isEmpty()) { resourceNames_ = other.resourceNames_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureResourceNamesIsMutable(); resourceNames_.addAll(other.resourceNames_); @@ -1313,7 +1332,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ValidationMessage oth resourceNamesBuilder_.dispose(); resourceNamesBuilder_ = null; resourceNames_ = other.resourceNames_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); resourceNamesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourceNamesFieldBuilder() @@ -1328,6 +1347,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.ValidationMessage oth } if (!other.getDetail().isEmpty()) { detail_ = other.detail_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1359,7 +1379,7 @@ public Builder mergeFrom( case 8: { resourceType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: @@ -1372,13 +1392,13 @@ public Builder mergeFrom( case 24: { severity_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 24 case 34: { detail_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 34 case 50: @@ -1442,8 +1462,8 @@ public int getResourceTypeValue() { * @return This builder for chaining. */ public Builder setResourceTypeValue(int value) { - resourceType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1460,9 +1480,8 @@ public Builder setResourceTypeValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType getResourceType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType result = - com.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType.valueOf(resourceType_); + com.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType.forNumber(resourceType_); return result == null ? com.google.cloud.dialogflow.cx.v3.ValidationMessage.ResourceType.UNRECOGNIZED : result; @@ -1484,7 +1503,7 @@ public Builder setResourceType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; resourceType_ = value.getNumber(); onChanged(); return this; @@ -1501,7 +1520,7 @@ public Builder setResourceType( * @return This builder for chaining. */ public Builder clearResourceType() { - + bitField0_ = (bitField0_ & ~0x00000001); resourceType_ = 0; onChanged(); return this; @@ -1511,9 +1530,9 @@ public Builder clearResourceType() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureResourcesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { resources_ = new com.google.protobuf.LazyStringArrayList(resources_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -1672,7 +1691,7 @@ public Builder addAllResources(java.lang.Iterable values) { @java.lang.Deprecated public Builder clearResources() { resources_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1706,10 +1725,10 @@ public Builder addResourcesBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureResourceNamesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { resourceNames_ = new java.util.ArrayList(resourceNames_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } @@ -1927,7 +1946,7 @@ public Builder addAllResourceNames( public Builder clearResourceNames() { if (resourceNamesBuilder_ == null) { resourceNames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { resourceNamesBuilder_.clear(); @@ -2053,7 +2072,7 @@ public com.google.cloud.dialogflow.cx.v3.ResourceName.Builder addResourceNamesBu com.google.cloud.dialogflow.cx.v3.ResourceName.Builder, com.google.cloud.dialogflow.cx.v3.ResourceNameOrBuilder>( resourceNames_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); resourceNames_ = null; @@ -2090,8 +2109,8 @@ public int getSeverityValue() { * @return This builder for chaining. */ public Builder setSeverityValue(int value) { - severity_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2108,9 +2127,8 @@ public Builder setSeverityValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity getSeverity() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity result = - com.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity.valueOf(severity_); + com.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity.forNumber(severity_); return result == null ? com.google.cloud.dialogflow.cx.v3.ValidationMessage.Severity.UNRECOGNIZED : result; @@ -2131,7 +2149,7 @@ public Builder setSeverity(com.google.cloud.dialogflow.cx.v3.ValidationMessage.S if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; severity_ = value.getNumber(); onChanged(); return this; @@ -2148,7 +2166,7 @@ public Builder setSeverity(com.google.cloud.dialogflow.cx.v3.ValidationMessage.S * @return This builder for chaining. */ public Builder clearSeverity() { - + bitField0_ = (bitField0_ & ~0x00000008); severity_ = 0; onChanged(); return this; @@ -2215,8 +2233,8 @@ public Builder setDetail(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - detail_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2232,8 +2250,8 @@ public Builder setDetail(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDetail() { - detail_ = getDefaultInstance().getDetail(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2254,8 +2272,8 @@ public Builder setDetailBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - detail_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidationMessageProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidationMessageProto.java index f35d43814932..77388d337d34 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidationMessageProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/ValidationMessageProto.java @@ -63,12 +63,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "TE_GROUP\020\007\"F\n\010Severity\022\030\n\024SEVERITY_UNSPE" + "CIFIED\020\000\022\010\n\004INFO\020\001\022\013\n\007WARNING\020\002\022\t\n\005ERROR" + "\020\003\"2\n\014ResourceName\022\014\n\004name\030\001 \001(\t\022\024\n\014disp" - + "lay_name\030\002 \001(\tB\312\001\n!com.google.cloud.dial" - + "ogflow.cx.v3B\026ValidationMessageProtoP\001Z?" - + "google.golang.org/genproto/googleapis/cl" - + "oud/dialogflow/cx/v3;cx\370\001\001\242\002\002DF\252\002\035Google" - + ".Cloud.Dialogflow.Cx.V3\352\002!Google::Cloud:" - + ":Dialogflow::CX::V3b\006proto3" + + "lay_name\030\002 \001(\tB\274\001\n!com.google.cloud.dial" + + "ogflow.cx.v3B\026ValidationMessageProtoP\001Z1" + + "cloud.google.com/go/dialogflow/cx/apiv3/" + + "cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogf" + + "low.Cx.V3\352\002!Google::Cloud::Dialogflow::C" + + "X::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VariantsHistory.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VariantsHistory.java index 576ef10cfcf7..146df538218e 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VariantsHistory.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VariantsHistory.java @@ -203,7 +203,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } private byte memoizedIsInitialized = -1; @@ -432,13 +432,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (versionVariantsBuilder_ != null) { versionVariantsBuilder_.clear(); } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } variantsCase_ = 0; @@ -470,23 +470,29 @@ public com.google.cloud.dialogflow.cx.v3.VariantsHistory build() { public com.google.cloud.dialogflow.cx.v3.VariantsHistory buildPartial() { com.google.cloud.dialogflow.cx.v3.VariantsHistory result = new com.google.cloud.dialogflow.cx.v3.VariantsHistory(this); - if (variantsCase_ == 1) { - if (versionVariantsBuilder_ == null) { - result.variants_ = variants_; - } else { - result.variants_ = versionVariantsBuilder_.build(); - } - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.variantsCase_ = variantsCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.VariantsHistory result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.VariantsHistory result) { + result.variantsCase_ = variantsCase_; + result.variants_ = this.variants_; + if (variantsCase_ == 1 && versionVariantsBuilder_ != null) { + result.variants_ = versionVariantsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -582,7 +588,7 @@ public Builder mergeFrom( case 18: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -616,6 +622,8 @@ public Builder clearVariants() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.VersionVariants, com.google.cloud.dialogflow.cx.v3.VersionVariants.Builder, @@ -824,7 +832,6 @@ public com.google.cloud.dialogflow.cx.v3.VersionVariants.Builder getVersionVaria } variantsCase_ = 1; onChanged(); - ; return versionVariantsBuilder_; } @@ -846,7 +853,7 @@ public com.google.cloud.dialogflow.cx.v3.VersionVariants.Builder getVersionVaria * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -883,11 +890,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -902,11 +909,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -920,17 +927,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -943,14 +951,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp update_time = 2; */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -963,7 +970,7 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 2; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Version.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Version.java index a485b217619f..47e5b4c0816c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Version.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Version.java @@ -250,7 +250,9 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -303,7 +305,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -352,7 +356,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -453,7 +459,9 @@ public com.google.cloud.dialogflow.cx.v3.NluSettings getNluSettings() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.NluSettingsOrBuilder getNluSettingsOrBuilder() { - return getNluSettings(); + return nluSettings_ == null + ? com.google.cloud.dialogflow.cx.v3.NluSettings.getDefaultInstance() + : nluSettings_; } public static final int CREATE_TIME_FIELD_NUMBER = 5; @@ -502,17 +510,17 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int STATE_FIELD_NUMBER = 6; - private int state_; + private int state_ = 0; /** * * *
-   * Output only. The state of this version. This field is read-only and cannot be set by
-   * create and update methods.
+   * Output only. The state of this version. This field is read-only and cannot
+   * be set by create and update methods.
    * 
* * @@ -529,8 +537,8 @@ public int getStateValue() { * * *
-   * Output only. The state of this version. This field is read-only and cannot be set by
-   * create and update methods.
+   * Output only. The state of this version. This field is read-only and cannot
+   * be set by create and update methods.
    * 
* * @@ -541,9 +549,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Version.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.Version.State result = - com.google.cloud.dialogflow.cx.v3.Version.State.valueOf(state_); + com.google.cloud.dialogflow.cx.v3.Version.State.forNumber(state_); return result == null ? com.google.cloud.dialogflow.cx.v3.Version.State.UNRECOGNIZED : result; } @@ -799,26 +806,21 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - - if (nluSettingsBuilder_ == null) { - nluSettings_ = null; - } else { - nluSettings_ = null; + nluSettings_ = null; + if (nluSettingsBuilder_ != null) { + nluSettingsBuilder_.dispose(); nluSettingsBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } state_ = 0; - return this; } @@ -846,24 +848,36 @@ public com.google.cloud.dialogflow.cx.v3.Version build() { public com.google.cloud.dialogflow.cx.v3.Version buildPartial() { com.google.cloud.dialogflow.cx.v3.Version result = new com.google.cloud.dialogflow.cx.v3.Version(this); - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; - if (nluSettingsBuilder_ == null) { - result.nluSettings_ = nluSettings_; - } else { - result.nluSettings_ = nluSettingsBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - result.state_ = state_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Version result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nluSettings_ = + nluSettingsBuilder_ == null ? nluSettings_ : nluSettingsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -911,14 +925,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Version other) { if (other == com.google.cloud.dialogflow.cx.v3.Version.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasNluSettings()) { @@ -959,37 +976,37 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getNluSettingsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 48: { state_ = input.readEnum(); - + bitField0_ |= 0x00000020; break; } // case 48 default: @@ -1009,6 +1026,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -1076,8 +1095,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1095,8 +1114,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1119,8 +1138,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1186,8 +1205,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1203,8 +1222,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1225,8 +1244,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1295,8 +1314,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1313,8 +1332,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1336,8 +1355,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1362,7 +1381,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the nluSettings field is set. */ public boolean hasNluSettings() { - return nluSettingsBuilder_ != null || nluSettings_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1403,11 +1422,11 @@ public Builder setNluSettings(com.google.cloud.dialogflow.cx.v3.NluSettings valu throw new NullPointerException(); } nluSettings_ = value; - onChanged(); } else { nluSettingsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1425,11 +1444,11 @@ public Builder setNluSettings( com.google.cloud.dialogflow.cx.v3.NluSettings.Builder builderForValue) { if (nluSettingsBuilder_ == null) { nluSettings_ = builderForValue.build(); - onChanged(); } else { nluSettingsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1445,19 +1464,18 @@ public Builder setNluSettings( */ public Builder mergeNluSettings(com.google.cloud.dialogflow.cx.v3.NluSettings value) { if (nluSettingsBuilder_ == null) { - if (nluSettings_ != null) { - nluSettings_ = - com.google.cloud.dialogflow.cx.v3.NluSettings.newBuilder(nluSettings_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && nluSettings_ != null + && nluSettings_ != com.google.cloud.dialogflow.cx.v3.NluSettings.getDefaultInstance()) { + getNluSettingsBuilder().mergeFrom(value); } else { nluSettings_ = value; } - onChanged(); } else { nluSettingsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1472,14 +1490,13 @@ public Builder mergeNluSettings(com.google.cloud.dialogflow.cx.v3.NluSettings va * */ public Builder clearNluSettings() { - if (nluSettingsBuilder_ == null) { - nluSettings_ = null; - onChanged(); - } else { - nluSettings_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + nluSettings_ = null; + if (nluSettingsBuilder_ != null) { + nluSettingsBuilder_.dispose(); nluSettingsBuilder_ = null; } - + onChanged(); return this; } /** @@ -1494,7 +1511,7 @@ public Builder clearNluSettings() { *
*/ public com.google.cloud.dialogflow.cx.v3.NluSettings.Builder getNluSettingsBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getNluSettingsFieldBuilder().getBuilder(); } @@ -1566,7 +1583,7 @@ public com.google.cloud.dialogflow.cx.v3.NluSettingsOrBuilder getNluSettingsOrBu * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1607,11 +1624,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1628,11 +1645,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1648,17 +1665,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1673,14 +1691,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { *
*/ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1695,7 +1712,7 @@ public Builder clearCreateTime() { *
*/ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1752,8 +1769,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Output only. The state of this version. This field is read-only and cannot be set by
-     * create and update methods.
+     * Output only. The state of this version. This field is read-only and cannot
+     * be set by create and update methods.
      * 
* * @@ -1770,8 +1787,8 @@ public int getStateValue() { * * *
-     * Output only. The state of this version. This field is read-only and cannot be set by
-     * create and update methods.
+     * Output only. The state of this version. This field is read-only and cannot
+     * be set by create and update methods.
      * 
* * @@ -1782,8 +1799,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1791,8 +1808,8 @@ public Builder setStateValue(int value) { * * *
-     * Output only. The state of this version. This field is read-only and cannot be set by
-     * create and update methods.
+     * Output only. The state of this version. This field is read-only and cannot
+     * be set by create and update methods.
      * 
* * @@ -1803,17 +1820,16 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.Version.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.Version.State result = - com.google.cloud.dialogflow.cx.v3.Version.State.valueOf(state_); + com.google.cloud.dialogflow.cx.v3.Version.State.forNumber(state_); return result == null ? com.google.cloud.dialogflow.cx.v3.Version.State.UNRECOGNIZED : result; } /** * * *
-     * Output only. The state of this version. This field is read-only and cannot be set by
-     * create and update methods.
+     * Output only. The state of this version. This field is read-only and cannot
+     * be set by create and update methods.
      * 
* * @@ -1827,7 +1843,7 @@ public Builder setState(com.google.cloud.dialogflow.cx.v3.Version.State value) { if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000020; state_ = value.getNumber(); onChanged(); return this; @@ -1836,8 +1852,8 @@ public Builder setState(com.google.cloud.dialogflow.cx.v3.Version.State value) { * * *
-     * Output only. The state of this version. This field is read-only and cannot be set by
-     * create and update methods.
+     * Output only. The state of this version. This field is read-only and cannot
+     * be set by create and update methods.
      * 
* * @@ -1847,7 +1863,7 @@ public Builder setState(com.google.cloud.dialogflow.cx.v3.Version.State value) { * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000020); state_ = 0; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionOrBuilder.java index f59805189b6a..38902a1d7536 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionOrBuilder.java @@ -187,8 +187,8 @@ public interface VersionOrBuilder * * *
-   * Output only. The state of this version. This field is read-only and cannot be set by
-   * create and update methods.
+   * Output only. The state of this version. This field is read-only and cannot
+   * be set by create and update methods.
    * 
* * @@ -202,8 +202,8 @@ public interface VersionOrBuilder * * *
-   * Output only. The state of this version. This field is read-only and cannot be set by
-   * create and update methods.
+   * Output only. The state of this version. This field is read-only and cannot
+   * be set by create and update methods.
    * 
* * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionProto.java index 929b6ff2fb31..03edc8a1aede 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionProto.java @@ -172,12 +172,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "on\032x\312A\031dialogflow.googleapis.com\322AYhttps" + "://www.googleapis.com/auth/cloud-platfor" + "m,https://www.googleapis.com/auth/dialog" - + "flowB\300\001\n!com.google.cloud.dialogflow.cx." - + "v3B\014VersionProtoP\001Z?google.golang.org/ge" - + "nproto/googleapis/cloud/dialogflow/cx/v3" - + ";cx\370\001\001\242\002\002DF\252\002\035Google.Cloud.Dialogflow.Cx" - + ".V3\352\002!Google::Cloud::Dialogflow::CX::V3b" - + "\006proto3" + + "flowB\262\001\n!com.google.cloud.dialogflow.cx." + + "v3B\014VersionProtoP\001Z1cloud.google.com/go/" + + "dialogflow/cx/apiv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035" + + "Google.Cloud.Dialogflow.Cx.V3\352\002!Google::" + + "Cloud::Dialogflow::CX::V3b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionVariants.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionVariants.java index 7e9022c7a35a..131011520f7e 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionVariants.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionVariants.java @@ -178,7 +178,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object version_; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; /** * * @@ -231,7 +233,7 @@ public com.google.protobuf.ByteString getVersionBytes() { } public static final int TRAFFIC_ALLOCATION_FIELD_NUMBER = 2; - private float trafficAllocation_; + private float trafficAllocation_ = 0F; /** * * @@ -250,7 +252,7 @@ public float getTrafficAllocation() { } public static final int IS_CONTROL_GROUP_FIELD_NUMBER = 3; - private boolean isControlGroup_; + private boolean isControlGroup_ = false; /** * * @@ -486,12 +488,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; version_ = ""; - trafficAllocation_ = 0F; - isControlGroup_ = false; - return this; } @@ -519,13 +519,26 @@ public com.google.cloud.dialogflow.cx.v3.VersionVariants.Variant build() { public com.google.cloud.dialogflow.cx.v3.VersionVariants.Variant buildPartial() { com.google.cloud.dialogflow.cx.v3.VersionVariants.Variant result = new com.google.cloud.dialogflow.cx.v3.VersionVariants.Variant(this); - result.version_ = version_; - result.trafficAllocation_ = trafficAllocation_; - result.isControlGroup_ = isControlGroup_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.VersionVariants.Variant result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.trafficAllocation_ = trafficAllocation_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isControlGroup_ = isControlGroup_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -576,6 +589,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.VersionVariants.Varia return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getTrafficAllocation() != 0F) { @@ -613,19 +627,19 @@ public Builder mergeFrom( case 10: { version_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 21: { trafficAllocation_ = input.readFloat(); - + bitField0_ |= 0x00000002; break; } // case 21 case 24: { isControlGroup_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -645,6 +659,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object version_ = ""; /** * @@ -712,8 +728,8 @@ public Builder setVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - version_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -731,8 +747,8 @@ public Builder setVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -755,8 +771,8 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - version_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -794,6 +810,7 @@ public float getTrafficAllocation() { public Builder setTrafficAllocation(float value) { trafficAllocation_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -810,7 +827,7 @@ public Builder setTrafficAllocation(float value) { * @return This builder for chaining. */ public Builder clearTrafficAllocation() { - + bitField0_ = (bitField0_ & ~0x00000002); trafficAllocation_ = 0F; onChanged(); return this; @@ -847,6 +864,7 @@ public boolean getIsControlGroup() { public Builder setIsControlGroup(boolean value) { isControlGroup_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -862,7 +880,7 @@ public Builder setIsControlGroup(boolean value) { * @return This builder for chaining. */ public Builder clearIsControlGroup() { - + bitField0_ = (bitField0_ & ~0x00000004); isControlGroup_ = false; onChanged(); return this; @@ -933,6 +951,8 @@ public com.google.cloud.dialogflow.cx.v3.VersionVariants.Variant getDefaultInsta } public static final int VARIANTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List variants_; /** * @@ -1203,6 +1223,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (variantsBuilder_ == null) { variants_ = java.util.Collections.emptyList(); } else { @@ -1237,7 +1258,16 @@ public com.google.cloud.dialogflow.cx.v3.VersionVariants build() { public com.google.cloud.dialogflow.cx.v3.VersionVariants buildPartial() { com.google.cloud.dialogflow.cx.v3.VersionVariants result = new com.google.cloud.dialogflow.cx.v3.VersionVariants(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.VersionVariants result) { if (variantsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { variants_ = java.util.Collections.unmodifiableList(variants_); @@ -1247,8 +1277,10 @@ public com.google.cloud.dialogflow.cx.v3.VersionVariants buildPartial() { } else { result.variants_ = variantsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.VersionVariants result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VoiceSelectionParams.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VoiceSelectionParams.java index dc88e8647695..b9080de37091 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VoiceSelectionParams.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VoiceSelectionParams.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,17 +128,17 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int SSML_GENDER_FIELD_NUMBER = 2; - private int ssmlGender_; + private int ssmlGender_ = 0; /** * * *
    * Optional. The preferred gender of the voice. If not set, the service will
    * choose a voice based on the other parameters such as language_code and
-   * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
-   * voice of the appropriate gender is not available, the synthesizer
-   * substitutes a voice with a different gender rather than failing the
-   * request.
+   * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
+   * this is only a preference, not requirement. If a voice of the appropriate
+   * gender is not available, the synthesizer substitutes a voice with a
+   * different gender rather than failing the request.
    * 
* * .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2; @@ -153,10 +155,10 @@ public int getSsmlGenderValue() { *
    * Optional. The preferred gender of the voice. If not set, the service will
    * choose a voice based on the other parameters such as language_code and
-   * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
-   * voice of the appropriate gender is not available, the synthesizer
-   * substitutes a voice with a different gender rather than failing the
-   * request.
+   * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
+   * this is only a preference, not requirement. If a voice of the appropriate
+   * gender is not available, the synthesizer substitutes a voice with a
+   * different gender rather than failing the request.
    * 
* * .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2; @@ -165,9 +167,8 @@ public int getSsmlGenderValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender getSsmlGender() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender result = - com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender.valueOf(ssmlGender_); + com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender.forNumber(ssmlGender_); return result == null ? com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender.UNRECOGNIZED : result; } @@ -382,10 +383,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - ssmlGender_ = 0; - return this; } @@ -413,12 +413,23 @@ public com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams build() { public com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams buildPartial() { com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams result = new com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams(this); - result.name_ = name_; - result.ssmlGender_ = ssmlGender_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ssmlGender_ = ssmlGender_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -467,6 +478,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.VoiceSelectionParams return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.ssmlGender_ != 0) { @@ -501,13 +513,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { ssmlGender_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -527,6 +539,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -600,8 +614,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -621,8 +635,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -647,8 +661,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -660,10 +674,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
      * Optional. The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
-     * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
-     * voice of the appropriate gender is not available, the synthesizer
-     * substitutes a voice with a different gender rather than failing the
-     * request.
+     * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
+     * this is only a preference, not requirement. If a voice of the appropriate
+     * gender is not available, the synthesizer substitutes a voice with a
+     * different gender rather than failing the request.
      * 
* * .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2; @@ -680,10 +694,10 @@ public int getSsmlGenderValue() { *
      * Optional. The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
-     * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
-     * voice of the appropriate gender is not available, the synthesizer
-     * substitutes a voice with a different gender rather than failing the
-     * request.
+     * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
+     * this is only a preference, not requirement. If a voice of the appropriate
+     * gender is not available, the synthesizer substitutes a voice with a
+     * different gender rather than failing the request.
      * 
* * .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2; @@ -692,8 +706,8 @@ public int getSsmlGenderValue() { * @return This builder for chaining. */ public Builder setSsmlGenderValue(int value) { - ssmlGender_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -703,10 +717,10 @@ public Builder setSsmlGenderValue(int value) { *
      * Optional. The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
-     * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
-     * voice of the appropriate gender is not available, the synthesizer
-     * substitutes a voice with a different gender rather than failing the
-     * request.
+     * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
+     * this is only a preference, not requirement. If a voice of the appropriate
+     * gender is not available, the synthesizer substitutes a voice with a
+     * different gender rather than failing the request.
      * 
* * .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2; @@ -715,9 +729,8 @@ public Builder setSsmlGenderValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender getSsmlGender() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender result = - com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender.valueOf(ssmlGender_); + com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender.forNumber(ssmlGender_); return result == null ? com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender.UNRECOGNIZED : result; @@ -728,10 +741,10 @@ public com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender getSsmlGender() { *
      * Optional. The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
-     * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
-     * voice of the appropriate gender is not available, the synthesizer
-     * substitutes a voice with a different gender rather than failing the
-     * request.
+     * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
+     * this is only a preference, not requirement. If a voice of the appropriate
+     * gender is not available, the synthesizer substitutes a voice with a
+     * different gender rather than failing the request.
      * 
* * .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2; @@ -743,7 +756,7 @@ public Builder setSsmlGender(com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender v if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; ssmlGender_ = value.getNumber(); onChanged(); return this; @@ -754,10 +767,10 @@ public Builder setSsmlGender(com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender v *
      * Optional. The preferred gender of the voice. If not set, the service will
      * choose a voice based on the other parameters such as language_code and
-     * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
-     * voice of the appropriate gender is not available, the synthesizer
-     * substitutes a voice with a different gender rather than failing the
-     * request.
+     * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
+     * this is only a preference, not requirement. If a voice of the appropriate
+     * gender is not available, the synthesizer substitutes a voice with a
+     * different gender rather than failing the request.
      * 
* * .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2; @@ -765,7 +778,7 @@ public Builder setSsmlGender(com.google.cloud.dialogflow.cx.v3.SsmlVoiceGender v * @return This builder for chaining. */ public Builder clearSsmlGender() { - + bitField0_ = (bitField0_ & ~0x00000002); ssmlGender_ = 0; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VoiceSelectionParamsOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VoiceSelectionParamsOrBuilder.java index a57b6464fbb4..d1428136991b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VoiceSelectionParamsOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/VoiceSelectionParamsOrBuilder.java @@ -62,10 +62,10 @@ public interface VoiceSelectionParamsOrBuilder *
    * Optional. The preferred gender of the voice. If not set, the service will
    * choose a voice based on the other parameters such as language_code and
-   * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
-   * voice of the appropriate gender is not available, the synthesizer
-   * substitutes a voice with a different gender rather than failing the
-   * request.
+   * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
+   * this is only a preference, not requirement. If a voice of the appropriate
+   * gender is not available, the synthesizer substitutes a voice with a
+   * different gender rather than failing the request.
    * 
* * .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2; @@ -79,10 +79,10 @@ public interface VoiceSelectionParamsOrBuilder *
    * Optional. The preferred gender of the voice. If not set, the service will
    * choose a voice based on the other parameters such as language_code and
-   * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that this is only a preference, not requirement. If a
-   * voice of the appropriate gender is not available, the synthesizer
-   * substitutes a voice with a different gender rather than failing the
-   * request.
+   * [name][google.cloud.dialogflow.cx.v3.VoiceSelectionParams.name]. Note that
+   * this is only a preference, not requirement. If a voice of the appropriate
+   * gender is not available, the synthesizer substitutes a voice with a
+   * different gender rather than failing the request.
    * 
* * .google.cloud.dialogflow.cx.v3.SsmlVoiceGender ssml_gender = 2; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Webhook.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Webhook.java index 794dc859d3dc..0253e3d31300 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Webhook.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/Webhook.java @@ -80,7 +80,8 @@ public interface GenericWebServiceOrBuilder * * *
-     * Required. The webhook URI for receiving POST requests. It must use https protocol.
+     * Required. The webhook URI for receiving POST requests. It must use https
+     * protocol.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -92,7 +93,8 @@ public interface GenericWebServiceOrBuilder * * *
-     * Required. The webhook URI for receiving POST requests. It must use https protocol.
+     * Required. The webhook URI for receiving POST requests. It must use https
+     * protocol.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -111,7 +113,7 @@ public interface GenericWebServiceOrBuilder * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=107 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=108 * @return The username. */ @java.lang.Deprecated @@ -126,7 +128,7 @@ public interface GenericWebServiceOrBuilder * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=107 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=108 * @return The bytes for username. */ @java.lang.Deprecated @@ -142,7 +144,7 @@ public interface GenericWebServiceOrBuilder * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=110 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=111 * @return The password. */ @java.lang.Deprecated @@ -157,7 +159,7 @@ public interface GenericWebServiceOrBuilder * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=110 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=111 * @return The bytes for password. */ @java.lang.Deprecated @@ -209,7 +211,6 @@ public interface GenericWebServiceOrBuilder * * map<string, string> request_headers = 4; */ - /* nullable */ java.lang.String getRequestHeadersOrDefault( java.lang.String key, @@ -231,13 +232,12 @@ java.lang.String getRequestHeadersOrDefault( * * *
-     * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
-     * HTTPS verification. This overrides the default SSL trust store. If this
-     * is empty or unspecified, Dialogflow will use Google's default trust store
-     * to verify certificates.
-     * N.B. Make sure the HTTPS server certificates are signed with "subject alt
-     * name". For instance a certificate can be self-signed using the following
-     * command,
+     * Optional. Specifies a list of allowed custom CA certificates (in DER
+     * format) for HTTPS verification. This overrides the default SSL trust
+     * store. If this is empty or unspecified, Dialogflow will use Google's
+     * default trust store to verify certificates. N.B. Make sure the HTTPS
+     * server certificates are signed with "subject alt name". For instance a
+     * certificate can be self-signed using the following command,
      * ```
      *    openssl x509 -req -days 200 -in example.com.csr \
      *      -signkey example.com.key \
@@ -255,13 +255,12 @@ java.lang.String getRequestHeadersOrDefault(
      *
      *
      * 
-     * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
-     * HTTPS verification. This overrides the default SSL trust store. If this
-     * is empty or unspecified, Dialogflow will use Google's default trust store
-     * to verify certificates.
-     * N.B. Make sure the HTTPS server certificates are signed with "subject alt
-     * name". For instance a certificate can be self-signed using the following
-     * command,
+     * Optional. Specifies a list of allowed custom CA certificates (in DER
+     * format) for HTTPS verification. This overrides the default SSL trust
+     * store. If this is empty or unspecified, Dialogflow will use Google's
+     * default trust store to verify certificates. N.B. Make sure the HTTPS
+     * server certificates are signed with "subject alt name". For instance a
+     * certificate can be self-signed using the following command,
      * ```
      *    openssl x509 -req -days 200 -in example.com.csr \
      *      -signkey example.com.key \
@@ -279,13 +278,12 @@ java.lang.String getRequestHeadersOrDefault(
      *
      *
      * 
-     * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
-     * HTTPS verification. This overrides the default SSL trust store. If this
-     * is empty or unspecified, Dialogflow will use Google's default trust store
-     * to verify certificates.
-     * N.B. Make sure the HTTPS server certificates are signed with "subject alt
-     * name". For instance a certificate can be self-signed using the following
-     * command,
+     * Optional. Specifies a list of allowed custom CA certificates (in DER
+     * format) for HTTPS verification. This overrides the default SSL trust
+     * store. If this is empty or unspecified, Dialogflow will use Google's
+     * default trust store to verify certificates. N.B. Make sure the HTTPS
+     * server certificates are signed with "subject alt name". For instance a
+     * certificate can be self-signed using the following command,
      * ```
      *    openssl x509 -req -days 200 -in example.com.csr \
      *      -signkey example.com.key \
@@ -365,12 +363,15 @@ protected com.google.protobuf.MapField internalGetMapField(int number) {
     }
 
     public static final int URI_FIELD_NUMBER = 1;
-    private volatile java.lang.Object uri_;
+
+    @SuppressWarnings("serial")
+    private volatile java.lang.Object uri_ = "";
     /**
      *
      *
      * 
-     * Required. The webhook URI for receiving POST requests. It must use https protocol.
+     * Required. The webhook URI for receiving POST requests. It must use https
+     * protocol.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -393,7 +394,8 @@ public java.lang.String getUri() { * * *
-     * Required. The webhook URI for receiving POST requests. It must use https protocol.
+     * Required. The webhook URI for receiving POST requests. It must use https
+     * protocol.
      * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -414,7 +416,9 @@ public com.google.protobuf.ByteString getUriBytes() { } public static final int USERNAME_FIELD_NUMBER = 2; - private volatile java.lang.Object username_; + + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; /** * * @@ -425,7 +429,7 @@ public com.google.protobuf.ByteString getUriBytes() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=107 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=108 * @return The username. */ @java.lang.Override @@ -451,7 +455,7 @@ public java.lang.String getUsername() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=107 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=108 * @return The bytes for username. */ @java.lang.Override @@ -469,7 +473,9 @@ public com.google.protobuf.ByteString getUsernameBytes() { } public static final int PASSWORD_FIELD_NUMBER = 3; - private volatile java.lang.Object password_; + + @SuppressWarnings("serial") + private volatile java.lang.Object password_ = ""; /** * * @@ -480,7 +486,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=110 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=111 * @return The password. */ @java.lang.Override @@ -506,7 +512,7 @@ public java.lang.String getPassword() { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=110 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=111 * @return The bytes for password. */ @java.lang.Override @@ -536,6 +542,7 @@ private static final class RequestHeadersDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField requestHeaders_; private com.google.protobuf.MapField @@ -598,8 +605,10 @@ public java.util.Map getRequestHeadersMap() * map<string, string> request_headers = 4; */ @java.lang.Override - public java.lang.String getRequestHeadersOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getRequestHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -629,18 +638,19 @@ public java.lang.String getRequestHeadersOrThrow(java.lang.String key) { } public static final int ALLOWED_CA_CERTS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private java.util.List allowedCaCerts_; /** * * *
-     * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
-     * HTTPS verification. This overrides the default SSL trust store. If this
-     * is empty or unspecified, Dialogflow will use Google's default trust store
-     * to verify certificates.
-     * N.B. Make sure the HTTPS server certificates are signed with "subject alt
-     * name". For instance a certificate can be self-signed using the following
-     * command,
+     * Optional. Specifies a list of allowed custom CA certificates (in DER
+     * format) for HTTPS verification. This overrides the default SSL trust
+     * store. If this is empty or unspecified, Dialogflow will use Google's
+     * default trust store to verify certificates. N.B. Make sure the HTTPS
+     * server certificates are signed with "subject alt name". For instance a
+     * certificate can be self-signed using the following command,
      * ```
      *    openssl x509 -req -days 200 -in example.com.csr \
      *      -signkey example.com.key \
@@ -661,13 +671,12 @@ public java.util.List getAllowedCaCertsList() {
      *
      *
      * 
-     * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
-     * HTTPS verification. This overrides the default SSL trust store. If this
-     * is empty or unspecified, Dialogflow will use Google's default trust store
-     * to verify certificates.
-     * N.B. Make sure the HTTPS server certificates are signed with "subject alt
-     * name". For instance a certificate can be self-signed using the following
-     * command,
+     * Optional. Specifies a list of allowed custom CA certificates (in DER
+     * format) for HTTPS verification. This overrides the default SSL trust
+     * store. If this is empty or unspecified, Dialogflow will use Google's
+     * default trust store to verify certificates. N.B. Make sure the HTTPS
+     * server certificates are signed with "subject alt name". For instance a
+     * certificate can be self-signed using the following command,
      * ```
      *    openssl x509 -req -days 200 -in example.com.csr \
      *      -signkey example.com.key \
@@ -687,13 +696,12 @@ public int getAllowedCaCertsCount() {
      *
      *
      * 
-     * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
-     * HTTPS verification. This overrides the default SSL trust store. If this
-     * is empty or unspecified, Dialogflow will use Google's default trust store
-     * to verify certificates.
-     * N.B. Make sure the HTTPS server certificates are signed with "subject alt
-     * name". For instance a certificate can be self-signed using the following
-     * command,
+     * Optional. Specifies a list of allowed custom CA certificates (in DER
+     * format) for HTTPS verification. This overrides the default SSL trust
+     * store. If this is empty or unspecified, Dialogflow will use Google's
+     * default trust store to verify certificates. N.B. Make sure the HTTPS
+     * server certificates are signed with "subject alt name". For instance a
+     * certificate can be self-signed using the following command,
      * ```
      *    openssl x509 -req -days 200 -in example.com.csr \
      *      -signkey example.com.key \
@@ -983,15 +991,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       @java.lang.Override
       public Builder clear() {
         super.clear();
+        bitField0_ = 0;
         uri_ = "";
-
         username_ = "";
-
         password_ = "";
-
         internalGetMutableRequestHeaders().clear();
         allowedCaCerts_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000002);
         return this;
       }
 
@@ -1020,21 +1025,41 @@ public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService build() {
       public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService buildPartial() {
         com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService result =
             new com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService(this);
-        int from_bitField0_ = bitField0_;
-        result.uri_ = uri_;
-        result.username_ = username_;
-        result.password_ = password_;
-        result.requestHeaders_ = internalGetRequestHeaders();
-        result.requestHeaders_.makeImmutable();
-        if (((bitField0_ & 0x00000002) != 0)) {
-          allowedCaCerts_ = java.util.Collections.unmodifiableList(allowedCaCerts_);
-          bitField0_ = (bitField0_ & ~0x00000002);
+        buildPartialRepeatedFields(result);
+        if (bitField0_ != 0) {
+          buildPartial0(result);
         }
-        result.allowedCaCerts_ = allowedCaCerts_;
         onBuilt();
         return result;
       }
 
+      private void buildPartialRepeatedFields(
+          com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService result) {
+        if (((bitField0_ & 0x00000010) != 0)) {
+          allowedCaCerts_ = java.util.Collections.unmodifiableList(allowedCaCerts_);
+          bitField0_ = (bitField0_ & ~0x00000010);
+        }
+        result.allowedCaCerts_ = allowedCaCerts_;
+      }
+
+      private void buildPartial0(
+          com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService result) {
+        int from_bitField0_ = bitField0_;
+        if (((from_bitField0_ & 0x00000001) != 0)) {
+          result.uri_ = uri_;
+        }
+        if (((from_bitField0_ & 0x00000002) != 0)) {
+          result.username_ = username_;
+        }
+        if (((from_bitField0_ & 0x00000004) != 0)) {
+          result.password_ = password_;
+        }
+        if (((from_bitField0_ & 0x00000008) != 0)) {
+          result.requestHeaders_ = internalGetRequestHeaders();
+          result.requestHeaders_.makeImmutable();
+        }
+      }
+
       @java.lang.Override
       public Builder clone() {
         return super.clone();
@@ -1086,21 +1111,25 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebSer
           return this;
         if (!other.getUri().isEmpty()) {
           uri_ = other.uri_;
+          bitField0_ |= 0x00000001;
           onChanged();
         }
         if (!other.getUsername().isEmpty()) {
           username_ = other.username_;
+          bitField0_ |= 0x00000002;
           onChanged();
         }
         if (!other.getPassword().isEmpty()) {
           password_ = other.password_;
+          bitField0_ |= 0x00000004;
           onChanged();
         }
         internalGetMutableRequestHeaders().mergeFrom(other.internalGetRequestHeaders());
+        bitField0_ |= 0x00000008;
         if (!other.allowedCaCerts_.isEmpty()) {
           if (allowedCaCerts_.isEmpty()) {
             allowedCaCerts_ = other.allowedCaCerts_;
-            bitField0_ = (bitField0_ & ~0x00000002);
+            bitField0_ = (bitField0_ & ~0x00000010);
           } else {
             ensureAllowedCaCertsIsMutable();
             allowedCaCerts_.addAll(other.allowedCaCerts_);
@@ -1136,19 +1165,19 @@ public Builder mergeFrom(
               case 10:
                 {
                   uri_ = input.readStringRequireUtf8();
-
+                  bitField0_ |= 0x00000001;
                   break;
                 } // case 10
               case 18:
                 {
                   username_ = input.readStringRequireUtf8();
-
+                  bitField0_ |= 0x00000002;
                   break;
                 } // case 18
               case 26:
                 {
                   password_ = input.readStringRequireUtf8();
-
+                  bitField0_ |= 0x00000004;
                   break;
                 } // case 26
               case 34:
@@ -1161,6 +1190,7 @@ public Builder mergeFrom(
                   internalGetMutableRequestHeaders()
                       .getMutableMap()
                       .put(requestHeaders__.getKey(), requestHeaders__.getValue());
+                  bitField0_ |= 0x00000008;
                   break;
                 } // case 34
               case 42:
@@ -1194,7 +1224,8 @@ public Builder mergeFrom(
        *
        *
        * 
-       * Required. The webhook URI for receiving POST requests. It must use https protocol.
+       * Required. The webhook URI for receiving POST requests. It must use https
+       * protocol.
        * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1216,7 +1247,8 @@ public java.lang.String getUri() { * * *
-       * Required. The webhook URI for receiving POST requests. It must use https protocol.
+       * Required. The webhook URI for receiving POST requests. It must use https
+       * protocol.
        * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1238,7 +1270,8 @@ public com.google.protobuf.ByteString getUriBytes() { * * *
-       * Required. The webhook URI for receiving POST requests. It must use https protocol.
+       * Required. The webhook URI for receiving POST requests. It must use https
+       * protocol.
        * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1250,8 +1283,8 @@ public Builder setUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - uri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1259,7 +1292,8 @@ public Builder setUri(java.lang.String value) { * * *
-       * Required. The webhook URI for receiving POST requests. It must use https protocol.
+       * Required. The webhook URI for receiving POST requests. It must use https
+       * protocol.
        * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1267,8 +1301,8 @@ public Builder setUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearUri() { - uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1276,7 +1310,8 @@ public Builder clearUri() { * * *
-       * Required. The webhook URI for receiving POST requests. It must use https protocol.
+       * Required. The webhook URI for receiving POST requests. It must use https
+       * protocol.
        * 
* * string uri = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -1289,8 +1324,8 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - uri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1306,7 +1341,7 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=107 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=108 * @return The username. */ @java.lang.Deprecated @@ -1331,7 +1366,7 @@ public java.lang.String getUsername() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=107 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=108 * @return The bytes for username. */ @java.lang.Deprecated @@ -1356,7 +1391,7 @@ public com.google.protobuf.ByteString getUsernameBytes() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=107 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=108 * @param value The username to set. * @return This builder for chaining. */ @@ -1365,8 +1400,8 @@ public Builder setUsername(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - username_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1380,13 +1415,13 @@ public Builder setUsername(java.lang.String value) { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=107 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=108 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearUsername() { - username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1400,7 +1435,7 @@ public Builder clearUsername() { * string username = 2 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.username is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=107 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=108 * @param value The bytes for username to set. * @return This builder for chaining. */ @@ -1410,8 +1445,8 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - username_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1427,7 +1462,7 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=110 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=111 * @return The password. */ @java.lang.Deprecated @@ -1452,7 +1487,7 @@ public java.lang.String getPassword() { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=110 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=111 * @return The bytes for password. */ @java.lang.Deprecated @@ -1477,7 +1512,7 @@ public com.google.protobuf.ByteString getPasswordBytes() { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=110 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=111 * @param value The password to set. * @return This builder for chaining. */ @@ -1486,8 +1521,8 @@ public Builder setPassword(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - password_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1501,13 +1536,13 @@ public Builder setPassword(java.lang.String value) { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=110 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=111 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearPassword() { - password_ = getDefaultInstance().getPassword(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1521,7 +1556,7 @@ public Builder clearPassword() { * string password = 3 [deprecated = true]; * * @deprecated google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.password is deprecated. - * See google/cloud/dialogflow/cx/v3/webhook.proto;l=110 + * See google/cloud/dialogflow/cx/v3/webhook.proto;l=111 * @param value The bytes for password to set. * @return This builder for chaining. */ @@ -1531,8 +1566,8 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - password_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1550,8 +1585,6 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.MapField internalGetMutableRequestHeaders() { - onChanged(); - ; if (requestHeaders_ == null) { requestHeaders_ = com.google.protobuf.MapField.newMapField( @@ -1560,6 +1593,8 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (!requestHeaders_.isMutable()) { requestHeaders_ = requestHeaders_.copy(); } + bitField0_ |= 0x00000008; + onChanged(); return requestHeaders_; } @@ -1614,8 +1649,10 @@ public java.util.Map getRequestHeadersMap() * map<string, string> request_headers = 4; */ @java.lang.Override - public java.lang.String getRequestHeadersOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getRequestHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1647,6 +1684,7 @@ public java.lang.String getRequestHeadersOrThrow(java.lang.String key) { } public Builder clearRequestHeaders() { + bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableRequestHeaders().getMutableMap().clear(); return this; } @@ -1670,6 +1708,7 @@ public Builder removeRequestHeaders(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableRequestHeaders() { + bitField0_ |= 0x00000008; return internalGetMutableRequestHeaders().getMutableMap(); } /** @@ -1689,8 +1728,8 @@ public Builder putRequestHeaders(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableRequestHeaders().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; return this; } /** @@ -1706,6 +1745,7 @@ public Builder putRequestHeaders(java.lang.String key, java.lang.String value) { public Builder putAllRequestHeaders( java.util.Map values) { internalGetMutableRequestHeaders().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; return this; } @@ -1713,23 +1753,22 @@ public Builder putAllRequestHeaders( java.util.Collections.emptyList(); private void ensureAllowedCaCertsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { allowedCaCerts_ = new java.util.ArrayList(allowedCaCerts_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; } } /** * * *
-       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
-       * HTTPS verification. This overrides the default SSL trust store. If this
-       * is empty or unspecified, Dialogflow will use Google's default trust store
-       * to verify certificates.
-       * N.B. Make sure the HTTPS server certificates are signed with "subject alt
-       * name". For instance a certificate can be self-signed using the following
-       * command,
+       * Optional. Specifies a list of allowed custom CA certificates (in DER
+       * format) for HTTPS verification. This overrides the default SSL trust
+       * store. If this is empty or unspecified, Dialogflow will use Google's
+       * default trust store to verify certificates. N.B. Make sure the HTTPS
+       * server certificates are signed with "subject alt name". For instance a
+       * certificate can be self-signed using the following command,
        * ```
        *    openssl x509 -req -days 200 -in example.com.csr \
        *      -signkey example.com.key \
@@ -1743,7 +1782,7 @@ private void ensureAllowedCaCertsIsMutable() {
        * @return A list containing the allowedCaCerts.
        */
       public java.util.List getAllowedCaCertsList() {
-        return ((bitField0_ & 0x00000002) != 0)
+        return ((bitField0_ & 0x00000010) != 0)
             ? java.util.Collections.unmodifiableList(allowedCaCerts_)
             : allowedCaCerts_;
       }
@@ -1751,13 +1790,12 @@ public java.util.List getAllowedCaCertsList() {
        *
        *
        * 
-       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
-       * HTTPS verification. This overrides the default SSL trust store. If this
-       * is empty or unspecified, Dialogflow will use Google's default trust store
-       * to verify certificates.
-       * N.B. Make sure the HTTPS server certificates are signed with "subject alt
-       * name". For instance a certificate can be self-signed using the following
-       * command,
+       * Optional. Specifies a list of allowed custom CA certificates (in DER
+       * format) for HTTPS verification. This overrides the default SSL trust
+       * store. If this is empty or unspecified, Dialogflow will use Google's
+       * default trust store to verify certificates. N.B. Make sure the HTTPS
+       * server certificates are signed with "subject alt name". For instance a
+       * certificate can be self-signed using the following command,
        * ```
        *    openssl x509 -req -days 200 -in example.com.csr \
        *      -signkey example.com.key \
@@ -1777,13 +1815,12 @@ public int getAllowedCaCertsCount() {
        *
        *
        * 
-       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
-       * HTTPS verification. This overrides the default SSL trust store. If this
-       * is empty or unspecified, Dialogflow will use Google's default trust store
-       * to verify certificates.
-       * N.B. Make sure the HTTPS server certificates are signed with "subject alt
-       * name". For instance a certificate can be self-signed using the following
-       * command,
+       * Optional. Specifies a list of allowed custom CA certificates (in DER
+       * format) for HTTPS verification. This overrides the default SSL trust
+       * store. If this is empty or unspecified, Dialogflow will use Google's
+       * default trust store to verify certificates. N.B. Make sure the HTTPS
+       * server certificates are signed with "subject alt name". For instance a
+       * certificate can be self-signed using the following command,
        * ```
        *    openssl x509 -req -days 200 -in example.com.csr \
        *      -signkey example.com.key \
@@ -1804,13 +1841,12 @@ public com.google.protobuf.ByteString getAllowedCaCerts(int index) {
        *
        *
        * 
-       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
-       * HTTPS verification. This overrides the default SSL trust store. If this
-       * is empty or unspecified, Dialogflow will use Google's default trust store
-       * to verify certificates.
-       * N.B. Make sure the HTTPS server certificates are signed with "subject alt
-       * name". For instance a certificate can be self-signed using the following
-       * command,
+       * Optional. Specifies a list of allowed custom CA certificates (in DER
+       * format) for HTTPS verification. This overrides the default SSL trust
+       * store. If this is empty or unspecified, Dialogflow will use Google's
+       * default trust store to verify certificates. N.B. Make sure the HTTPS
+       * server certificates are signed with "subject alt name". For instance a
+       * certificate can be self-signed using the following command,
        * ```
        *    openssl x509 -req -days 200 -in example.com.csr \
        *      -signkey example.com.key \
@@ -1838,13 +1874,12 @@ public Builder setAllowedCaCerts(int index, com.google.protobuf.ByteString value
        *
        *
        * 
-       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
-       * HTTPS verification. This overrides the default SSL trust store. If this
-       * is empty or unspecified, Dialogflow will use Google's default trust store
-       * to verify certificates.
-       * N.B. Make sure the HTTPS server certificates are signed with "subject alt
-       * name". For instance a certificate can be self-signed using the following
-       * command,
+       * Optional. Specifies a list of allowed custom CA certificates (in DER
+       * format) for HTTPS verification. This overrides the default SSL trust
+       * store. If this is empty or unspecified, Dialogflow will use Google's
+       * default trust store to verify certificates. N.B. Make sure the HTTPS
+       * server certificates are signed with "subject alt name". For instance a
+       * certificate can be self-signed using the following command,
        * ```
        *    openssl x509 -req -days 200 -in example.com.csr \
        *      -signkey example.com.key \
@@ -1871,13 +1906,12 @@ public Builder addAllowedCaCerts(com.google.protobuf.ByteString value) {
        *
        *
        * 
-       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
-       * HTTPS verification. This overrides the default SSL trust store. If this
-       * is empty or unspecified, Dialogflow will use Google's default trust store
-       * to verify certificates.
-       * N.B. Make sure the HTTPS server certificates are signed with "subject alt
-       * name". For instance a certificate can be self-signed using the following
-       * command,
+       * Optional. Specifies a list of allowed custom CA certificates (in DER
+       * format) for HTTPS verification. This overrides the default SSL trust
+       * store. If this is empty or unspecified, Dialogflow will use Google's
+       * default trust store to verify certificates. N.B. Make sure the HTTPS
+       * server certificates are signed with "subject alt name". For instance a
+       * certificate can be self-signed using the following command,
        * ```
        *    openssl x509 -req -days 200 -in example.com.csr \
        *      -signkey example.com.key \
@@ -1902,13 +1936,12 @@ public Builder addAllAllowedCaCerts(
        *
        *
        * 
-       * Optional. Specifies a list of allowed custom CA certificates (in DER format) for
-       * HTTPS verification. This overrides the default SSL trust store. If this
-       * is empty or unspecified, Dialogflow will use Google's default trust store
-       * to verify certificates.
-       * N.B. Make sure the HTTPS server certificates are signed with "subject alt
-       * name". For instance a certificate can be self-signed using the following
-       * command,
+       * Optional. Specifies a list of allowed custom CA certificates (in DER
+       * format) for HTTPS verification. This overrides the default SSL trust
+       * store. If this is empty or unspecified, Dialogflow will use Google's
+       * default trust store to verify certificates. N.B. Make sure the HTTPS
+       * server certificates are signed with "subject alt name". For instance a
+       * certificate can be self-signed using the following command,
        * ```
        *    openssl x509 -req -days 200 -in example.com.csr \
        *      -signkey example.com.key \
@@ -1923,7 +1956,7 @@ public Builder addAllAllowedCaCerts(
        */
       public Builder clearAllowedCaCerts() {
         allowedCaCerts_ = java.util.Collections.emptyList();
-        bitField0_ = (bitField0_ & ~0x00000002);
+        bitField0_ = (bitField0_ & ~0x00000010);
         onChanged();
         return this;
       }
@@ -2127,7 +2160,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
     }
 
     public static final int SERVICE_FIELD_NUMBER = 1;
-    private volatile java.lang.Object service_;
+
+    @SuppressWarnings("serial")
+    private volatile java.lang.Object service_ = "";
     /**
      *
      *
@@ -2238,7 +2273,9 @@ public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService getGenericWeb
     @java.lang.Override
     public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebServiceOrBuilder
         getGenericWebServiceOrBuilder() {
-      return getGenericWebService();
+      return genericWebService_ == null
+          ? com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.getDefaultInstance()
+          : genericWebService_;
     }
 
     private byte memoizedIsInitialized = -1;
@@ -2458,12 +2495,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       @java.lang.Override
       public Builder clear() {
         super.clear();
+        bitField0_ = 0;
         service_ = "";
-
-        if (genericWebServiceBuilder_ == null) {
-          genericWebService_ = null;
-        } else {
-          genericWebService_ = null;
+        genericWebService_ = null;
+        if (genericWebServiceBuilder_ != null) {
+          genericWebServiceBuilder_.dispose();
           genericWebServiceBuilder_ = null;
         }
         return this;
@@ -2495,16 +2531,27 @@ public com.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig build()
       public com.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig buildPartial() {
         com.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig result =
             new com.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig(this);
-        result.service_ = service_;
-        if (genericWebServiceBuilder_ == null) {
-          result.genericWebService_ = genericWebService_;
-        } else {
-          result.genericWebService_ = genericWebServiceBuilder_.build();
+        if (bitField0_ != 0) {
+          buildPartial0(result);
         }
         onBuilt();
         return result;
       }
 
+      private void buildPartial0(
+          com.google.cloud.dialogflow.cx.v3.Webhook.ServiceDirectoryConfig result) {
+        int from_bitField0_ = bitField0_;
+        if (((from_bitField0_ & 0x00000001) != 0)) {
+          result.service_ = service_;
+        }
+        if (((from_bitField0_ & 0x00000002) != 0)) {
+          result.genericWebService_ =
+              genericWebServiceBuilder_ == null
+                  ? genericWebService_
+                  : genericWebServiceBuilder_.build();
+        }
+      }
+
       @java.lang.Override
       public Builder clone() {
         return super.clone();
@@ -2558,6 +2605,7 @@ public Builder mergeFrom(
                 .getDefaultInstance()) return this;
         if (!other.getService().isEmpty()) {
           service_ = other.service_;
+          bitField0_ |= 0x00000001;
           onChanged();
         }
         if (other.hasGenericWebService()) {
@@ -2592,14 +2640,14 @@ public Builder mergeFrom(
               case 10:
                 {
                   service_ = input.readStringRequireUtf8();
-
+                  bitField0_ |= 0x00000001;
                   break;
                 } // case 10
               case 18:
                 {
                   input.readMessage(
                       getGenericWebServiceFieldBuilder().getBuilder(), extensionRegistry);
-
+                  bitField0_ |= 0x00000002;
                   break;
                 } // case 18
               default:
@@ -2619,6 +2667,8 @@ public Builder mergeFrom(
         return this;
       }
 
+      private int bitField0_;
+
       private java.lang.Object service_ = "";
       /**
        *
@@ -2701,8 +2751,8 @@ public Builder setService(java.lang.String value) {
         if (value == null) {
           throw new NullPointerException();
         }
-
         service_ = value;
+        bitField0_ |= 0x00000001;
         onChanged();
         return this;
       }
@@ -2725,8 +2775,8 @@ public Builder setService(java.lang.String value) {
        * @return This builder for chaining.
        */
       public Builder clearService() {
-
         service_ = getDefaultInstance().getService();
+        bitField0_ = (bitField0_ & ~0x00000001);
         onChanged();
         return this;
       }
@@ -2754,8 +2804,8 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) {
           throw new NullPointerException();
         }
         checkByteStringIsUtf8(value);
-
         service_ = value;
+        bitField0_ |= 0x00000001;
         onChanged();
         return this;
       }
@@ -2779,7 +2829,7 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) {
        * @return Whether the genericWebService field is set.
        */
       public boolean hasGenericWebService() {
-        return genericWebServiceBuilder_ != null || genericWebService_ != null;
+        return ((bitField0_ & 0x00000002) != 0);
       }
       /**
        *
@@ -2819,11 +2869,11 @@ public Builder setGenericWebService(
             throw new NullPointerException();
           }
           genericWebService_ = value;
-          onChanged();
         } else {
           genericWebServiceBuilder_.setMessage(value);
         }
-
+        bitField0_ |= 0x00000002;
+        onChanged();
         return this;
       }
       /**
@@ -2840,11 +2890,11 @@ public Builder setGenericWebService(
           com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.Builder builderForValue) {
         if (genericWebServiceBuilder_ == null) {
           genericWebService_ = builderForValue.build();
-          onChanged();
         } else {
           genericWebServiceBuilder_.setMessage(builderForValue.build());
         }
-
+        bitField0_ |= 0x00000002;
+        onChanged();
         return this;
       }
       /**
@@ -2860,20 +2910,20 @@ public Builder setGenericWebService(
       public Builder mergeGenericWebService(
           com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService value) {
         if (genericWebServiceBuilder_ == null) {
-          if (genericWebService_ != null) {
-            genericWebService_ =
-                com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.newBuilder(
-                        genericWebService_)
-                    .mergeFrom(value)
-                    .buildPartial();
+          if (((bitField0_ & 0x00000002) != 0)
+              && genericWebService_ != null
+              && genericWebService_
+                  != com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService
+                      .getDefaultInstance()) {
+            getGenericWebServiceBuilder().mergeFrom(value);
           } else {
             genericWebService_ = value;
           }
-          onChanged();
         } else {
           genericWebServiceBuilder_.mergeFrom(value);
         }
-
+        bitField0_ |= 0x00000002;
+        onChanged();
         return this;
       }
       /**
@@ -2887,14 +2937,13 @@ public Builder mergeGenericWebService(
        * 
        */
       public Builder clearGenericWebService() {
-        if (genericWebServiceBuilder_ == null) {
-          genericWebService_ = null;
-          onChanged();
-        } else {
-          genericWebService_ = null;
+        bitField0_ = (bitField0_ & ~0x00000002);
+        genericWebService_ = null;
+        if (genericWebServiceBuilder_ != null) {
+          genericWebServiceBuilder_.dispose();
           genericWebServiceBuilder_ = null;
         }
-
+        onChanged();
         return this;
       }
       /**
@@ -2909,7 +2958,7 @@ public Builder clearGenericWebService() {
        */
       public com.google.cloud.dialogflow.cx.v3.Webhook.GenericWebService.Builder
           getGenericWebServiceBuilder() {
-
+        bitField0_ |= 0x00000002;
         onChanged();
         return getGenericWebServiceFieldBuilder().getBuilder();
       }
@@ -3075,16 +3124,20 @@ public WebhookCase getWebhookCase() {
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-  private volatile java.lang.Object name_;
+
+  @SuppressWarnings("serial")
+  private volatile java.lang.Object name_ = "";
   /**
    *
    *
    * 
    * The unique identifier of the webhook.
-   * Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method.
-   * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/webhooks/<Webhook ID>`.
+   * Required for the
+   * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]
+   * method.
+   * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]
+   * populates the name automatically. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
    * 
* * string name = 1; @@ -3108,10 +3161,12 @@ public java.lang.String getName() { * *
    * The unique identifier of the webhook.
-   * Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method.
-   * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/webhooks/<Webhook ID>`.
+   * Required for the
+   * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]
+   * method.
+   * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]
+   * populates the name automatically. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
    * 
* * string name = 1; @@ -3132,7 +3187,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -3339,11 +3396,11 @@ public com.google.protobuf.Duration getTimeout() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { - return getTimeout(); + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } public static final int DISABLED_FIELD_NUMBER = 5; - private boolean disabled_; + private boolean disabled_ = false; /** * * @@ -3633,24 +3690,21 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - if (genericWebServiceBuilder_ != null) { genericWebServiceBuilder_.clear(); } if (serviceDirectoryBuilder_ != null) { serviceDirectoryBuilder_.clear(); } - if (timeoutBuilder_ == null) { - timeout_ = null; - } else { - timeout_ = null; + timeout_ = null; + if (timeoutBuilder_ != null) { + timeoutBuilder_.dispose(); timeoutBuilder_ = null; } disabled_ = false; - webhookCase_ = 0; webhook_ = null; return this; @@ -3680,31 +3734,39 @@ public com.google.cloud.dialogflow.cx.v3.Webhook build() { public com.google.cloud.dialogflow.cx.v3.Webhook buildPartial() { com.google.cloud.dialogflow.cx.v3.Webhook result = new com.google.cloud.dialogflow.cx.v3.Webhook(this); - result.name_ = name_; - result.displayName_ = displayName_; - if (webhookCase_ == 4) { - if (genericWebServiceBuilder_ == null) { - result.webhook_ = webhook_; - } else { - result.webhook_ = genericWebServiceBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (webhookCase_ == 7) { - if (serviceDirectoryBuilder_ == null) { - result.webhook_ = webhook_; - } else { - result.webhook_ = serviceDirectoryBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.Webhook result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (timeoutBuilder_ == null) { - result.timeout_ = timeout_; - } else { - result.timeout_ = timeoutBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.timeout_ = timeoutBuilder_ == null ? timeout_ : timeoutBuilder_.build(); } - result.disabled_ = disabled_; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.disabled_ = disabled_; + } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.Webhook result) { result.webhookCase_ = webhookCase_; - onBuilt(); - return result; + result.webhook_ = this.webhook_; + if (webhookCase_ == 4 && genericWebServiceBuilder_ != null) { + result.webhook_ = genericWebServiceBuilder_.build(); + } + if (webhookCase_ == 7 && serviceDirectoryBuilder_ != null) { + result.webhook_ = serviceDirectoryBuilder_.build(); + } } @java.lang.Override @@ -3754,10 +3816,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.Webhook other) { if (other == com.google.cloud.dialogflow.cx.v3.Webhook.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasTimeout()) { @@ -3811,13 +3875,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 34: @@ -3830,13 +3894,13 @@ public Builder mergeFrom( case 40: { disabled_ = input.readBool(); - + bitField0_ |= 0x00000020; break; } // case 40 case 50: { input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 50 case 58: @@ -3877,16 +3941,20 @@ public Builder clearWebhook() { return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * * *
      * The unique identifier of the webhook.
-     * Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method.
-     * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/webhooks/<Webhook ID>`.
+     * Required for the
+     * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]
+     * method.
+     * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]
+     * populates the name automatically. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
      * 
* * string name = 1; @@ -3909,10 +3977,12 @@ public java.lang.String getName() { * *
      * The unique identifier of the webhook.
-     * Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method.
-     * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/webhooks/<Webhook ID>`.
+     * Required for the
+     * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]
+     * method.
+     * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]
+     * populates the name automatically. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
      * 
* * string name = 1; @@ -3935,10 +4005,12 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * The unique identifier of the webhook.
-     * Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method.
-     * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/webhooks/<Webhook ID>`.
+     * Required for the
+     * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]
+     * method.
+     * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]
+     * populates the name automatically. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
      * 
* * string name = 1; @@ -3950,8 +4022,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3960,10 +4032,12 @@ public Builder setName(java.lang.String value) { * *
      * The unique identifier of the webhook.
-     * Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method.
-     * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/webhooks/<Webhook ID>`.
+     * Required for the
+     * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]
+     * method.
+     * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]
+     * populates the name automatically. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
      * 
* * string name = 1; @@ -3971,8 +4045,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3981,10 +4055,12 @@ public Builder clearName() { * *
      * The unique identifier of the webhook.
-     * Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method.
-     * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-     * ID>/webhooks/<Webhook ID>`.
+     * Required for the
+     * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]
+     * method.
+     * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]
+     * populates the name automatically. Format: `projects/<Project
+     * ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
      * 
* * string name = 1; @@ -3997,8 +4073,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4064,8 +4140,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4081,8 +4157,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -4103,8 +4179,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4331,7 +4407,6 @@ public Builder clearGenericWebService() { } webhookCase_ = 4; onChanged(); - ; return genericWebServiceBuilder_; } @@ -4569,7 +4644,6 @@ public Builder clearServiceDirectory() { } webhookCase_ = 7; onChanged(); - ; return serviceDirectoryBuilder_; } @@ -4593,7 +4667,7 @@ public Builder clearServiceDirectory() { * @return Whether the timeout field is set. */ public boolean hasTimeout() { - return timeoutBuilder_ != null || timeout_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -4632,11 +4706,11 @@ public Builder setTimeout(com.google.protobuf.Duration value) { throw new NullPointerException(); } timeout_ = value; - onChanged(); } else { timeoutBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4653,11 +4727,11 @@ public Builder setTimeout(com.google.protobuf.Duration value) { public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) { if (timeoutBuilder_ == null) { timeout_ = builderForValue.build(); - onChanged(); } else { timeoutBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4673,17 +4747,18 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) */ public Builder mergeTimeout(com.google.protobuf.Duration value) { if (timeoutBuilder_ == null) { - if (timeout_ != null) { - timeout_ = - com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && timeout_ != null + && timeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTimeoutBuilder().mergeFrom(value); } else { timeout_ = value; } - onChanged(); } else { timeoutBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4698,14 +4773,13 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { * .google.protobuf.Duration timeout = 6; */ public Builder clearTimeout() { - if (timeoutBuilder_ == null) { - timeout_ = null; - onChanged(); - } else { - timeout_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + timeout_ = null; + if (timeoutBuilder_ != null) { + timeoutBuilder_.dispose(); timeoutBuilder_ = null; } - + onChanged(); return this; } /** @@ -4720,7 +4794,7 @@ public Builder clearTimeout() { * .google.protobuf.Duration timeout = 6; */ public com.google.protobuf.Duration.Builder getTimeoutBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getTimeoutFieldBuilder().getBuilder(); } @@ -4801,6 +4875,7 @@ public boolean getDisabled() { public Builder setDisabled(boolean value) { disabled_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4816,7 +4891,7 @@ public Builder setDisabled(boolean value) { * @return This builder for chaining. */ public Builder clearDisabled() { - + bitField0_ = (bitField0_ & ~0x00000020); disabled_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookOrBuilder.java index 5979cc389cb6..de5ad7bf9f41 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookOrBuilder.java @@ -28,10 +28,12 @@ public interface WebhookOrBuilder * *
    * The unique identifier of the webhook.
-   * Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method.
-   * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/webhooks/<Webhook ID>`.
+   * Required for the
+   * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]
+   * method.
+   * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]
+   * populates the name automatically. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
    * 
* * string name = 1; @@ -44,10 +46,12 @@ public interface WebhookOrBuilder * *
    * The unique identifier of the webhook.
-   * Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method.
-   * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
-   * ID>/webhooks/<Webhook ID>`.
+   * Required for the
+   * [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]
+   * method.
+   * [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]
+   * populates the name automatically. Format: `projects/<Project
+   * ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
    * 
* * string name = 1; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java index 21055b4c4410..06961a0f7eb5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookProto.java @@ -271,16 +271,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ions/*/agents/*/webhooks/*}\332A\004name\032x\312A\031d" + "ialogflow.googleapis.com\322AYhttps://www.g" + "oogleapis.com/auth/cloud-platform,https:" - + "//www.googleapis.com/auth/dialogflowB\277\002\n" + + "//www.googleapis.com/auth/dialogflowB\261\002\n" + "!com.google.cloud.dialogflow.cx.v3B\014Webh" - + "ookProtoP\001Z?google.golang.org/genproto/g" - + "oogleapis/cloud/dialogflow/cx/v3;cx\370\001\001\242\002" - + "\002DF\252\002\035Google.Cloud.Dialogflow.Cx.V3\352\002!Go" - + "ogle::Cloud::Dialogflow::CX::V3\352A|\n\'serv" - + "icedirectory.googleapis.com/Service\022Qpro" - + "jects/{project}/locations/{location}/nam" - + "espaces/{namespace}/services/{service}b\006" - + "proto3" + + "ookProtoP\001Z1cloud.google.com/go/dialogfl" + + "ow/cx/apiv3/cxpb;cxpb\370\001\001\242\002\002DF\252\002\035Google.C" + + "loud.Dialogflow.Cx.V3\352\002!Google::Cloud::D" + + "ialogflow::CX::V3\352A|\n\'servicedirectory.g" + + "oogleapis.com/Service\022Qprojects/{project" + + "}/locations/{location}/namespaces/{names" + + "pace}/services/{service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java index 42722d40681c..c7392a874f3b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequest.java @@ -82,10 +82,12 @@ public interface FulfillmentInfoOrBuilder * *
      * Always present.
-     * The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field will be populated in this
-     * field by Dialogflow when the associated webhook is called.
-     * The tag is typically used by the webhook service to identify which
-     * fulfillment is being called, but it could be used for other purposes.
+     * The value of the
+     * [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field
+     * will be populated in this field by Dialogflow when the associated webhook
+     * is called. The tag is typically used by the webhook service to identify
+     * which fulfillment is being called, but it could be used for other
+     * purposes.
      * 
* * string tag = 1; @@ -98,10 +100,12 @@ public interface FulfillmentInfoOrBuilder * *
      * Always present.
-     * The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field will be populated in this
-     * field by Dialogflow when the associated webhook is called.
-     * The tag is typically used by the webhook service to identify which
-     * fulfillment is being called, but it could be used for other purposes.
+     * The value of the
+     * [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field
+     * will be populated in this field by Dialogflow when the associated webhook
+     * is called. The tag is typically used by the webhook service to identify
+     * which fulfillment is being called, but it could be used for other
+     * purposes.
      * 
* * string tag = 1; @@ -160,16 +164,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TAG_FIELD_NUMBER = 1; - private volatile java.lang.Object tag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tag_ = ""; /** * * *
      * Always present.
-     * The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field will be populated in this
-     * field by Dialogflow when the associated webhook is called.
-     * The tag is typically used by the webhook service to identify which
-     * fulfillment is being called, but it could be used for other purposes.
+     * The value of the
+     * [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field
+     * will be populated in this field by Dialogflow when the associated webhook
+     * is called. The tag is typically used by the webhook service to identify
+     * which fulfillment is being called, but it could be used for other
+     * purposes.
      * 
* * string tag = 1; @@ -193,10 +201,12 @@ public java.lang.String getTag() { * *
      * Always present.
-     * The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field will be populated in this
-     * field by Dialogflow when the associated webhook is called.
-     * The tag is typically used by the webhook service to identify which
-     * fulfillment is being called, but it could be used for other purposes.
+     * The value of the
+     * [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field
+     * will be populated in this field by Dialogflow when the associated webhook
+     * is called. The tag is typically used by the webhook service to identify
+     * which fulfillment is being called, but it could be used for other
+     * purposes.
      * 
* * string tag = 1; @@ -418,8 +428,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; tag_ = ""; - return this; } @@ -449,11 +459,21 @@ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo build() public com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo buildPartial() { com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo result = new com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo(this); - result.tag_ = tag_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tag_ = tag_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -507,6 +527,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getTag().isEmpty()) { tag_ = other.tag_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -538,7 +559,7 @@ public Builder mergeFrom( case 10: { tag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -558,16 +579,20 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object tag_ = ""; /** * * *
        * Always present.
-       * The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field will be populated in this
-       * field by Dialogflow when the associated webhook is called.
-       * The tag is typically used by the webhook service to identify which
-       * fulfillment is being called, but it could be used for other purposes.
+       * The value of the
+       * [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field
+       * will be populated in this field by Dialogflow when the associated webhook
+       * is called. The tag is typically used by the webhook service to identify
+       * which fulfillment is being called, but it could be used for other
+       * purposes.
        * 
* * string tag = 1; @@ -590,10 +615,12 @@ public java.lang.String getTag() { * *
        * Always present.
-       * The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field will be populated in this
-       * field by Dialogflow when the associated webhook is called.
-       * The tag is typically used by the webhook service to identify which
-       * fulfillment is being called, but it could be used for other purposes.
+       * The value of the
+       * [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field
+       * will be populated in this field by Dialogflow when the associated webhook
+       * is called. The tag is typically used by the webhook service to identify
+       * which fulfillment is being called, but it could be used for other
+       * purposes.
        * 
* * string tag = 1; @@ -616,10 +643,12 @@ public com.google.protobuf.ByteString getTagBytes() { * *
        * Always present.
-       * The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field will be populated in this
-       * field by Dialogflow when the associated webhook is called.
-       * The tag is typically used by the webhook service to identify which
-       * fulfillment is being called, but it could be used for other purposes.
+       * The value of the
+       * [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field
+       * will be populated in this field by Dialogflow when the associated webhook
+       * is called. The tag is typically used by the webhook service to identify
+       * which fulfillment is being called, but it could be used for other
+       * purposes.
        * 
* * string tag = 1; @@ -631,8 +660,8 @@ public Builder setTag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tag_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -641,10 +670,12 @@ public Builder setTag(java.lang.String value) { * *
        * Always present.
-       * The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field will be populated in this
-       * field by Dialogflow when the associated webhook is called.
-       * The tag is typically used by the webhook service to identify which
-       * fulfillment is being called, but it could be used for other purposes.
+       * The value of the
+       * [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field
+       * will be populated in this field by Dialogflow when the associated webhook
+       * is called. The tag is typically used by the webhook service to identify
+       * which fulfillment is being called, but it could be used for other
+       * purposes.
        * 
* * string tag = 1; @@ -652,8 +683,8 @@ public Builder setTag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTag() { - tag_ = getDefaultInstance().getTag(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -662,10 +693,12 @@ public Builder clearTag() { * *
        * Always present.
-       * The value of the [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field will be populated in this
-       * field by Dialogflow when the associated webhook is called.
-       * The tag is typically used by the webhook service to identify which
-       * fulfillment is being called, but it could be used for other purposes.
+       * The value of the
+       * [Fulfillment.tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag] field
+       * will be populated in this field by Dialogflow when the associated webhook
+       * is called. The tag is typically used by the webhook service to identify
+       * which fulfillment is being called, but it could be used for other
+       * purposes.
        * 
* * string tag = 1; @@ -678,8 +711,8 @@ public Builder setTagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - tag_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -791,7 +824,8 @@ public interface IntentInfoOrBuilder * * *
-     * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
+     * Always present. The display name of the last matched
+     * [intent][google.cloud.dialogflow.cx.v3.Intent].
      * 
* * string display_name = 3; @@ -803,7 +837,8 @@ public interface IntentInfoOrBuilder * * *
-     * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
+     * Always present. The display name of the last matched
+     * [intent][google.cloud.dialogflow.cx.v3.Intent].
      * 
* * string display_name = 3; @@ -880,7 +915,6 @@ public interface IntentInfoOrBuilder * map<string, .google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; *
*/ - /* nullable */ com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue getParametersOrDefault( @@ -1101,7 +1135,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ORIGINAL_VALUE_FIELD_NUMBER = 1; - private volatile java.lang.Object originalValue_; + + @SuppressWarnings("serial") + private volatile java.lang.Object originalValue_ = ""; /** * * @@ -1197,7 +1233,9 @@ public com.google.protobuf.Value getResolvedValue() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getResolvedValueOrBuilder() { - return getResolvedValue(); + return resolvedValue_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : resolvedValue_; } private byte memoizedIsInitialized = -1; @@ -1430,12 +1468,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; originalValue_ = ""; - - if (resolvedValueBuilder_ == null) { - resolvedValue_ = null; - } else { - resolvedValue_ = null; + resolvedValue_ = null; + if (resolvedValueBuilder_ != null) { + resolvedValueBuilder_.dispose(); resolvedValueBuilder_ = null; } return this; @@ -1471,16 +1508,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue result = new com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue( this); - result.originalValue_ = originalValue_; - if (resolvedValueBuilder_ == null) { - result.resolvedValue_ = resolvedValue_; - } else { - result.resolvedValue_ = resolvedValueBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.originalValue_ = originalValue_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resolvedValue_ = + resolvedValueBuilder_ == null ? resolvedValue_ : resolvedValueBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1538,6 +1585,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getOriginalValue().isEmpty()) { originalValue_ = other.originalValue_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasResolvedValue()) { @@ -1572,14 +1620,14 @@ public Builder mergeFrom( case 10: { originalValue_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getResolvedValueFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1599,6 +1647,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object originalValue_ = ""; /** * @@ -1660,8 +1710,8 @@ public Builder setOriginalValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - originalValue_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1677,8 +1727,8 @@ public Builder setOriginalValue(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOriginalValue() { - originalValue_ = getDefaultInstance().getOriginalValue(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1699,8 +1749,8 @@ public Builder setOriginalValueBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - originalValue_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1724,7 +1774,7 @@ public Builder setOriginalValueBytes(com.google.protobuf.ByteString value) { * @return Whether the resolvedValue field is set. */ public boolean hasResolvedValue() { - return resolvedValueBuilder_ != null || resolvedValue_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1763,11 +1813,11 @@ public Builder setResolvedValue(com.google.protobuf.Value value) { throw new NullPointerException(); } resolvedValue_ = value; - onChanged(); } else { resolvedValueBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1783,11 +1833,11 @@ public Builder setResolvedValue(com.google.protobuf.Value value) { public Builder setResolvedValue(com.google.protobuf.Value.Builder builderForValue) { if (resolvedValueBuilder_ == null) { resolvedValue_ = builderForValue.build(); - onChanged(); } else { resolvedValueBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1802,19 +1852,18 @@ public Builder setResolvedValue(com.google.protobuf.Value.Builder builderForValu */ public Builder mergeResolvedValue(com.google.protobuf.Value value) { if (resolvedValueBuilder_ == null) { - if (resolvedValue_ != null) { - resolvedValue_ = - com.google.protobuf.Value.newBuilder(resolvedValue_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && resolvedValue_ != null + && resolvedValue_ != com.google.protobuf.Value.getDefaultInstance()) { + getResolvedValueBuilder().mergeFrom(value); } else { resolvedValue_ = value; } - onChanged(); } else { resolvedValueBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1828,14 +1877,13 @@ public Builder mergeResolvedValue(com.google.protobuf.Value value) { * .google.protobuf.Value resolved_value = 2; */ public Builder clearResolvedValue() { - if (resolvedValueBuilder_ == null) { - resolvedValue_ = null; - onChanged(); - } else { - resolvedValue_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + resolvedValue_ = null; + if (resolvedValueBuilder_ != null) { + resolvedValueBuilder_.dispose(); resolvedValueBuilder_ = null; } - + onChanged(); return this; } /** @@ -1849,7 +1897,7 @@ public Builder clearResolvedValue() { * .google.protobuf.Value resolved_value = 2; */ public com.google.protobuf.Value.Builder getResolvedValueBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getResolvedValueFieldBuilder().getBuilder(); } @@ -1969,7 +2017,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int LAST_MATCHED_INTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object lastMatchedIntent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object lastMatchedIntent_ = ""; /** * * @@ -2024,12 +2074,15 @@ public com.google.protobuf.ByteString getLastMatchedIntentBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * *
-     * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
+     * Always present. The display name of the last matched
+     * [intent][google.cloud.dialogflow.cx.v3.Intent].
      * 
* * string display_name = 3; @@ -2052,7 +2105,8 @@ public java.lang.String getDisplayName() { * * *
-     * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
+     * Always present. The display name of the last matched
+     * [intent][google.cloud.dialogflow.cx.v3.Intent].
      * 
* * string display_name = 3; @@ -2093,6 +2147,7 @@ private static final class ParametersDefaultEntryHolder { .IntentParameterValue.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue> @@ -2178,9 +2233,11 @@ public boolean containsParameters(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue + public /* nullable */ com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + .IntentParameterValue getParametersOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue defaultValue) { if (key == null) { @@ -2223,7 +2280,7 @@ public boolean containsParameters(java.lang.String key) { } public static final int CONFIDENCE_FIELD_NUMBER = 4; - private float confidence_; + private float confidence_ = 0F; /** * * @@ -2502,13 +2559,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; lastMatchedIntent_ = ""; - displayName_ = ""; - internalGetMutableParameters().clear(); confidence_ = 0F; - return this; } @@ -2537,16 +2592,31 @@ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo build() { public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo buildPartial() { com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo result = new com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo(this); - int from_bitField0_ = bitField0_; - result.lastMatchedIntent_ = lastMatchedIntent_; - result.displayName_ = displayName_; - result.parameters_ = internalGetParameters(); - result.parameters_.makeImmutable(); - result.confidence_ = confidence_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.lastMatchedIntent_ = lastMatchedIntent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parameters_ = internalGetParameters(); + result.parameters_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.confidence_ = confidence_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2598,13 +2668,16 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.WebhookRequest.Intent return this; if (!other.getLastMatchedIntent().isEmpty()) { lastMatchedIntent_ = other.lastMatchedIntent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } internalGetMutableParameters().mergeFrom(other.internalGetParameters()); + bitField0_ |= 0x00000004; if (other.getConfidence() != 0F) { setConfidence(other.getConfidence()); } @@ -2637,7 +2710,7 @@ public Builder mergeFrom( case 10: { lastMatchedIntent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -2653,18 +2726,19 @@ public Builder mergeFrom( internalGetMutableParameters() .getMutableMap() .put(parameters__.getKey(), parameters__.getValue()); + bitField0_ |= 0x00000004; break; } // case 18 case 26: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 26 case 37: { confidence_ = input.readFloat(); - + bitField0_ |= 0x00000008; break; } // case 37 default: @@ -2756,8 +2830,8 @@ public Builder setLastMatchedIntent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - lastMatchedIntent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2776,8 +2850,8 @@ public Builder setLastMatchedIntent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLastMatchedIntent() { - lastMatchedIntent_ = getDefaultInstance().getLastMatchedIntent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2801,8 +2875,8 @@ public Builder setLastMatchedIntentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - lastMatchedIntent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2812,7 +2886,8 @@ public Builder setLastMatchedIntentBytes(com.google.protobuf.ByteString value) { * * *
-       * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
+       * Always present. The display name of the last matched
+       * [intent][google.cloud.dialogflow.cx.v3.Intent].
        * 
* * string display_name = 3; @@ -2834,7 +2909,8 @@ public java.lang.String getDisplayName() { * * *
-       * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
+       * Always present. The display name of the last matched
+       * [intent][google.cloud.dialogflow.cx.v3.Intent].
        * 
* * string display_name = 3; @@ -2856,7 +2932,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * *
-       * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
+       * Always present. The display name of the last matched
+       * [intent][google.cloud.dialogflow.cx.v3.Intent].
        * 
* * string display_name = 3; @@ -2868,8 +2945,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2877,7 +2954,8 @@ public Builder setDisplayName(java.lang.String value) { * * *
-       * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
+       * Always present. The display name of the last matched
+       * [intent][google.cloud.dialogflow.cx.v3.Intent].
        * 
* * string display_name = 3; @@ -2885,8 +2963,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2894,7 +2972,8 @@ public Builder clearDisplayName() { * * *
-       * Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent].
+       * Always present. The display name of the last matched
+       * [intent][google.cloud.dialogflow.cx.v3.Intent].
        * 
* * string display_name = 3; @@ -2907,8 +2986,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2933,8 +3012,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { java.lang.String, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue> internalGetMutableParameters() { - onChanged(); - ; if (parameters_ == null) { parameters_ = com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry); @@ -2942,6 +3019,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (!parameters_.isMutable()) { parameters_ = parameters_.copy(); } + bitField0_ |= 0x00000004; + onChanged(); return parameters_; } @@ -3014,9 +3093,11 @@ public boolean containsParameters(java.lang.String key) { *
*/ @java.lang.Override - public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue + public /* nullable */ com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + .IntentParameterValue getParametersOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue defaultValue) { if (key == null) { @@ -3059,6 +3140,7 @@ public boolean containsParameters(java.lang.String key) { } public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableParameters().getMutableMap().clear(); return this; } @@ -3089,6 +3171,7 @@ public Builder removeParameters(java.lang.String key) { java.lang.String, com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue> getMutableParameters() { + bitField0_ |= 0x00000004; return internalGetMutableParameters().getMutableMap(); } /** @@ -3114,8 +3197,8 @@ public Builder putParameters( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableParameters().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; return this; } /** @@ -3138,6 +3221,7 @@ public Builder putAllParameters( com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.IntentParameterValue> values) { internalGetMutableParameters().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; return this; } @@ -3174,6 +3258,7 @@ public float getConfidence() { public Builder setConfidence(float value) { confidence_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3190,7 +3275,7 @@ public Builder setConfidence(float value) { * @return This builder for chaining. */ public Builder clearConfidence() { - + bitField0_ = (bitField0_ & ~0x00000008); confidence_ = 0F; onChanged(); return this; @@ -3344,7 +3429,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SCORE_FIELD_NUMBER = 1; - private float score_; + private float score_ = 0F; /** * * @@ -3363,7 +3448,7 @@ public float getScore() { } public static final int MAGNITUDE_FIELD_NUMBER = 2; - private float magnitude_; + private float magnitude_ = 0F; /** * * @@ -3602,10 +3687,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; score_ = 0F; - magnitude_ = 0F; - return this; } @@ -3637,12 +3721,24 @@ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult buildPartial() { com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult result = new com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult(this); - result.score_ = score_; - result.magnitude_ = magnitude_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.score_ = score_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.magnitude_ = magnitude_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3730,13 +3826,13 @@ public Builder mergeFrom( case 13: { score_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 case 21: { magnitude_ = input.readFloat(); - + bitField0_ |= 0x00000002; break; } // case 21 default: @@ -3756,6 +3852,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float score_; /** * @@ -3789,6 +3887,7 @@ public float getScore() { public Builder setScore(float value) { score_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3805,7 +3904,7 @@ public Builder setScore(float value) { * @return This builder for chaining. */ public Builder clearScore() { - + bitField0_ = (bitField0_ & ~0x00000001); score_ = 0F; onChanged(); return this; @@ -3846,6 +3945,7 @@ public float getMagnitude() { public Builder setMagnitude(float value) { magnitude_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3863,7 +3963,7 @@ public Builder setMagnitude(float value) { * @return This builder for chaining. */ public Builder clearMagnitude() { - + bitField0_ = (bitField0_ & ~0x00000002); magnitude_ = 0F; onChanged(); return this; @@ -3991,13 +4091,16 @@ public QueryCase getQueryCase() { } public static final int DETECT_INTENT_RESPONSE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object detectIntentResponseId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object detectIntentResponseId_ = ""; /** * * *
-   * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that
-   * will be returned to the API caller.
+   * Always present. The unique identifier of the
+   * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse]
+   * that will be returned to the API caller.
    * 
* * string detect_intent_response_id = 1; @@ -4020,8 +4123,9 @@ public java.lang.String getDetectIntentResponseId() { * * *
-   * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that
-   * will be returned to the API caller.
+   * Always present. The unique identifier of the
+   * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse]
+   * that will be returned to the API caller.
    * 
* * string detect_intent_response_id = 1; @@ -4046,8 +4150,8 @@ public com.google.protobuf.ByteString getDetectIntentResponseIdBytes() { * * *
-   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-   * will contain a copy of the text.
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+   * provided as input, this field will contain a copy of the text.
    * 
* * string text = 10; @@ -4061,8 +4165,8 @@ public boolean hasText() { * * *
-   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-   * will contain a copy of the text.
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+   * provided as input, this field will contain a copy of the text.
    * 
* * string text = 10; @@ -4089,8 +4193,8 @@ public java.lang.String getText() { * * *
-   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-   * will contain a copy of the text.
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+   * provided as input, this field will contain a copy of the text.
    * 
* * string text = 10; @@ -4119,9 +4223,9 @@ public com.google.protobuf.ByteString getTextBytes() { * * *
-   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-   * contain a copy of the intent identifier.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+   * input, this field will contain a copy of the intent identifier. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
    * 
* @@ -4136,9 +4240,9 @@ public boolean hasTriggerIntent() { * * *
-   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-   * contain a copy of the intent identifier.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+   * input, this field will contain a copy of the intent identifier. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
    * 
* @@ -4166,9 +4270,9 @@ public java.lang.String getTriggerIntent() { * * *
-   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-   * contain a copy of the intent identifier.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+   * input, this field will contain a copy of the intent identifier. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
    * 
* @@ -4198,7 +4302,8 @@ public com.google.protobuf.ByteString getTriggerIntentBytes() { * * *
-   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * If [natural language speech
+   * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
    * this field will contain the transcript for the audio.
    * 
* @@ -4213,7 +4318,8 @@ public boolean hasTranscript() { * * *
-   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * If [natural language speech
+   * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
    * this field will contain the transcript for the audio.
    * 
* @@ -4241,7 +4347,8 @@ public java.lang.String getTranscript() { * * *
-   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * If [natural language speech
+   * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
    * this field will contain the transcript for the audio.
    * 
* @@ -4271,8 +4378,8 @@ public com.google.protobuf.ByteString getTranscriptBytes() { * * *
-   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-   * the name of the event.
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+   * input, this field will contain the name of the event.
    * 
* * string trigger_event = 14; @@ -4286,8 +4393,8 @@ public boolean hasTriggerEvent() { * * *
-   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-   * the name of the event.
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+   * input, this field will contain the name of the event.
    * 
* * string trigger_event = 14; @@ -4314,8 +4421,8 @@ public java.lang.String getTriggerEvent() { * * *
-   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-   * the name of the event.
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+   * input, this field will contain the name of the event.
    * 
* * string trigger_event = 14; @@ -4340,7 +4447,9 @@ public com.google.protobuf.ByteString getTriggerEventBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 15; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -4442,7 +4551,9 @@ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo getFulfi @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfoOrBuilder getFulfillmentInfoOrBuilder() { - return getFulfillmentInfo(); + return fulfillmentInfo_ == null + ? com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.getDefaultInstance() + : fulfillmentInfo_; } public static final int INTENT_INFO_FIELD_NUMBER = 3; @@ -4491,7 +4602,9 @@ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo getIntentInfo @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfoOrBuilder getIntentInfoOrBuilder() { - return getIntentInfo(); + return intentInfo_ == null + ? com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.getDefaultInstance() + : intentInfo_; } public static final int PAGE_INFO_FIELD_NUMBER = 4; @@ -4539,7 +4652,9 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo getPageInfo() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.PageInfoOrBuilder getPageInfoOrBuilder() { - return getPageInfo(); + return pageInfo_ == null + ? com.google.cloud.dialogflow.cx.v3.PageInfo.getDefaultInstance() + : pageInfo_; } public static final int SESSION_INFO_FIELD_NUMBER = 5; @@ -4587,10 +4702,14 @@ public com.google.cloud.dialogflow.cx.v3.SessionInfo getSessionInfo() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SessionInfoOrBuilder getSessionInfoOrBuilder() { - return getSessionInfo(); + return sessionInfo_ == null + ? com.google.cloud.dialogflow.cx.v3.SessionInfo.getDefaultInstance() + : sessionInfo_; } public static final int MESSAGES_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") private java.util.List messages_; /** * @@ -4676,7 +4795,8 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getMessagesOrB * * *
-   * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+   * Custom data set in
+   * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
    * 
* * .google.protobuf.Struct payload = 8; @@ -4691,7 +4811,8 @@ public boolean hasPayload() { * * *
-   * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+   * Custom data set in
+   * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
    * 
* * .google.protobuf.Struct payload = 8; @@ -4706,14 +4827,15 @@ public com.google.protobuf.Struct getPayload() { * * *
-   * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+   * Custom data set in
+   * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
    * 
* * .google.protobuf.Struct payload = 8; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { - return getPayload(); + return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_; } public static final int SENTIMENT_ANALYSIS_RESULT_FIELD_NUMBER = 9; @@ -4774,7 +4896,10 @@ public boolean hasSentimentAnalysisResult() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder() { - return getSentimentAnalysisResult(); + return sentimentAnalysisResult_ == null + ? com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + .getDefaultInstance() + : sentimentAnalysisResult_; } private byte memoizedIsInitialized = -1; @@ -5143,32 +5268,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; detectIntentResponseId_ = ""; - languageCode_ = ""; - - if (fulfillmentInfoBuilder_ == null) { - fulfillmentInfo_ = null; - } else { - fulfillmentInfo_ = null; + fulfillmentInfo_ = null; + if (fulfillmentInfoBuilder_ != null) { + fulfillmentInfoBuilder_.dispose(); fulfillmentInfoBuilder_ = null; } - if (intentInfoBuilder_ == null) { - intentInfo_ = null; - } else { - intentInfo_ = null; + intentInfo_ = null; + if (intentInfoBuilder_ != null) { + intentInfoBuilder_.dispose(); intentInfoBuilder_ = null; } - if (pageInfoBuilder_ == null) { - pageInfo_ = null; - } else { - pageInfo_ = null; + pageInfo_ = null; + if (pageInfoBuilder_ != null) { + pageInfoBuilder_.dispose(); pageInfoBuilder_ = null; } - if (sessionInfoBuilder_ == null) { - sessionInfo_ = null; - } else { - sessionInfo_ = null; + sessionInfo_ = null; + if (sessionInfoBuilder_ != null) { + sessionInfoBuilder_.dispose(); sessionInfoBuilder_ = null; } if (messagesBuilder_ == null) { @@ -5177,17 +5297,15 @@ public Builder clear() { messages_ = null; messagesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (payloadBuilder_ == null) { - payload_ = null; - } else { - payload_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); payloadBuilder_ = null; } - if (sentimentAnalysisResultBuilder_ == null) { - sentimentAnalysisResult_ = null; - } else { - sentimentAnalysisResult_ = null; + sentimentAnalysisResult_ = null; + if (sentimentAnalysisResultBuilder_ != null) { + sentimentAnalysisResultBuilder_.dispose(); sentimentAnalysisResultBuilder_ = null; } queryCase_ = 0; @@ -5219,63 +5337,64 @@ public com.google.cloud.dialogflow.cx.v3.WebhookRequest build() { public com.google.cloud.dialogflow.cx.v3.WebhookRequest buildPartial() { com.google.cloud.dialogflow.cx.v3.WebhookRequest result = new com.google.cloud.dialogflow.cx.v3.WebhookRequest(this); - int from_bitField0_ = bitField0_; - result.detectIntentResponseId_ = detectIntentResponseId_; - if (queryCase_ == 10) { - result.query_ = query_; - } - if (queryCase_ == 11) { - result.query_ = query_; - } - if (queryCase_ == 12) { - result.query_ = query_; - } - if (queryCase_ == 14) { - result.query_ = query_; - } - result.languageCode_ = languageCode_; - if (fulfillmentInfoBuilder_ == null) { - result.fulfillmentInfo_ = fulfillmentInfo_; - } else { - result.fulfillmentInfo_ = fulfillmentInfoBuilder_.build(); - } - if (intentInfoBuilder_ == null) { - result.intentInfo_ = intentInfo_; - } else { - result.intentInfo_ = intentInfoBuilder_.build(); - } - if (pageInfoBuilder_ == null) { - result.pageInfo_ = pageInfo_; - } else { - result.pageInfo_ = pageInfoBuilder_.build(); - } - if (sessionInfoBuilder_ == null) { - result.sessionInfo_ = sessionInfo_; - } else { - result.sessionInfo_ = sessionInfoBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.WebhookRequest result) { if (messagesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); } result.messages_ = messages_; } else { result.messages_ = messagesBuilder_.build(); } - if (payloadBuilder_ == null) { - result.payload_ = payload_; - } else { - result.payload_ = payloadBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.WebhookRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.detectIntentResponseId_ = detectIntentResponseId_; } - if (sentimentAnalysisResultBuilder_ == null) { - result.sentimentAnalysisResult_ = sentimentAnalysisResult_; - } else { - result.sentimentAnalysisResult_ = sentimentAnalysisResultBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.fulfillmentInfo_ = + fulfillmentInfoBuilder_ == null ? fulfillmentInfo_ : fulfillmentInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.intentInfo_ = intentInfoBuilder_ == null ? intentInfo_ : intentInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.pageInfo_ = pageInfoBuilder_ == null ? pageInfo_ : pageInfoBuilder_.build(); } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.sessionInfo_ = + sessionInfoBuilder_ == null ? sessionInfo_ : sessionInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.payload_ = payloadBuilder_ == null ? payload_ : payloadBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.sentimentAnalysisResult_ = + sentimentAnalysisResultBuilder_ == null + ? sentimentAnalysisResult_ + : sentimentAnalysisResultBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.WebhookRequest result) { result.queryCase_ = queryCase_; - onBuilt(); - return result; + result.query_ = this.query_; } @java.lang.Override @@ -5326,10 +5445,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.WebhookRequest other) return this; if (!other.getDetectIntentResponseId().isEmpty()) { detectIntentResponseId_ = other.detectIntentResponseId_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasFulfillmentInfo()) { @@ -5348,7 +5469,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.WebhookRequest other) if (!other.messages_.isEmpty()) { if (messages_.isEmpty()) { messages_ = other.messages_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensureMessagesIsMutable(); messages_.addAll(other.messages_); @@ -5361,7 +5482,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.WebhookRequest other) messagesBuilder_.dispose(); messagesBuilder_ = null; messages_ = other.messages_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); messagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMessagesFieldBuilder() @@ -5440,31 +5561,31 @@ public Builder mergeFrom( case 10: { detectIntentResponseId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: { input.readMessage(getIntentInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 26 case 34: { input.readMessage(getPageInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 34 case 42: { input.readMessage(getSessionInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 42 case 50: { input.readMessage(getFulfillmentInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 50 case 58: @@ -5484,14 +5605,14 @@ public Builder mergeFrom( case 66: { input.readMessage(getPayloadFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000800; break; } // case 66 case 74: { input.readMessage( getSentimentAnalysisResultFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00001000; break; } // case 74 case 82: @@ -5525,7 +5646,7 @@ public Builder mergeFrom( case 122: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 122 default: @@ -5566,8 +5687,9 @@ public Builder clearQuery() { * * *
-     * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that
-     * will be returned to the API caller.
+     * Always present. The unique identifier of the
+     * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse]
+     * that will be returned to the API caller.
      * 
* * string detect_intent_response_id = 1; @@ -5589,8 +5711,9 @@ public java.lang.String getDetectIntentResponseId() { * * *
-     * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that
-     * will be returned to the API caller.
+     * Always present. The unique identifier of the
+     * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse]
+     * that will be returned to the API caller.
      * 
* * string detect_intent_response_id = 1; @@ -5612,8 +5735,9 @@ public com.google.protobuf.ByteString getDetectIntentResponseIdBytes() { * * *
-     * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that
-     * will be returned to the API caller.
+     * Always present. The unique identifier of the
+     * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse]
+     * that will be returned to the API caller.
      * 
* * string detect_intent_response_id = 1; @@ -5625,8 +5749,8 @@ public Builder setDetectIntentResponseId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - detectIntentResponseId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5634,8 +5758,9 @@ public Builder setDetectIntentResponseId(java.lang.String value) { * * *
-     * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that
-     * will be returned to the API caller.
+     * Always present. The unique identifier of the
+     * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse]
+     * that will be returned to the API caller.
      * 
* * string detect_intent_response_id = 1; @@ -5643,8 +5768,8 @@ public Builder setDetectIntentResponseId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDetectIntentResponseId() { - detectIntentResponseId_ = getDefaultInstance().getDetectIntentResponseId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -5652,8 +5777,9 @@ public Builder clearDetectIntentResponseId() { * * *
-     * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that
-     * will be returned to the API caller.
+     * Always present. The unique identifier of the
+     * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse]
+     * that will be returned to the API caller.
      * 
* * string detect_intent_response_id = 1; @@ -5666,8 +5792,8 @@ public Builder setDetectIntentResponseIdBytes(com.google.protobuf.ByteString val throw new NullPointerException(); } checkByteStringIsUtf8(value); - detectIntentResponseId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5676,8 +5802,8 @@ public Builder setDetectIntentResponseIdBytes(com.google.protobuf.ByteString val * * *
-     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-     * will contain a copy of the text.
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+     * provided as input, this field will contain a copy of the text.
      * 
* * string text = 10; @@ -5692,8 +5818,8 @@ public boolean hasText() { * * *
-     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-     * will contain a copy of the text.
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+     * provided as input, this field will contain a copy of the text.
      * 
* * string text = 10; @@ -5721,8 +5847,8 @@ public java.lang.String getText() { * * *
-     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-     * will contain a copy of the text.
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+     * provided as input, this field will contain a copy of the text.
      * 
* * string text = 10; @@ -5750,8 +5876,8 @@ public com.google.protobuf.ByteString getTextBytes() { * * *
-     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-     * will contain a copy of the text.
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+     * provided as input, this field will contain a copy of the text.
      * 
* * string text = 10; @@ -5772,8 +5898,8 @@ public Builder setText(java.lang.String value) { * * *
-     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-     * will contain a copy of the text.
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+     * provided as input, this field will contain a copy of the text.
      * 
* * string text = 10; @@ -5792,8 +5918,8 @@ public Builder clearText() { * * *
-     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-     * will contain a copy of the text.
+     * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+     * provided as input, this field will contain a copy of the text.
      * 
* * string text = 10; @@ -5816,9 +5942,9 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { * * *
-     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-     * contain a copy of the intent identifier.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+     * input, this field will contain a copy of the intent identifier. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
      * 
* @@ -5834,9 +5960,9 @@ public boolean hasTriggerIntent() { * * *
-     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-     * contain a copy of the intent identifier.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+     * input, this field will contain a copy of the intent identifier. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
      * 
* @@ -5865,9 +5991,9 @@ public java.lang.String getTriggerIntent() { * * *
-     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-     * contain a copy of the intent identifier.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+     * input, this field will contain a copy of the intent identifier. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
      * 
* @@ -5896,9 +6022,9 @@ public com.google.protobuf.ByteString getTriggerIntentBytes() { * * *
-     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-     * contain a copy of the intent identifier.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+     * input, this field will contain a copy of the intent identifier. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
      * 
* @@ -5920,9 +6046,9 @@ public Builder setTriggerIntent(java.lang.String value) { * * *
-     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-     * contain a copy of the intent identifier.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+     * input, this field will contain a copy of the intent identifier. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
      * 
* @@ -5942,9 +6068,9 @@ public Builder clearTriggerIntent() { * * *
-     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-     * contain a copy of the intent identifier.
-     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+     * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+     * input, this field will contain a copy of the intent identifier. Format:
+     * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
      * ID>/intents/<Intent ID>`.
      * 
* @@ -5968,7 +6094,8 @@ public Builder setTriggerIntentBytes(com.google.protobuf.ByteString value) { * * *
-     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * If [natural language speech
+     * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
      * this field will contain the transcript for the audio.
      * 
* @@ -5984,7 +6111,8 @@ public boolean hasTranscript() { * * *
-     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * If [natural language speech
+     * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
      * this field will contain the transcript for the audio.
      * 
* @@ -6013,7 +6141,8 @@ public java.lang.String getTranscript() { * * *
-     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * If [natural language speech
+     * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
      * this field will contain the transcript for the audio.
      * 
* @@ -6042,7 +6171,8 @@ public com.google.protobuf.ByteString getTranscriptBytes() { * * *
-     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * If [natural language speech
+     * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
      * this field will contain the transcript for the audio.
      * 
* @@ -6064,7 +6194,8 @@ public Builder setTranscript(java.lang.String value) { * * *
-     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * If [natural language speech
+     * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
      * this field will contain the transcript for the audio.
      * 
* @@ -6084,7 +6215,8 @@ public Builder clearTranscript() { * * *
-     * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+     * If [natural language speech
+     * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
      * this field will contain the transcript for the audio.
      * 
* @@ -6108,8 +6240,8 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { * * *
-     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-     * the name of the event.
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+     * input, this field will contain the name of the event.
      * 
* * string trigger_event = 14; @@ -6124,8 +6256,8 @@ public boolean hasTriggerEvent() { * * *
-     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-     * the name of the event.
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+     * input, this field will contain the name of the event.
      * 
* * string trigger_event = 14; @@ -6153,8 +6285,8 @@ public java.lang.String getTriggerEvent() { * * *
-     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-     * the name of the event.
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+     * input, this field will contain the name of the event.
      * 
* * string trigger_event = 14; @@ -6182,8 +6314,8 @@ public com.google.protobuf.ByteString getTriggerEventBytes() { * * *
-     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-     * the name of the event.
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+     * input, this field will contain the name of the event.
      * 
* * string trigger_event = 14; @@ -6204,8 +6336,8 @@ public Builder setTriggerEvent(java.lang.String value) { * * *
-     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-     * the name of the event.
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+     * input, this field will contain the name of the event.
      * 
* * string trigger_event = 14; @@ -6224,8 +6356,8 @@ public Builder clearTriggerEvent() { * * *
-     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-     * the name of the event.
+     * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+     * input, this field will contain the name of the event.
      * 
* * string trigger_event = 14; @@ -6308,8 +6440,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -6326,8 +6458,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -6349,8 +6481,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -6375,7 +6507,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { * @return Whether the fulfillmentInfo field is set. */ public boolean hasFulfillmentInfo() { - return fulfillmentInfoBuilder_ != null || fulfillmentInfo_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -6417,11 +6549,11 @@ public Builder setFulfillmentInfo( throw new NullPointerException(); } fulfillmentInfo_ = value; - onChanged(); } else { fulfillmentInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -6439,11 +6571,11 @@ public Builder setFulfillmentInfo( com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.Builder builderForValue) { if (fulfillmentInfoBuilder_ == null) { fulfillmentInfo_ = builderForValue.build(); - onChanged(); } else { fulfillmentInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -6460,20 +6592,20 @@ public Builder setFulfillmentInfo( public Builder mergeFulfillmentInfo( com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo value) { if (fulfillmentInfoBuilder_ == null) { - if (fulfillmentInfo_ != null) { - fulfillmentInfo_ = - com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.newBuilder( - fulfillmentInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && fulfillmentInfo_ != null + && fulfillmentInfo_ + != com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo + .getDefaultInstance()) { + getFulfillmentInfoBuilder().mergeFrom(value); } else { fulfillmentInfo_ = value; } - onChanged(); } else { fulfillmentInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -6488,14 +6620,13 @@ public Builder mergeFulfillmentInfo( * */ public Builder clearFulfillmentInfo() { - if (fulfillmentInfoBuilder_ == null) { - fulfillmentInfo_ = null; - onChanged(); - } else { - fulfillmentInfo_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + fulfillmentInfo_ = null; + if (fulfillmentInfoBuilder_ != null) { + fulfillmentInfoBuilder_.dispose(); fulfillmentInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -6511,7 +6642,7 @@ public Builder clearFulfillmentInfo() { */ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.FulfillmentInfo.Builder getFulfillmentInfoBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getFulfillmentInfoFieldBuilder().getBuilder(); } @@ -6582,7 +6713,7 @@ public Builder clearFulfillmentInfo() { * @return Whether the intentInfo field is set. */ public boolean hasIntentInfo() { - return intentInfoBuilder_ != null || intentInfo_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -6620,11 +6751,11 @@ public Builder setIntentInfo( throw new NullPointerException(); } intentInfo_ = value; - onChanged(); } else { intentInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -6640,11 +6771,11 @@ public Builder setIntentInfo( com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.Builder builderForValue) { if (intentInfoBuilder_ == null) { intentInfo_ = builderForValue.build(); - onChanged(); } else { intentInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -6659,19 +6790,20 @@ public Builder setIntentInfo( public Builder mergeIntentInfo( com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo value) { if (intentInfoBuilder_ == null) { - if (intentInfo_ != null) { - intentInfo_ = - com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.newBuilder(intentInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && intentInfo_ != null + && intentInfo_ + != com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo + .getDefaultInstance()) { + getIntentInfoBuilder().mergeFrom(value); } else { intentInfo_ = value; } - onChanged(); } else { intentInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -6684,14 +6816,13 @@ public Builder mergeIntentInfo( * .google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo intent_info = 3; */ public Builder clearIntentInfo() { - if (intentInfoBuilder_ == null) { - intentInfo_ = null; - onChanged(); - } else { - intentInfo_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + intentInfo_ = null; + if (intentInfoBuilder_ != null) { + intentInfoBuilder_.dispose(); intentInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -6705,7 +6836,7 @@ public Builder clearIntentInfo() { */ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo.Builder getIntentInfoBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getIntentInfoFieldBuilder().getBuilder(); } @@ -6772,7 +6903,7 @@ public Builder clearIntentInfo() { * @return Whether the pageInfo field is set. */ public boolean hasPageInfo() { - return pageInfoBuilder_ != null || pageInfo_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -6809,11 +6940,11 @@ public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo value) { throw new NullPointerException(); } pageInfo_ = value; - onChanged(); } else { pageInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -6828,11 +6959,11 @@ public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo value) { public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo.Builder builderForValue) { if (pageInfoBuilder_ == null) { pageInfo_ = builderForValue.build(); - onChanged(); } else { pageInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -6846,19 +6977,18 @@ public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo.Builder bu */ public Builder mergePageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo value) { if (pageInfoBuilder_ == null) { - if (pageInfo_ != null) { - pageInfo_ = - com.google.cloud.dialogflow.cx.v3.PageInfo.newBuilder(pageInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && pageInfo_ != null + && pageInfo_ != com.google.cloud.dialogflow.cx.v3.PageInfo.getDefaultInstance()) { + getPageInfoBuilder().mergeFrom(value); } else { pageInfo_ = value; } - onChanged(); } else { pageInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -6871,14 +7001,13 @@ public Builder mergePageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo value) { * .google.cloud.dialogflow.cx.v3.PageInfo page_info = 4; */ public Builder clearPageInfo() { - if (pageInfoBuilder_ == null) { - pageInfo_ = null; - onChanged(); - } else { - pageInfo_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + pageInfo_ = null; + if (pageInfoBuilder_ != null) { + pageInfoBuilder_.dispose(); pageInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -6891,7 +7020,7 @@ public Builder clearPageInfo() { * .google.cloud.dialogflow.cx.v3.PageInfo page_info = 4; */ public com.google.cloud.dialogflow.cx.v3.PageInfo.Builder getPageInfoBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getPageInfoFieldBuilder().getBuilder(); } @@ -6957,7 +7086,7 @@ public com.google.cloud.dialogflow.cx.v3.PageInfoOrBuilder getPageInfoOrBuilder( * @return Whether the sessionInfo field is set. */ public boolean hasSessionInfo() { - return sessionInfoBuilder_ != null || sessionInfo_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -6994,11 +7123,11 @@ public Builder setSessionInfo(com.google.cloud.dialogflow.cx.v3.SessionInfo valu throw new NullPointerException(); } sessionInfo_ = value; - onChanged(); } else { sessionInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -7014,11 +7143,11 @@ public Builder setSessionInfo( com.google.cloud.dialogflow.cx.v3.SessionInfo.Builder builderForValue) { if (sessionInfoBuilder_ == null) { sessionInfo_ = builderForValue.build(); - onChanged(); } else { sessionInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -7032,19 +7161,18 @@ public Builder setSessionInfo( */ public Builder mergeSessionInfo(com.google.cloud.dialogflow.cx.v3.SessionInfo value) { if (sessionInfoBuilder_ == null) { - if (sessionInfo_ != null) { - sessionInfo_ = - com.google.cloud.dialogflow.cx.v3.SessionInfo.newBuilder(sessionInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && sessionInfo_ != null + && sessionInfo_ != com.google.cloud.dialogflow.cx.v3.SessionInfo.getDefaultInstance()) { + getSessionInfoBuilder().mergeFrom(value); } else { sessionInfo_ = value; } - onChanged(); } else { sessionInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -7057,14 +7185,13 @@ public Builder mergeSessionInfo(com.google.cloud.dialogflow.cx.v3.SessionInfo va * .google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5; */ public Builder clearSessionInfo() { - if (sessionInfoBuilder_ == null) { - sessionInfo_ = null; - onChanged(); - } else { - sessionInfo_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + sessionInfo_ = null; + if (sessionInfoBuilder_ != null) { + sessionInfoBuilder_.dispose(); sessionInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -7077,7 +7204,7 @@ public Builder clearSessionInfo() { * .google.cloud.dialogflow.cx.v3.SessionInfo session_info = 5; */ public com.google.cloud.dialogflow.cx.v3.SessionInfo.Builder getSessionInfoBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getSessionInfoFieldBuilder().getBuilder(); } @@ -7129,10 +7256,10 @@ public com.google.cloud.dialogflow.cx.v3.SessionInfoOrBuilder getSessionInfoOrBu java.util.Collections.emptyList(); private void ensureMessagesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000400) != 0)) { messages_ = new java.util.ArrayList(messages_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000400; } } @@ -7370,7 +7497,7 @@ public Builder addAllMessages( public Builder clearMessages() { if (messagesBuilder_ == null) { messages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { messagesBuilder_.clear(); @@ -7508,7 +7635,7 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Builder addMessagesBuil com.google.cloud.dialogflow.cx.v3.ResponseMessage, com.google.cloud.dialogflow.cx.v3.ResponseMessage.Builder, com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder>( - messages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + messages_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); messages_ = null; } return messagesBuilder_; @@ -7524,7 +7651,8 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Builder addMessagesBuil * * *
-     * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+     * Custom data set in
+     * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
      * 
* * .google.protobuf.Struct payload = 8; @@ -7532,13 +7660,14 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessage.Builder addMessagesBuil * @return Whether the payload field is set. */ public boolean hasPayload() { - return payloadBuilder_ != null || payload_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** * * *
-     * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+     * Custom data set in
+     * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
      * 
* * .google.protobuf.Struct payload = 8; @@ -7556,7 +7685,8 @@ public com.google.protobuf.Struct getPayload() { * * *
-     * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+     * Custom data set in
+     * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
      * 
* * .google.protobuf.Struct payload = 8; @@ -7567,18 +7697,19 @@ public Builder setPayload(com.google.protobuf.Struct value) { throw new NullPointerException(); } payload_ = value; - onChanged(); } else { payloadBuilder_.setMessage(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** * * *
-     * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+     * Custom data set in
+     * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
      * 
* * .google.protobuf.Struct payload = 8; @@ -7586,68 +7717,71 @@ public Builder setPayload(com.google.protobuf.Struct value) { public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); - onChanged(); } else { payloadBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** * * *
-     * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+     * Custom data set in
+     * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
      * 
* * .google.protobuf.Struct payload = 8; */ public Builder mergePayload(com.google.protobuf.Struct value) { if (payloadBuilder_ == null) { - if (payload_ != null) { - payload_ = - com.google.protobuf.Struct.newBuilder(payload_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000800) != 0) + && payload_ != null + && payload_ != com.google.protobuf.Struct.getDefaultInstance()) { + getPayloadBuilder().mergeFrom(value); } else { payload_ = value; } - onChanged(); } else { payloadBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** * * *
-     * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+     * Custom data set in
+     * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
      * 
* * .google.protobuf.Struct payload = 8; */ public Builder clearPayload() { - if (payloadBuilder_ == null) { - payload_ = null; - onChanged(); - } else { - payload_ = null; + bitField0_ = (bitField0_ & ~0x00000800); + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); payloadBuilder_ = null; } - + onChanged(); return this; } /** * * *
-     * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+     * Custom data set in
+     * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
      * 
* * .google.protobuf.Struct payload = 8; */ public com.google.protobuf.Struct.Builder getPayloadBuilder() { - + bitField0_ |= 0x00000800; onChanged(); return getPayloadFieldBuilder().getBuilder(); } @@ -7655,7 +7789,8 @@ public com.google.protobuf.Struct.Builder getPayloadBuilder() { * * *
-     * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+     * Custom data set in
+     * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
      * 
* * .google.protobuf.Struct payload = 8; @@ -7671,7 +7806,8 @@ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { * * *
-     * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+     * Custom data set in
+     * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
      * 
* * .google.protobuf.Struct payload = 8; @@ -7715,7 +7851,7 @@ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { * @return Whether the sentimentAnalysisResult field is set. */ public boolean hasSentimentAnalysisResult() { - return sentimentAnalysisResultBuilder_ != null || sentimentAnalysisResult_ != null; + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -7761,11 +7897,11 @@ public Builder setSentimentAnalysisResult( throw new NullPointerException(); } sentimentAnalysisResult_ = value; - onChanged(); } else { sentimentAnalysisResultBuilder_.setMessage(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -7785,11 +7921,11 @@ public Builder setSentimentAnalysisResult( builderForValue) { if (sentimentAnalysisResultBuilder_ == null) { sentimentAnalysisResult_ = builderForValue.build(); - onChanged(); } else { sentimentAnalysisResultBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -7807,20 +7943,20 @@ public Builder setSentimentAnalysisResult( public Builder mergeSentimentAnalysisResult( com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult value) { if (sentimentAnalysisResultBuilder_ == null) { - if (sentimentAnalysisResult_ != null) { - sentimentAnalysisResult_ = - com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.newBuilder( - sentimentAnalysisResult_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00001000) != 0) + && sentimentAnalysisResult_ != null + && sentimentAnalysisResult_ + != com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult + .getDefaultInstance()) { + getSentimentAnalysisResultBuilder().mergeFrom(value); } else { sentimentAnalysisResult_ = value; } - onChanged(); } else { sentimentAnalysisResultBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -7836,14 +7972,13 @@ public Builder mergeSentimentAnalysisResult( * */ public Builder clearSentimentAnalysisResult() { - if (sentimentAnalysisResultBuilder_ == null) { - sentimentAnalysisResult_ = null; - onChanged(); - } else { - sentimentAnalysisResult_ = null; + bitField0_ = (bitField0_ & ~0x00001000); + sentimentAnalysisResult_ = null; + if (sentimentAnalysisResultBuilder_ != null) { + sentimentAnalysisResultBuilder_.dispose(); sentimentAnalysisResultBuilder_ = null; } - + onChanged(); return this; } /** @@ -7860,7 +7995,7 @@ public Builder clearSentimentAnalysisResult() { */ public com.google.cloud.dialogflow.cx.v3.WebhookRequest.SentimentAnalysisResult.Builder getSentimentAnalysisResultBuilder() { - + bitField0_ |= 0x00001000; onChanged(); return getSentimentAnalysisResultFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequestOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequestOrBuilder.java index e3683c1b8f59..d3ab944c7ec6 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequestOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookRequestOrBuilder.java @@ -27,8 +27,9 @@ public interface WebhookRequestOrBuilder * * *
-   * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that
-   * will be returned to the API caller.
+   * Always present. The unique identifier of the
+   * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse]
+   * that will be returned to the API caller.
    * 
* * string detect_intent_response_id = 1; @@ -40,8 +41,9 @@ public interface WebhookRequestOrBuilder * * *
-   * Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that
-   * will be returned to the API caller.
+   * Always present. The unique identifier of the
+   * [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse]
+   * that will be returned to the API caller.
    * 
* * string detect_intent_response_id = 1; @@ -54,8 +56,8 @@ public interface WebhookRequestOrBuilder * * *
-   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-   * will contain a copy of the text.
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+   * provided as input, this field will contain a copy of the text.
    * 
* * string text = 10; @@ -67,8 +69,8 @@ public interface WebhookRequestOrBuilder * * *
-   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-   * will contain a copy of the text.
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+   * provided as input, this field will contain a copy of the text.
    * 
* * string text = 10; @@ -80,8 +82,8 @@ public interface WebhookRequestOrBuilder * * *
-   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field
-   * will contain a copy of the text.
+   * If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
+   * provided as input, this field will contain a copy of the text.
    * 
* * string text = 10; @@ -94,9 +96,9 @@ public interface WebhookRequestOrBuilder * * *
-   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-   * contain a copy of the intent identifier.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+   * input, this field will contain a copy of the intent identifier. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
    * 
* @@ -109,9 +111,9 @@ public interface WebhookRequestOrBuilder * * *
-   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-   * contain a copy of the intent identifier.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+   * input, this field will contain a copy of the intent identifier. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
    * 
* @@ -124,9 +126,9 @@ public interface WebhookRequestOrBuilder * * *
-   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will
-   * contain a copy of the intent identifier.
-   * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
+   * If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
+   * input, this field will contain a copy of the intent identifier. Format:
+   * `projects/<Project ID>/locations/<Location ID>/agents/<Agent
    * ID>/intents/<Intent ID>`.
    * 
* @@ -140,7 +142,8 @@ public interface WebhookRequestOrBuilder * * *
-   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * If [natural language speech
+   * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
    * this field will contain the transcript for the audio.
    * 
* @@ -153,7 +156,8 @@ public interface WebhookRequestOrBuilder * * *
-   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * If [natural language speech
+   * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
    * this field will contain the transcript for the audio.
    * 
* @@ -166,7 +170,8 @@ public interface WebhookRequestOrBuilder * * *
-   * If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
+   * If [natural language speech
+   * audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
    * this field will contain the transcript for the audio.
    * 
* @@ -180,8 +185,8 @@ public interface WebhookRequestOrBuilder * * *
-   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-   * the name of the event.
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+   * input, this field will contain the name of the event.
    * 
* * string trigger_event = 14; @@ -193,8 +198,8 @@ public interface WebhookRequestOrBuilder * * *
-   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-   * the name of the event.
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+   * input, this field will contain the name of the event.
    * 
* * string trigger_event = 14; @@ -206,8 +211,8 @@ public interface WebhookRequestOrBuilder * * *
-   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain
-   * the name of the event.
+   * If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as
+   * input, this field will contain the name of the event.
    * 
* * string trigger_event = 14; @@ -456,7 +461,8 @@ public interface WebhookRequestOrBuilder * * *
-   * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+   * Custom data set in
+   * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
    * 
* * .google.protobuf.Struct payload = 8; @@ -468,7 +474,8 @@ public interface WebhookRequestOrBuilder * * *
-   * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+   * Custom data set in
+   * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
    * 
* * .google.protobuf.Struct payload = 8; @@ -480,7 +487,8 @@ public interface WebhookRequestOrBuilder * * *
-   * Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
+   * Custom data set in
+   * [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
    * 
* * .google.protobuf.Struct payload = 8; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookResponse.java index 5ddf2ebf05a9..204455f1d2e2 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookResponse.java @@ -369,6 +369,8 @@ private MergeBehavior(int value) { } public static final int MESSAGES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List messages_; /** * @@ -439,7 +441,7 @@ public com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getMessagesOrB } public static final int MERGE_BEHAVIOR_FIELD_NUMBER = 2; - private int mergeBehavior_; + private int mergeBehavior_ = 0; /** * * @@ -473,10 +475,9 @@ public int getMergeBehaviorValue() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior getMergeBehavior() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior result = com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior - .valueOf(mergeBehavior_); + .forNumber(mergeBehavior_); return result == null ? com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior .UNRECOGNIZED @@ -703,6 +704,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (messagesBuilder_ == null) { messages_ = java.util.Collections.emptyList(); } else { @@ -711,7 +713,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); mergeBehavior_ = 0; - return this; } @@ -742,7 +743,16 @@ public com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse bui public com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse result = new com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse result) { if (messagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); @@ -752,9 +762,14 @@ public com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse bui } else { result.messages_ = messagesBuilder_.build(); } - result.mergeBehavior_ = mergeBehavior_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mergeBehavior_ = mergeBehavior_; + } } @java.lang.Override @@ -882,7 +897,7 @@ public Builder mergeFrom( case 16: { mergeBehavior_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -1294,8 +1309,8 @@ public int getMergeBehaviorValue() { * @return This builder for chaining. */ public Builder setMergeBehaviorValue(int value) { - mergeBehavior_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1315,10 +1330,9 @@ public Builder setMergeBehaviorValue(int value) { @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior getMergeBehavior() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior result = com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior - .valueOf(mergeBehavior_); + .forNumber(mergeBehavior_); return result == null ? com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.MergeBehavior .UNRECOGNIZED @@ -1344,7 +1358,7 @@ public Builder setMergeBehavior( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; mergeBehavior_ = value.getNumber(); onChanged(); return this; @@ -1363,7 +1377,7 @@ public Builder setMergeBehavior( * @return This builder for chaining. */ public Builder clearMergeBehavior() { - + bitField0_ = (bitField0_ & ~0x00000002); mergeBehavior_ = 0; onChanged(); return this; @@ -1541,7 +1555,9 @@ public boolean hasFulfillmentResponse() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponseOrBuilder getFulfillmentResponseOrBuilder() { - return getFulfillmentResponse(); + return fulfillmentResponse_ == null + ? com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.getDefaultInstance() + : fulfillmentResponse_; } public static final int PAGE_INFO_FIELD_NUMBER = 2; @@ -1592,7 +1608,9 @@ public com.google.cloud.dialogflow.cx.v3.PageInfo getPageInfo() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.PageInfoOrBuilder getPageInfoOrBuilder() { - return getPageInfo(); + return pageInfo_ == null + ? com.google.cloud.dialogflow.cx.v3.PageInfo.getDefaultInstance() + : pageInfo_; } public static final int SESSION_INFO_FIELD_NUMBER = 3; @@ -1643,7 +1661,9 @@ public com.google.cloud.dialogflow.cx.v3.SessionInfo getSessionInfo() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SessionInfoOrBuilder getSessionInfoOrBuilder() { - return getSessionInfo(); + return sessionInfo_ == null + ? com.google.cloud.dialogflow.cx.v3.SessionInfo.getDefaultInstance() + : sessionInfo_; } public static final int PAYLOAD_FIELD_NUMBER = 4; @@ -1652,7 +1672,8 @@ public com.google.cloud.dialogflow.cx.v3.SessionInfoOrBuilder getSessionInfoOrBu * * *
-   * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+   * Value to append directly to
+   * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
    * 
* * .google.protobuf.Struct payload = 4; @@ -1667,7 +1688,8 @@ public boolean hasPayload() { * * *
-   * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+   * Value to append directly to
+   * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
    * 
* * .google.protobuf.Struct payload = 4; @@ -1682,14 +1704,15 @@ public com.google.protobuf.Struct getPayload() { * * *
-   * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+   * Value to append directly to
+   * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
    * 
* * .google.protobuf.Struct payload = 4; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { - return getPayload(); + return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_; } public static final int TARGET_PAGE_FIELD_NUMBER = 5; @@ -2123,28 +2146,25 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (fulfillmentResponseBuilder_ == null) { - fulfillmentResponse_ = null; - } else { - fulfillmentResponse_ = null; + bitField0_ = 0; + fulfillmentResponse_ = null; + if (fulfillmentResponseBuilder_ != null) { + fulfillmentResponseBuilder_.dispose(); fulfillmentResponseBuilder_ = null; } - if (pageInfoBuilder_ == null) { - pageInfo_ = null; - } else { - pageInfo_ = null; + pageInfo_ = null; + if (pageInfoBuilder_ != null) { + pageInfoBuilder_.dispose(); pageInfoBuilder_ = null; } - if (sessionInfoBuilder_ == null) { - sessionInfo_ = null; - } else { - sessionInfo_ = null; + sessionInfo_ = null; + if (sessionInfoBuilder_ != null) { + sessionInfoBuilder_.dispose(); sessionInfoBuilder_ = null; } - if (payloadBuilder_ == null) { - payload_ = null; - } else { - payload_ = null; + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); payloadBuilder_ = null; } transitionCase_ = 0; @@ -2176,35 +2196,37 @@ public com.google.cloud.dialogflow.cx.v3.WebhookResponse build() { public com.google.cloud.dialogflow.cx.v3.WebhookResponse buildPartial() { com.google.cloud.dialogflow.cx.v3.WebhookResponse result = new com.google.cloud.dialogflow.cx.v3.WebhookResponse(this); - if (fulfillmentResponseBuilder_ == null) { - result.fulfillmentResponse_ = fulfillmentResponse_; - } else { - result.fulfillmentResponse_ = fulfillmentResponseBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (pageInfoBuilder_ == null) { - result.pageInfo_ = pageInfo_; - } else { - result.pageInfo_ = pageInfoBuilder_.build(); - } - if (sessionInfoBuilder_ == null) { - result.sessionInfo_ = sessionInfo_; - } else { - result.sessionInfo_ = sessionInfoBuilder_.build(); + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3.WebhookResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fulfillmentResponse_ = + fulfillmentResponseBuilder_ == null + ? fulfillmentResponse_ + : fulfillmentResponseBuilder_.build(); } - if (payloadBuilder_ == null) { - result.payload_ = payload_; - } else { - result.payload_ = payloadBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageInfo_ = pageInfoBuilder_ == null ? pageInfo_ : pageInfoBuilder_.build(); } - if (transitionCase_ == 5) { - result.transition_ = transition_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sessionInfo_ = + sessionInfoBuilder_ == null ? sessionInfo_ : sessionInfoBuilder_.build(); } - if (transitionCase_ == 6) { - result.transition_ = transition_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.payload_ = payloadBuilder_ == null ? payload_ : payloadBuilder_.build(); } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3.WebhookResponse result) { result.transitionCase_ = transitionCase_; - onBuilt(); - return result; + result.transition_ = this.transition_; } @java.lang.Override @@ -2315,25 +2337,25 @@ public Builder mergeFrom( { input.readMessage( getFulfillmentResponseFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getPageInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getSessionInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getPayloadFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: @@ -2381,6 +2403,8 @@ public Builder clearTransition() { return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse fulfillmentResponse_; private com.google.protobuf.SingleFieldBuilderV3< @@ -2403,7 +2427,7 @@ public Builder clearTransition() { * @return Whether the fulfillmentResponse field is set. */ public boolean hasFulfillmentResponse() { - return fulfillmentResponseBuilder_ != null || fulfillmentResponse_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -2449,11 +2473,11 @@ public Builder setFulfillmentResponse( throw new NullPointerException(); } fulfillmentResponse_ = value; - onChanged(); } else { fulfillmentResponseBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2473,11 +2497,11 @@ public Builder setFulfillmentResponse( builderForValue) { if (fulfillmentResponseBuilder_ == null) { fulfillmentResponse_ = builderForValue.build(); - onChanged(); } else { fulfillmentResponseBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2495,20 +2519,20 @@ public Builder setFulfillmentResponse( public Builder mergeFulfillmentResponse( com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse value) { if (fulfillmentResponseBuilder_ == null) { - if (fulfillmentResponse_ != null) { - fulfillmentResponse_ = - com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.newBuilder( - fulfillmentResponse_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && fulfillmentResponse_ != null + && fulfillmentResponse_ + != com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse + .getDefaultInstance()) { + getFulfillmentResponseBuilder().mergeFrom(value); } else { fulfillmentResponse_ = value; } - onChanged(); } else { fulfillmentResponseBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2524,14 +2548,13 @@ public Builder mergeFulfillmentResponse( * */ public Builder clearFulfillmentResponse() { - if (fulfillmentResponseBuilder_ == null) { - fulfillmentResponse_ = null; - onChanged(); - } else { - fulfillmentResponse_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + fulfillmentResponse_ = null; + if (fulfillmentResponseBuilder_ != null) { + fulfillmentResponseBuilder_.dispose(); fulfillmentResponseBuilder_ = null; } - + onChanged(); return this; } /** @@ -2548,7 +2571,7 @@ public Builder clearFulfillmentResponse() { */ public com.google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse.Builder getFulfillmentResponseBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getFulfillmentResponseFieldBuilder().getBuilder(); } @@ -2623,7 +2646,7 @@ public Builder clearFulfillmentResponse() { * @return Whether the pageInfo field is set. */ public boolean hasPageInfo() { - return pageInfoBuilder_ != null || pageInfo_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -2662,11 +2685,11 @@ public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo value) { throw new NullPointerException(); } pageInfo_ = value; - onChanged(); } else { pageInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2682,11 +2705,11 @@ public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo value) { public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo.Builder builderForValue) { if (pageInfoBuilder_ == null) { pageInfo_ = builderForValue.build(); - onChanged(); } else { pageInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2701,19 +2724,18 @@ public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo.Builder bu */ public Builder mergePageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo value) { if (pageInfoBuilder_ == null) { - if (pageInfo_ != null) { - pageInfo_ = - com.google.cloud.dialogflow.cx.v3.PageInfo.newBuilder(pageInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && pageInfo_ != null + && pageInfo_ != com.google.cloud.dialogflow.cx.v3.PageInfo.getDefaultInstance()) { + getPageInfoBuilder().mergeFrom(value); } else { pageInfo_ = value; } - onChanged(); } else { pageInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2727,14 +2749,13 @@ public Builder mergePageInfo(com.google.cloud.dialogflow.cx.v3.PageInfo value) { * .google.cloud.dialogflow.cx.v3.PageInfo page_info = 2; */ public Builder clearPageInfo() { - if (pageInfoBuilder_ == null) { - pageInfo_ = null; - onChanged(); - } else { - pageInfo_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + pageInfo_ = null; + if (pageInfoBuilder_ != null) { + pageInfoBuilder_.dispose(); pageInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -2748,7 +2769,7 @@ public Builder clearPageInfo() { * .google.cloud.dialogflow.cx.v3.PageInfo page_info = 2; */ public com.google.cloud.dialogflow.cx.v3.PageInfo.Builder getPageInfoBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getPageInfoFieldBuilder().getBuilder(); } @@ -2817,7 +2838,7 @@ public com.google.cloud.dialogflow.cx.v3.PageInfoOrBuilder getPageInfoOrBuilder( * @return Whether the sessionInfo field is set. */ public boolean hasSessionInfo() { - return sessionInfoBuilder_ != null || sessionInfo_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -2856,11 +2877,11 @@ public Builder setSessionInfo(com.google.cloud.dialogflow.cx.v3.SessionInfo valu throw new NullPointerException(); } sessionInfo_ = value; - onChanged(); } else { sessionInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2877,11 +2898,11 @@ public Builder setSessionInfo( com.google.cloud.dialogflow.cx.v3.SessionInfo.Builder builderForValue) { if (sessionInfoBuilder_ == null) { sessionInfo_ = builderForValue.build(); - onChanged(); } else { sessionInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2896,19 +2917,18 @@ public Builder setSessionInfo( */ public Builder mergeSessionInfo(com.google.cloud.dialogflow.cx.v3.SessionInfo value) { if (sessionInfoBuilder_ == null) { - if (sessionInfo_ != null) { - sessionInfo_ = - com.google.cloud.dialogflow.cx.v3.SessionInfo.newBuilder(sessionInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && sessionInfo_ != null + && sessionInfo_ != com.google.cloud.dialogflow.cx.v3.SessionInfo.getDefaultInstance()) { + getSessionInfoBuilder().mergeFrom(value); } else { sessionInfo_ = value; } - onChanged(); } else { sessionInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2922,14 +2942,13 @@ public Builder mergeSessionInfo(com.google.cloud.dialogflow.cx.v3.SessionInfo va * .google.cloud.dialogflow.cx.v3.SessionInfo session_info = 3; */ public Builder clearSessionInfo() { - if (sessionInfoBuilder_ == null) { - sessionInfo_ = null; - onChanged(); - } else { - sessionInfo_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + sessionInfo_ = null; + if (sessionInfoBuilder_ != null) { + sessionInfoBuilder_.dispose(); sessionInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -2943,7 +2962,7 @@ public Builder clearSessionInfo() { * .google.cloud.dialogflow.cx.v3.SessionInfo session_info = 3; */ public com.google.cloud.dialogflow.cx.v3.SessionInfo.Builder getSessionInfoBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getSessionInfoFieldBuilder().getBuilder(); } @@ -3003,7 +3022,8 @@ public com.google.cloud.dialogflow.cx.v3.SessionInfoOrBuilder getSessionInfoOrBu * * *
-     * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+     * Value to append directly to
+     * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
      * 
* * .google.protobuf.Struct payload = 4; @@ -3011,13 +3031,14 @@ public com.google.cloud.dialogflow.cx.v3.SessionInfoOrBuilder getSessionInfoOrBu * @return Whether the payload field is set. */ public boolean hasPayload() { - return payloadBuilder_ != null || payload_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * * *
-     * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+     * Value to append directly to
+     * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
      * 
* * .google.protobuf.Struct payload = 4; @@ -3035,7 +3056,8 @@ public com.google.protobuf.Struct getPayload() { * * *
-     * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+     * Value to append directly to
+     * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
      * 
* * .google.protobuf.Struct payload = 4; @@ -3046,18 +3068,19 @@ public Builder setPayload(com.google.protobuf.Struct value) { throw new NullPointerException(); } payload_ = value; - onChanged(); } else { payloadBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** * * *
-     * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+     * Value to append directly to
+     * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
      * 
* * .google.protobuf.Struct payload = 4; @@ -3065,68 +3088,71 @@ public Builder setPayload(com.google.protobuf.Struct value) { public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); - onChanged(); } else { payloadBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** * * *
-     * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+     * Value to append directly to
+     * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
      * 
* * .google.protobuf.Struct payload = 4; */ public Builder mergePayload(com.google.protobuf.Struct value) { if (payloadBuilder_ == null) { - if (payload_ != null) { - payload_ = - com.google.protobuf.Struct.newBuilder(payload_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && payload_ != null + && payload_ != com.google.protobuf.Struct.getDefaultInstance()) { + getPayloadBuilder().mergeFrom(value); } else { payload_ = value; } - onChanged(); } else { payloadBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** * * *
-     * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+     * Value to append directly to
+     * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
      * 
* * .google.protobuf.Struct payload = 4; */ public Builder clearPayload() { - if (payloadBuilder_ == null) { - payload_ = null; - onChanged(); - } else { - payload_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); payloadBuilder_ = null; } - + onChanged(); return this; } /** * * *
-     * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+     * Value to append directly to
+     * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
      * 
* * .google.protobuf.Struct payload = 4; */ public com.google.protobuf.Struct.Builder getPayloadBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getPayloadFieldBuilder().getBuilder(); } @@ -3134,7 +3160,8 @@ public com.google.protobuf.Struct.Builder getPayloadBuilder() { * * *
-     * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+     * Value to append directly to
+     * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
      * 
* * .google.protobuf.Struct payload = 4; @@ -3150,7 +3177,8 @@ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { * * *
-     * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+     * Value to append directly to
+     * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
      * 
* * .google.protobuf.Struct payload = 4; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookResponseOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookResponseOrBuilder.java index 81a52ec057c4..5432bb234361 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookResponseOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhookResponseOrBuilder.java @@ -148,7 +148,8 @@ public interface WebhookResponseOrBuilder * * *
-   * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+   * Value to append directly to
+   * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
    * 
* * .google.protobuf.Struct payload = 4; @@ -160,7 +161,8 @@ public interface WebhookResponseOrBuilder * * *
-   * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+   * Value to append directly to
+   * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
    * 
* * .google.protobuf.Struct payload = 4; @@ -172,7 +174,8 @@ public interface WebhookResponseOrBuilder * * *
-   * Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
+   * Value to append directly to
+   * [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads].
    * 
* * .google.protobuf.Struct payload = 4; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/advanced_settings.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/advanced_settings.proto index d2de5b1fc2e6..01d0485775ed 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/advanced_settings.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/advanced_settings.proto @@ -20,7 +20,7 @@ import "google/api/field_behavior.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb"; option java_multiple_files = true; option java_outer_classname = "AdvancedSettingsProto"; option java_package = "com.google.cloud.dialogflow.cx.v3"; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/agent.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/agent.proto index 0c4fb140b62d..a019767cd61d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/agent.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/agent.proto @@ -28,7 +28,7 @@ import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb"; option java_multiple_files = true; option java_outer_classname = "AgentProto"; option java_package = "com.google.cloud.dialogflow.cx.v3"; @@ -100,7 +100,8 @@ service Agents { // // - `metadata`: An empty [Struct // message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - // - `response`: [ExportAgentResponse][google.cloud.dialogflow.cx.v3.ExportAgentResponse] + // - `response`: + // [ExportAgentResponse][google.cloud.dialogflow.cx.v3.ExportAgentResponse] rpc ExportAgent(ExportAgentRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v3/{name=projects/*/locations/*/agents/*}:export" @@ -152,7 +153,8 @@ service Agents { // Gets the latest agent validation result. Agent validation is performed // when ValidateAgent is called. - rpc GetAgentValidationResult(GetAgentValidationResultRequest) returns (AgentValidationResult) { + rpc GetAgentValidationResult(GetAgentValidationResultRequest) + returns (AgentValidationResult) { option (google.api.http) = { get: "/v3/{name=projects/*/locations/*/agents/*/validationResult}" }; @@ -171,9 +173,13 @@ message SpeechToTextSettings { // in your app, product, or service to determine user intent and respond to the // user in a natural way. // -// After you create an agent, you can add [Intents][google.cloud.dialogflow.cx.v3.Intent], -// [Entity Types][google.cloud.dialogflow.cx.v3.EntityType], [Flows][google.cloud.dialogflow.cx.v3.Flow], [Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment], -// [Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and so on to manage the conversation flows.. +// After you create an agent, you can add +// [Intents][google.cloud.dialogflow.cx.v3.Intent], [Entity +// Types][google.cloud.dialogflow.cx.v3.EntityType], +// [Flows][google.cloud.dialogflow.cx.v3.Flow], +// [Fulfillments][google.cloud.dialogflow.cx.v3.Fulfillment], +// [Webhooks][google.cloud.dialogflow.cx.v3.Webhook], and so on to manage the +// conversation flows.. message Agent { option (google.api.resource) = { type: "dialogflow.googleapis.com/Agent" @@ -181,7 +187,10 @@ message Agent { }; // The unique identifier of the agent. - // Required for the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent] + // Required for the + // [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] + // method. + // [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent] // populates the name automatically. // Format: `projects//locations//agents/`. string name = 1; @@ -193,7 +202,9 @@ message Agent { // See [Language // Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) // for a list of the currently supported language codes. - // This field cannot be set by the [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] method. + // This field cannot be set by the + // [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent] + // method. string default_language_code = 3 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE @@ -221,27 +232,26 @@ message Agent { // Speech recognition related settings. SpeechToTextSettings speech_to_text_settings = 13; - // Immutable. Name of the start flow in this agent. A start flow will be automatically - // created when the agent is created, and can only be deleted by deleting the - // agent. - // Format: `projects//locations//agents//flows/`. + // Immutable. Name of the start flow in this agent. A start flow will be + // automatically created when the agent is created, and can only be deleted by + // deleting the agent. Format: `projects//locations//agents//flows/`. string start_flow = 16 [ (google.api.field_behavior) = IMMUTABLE, - (google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Flow" - } + (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" } ]; - // Name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] reference for the agent. - // Format: `projects//locations//locations//securitySettings/`. string security_settings = 17 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/SecuritySettings" - }]; + type: "dialogflow.googleapis.com/SecuritySettings" + }]; // Indicates if stackdriver logging is enabled for the agent. - // Please use [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings] + // Please use + // [agent.advanced_settings][google.cloud.dialogflow.cx.v3.AdvancedSettings.LoggingSettings] // instead. bool enable_stackdriver_logging = 18 [deprecated = true]; @@ -258,7 +268,8 @@ message Agent { AdvancedSettings advanced_settings = 22; } -// The request message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents]. +// The request message for +// [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents]. message ListAgentsRequest { // Required. The location to list all agents for. // Format: `projects//locations/`. @@ -277,7 +288,8 @@ message ListAgentsRequest { string page_token = 3; } -// The response message for [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents]. +// The response message for +// [Agents.ListAgents][google.cloud.dialogflow.cx.v3.Agents.ListAgents]. message ListAgentsResponse { // The list of agents. There will be a maximum number of items returned based // on the page_size field in the request. @@ -288,7 +300,8 @@ message ListAgentsResponse { string next_page_token = 2; } -// The request message for [Agents.GetAgent][google.cloud.dialogflow.cx.v3.Agents.GetAgent]. +// The request message for +// [Agents.GetAgent][google.cloud.dialogflow.cx.v3.Agents.GetAgent]. message GetAgentRequest { // Required. The name of the agent. // Format: `projects//locations//agents/`. @@ -300,7 +313,8 @@ message GetAgentRequest { ]; } -// The request message for [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]. +// The request message for +// [Agents.CreateAgent][google.cloud.dialogflow.cx.v3.Agents.CreateAgent]. message CreateAgentRequest { // Required. The location to create a agent for. // Format: `projects//locations/`. @@ -315,7 +329,8 @@ message CreateAgentRequest { Agent agent = 2 [(google.api.field_behavior) = REQUIRED]; } -// The request message for [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]. +// The request message for +// [Agents.UpdateAgent][google.cloud.dialogflow.cx.v3.Agents.UpdateAgent]. message UpdateAgentRequest { // Required. The agent to update. Agent agent = 1 [(google.api.field_behavior) = REQUIRED]; @@ -325,7 +340,8 @@ message UpdateAgentRequest { google.protobuf.FieldMask update_mask = 2; } -// The request message for [Agents.DeleteAgent][google.cloud.dialogflow.cx.v3.Agents.DeleteAgent]. +// The request message for +// [Agents.DeleteAgent][google.cloud.dialogflow.cx.v3.Agents.DeleteAgent]. message DeleteAgentRequest { // Required. The name of the agent to delete. // Format: `projects//locations//agents/`. @@ -337,7 +353,8 @@ message DeleteAgentRequest { ]; } -// The request message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent]. +// The request message for +// [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent]. message ExportAgentRequest { // Data format of the exported agent. enum DataFormat { @@ -357,10 +374,10 @@ message ExportAgentRequest { } ]; - // Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to - // export the agent to. The format of this URI must be - // `gs:///`. - // If left unspecified, the serialized agent is returned inline. + // Optional. The [Google Cloud + // Storage](https://cloud.google.com/storage/docs/) URI to export the agent + // to. The format of this URI must be `gs:///`. If + // left unspecified, the serialized agent is returned inline. // // Dialogflow performs a write operation for the Cloud Storage object // on the caller's behalf, so your request authentication must @@ -369,7 +386,8 @@ message ExportAgentRequest { // control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage). string agent_uri = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The data format of the exported agent. If not specified, `BLOB` is assumed. + // Optional. The data format of the exported agent. If not specified, `BLOB` + // is assumed. DataFormat data_format = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. Environment name. If not set, draft environment is assumed. @@ -383,12 +401,14 @@ message ExportAgentRequest { ]; } -// The response message for [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent]. +// The response message for +// [Agents.ExportAgent][google.cloud.dialogflow.cx.v3.Agents.ExportAgent]. message ExportAgentResponse { // The exported agent. oneof agent { // The URI to a file containing the exported agent. This field is populated - // only if `agent_uri` is specified in [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest]. + // only if `agent_uri` is specified in + // [ExportAgentRequest][google.cloud.dialogflow.cx.v3.ExportAgentRequest]. string agent_uri = 1; // Uncompressed raw byte content for agent. @@ -396,7 +416,8 @@ message ExportAgentResponse { } } -// The request message for [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3.Agents.RestoreAgent]. +// The request message for +// [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3.Agents.RestoreAgent]. message RestoreAgentRequest { // Restore option. enum RestoreOption { @@ -443,7 +464,8 @@ message RestoreAgentRequest { RestoreOption restore_option = 5; } -// The request message for [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3.Agents.ValidateAgent]. +// The request message for +// [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3.Agents.ValidateAgent]. message ValidateAgentRequest { // Required. The agent to validate. // Format: `projects//locations//agents/`. @@ -458,7 +480,8 @@ message ValidateAgentRequest { string language_code = 2; } -// The request message for [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult]. +// The request message for +// [Agents.GetAgentValidationResult][google.cloud.dialogflow.cx.v3.Agents.GetAgentValidationResult]. message GetAgentValidationResultRequest { // Required. The agent name. // Format: `projects//locations//agents//locations//agents/`. @@ -96,7 +97,8 @@ message ListChangelogsRequest { string page_token = 4; } -// The response message for [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs]. +// The response message for +// [Changelogs.ListChangelogs][google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs]. message ListChangelogsResponse { // The list of changelogs. There will be a maximum number of items returned // based on the page_size field in the request. The changelogs will be ordered @@ -108,7 +110,8 @@ message ListChangelogsResponse { string next_page_token = 2; } -// The request message for [Changelogs.GetChangelog][google.cloud.dialogflow.cx.v3.Changelogs.GetChangelog]. +// The request message for +// [Changelogs.GetChangelog][google.cloud.dialogflow.cx.v3.Changelogs.GetChangelog]. message GetChangelogRequest { // Required. The name of the changelog to get. // Format: `projects//locations//agents//locations//agents//testCases//results/`. - repeated string deployment_test_results = 1 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/TestCaseResult" - }]; + repeated string deployment_test_results = 1 + [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TestCaseResult" + }]; // The name of the experiment triggered by this deployment. // Format: projects//locations//agents//environments//experiments/. string experiment = 2 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Experiment" - }]; + type: "dialogflow.googleapis.com/Experiment" + }]; } // The name of the deployment. @@ -106,8 +110,8 @@ message Deployment { // Format: projects//locations//agents//flows//versions/. string flow_version = 2 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Version" - }]; + type: "dialogflow.googleapis.com/Version" + }]; // The current state of the deployment. State state = 3; @@ -122,11 +126,13 @@ message Deployment { google.protobuf.Timestamp end_time = 6; } -// The request message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments]. +// The request message for +// [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments]. message ListDeploymentsRequest { - // Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for. - // Format: `projects//locations//agents//environments/`. + // Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to + // list all environments for. Format: `projects//locations//agents//environments/`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -142,7 +148,8 @@ message ListDeploymentsRequest { string page_token = 3; } -// The response message for [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments]. +// The response message for +// [Deployments.ListDeployments][google.cloud.dialogflow.cx.v3.Deployments.ListDeployments]. message ListDeploymentsResponse { // The list of deployments. There will be a maximum number of items // returned based on the page_size field in the request. The list may in some @@ -155,10 +162,12 @@ message ListDeploymentsResponse { string next_page_token = 2; } -// The request message for [Deployments.GetDeployment][google.cloud.dialogflow.cx.v3.Deployments.GetDeployment]. +// The request message for +// [Deployments.GetDeployment][google.cloud.dialogflow.cx.v3.Deployments.GetDeployment]. message GetDeploymentRequest { - // Required. The name of the [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. - // Format: `projects//locations//agents//locations//agents//environments//deployments/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/entity_type.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/entity_type.proto index 92c689e3952a..a0222a3f0ef7 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/entity_type.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/entity_type.proto @@ -25,7 +25,7 @@ import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb"; option java_multiple_files = true; option java_outer_classname = "EntityTypeProto"; option java_package = "com.google.cloud.dialogflow.cx.v3"; @@ -40,7 +40,8 @@ service EntityTypes { "https://www.googleapis.com/auth/dialogflow"; // Returns the list of all entity types in the specified agent. - rpc ListEntityTypes(ListEntityTypesRequest) returns (ListEntityTypesResponse) { + rpc ListEntityTypes(ListEntityTypesRequest) + returns (ListEntityTypesResponse) { option (google.api.http) = { get: "/v3/{parent=projects/*/locations/*/agents/*}/entityTypes" }; @@ -86,7 +87,8 @@ service EntityTypes { // Note: You should always train a flow prior to sending it queries. See the // [training // documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training). - rpc DeleteEntityType(DeleteEntityTypeRequest) returns (google.protobuf.Empty) { + rpc DeleteEntityType(DeleteEntityTypeRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v3/{name=projects/*/locations/*/agents/*/entityTypes/*}" }; @@ -117,7 +119,9 @@ service EntityTypes { // // * **User** - entities that are built for an individual user such as // favorites, preferences, playlists, and so on. A user entity is -// represented by the [SessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityType] type. +// represented by the +// [SessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityType] +// type. // // For more information about entity types, see the [Dialogflow // documentation](https://cloud.google.com/dialogflow/docs/entities-overview). @@ -191,12 +195,14 @@ message EntityType { } // The unique identifier of the entity type. - // Required for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType]. + // Required for + // [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType]. // Format: `projects//locations//agents//entityTypes/`. string name = 1; - // Required. The human-readable name of the entity type, unique within the agent. + // Required. The human-readable name of the entity type, unique within the + // agent. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; // Required. Indicates the kind of entity type. @@ -224,7 +230,8 @@ message EntityType { bool redact = 9; } -// The request message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes]. +// The request message for +// [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes]. message ListEntityTypesRequest { // Required. The agent to list all entity types for. // Format: `projects//locations//agents/`. @@ -257,7 +264,8 @@ message ListEntityTypesRequest { string page_token = 4; } -// The response message for [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes]. +// The response message for +// [EntityTypes.ListEntityTypes][google.cloud.dialogflow.cx.v3.EntityTypes.ListEntityTypes]. message ListEntityTypesResponse { // The list of entity types. There will be a maximum number of items returned // based on the page_size field in the request. @@ -268,7 +276,8 @@ message ListEntityTypesResponse { string next_page_token = 2; } -// The request message for [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType]. +// The request message for +// [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType]. message GetEntityTypeRequest { // Required. The name of the entity type. // Format: `projects//locations//agents//locations//agents/`. @@ -323,7 +333,8 @@ message CreateEntityTypeRequest { string language_code = 3; } -// The request message for [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType]. +// The request message for +// [EntityTypes.UpdateEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.UpdateEntityType]. message UpdateEntityTypeRequest { // Required. The entity type to update. EntityType entity_type = 1 [(google.api.field_behavior) = REQUIRED]; @@ -345,7 +356,8 @@ message UpdateEntityTypeRequest { google.protobuf.FieldMask update_mask = 3; } -// The request message for [EntityTypes.DeleteEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityType]. +// The request message for +// [EntityTypes.DeleteEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.DeleteEntityType]. message DeleteEntityTypeRequest { // Required. The name of the entity type to delete. // Format: `projects//locations//agents//locations//agents//flows//versions/. + // Required. Format: projects//locations//agents//flows//versions/. string version = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -196,15 +216,17 @@ message Environment { // Format of each test case name: `projects//locations/ // /agents//testCases/` repeated string test_cases = 1 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/TestCase" - }]; + type: "dialogflow.googleapis.com/TestCase" + }]; - // Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] periodically. - // Default false. If set to true, run once a day. + // Whether to run test cases in + // [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] + // periodically. Default false. If set to true, run once a day. bool enable_continuous_run = 2; - // Whether to run test cases in [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] before - // deploying a flow version to the environment. Default false. + // Whether to run test cases in + // [TestCasesConfig.test_cases][google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig.test_cases] + // before deploying a flow version to the environment. Default false. bool enable_predeployment_run = 3; } @@ -212,7 +234,8 @@ message Environment { message WebhookConfig { // The list of webhooks to override for the agent environment. The webhook // must exist in the agent. You can override fields in - // [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] and + // [`generic_web_service`][google.cloud.dialogflow.cx.v3.Webhook.generic_web_service] + // and // [`service_directory`][google.cloud.dialogflow.cx.v3.Webhook.service_directory]. repeated Webhook webhook_overrides = 1; } @@ -222,22 +245,24 @@ message Environment { // ID>/environments/`. string name = 1; - // Required. The human-readable name of the environment (unique in an agent). Limit of - // 64 characters. + // Required. The human-readable name of the environment (unique in an agent). + // Limit of 64 characters. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; // The human-readable description of the environment. The maximum length is // 500 characters. If exceeded, the request is rejected. string description = 3; - // Required. A list of configurations for flow versions. You should include version - // configs for all flows that are reachable from [`Start + // Required. A list of configurations for flow versions. You should include + // version configs for all flows that are reachable from [`Start // Flow`][Agent.start_flow] in the agent. Otherwise, an error will be // returned. - repeated VersionConfig version_configs = 6 [(google.api.field_behavior) = REQUIRED]; + repeated VersionConfig version_configs = 6 + [(google.api.field_behavior) = REQUIRED]; // Output only. Update time of this environment. - google.protobuf.Timestamp update_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // The test cases config for continuous tests of this environment. TestCasesConfig test_cases_config = 7; @@ -246,10 +271,12 @@ message Environment { WebhookConfig webhook_config = 10; } -// The request message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments]. +// The request message for +// [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments]. message ListEnvironmentsRequest { - // Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all environments for. - // Format: `projects//locations//agents/`. + // Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to list all + // environments for. Format: `projects//locations//agents/`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -265,7 +292,8 @@ message ListEnvironmentsRequest { string page_token = 3; } -// The response message for [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments]. +// The response message for +// [Environments.ListEnvironments][google.cloud.dialogflow.cx.v3.Environments.ListEnvironments]. message ListEnvironmentsResponse { // The list of environments. There will be a maximum number of items // returned based on the page_size field in the request. The list may in some @@ -278,10 +306,12 @@ message ListEnvironmentsResponse { string next_page_token = 2; } -// The request message for [Environments.GetEnvironment][google.cloud.dialogflow.cx.v3.Environments.GetEnvironment]. +// The request message for +// [Environments.GetEnvironment][google.cloud.dialogflow.cx.v3.Environments.GetEnvironment]. message GetEnvironmentRequest { - // Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment]. - // Format: `projects//locations//agents//locations//agents//environments/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -291,10 +321,12 @@ message GetEnvironmentRequest { ]; } -// The request message for [Environments.CreateEnvironment][google.cloud.dialogflow.cx.v3.Environments.CreateEnvironment]. +// The request message for +// [Environments.CreateEnvironment][google.cloud.dialogflow.cx.v3.Environments.CreateEnvironment]. message CreateEnvironmentRequest { - // Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for. - // Format: `projects//locations//agents/`. + // Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an + // [Environment][google.cloud.dialogflow.cx.v3.Environment] for. Format: + // `projects//locations//agents/`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -306,19 +338,23 @@ message CreateEnvironmentRequest { Environment environment = 2 [(google.api.field_behavior) = REQUIRED]; } -// The request message for [Environments.UpdateEnvironment][google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironment]. +// The request message for +// [Environments.UpdateEnvironment][google.cloud.dialogflow.cx.v3.Environments.UpdateEnvironment]. message UpdateEnvironmentRequest { // Required. The environment to update. Environment environment = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The mask to control which fields get updated. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } -// The request message for [Environments.DeleteEnvironment][google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironment]. +// The request message for +// [Environments.DeleteEnvironment][google.cloud.dialogflow.cx.v3.Environments.DeleteEnvironment]. message DeleteEnvironmentRequest { - // Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. - // Format: `projects//locations//agents//locations//agents//environments/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -328,7 +364,8 @@ message DeleteEnvironmentRequest { ]; } -// The request message for [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory]. +// The request message for +// [Environments.LookupEnvironmentHistory][google.cloud.dialogflow.cx.v3.Environments.LookupEnvironmentHistory]. message LookupEnvironmentHistoryRequest { // Required. Resource name of the environment to look up the history for. // Format: `projects//locations//agents//locations//agents//environments/`. + // Required. Format: `projects//locations//agents//environments/`. string environment = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -409,20 +449,23 @@ message RunContinuousTestRequest { ]; } -// The response message for [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest]. +// The response message for +// [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest]. message RunContinuousTestResponse { // The result for a continuous test run. ContinuousTestResult continuous_test_result = 1; } -// Metadata returned for the [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest] long running -// operation. +// Metadata returned for the +// [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest] +// long running operation. message RunContinuousTestMetadata { // The test errors. repeated TestError errors = 1; } -// The request message for [Environments.ListContinuousTestResults][google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResults]. +// The request message for +// [Environments.ListContinuousTestResults][google.cloud.dialogflow.cx.v3.Environments.ListContinuousTestResults]. message ListContinuousTestResultsRequest { // Required. The environment to list results for. // Format: `projects//locations//agents// @@ -452,7 +495,8 @@ message ListContinuousTestResultsResponse { string next_page_token = 2; } -// The request message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow]. +// The request message for +// [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow]. message DeployFlowRequest { // Required. The environment to deploy the flow to. // Format: `projects//locations//agents// @@ -475,19 +519,22 @@ message DeployFlowRequest { ]; } -// The response message for [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow]. +// The response message for +// [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow]. message DeployFlowResponse { // The updated environment where the flow is deployed. Environment environment = 1; - // The name of the flow version [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. - // Format: `projects//locations//agents// + // The name of the flow version + // [Deployment][google.cloud.dialogflow.cx.v3.Deployment]. Format: + // `projects//locations//agents// // environments//deployments/`. string deployment = 2; } -// Metadata returned for the [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow] long running -// operation. +// Metadata returned for the +// [Environments.DeployFlow][google.cloud.dialogflow.cx.v3.Environments.DeployFlow] +// long running operation. message DeployFlowMetadata { // Errors of running deployment tests. repeated TestError test_errors = 1; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/experiment.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/experiment.proto index 6b5216dd5c0c..c7f44775355f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/experiment.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/experiment.proto @@ -27,7 +27,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb"; option java_multiple_files = true; option java_outer_classname = "ExperimentProto"; option java_package = "com.google.cloud.dialogflow.cx.v3"; @@ -41,15 +41,18 @@ service Experiments { "https://www.googleapis.com/auth/cloud-platform," "https://www.googleapis.com/auth/dialogflow"; - // Returns the list of all experiments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. - rpc ListExperiments(ListExperimentsRequest) returns (ListExperimentsResponse) { + // Returns the list of all experiments in the specified + // [Environment][google.cloud.dialogflow.cx.v3.Environment]. + rpc ListExperiments(ListExperimentsRequest) + returns (ListExperimentsResponse) { option (google.api.http) = { get: "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments" }; option (google.api.method_signature) = "parent"; } - // Retrieves the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. + // Retrieves the specified + // [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. rpc GetExperiment(GetExperimentRequest) returns (Experiment) { option (google.api.http) = { get: "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" @@ -57,7 +60,8 @@ service Experiments { option (google.api.method_signature) = "name"; } - // Creates an [Experiment][google.cloud.dialogflow.cx.v3.Experiment] in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. + // Creates an [Experiment][google.cloud.dialogflow.cx.v3.Experiment] in the + // specified [Environment][google.cloud.dialogflow.cx.v3.Environment]. rpc CreateExperiment(CreateExperimentRequest) returns (Experiment) { option (google.api.http) = { post: "/v3/{parent=projects/*/locations/*/agents/*/environments/*}/experiments" @@ -66,7 +70,8 @@ service Experiments { option (google.api.method_signature) = "parent,experiment"; } - // Updates the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. + // Updates the specified + // [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. rpc UpdateExperiment(UpdateExperimentRequest) returns (Experiment) { option (google.api.http) = { patch: "/v3/{experiment.name=projects/*/locations/*/agents/*/environments/*/experiments/*}" @@ -75,16 +80,19 @@ service Experiments { option (google.api.method_signature) = "experiment,update_mask"; } - // Deletes the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. - rpc DeleteExperiment(DeleteExperimentRequest) returns (google.protobuf.Empty) { + // Deletes the specified + // [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. + rpc DeleteExperiment(DeleteExperimentRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}" }; option (google.api.method_signature) = "name"; } - // Starts the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only changes the state of - // experiment from PENDING to RUNNING. + // Starts the specified + // [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only + // changes the state of experiment from PENDING to RUNNING. rpc StartExperiment(StartExperimentRequest) returns (Experiment) { option (google.api.http) = { post: "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:start" @@ -93,8 +101,8 @@ service Experiments { option (google.api.method_signature) = "name"; } - // Stops the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. This rpc only changes the state of - // experiment from RUNNING to DONE. + // Stops the specified [Experiment][google.cloud.dialogflow.cx.v3.Experiment]. + // This rpc only changes the state of experiment from RUNNING to DONE. rpc StopExperiment(StopExperimentRequest) returns (Experiment) { option (google.api.http) = { post: "/v3/{name=projects/*/locations/*/agents/*/environments/*/experiments/*}:stop" @@ -233,8 +241,8 @@ message Experiment { // Format: `projects//locations//agents//flows//versions/`. string version = 1 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Version" - }]; + type: "dialogflow.googleapis.com/Version" + }]; // The metrics and corresponding confidence intervals in the inference // result. @@ -257,8 +265,8 @@ message Experiment { // ID>/environments//experiments/.. string name = 1; - // Required. The human-readable name of the experiment (unique in an environment). Limit - // of 64 characters. + // Required. The human-readable name of the experiment (unique in an + // environment). Limit of 64 characters. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; // The human-readable description of the experiment. @@ -392,11 +400,13 @@ message RolloutState { google.protobuf.Timestamp start_time = 2; } -// The request message for [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments]. +// The request message for +// [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments]. message ListExperimentsRequest { - // Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to list all environments for. - // Format: `projects//locations//agents//environments/`. + // Required. The [Environment][google.cloud.dialogflow.cx.v3.Environment] to + // list all environments for. Format: `projects//locations//agents//environments/`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -412,7 +422,8 @@ message ListExperimentsRequest { string page_token = 3; } -// The response message for [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments]. +// The response message for +// [Experiments.ListExperiments][google.cloud.dialogflow.cx.v3.Experiments.ListExperiments]. message ListExperimentsResponse { // The list of experiments. There will be a maximum number of items // returned based on the page_size field in the request. The list may in some @@ -425,10 +436,12 @@ message ListExperimentsResponse { string next_page_token = 2; } -// The request message for [Experiments.GetExperiment][google.cloud.dialogflow.cx.v3.Experiments.GetExperiment]. +// The request message for +// [Experiments.GetExperiment][google.cloud.dialogflow.cx.v3.Experiments.GetExperiment]. message GetExperimentRequest { - // Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment]. - // Format: `projects//locations//agents//locations//agents//environments//experiments/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -438,10 +451,12 @@ message GetExperimentRequest { ]; } -// The request message for [Experiments.CreateExperiment][google.cloud.dialogflow.cx.v3.Experiments.CreateExperiment]. +// The request message for +// [Experiments.CreateExperiment][google.cloud.dialogflow.cx.v3.Experiments.CreateExperiment]. message CreateExperimentRequest { - // Required. The [Agent][google.cloud.dialogflow.cx.v3.Agent] to create an [Environment][google.cloud.dialogflow.cx.v3.Environment] for. - // Format: `projects//locations//agents//locations//agents//environments/`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -454,19 +469,23 @@ message CreateExperimentRequest { Experiment experiment = 2 [(google.api.field_behavior) = REQUIRED]; } -// The request message for [Experiments.UpdateExperiment][google.cloud.dialogflow.cx.v3.Experiments.UpdateExperiment]. +// The request message for +// [Experiments.UpdateExperiment][google.cloud.dialogflow.cx.v3.Experiments.UpdateExperiment]. message UpdateExperimentRequest { // Required. The experiment to update. Experiment experiment = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The mask to control which fields get updated. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } -// The request message for [Experiments.DeleteExperiment][google.cloud.dialogflow.cx.v3.Experiments.DeleteExperiment]. +// The request message for +// [Experiments.DeleteExperiment][google.cloud.dialogflow.cx.v3.Experiments.DeleteExperiment]. message DeleteExperimentRequest { - // Required. The name of the [Environment][google.cloud.dialogflow.cx.v3.Environment] to delete. - // Format: `projects//locations//agents//locations//agents//environments//experiments/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -476,7 +495,8 @@ message DeleteExperimentRequest { ]; } -// The request message for [Experiments.StartExperiment][google.cloud.dialogflow.cx.v3.Experiments.StartExperiment]. +// The request message for +// [Experiments.StartExperiment][google.cloud.dialogflow.cx.v3.Experiments.StartExperiment]. message StartExperimentRequest { // Required. Resource name of the experiment to start. // Format: `projects//locations//agents//locations//agents//locations//agents//flows//transitionRouteGroups/`. - repeated string transition_route_groups = 15 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/TransitionRouteGroup" - }]; + repeated string transition_route_groups = 15 + [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TransitionRouteGroup" + }]; // NLU related settings of the flow. NluSettings nlu_settings = 11; } -// The request message for [Flows.CreateFlow][google.cloud.dialogflow.cx.v3.Flows.CreateFlow]. +// The request message for +// [Flows.CreateFlow][google.cloud.dialogflow.cx.v3.Flows.CreateFlow]. message CreateFlowRequest { // Required. The agent to create a flow for. // Format: `projects//locations//agents/`. @@ -341,16 +347,15 @@ message CreateFlowRequest { string language_code = 3; } -// The request message for [Flows.DeleteFlow][google.cloud.dialogflow.cx.v3.Flows.DeleteFlow]. +// The request message for +// [Flows.DeleteFlow][google.cloud.dialogflow.cx.v3.Flows.DeleteFlow]. message DeleteFlowRequest { // Required. The name of the flow to delete. // Format: `projects//locations//agents//flows/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Flow" - } + (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" } ]; // This field has no effect for flows with no incoming transitions. @@ -366,7 +371,8 @@ message DeleteFlowRequest { bool force = 2; } -// The request message for [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows]. +// The request message for +// [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows]. message ListFlowsRequest { // Required. The agent containing the flows. // Format: `projects//locations//agents/`. @@ -400,7 +406,8 @@ message ListFlowsRequest { string language_code = 4; } -// The response message for [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows]. +// The response message for +// [Flows.ListFlows][google.cloud.dialogflow.cx.v3.Flows.ListFlows]. message ListFlowsResponse { // The list of flows. There will be a maximum number of items returned based // on the page_size field in the request. @@ -411,16 +418,15 @@ message ListFlowsResponse { string next_page_token = 2; } -// The response message for [Flows.GetFlow][google.cloud.dialogflow.cx.v3.Flows.GetFlow]. +// The response message for +// [Flows.GetFlow][google.cloud.dialogflow.cx.v3.Flows.GetFlow]. message GetFlowRequest { // Required. The name of the flow to get. // Format: `projects//locations//agents//flows/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Flow" - } + (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" } ]; // The language to retrieve the flow for. The following fields are language @@ -439,7 +445,8 @@ message GetFlowRequest { string language_code = 2; } -// The request message for [Flows.UpdateFlow][google.cloud.dialogflow.cx.v3.Flows.UpdateFlow]. +// The request message for +// [Flows.UpdateFlow][google.cloud.dialogflow.cx.v3.Flows.UpdateFlow]. message UpdateFlowRequest { // Required. The flow to update. Flow flow = 1 [(google.api.field_behavior) = REQUIRED]; @@ -463,36 +470,35 @@ message UpdateFlowRequest { string language_code = 3; } -// The request message for [Flows.TrainFlow][google.cloud.dialogflow.cx.v3.Flows.TrainFlow]. +// The request message for +// [Flows.TrainFlow][google.cloud.dialogflow.cx.v3.Flows.TrainFlow]. message TrainFlowRequest { // Required. The flow to train. // Format: `projects//locations//agents//flows/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Flow" - } + (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" } ]; } -// The request message for [Flows.ValidateFlow][google.cloud.dialogflow.cx.v3.Flows.ValidateFlow]. +// The request message for +// [Flows.ValidateFlow][google.cloud.dialogflow.cx.v3.Flows.ValidateFlow]. message ValidateFlowRequest { // Required. The flow to validate. // Format: `projects//locations//agents//flows/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Flow" - } + (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" } ]; // If not specified, the agent's default language is used. string language_code = 2; } -// The request message for [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult]. +// The request message for +// [Flows.GetFlowValidationResult][google.cloud.dialogflow.cx.v3.Flows.GetFlowValidationResult]. message GetFlowValidationResultRequest { // Required. The flow name. // Format: `projects//locations//agents//locations//agents//flows/`. - string flow = 1 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Flow" - }]; + string flow = 1 [ + (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" } + ]; } -// The request message for [Flows.ExportFlow][google.cloud.dialogflow.cx.v3.Flows.ExportFlow]. +// The request message for +// [Flows.ExportFlow][google.cloud.dialogflow.cx.v3.Flows.ExportFlow]. message ExportFlowRequest { // Required. The name of the flow to export. // Format: `projects//locations//agents//flows/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Flow" - } + (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" } ]; - // Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to - // export the flow to. The format of this URI must be - // `gs:///`. - // If left unspecified, the serialized flow is returned inline. + // Optional. The [Google Cloud + // Storage](https://cloud.google.com/storage/docs/) URI to export the flow to. + // The format of this URI must be `gs:///`. If left + // unspecified, the serialized flow is returned inline. // // Dialogflow performs a write operation for the Cloud Storage object // on the caller's behalf, so your request authentication must @@ -613,12 +621,14 @@ message ExportFlowRequest { bool include_referenced_flows = 4 [(google.api.field_behavior) = OPTIONAL]; } -// The response message for [Flows.ExportFlow][google.cloud.dialogflow.cx.v3.Flows.ExportFlow]. +// The response message for +// [Flows.ExportFlow][google.cloud.dialogflow.cx.v3.Flows.ExportFlow]. message ExportFlowResponse { // The exported flow. oneof flow { // The URI to a file containing the exported flow. This field is populated - // only if `flow_uri` is specified in [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest]. + // only if `flow_uri` is specified in + // [ExportFlowRequest][google.cloud.dialogflow.cx.v3.ExportFlowRequest]. string flow_uri = 1; // Uncompressed raw byte content for flow. diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/fulfillment.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/fulfillment.proto index e21ede58d99d..5cf5f0f40808 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/fulfillment.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/fulfillment.proto @@ -22,7 +22,7 @@ import "google/protobuf/struct.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb"; option java_multiple_files = true; option java_outer_classname = "FulfillmentProto"; option java_package = "com.google.cloud.dialogflow.cx.v3"; @@ -35,10 +35,14 @@ option ruby_package = "Google::Cloud::Dialogflow::CX::V3"; // * Set parameter values. // * Call the webhook. // -// Fulfillments can be called at various stages in the [Page][google.cloud.dialogflow.cx.v3.Page] or -// [Form][google.cloud.dialogflow.cx.v3.Form] lifecycle. For example, when a [DetectIntentRequest][google.cloud.dialogflow.cx.v3.DetectIntentRequest] drives a -// session to enter a new page, the page's entry fulfillment can add a static -// response to the [QueryResult][google.cloud.dialogflow.cx.v3.QueryResult] in the returning [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse], +// Fulfillments can be called at various stages in the +// [Page][google.cloud.dialogflow.cx.v3.Page] or +// [Form][google.cloud.dialogflow.cx.v3.Form] lifecycle. For example, when a +// [DetectIntentRequest][google.cloud.dialogflow.cx.v3.DetectIntentRequest] +// drives a session to enter a new page, the page's entry fulfillment can add a +// static response to the +// [QueryResult][google.cloud.dialogflow.cx.v3.QueryResult] in the returning +// [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse], // call the webhook (for example, to load user data from a database), or both. message Fulfillment { // Setting a parameter value. @@ -92,8 +96,8 @@ message Fulfillment { // Format: `projects//locations//agents//webhooks/`. string webhook = 2 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Webhook" - }]; + type: "dialogflow.googleapis.com/Webhook" + }]; // Whether Dialogflow should return currently queued fulfillment response // messages in streaming APIs. If a webhook is specified, it happens before @@ -106,7 +110,8 @@ message Fulfillment { // that have slow webhooks. bool return_partial_responses = 8; - // The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] + // The value of this field will be populated in the + // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] // `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is // called. // The tag is typically used by the webhook service to identify which diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/intent.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/intent.proto index 05160288496e..5ff0fd986c43 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/intent.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/intent.proto @@ -25,7 +25,7 @@ import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb"; option java_multiple_files = true; option java_outer_classname = "IntentProto"; option java_package = "com.google.cloud.dialogflow.cx.v3"; @@ -112,9 +112,9 @@ message Intent { // Required. The text for this part. string text = 1 [(google.api.field_behavior) = REQUIRED]; - // The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to annotate this part of the - // training phrase. This field is required for annotated parts of the - // training phrase. + // The [parameter][google.cloud.dialogflow.cx.v3.Intent.Parameter] used to + // annotate this part of the training phrase. This field is required for + // annotated parts of the training phrase. string parameter_id = 2; } @@ -131,7 +131,9 @@ message Intent { // training phrase is well formatted when the parts are concatenated. // // If the training phrase does not need to be annotated with parameters, - // you just need a single part with only the [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] field set. + // you just need a single part with only the + // [Part.text][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part.text] + // field set. // // If you want to annotate the training phrase, you must create multiple // parts, where the fields of each part are populated in one of two ways: @@ -148,8 +150,9 @@ message Intent { // Represents an intent parameter. message Parameter { // Required. The unique identifier of the parameter. This field - // is used by [training phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate their - // [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part]. + // is used by [training + // phrases][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase] to annotate + // their [parts][google.cloud.dialogflow.cx.v3.Intent.TrainingPhrase.Part]. string id = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The entity type of the parameter. @@ -172,13 +175,16 @@ message Intent { // redaction is enabled, the parameter content will be replaced by parameter // name during logging. // Note: the parameter content is subject to redaction if either parameter - // level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is - // enabled. + // level redaction or [entity type level + // redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled. bool redact = 4; } // The unique identifier of the intent. - // Required for the [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] method. [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent] + // Required for the + // [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent] + // method. + // [Intents.CreateIntent][google.cloud.dialogflow.cx.v3.Intents.CreateIntent] // populates the name automatically. // Format: `projects//locations//agents//intents/`. @@ -231,7 +237,8 @@ message Intent { string description = 8; } -// The request message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents]. +// The request message for +// [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents]. message ListIntentsRequest { // Required. The agent to list all intents for. // Format: `projects//locations//agents/`. @@ -265,7 +272,8 @@ message ListIntentsRequest { string page_token = 4; } -// The response message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents]. +// The response message for +// [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents]. message ListIntentsResponse { // The list of intents. There will be a maximum number of items returned based // on the page_size field in the request. @@ -276,7 +284,8 @@ message ListIntentsResponse { string next_page_token = 2; } -// The request message for [Intents.GetIntent][google.cloud.dialogflow.cx.v3.Intents.GetIntent]. +// The request message for +// [Intents.GetIntent][google.cloud.dialogflow.cx.v3.Intents.GetIntent]. message GetIntentRequest { // Required. The name of the intent. // Format: `projects//locations//agents//locations//agents/`. @@ -327,7 +337,8 @@ message CreateIntentRequest { string language_code = 3; } -// The request message for [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]. +// The request message for +// [Intents.UpdateIntent][google.cloud.dialogflow.cx.v3.Intents.UpdateIntent]. message UpdateIntentRequest { // Required. The intent to update. Intent intent = 1 [(google.api.field_behavior) = REQUIRED]; @@ -348,7 +359,8 @@ message UpdateIntentRequest { google.protobuf.FieldMask update_mask = 3; } -// The request message for [Intents.DeleteIntent][google.cloud.dialogflow.cx.v3.Intents.DeleteIntent]. +// The request message for +// [Intents.DeleteIntent][google.cloud.dialogflow.cx.v3.Intents.DeleteIntent]. message DeleteIntentRequest { // Required. The name of the intent to delete. // Format: `projects//locations//agents//locations//agents//flows//pages/`. @@ -135,8 +137,10 @@ message Page { // relevant to the page. Form form = 4; - // Ordered list of [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] associated - // with the page. Transition route groups must be unique within a page. + // Ordered list of + // [`TransitionRouteGroups`][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] + // associated with the page. Transition route groups must be unique within a + // page. // // * If multiple transition routes within a page scope refer to the same // intent, then the precedence order is: page's transition route -> page's @@ -147,9 +151,10 @@ message Page { // // Format:`projects//locations//agents//flows//transitionRouteGroups/`. - repeated string transition_route_groups = 11 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/TransitionRouteGroup" - }]; + repeated string transition_route_groups = 11 + [(google.api.resource_reference) = { + type: "dialogflow.googleapis.com/TransitionRouteGroup" + }]; // A list of transitions for the transition rules of this page. // They route the conversation to another page in the same flow, or another @@ -160,16 +165,19 @@ message Page { // // * TransitionRoutes defined in the page with intent specified. // * TransitionRoutes defined in the - // [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with intent - // specified. + // [transition route + // groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + // with intent specified. // * TransitionRoutes defined in flow with intent specified. // * TransitionRoutes defined in the - // [transition route groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] with intent - // specified. + // [transition route + // groups][google.cloud.dialogflow.cx.v3.Flow.transition_route_groups] + // with intent specified. // * TransitionRoutes defined in the page with only condition specified. // * TransitionRoutes defined in the - // [transition route groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] with only - // condition specified. + // [transition route + // groups][google.cloud.dialogflow.cx.v3.Page.transition_route_groups] + // with only condition specified. repeated TransitionRoute transition_routes = 9; // Handlers associated with the page to handle events such as webhook errors, @@ -180,8 +188,9 @@ message Page { // A form is a data model that groups related parameters that can be collected // from the user. The process in which the agent prompts the user and collects // parameter values from the user is called form filling. A form can be added to -// a [page][google.cloud.dialogflow.cx.v3.Page]. When form filling is done, the filled parameters will be -// written to the [session][google.cloud.dialogflow.cx.v3.SessionInfo.parameters]. +// a [page][google.cloud.dialogflow.cx.v3.Page]. When form filling is done, the +// filled parameters will be written to the +// [session][google.cloud.dialogflow.cx.v3.SessionInfo.parameters]. message Form { // Represents a form parameter. message Parameter { @@ -189,7 +198,8 @@ message Form { message FillBehavior { // Required. The fulfillment to provide the initial prompt that the agent // can present to the user in order to fill the parameter. - Fulfillment initial_prompt_fulfillment = 3 [(google.api.field_behavior) = REQUIRED]; + Fulfillment initial_prompt_fulfillment = 3 + [(google.api.field_behavior) = REQUIRED]; // The handlers for parameter-level events, used to provide reprompt for // the parameter or transition to a different page/flow. The supported @@ -262,8 +272,8 @@ message Form { // redaction is enabled, the parameter content will be replaced by parameter // name during logging. // Note: the parameter content is subject to redaction if either parameter - // level redaction or [entity type level redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is - // enabled. + // level redaction or [entity type level + // redaction][google.cloud.dialogflow.cx.v3.EntityType.redact] is enabled. bool redact = 11; } @@ -271,17 +281,22 @@ message Form { repeated Parameter parameters = 1; } -// An event handler specifies an [event][google.cloud.dialogflow.cx.v3.EventHandler.event] that can be handled +// An event handler specifies an +// [event][google.cloud.dialogflow.cx.v3.EventHandler.event] that can be handled // during a session. When the specified event happens, the following actions are // taken in order: // // * If there is a -// [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.EventHandler.trigger_fulfillment] associated with -// the event, it will be called. -// * If there is a [`target_page`][google.cloud.dialogflow.cx.v3.EventHandler.target_page] associated -// with the event, the session will transition into the specified page. -// * If there is a [`target_flow`][google.cloud.dialogflow.cx.v3.EventHandler.target_flow] associated -// with the event, the session will transition into the specified flow. +// [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.EventHandler.trigger_fulfillment] +// associated with the event, it will be called. +// * If there is a +// [`target_page`][google.cloud.dialogflow.cx.v3.EventHandler.target_page] +// associated with the event, the session will transition into the specified +// page. +// * If there is a +// [`target_flow`][google.cloud.dialogflow.cx.v3.EventHandler.target_flow] +// associated with the event, the session will transition into the specified +// flow. message EventHandler { // Output only. The unique identifier of this event handler. string name = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -296,35 +311,42 @@ message EventHandler { Fulfillment trigger_fulfillment = 5; // The target to transition to, either a page in the same host flow (the flow - // that owns this [TransitionRoute][google.cloud.dialogflow.cx.v3.TransitionRoute]), or another flow in the same agent. + // that owns this + // [TransitionRoute][google.cloud.dialogflow.cx.v3.TransitionRoute]), or + // another flow in the same agent. oneof target { // The target page to transition to. // Format: `projects//locations//agents//flows//pages/`. string target_page = 2 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Page" - }]; + type: "dialogflow.googleapis.com/Page" + }]; // The target flow to transition to. // Format: `projects//locations//agents//flows/`. string target_flow = 3 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Flow" - }]; + type: "dialogflow.googleapis.com/Flow" + }]; } } -// A transition route specifies a [intent][google.cloud.dialogflow.cx.v3.Intent] that can be matched and/or a -// data condition that can be evaluated during a session. When a specified -// transition is matched, the following actions are taken in order: +// A transition route specifies a [intent][google.cloud.dialogflow.cx.v3.Intent] +// that can be matched and/or a data condition that can be evaluated during a +// session. When a specified transition is matched, the following actions are +// taken in order: // // * If there is a -// [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.TransitionRoute.trigger_fulfillment] associated with -// the transition, it will be called. -// * If there is a [`target_page`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_page] associated -// with the transition, the session will transition into the specified page. -// * If there is a [`target_flow`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_flow] associated -// with the transition, the session will transition into the specified flow. +// [`trigger_fulfillment`][google.cloud.dialogflow.cx.v3.TransitionRoute.trigger_fulfillment] +// associated with the transition, it will be called. +// * If there is a +// [`target_page`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_page] +// associated with the transition, the session will transition into the +// specified page. +// * If there is a +// [`target_flow`][google.cloud.dialogflow.cx.v3.TransitionRoute.target_flow] +// associated with the transition, the session will transition into the +// specified flow. message TransitionRoute { // Output only. The unique identifier of this transition route. string name = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -338,11 +360,12 @@ message TransitionRoute { // `intent` and `condition` are specified, the transition can only happen // when both are fulfilled. string intent = 1 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Intent" - }]; + type: "dialogflow.googleapis.com/Intent" + }]; - // The condition to evaluate against [form parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or - // [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters]. + // The condition to evaluate against [form + // parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session + // parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters]. // // See the [conditions // reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). @@ -357,25 +380,28 @@ message TransitionRoute { Fulfillment trigger_fulfillment = 3; // The target to transition to, either a page in the same host flow (the flow - // that owns this [TransitionRoute][google.cloud.dialogflow.cx.v3.TransitionRoute]), or another flow in the same agent. + // that owns this + // [TransitionRoute][google.cloud.dialogflow.cx.v3.TransitionRoute]), or + // another flow in the same agent. oneof target { // The target page to transition to. // Format: `projects//locations//agents//flows//pages/`. string target_page = 4 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Page" - }]; + type: "dialogflow.googleapis.com/Page" + }]; // The target flow to transition to. // Format: `projects//locations//agents//flows/`. string target_flow = 5 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Flow" - }]; + type: "dialogflow.googleapis.com/Flow" + }]; } } -// The request message for [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages]. +// The request message for +// [Pages.ListPages][google.cloud.dialogflow.cx.v3.Pages.ListPages]. message ListPagesRequest { // Required. The flow to list all pages for. // Format: `projects//locations//agents//locations//agents//flows//pages/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Page" - } + (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Page" } ]; // The language to retrieve the page for. The following fields are language @@ -465,7 +491,8 @@ message GetPageRequest { string language_code = 2; } -// The request message for [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]. +// The request message for +// [Pages.CreatePage][google.cloud.dialogflow.cx.v3.Pages.CreatePage]. message CreatePageRequest { // Required. The flow to create a page for. // Format: `projects//locations//agents//locations//agents//Flows//pages/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Page" - } + (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Page" } ]; // This field has no effect for pages with no incoming transitions. diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/response_message.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/response_message.proto index 72a235714cdc..658a32484da3 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/response_message.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/response_message.proto @@ -21,7 +21,7 @@ import "google/protobuf/struct.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb"; option java_multiple_files = true; option java_outer_classname = "ResponseMessageProto"; option java_package = "com.google.cloud.dialogflow.cx.v3"; @@ -51,10 +51,11 @@ message ResponseMessage { // Required. A collection of text responses. repeated string text = 1 [(google.api.field_behavior) = REQUIRED]; - // Output only. Whether the playback of this message can be interrupted by the end - // user's speech and the client can then starts the next Dialogflow + // Output only. Whether the playback of this message can be interrupted by + // the end user's speech and the client can then starts the next Dialogflow // request. - bool allow_playback_interruption = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + bool allow_playback_interruption = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Indicates that the conversation should be handed off to a live agent. @@ -64,7 +65,9 @@ message ResponseMessage { // is up to you and your handoff procedures. // // You may set this, for example: - // * In the [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment] of a [Page][google.cloud.dialogflow.cx.v3.Page] if + // * In the + // [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment] + // of a [Page][google.cloud.dialogflow.cx.v3.Page] if // entering the page indicates something went extremely wrong in the // conversation. // * In a webhook response when you determine that the customer issue can only @@ -85,7 +88,9 @@ message ResponseMessage { // [ConversationSuccess][google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccess]. // // You may set this, for example: - // * In the [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment] of a [Page][google.cloud.dialogflow.cx.v3.Page] if + // * In the + // [entry_fulfillment][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment] + // of a [Page][google.cloud.dialogflow.cx.v3.Page] if // entering the page indicates that the conversation succeeded. // * In a webhook response when you determine that you handled the customer // issue. @@ -107,29 +112,29 @@ message ResponseMessage { string ssml = 2; } - // Output only. Whether the playback of this message can be interrupted by the end - // user's speech and the client can then starts the next Dialogflow + // Output only. Whether the playback of this message can be interrupted by + // the end user's speech and the client can then starts the next Dialogflow // request. - bool allow_playback_interruption = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + bool allow_playback_interruption = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Indicates that interaction with the Dialogflow agent has ended. // This message is generated by Dialogflow only and not supposed to be // defined by the user. - message EndInteraction { - - } + message EndInteraction {} // Specifies an audio clip to be played by the client as part of the response. message PlayAudio { - // Required. URI of the audio clip. Dialogflow does not impose any validation on this - // value. It is specific to the client that reads it. + // Required. URI of the audio clip. Dialogflow does not impose any + // validation on this value. It is specific to the client that reads it. string audio_uri = 1 [(google.api.field_behavior) = REQUIRED]; - // Output only. Whether the playback of this message can be interrupted by the end - // user's speech and the client can then starts the next Dialogflow + // Output only. Whether the playback of this message can be interrupted by + // the end user's speech and the client can then starts the next Dialogflow // request. - bool allow_playback_interruption = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + bool allow_playback_interruption = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Represents an audio message that is composed of both segments @@ -153,10 +158,11 @@ message ResponseMessage { string uri = 2; } - // Output only. Whether the playback of this segment can be interrupted by the end - // user's speech and the client should then start the next Dialogflow - // request. - bool allow_playback_interruption = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Whether the playback of this segment can be interrupted by + // the end user's speech and the client should then start the next + // Dialogflow request. + bool allow_playback_interruption = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Segments this audio response is composed of. @@ -192,22 +198,24 @@ message ResponseMessage { // Hands off conversation to a human agent. LiveAgentHandoff live_agent_handoff = 10; - // Output only. A signal that indicates the interaction with the Dialogflow agent has - // ended. - // This message is generated by Dialogflow only when the conversation - // reaches `END_SESSION` page. It is not supposed to be defined by the user. + // Output only. A signal that indicates the interaction with the Dialogflow + // agent has ended. This message is generated by Dialogflow only when the + // conversation reaches `END_SESSION` page. It is not supposed to be defined + // by the user. // // It's guaranteed that there is at most one such message in each response. - EndInteraction end_interaction = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + EndInteraction end_interaction = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Signal that the client should play an audio clip hosted at a // client-specific URI. Dialogflow uses this to construct - // [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. However, Dialogflow itself - // does not try to read or process the URI in any way. + // [mixed_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.mixed_audio]. + // However, Dialogflow itself does not try to read or process the URI in any + // way. PlayAudio play_audio = 12; - // Output only. An audio response message composed of both the synthesized Dialogflow - // agent responses and responses defined via + // Output only. An audio response message composed of both the synthesized + // Dialogflow agent responses and responses defined via // [play_audio][google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio]. // This message is generated by Dialogflow only and not supposed to be // defined by the user. @@ -217,4 +225,10 @@ message ResponseMessage { // this agent to a third-party endpoint. TelephonyTransferCall telephony_transfer_call = 18; } + + // The channel which the response is associated with. Clients can specify the + // channel via + // [QueryParameters.channel][google.cloud.dialogflow.cx.v3.QueryParameters.channel], + // and only associated channel response will be returned. + string channel = 19; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/security_settings.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/security_settings.proto index 5948f6bfd1a5..4268ff600fd4 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/security_settings.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/security_settings.proto @@ -25,7 +25,7 @@ import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb"; option java_multiple_files = true; option java_outer_classname = "SecuritySettingsProto"; option java_package = "com.google.cloud.dialogflow.cx.v3"; @@ -50,7 +50,8 @@ service SecuritySettingsService { "https://www.googleapis.com/auth/dialogflow"; // Create security settings in the specified location. - rpc CreateSecuritySettings(CreateSecuritySettingsRequest) returns (SecuritySettings) { + rpc CreateSecuritySettings(CreateSecuritySettingsRequest) + returns (SecuritySettings) { option (google.api.http) = { post: "/v3/{parent=projects/*/locations/*}/securitySettings" body: "security_settings" @@ -58,17 +59,21 @@ service SecuritySettingsService { option (google.api.method_signature) = "parent,security_settings"; } - // Retrieves the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. - // The returned settings may be stale by up to 1 minute. - rpc GetSecuritySettings(GetSecuritySettingsRequest) returns (SecuritySettings) { + // Retrieves the specified + // [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. The + // returned settings may be stale by up to 1 minute. + rpc GetSecuritySettings(GetSecuritySettingsRequest) + returns (SecuritySettings) { option (google.api.http) = { get: "/v3/{name=projects/*/locations/*/securitySettings/*}" }; option (google.api.method_signature) = "name"; } - // Updates the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. - rpc UpdateSecuritySettings(UpdateSecuritySettingsRequest) returns (SecuritySettings) { + // Updates the specified + // [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. + rpc UpdateSecuritySettings(UpdateSecuritySettingsRequest) + returns (SecuritySettings) { option (google.api.http) = { patch: "/v3/{security_settings.name=projects/*/locations/*/securitySettings/*}" body: "security_settings" @@ -77,15 +82,18 @@ service SecuritySettingsService { } // Returns the list of all security settings in the specified location. - rpc ListSecuritySettings(ListSecuritySettingsRequest) returns (ListSecuritySettingsResponse) { + rpc ListSecuritySettings(ListSecuritySettingsRequest) + returns (ListSecuritySettingsResponse) { option (google.api.http) = { get: "/v3/{parent=projects/*/locations/*}/securitySettings" }; option (google.api.method_signature) = "parent"; } - // Deletes the specified [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. - rpc DeleteSecuritySettings(DeleteSecuritySettingsRequest) returns (google.protobuf.Empty) { + // Deletes the specified + // [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings]. + rpc DeleteSecuritySettings(DeleteSecuritySettingsRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v3/{name=projects/*/locations/*/securitySettings/*}" }; @@ -93,7 +101,8 @@ service SecuritySettingsService { } } -// The request message for [SecuritySettingsService.GetSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettings]. +// The request message for +// [SecuritySettingsService.GetSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.GetSecuritySettings]. message GetSecuritySettingsRequest { // Required. Resource name of the settings. // Format: `projects//locations//locations/`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -158,13 +171,15 @@ message CreateSecuritySettingsRequest { ]; // Required. The security settings to create. - SecuritySettings security_settings = 2 [(google.api.field_behavior) = REQUIRED]; + SecuritySettings security_settings = 2 + [(google.api.field_behavior) = REQUIRED]; } // The request message for [SecuritySettings.DeleteSecuritySettings][]. message DeleteSecuritySettingsRequest { - // Required. The name of the [SecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettings] to delete. - // Format: `projects//locations//locations//securitySettings/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -258,15 +273,16 @@ message SecuritySettings { } // Resource name of the settings. - // Required for the [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] method. - // [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] populates the name - // automatically. - // Format: `projects//locations//securitySettings/`. + // Required for the + // [SecuritySettingsService.UpdateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.UpdateSecuritySettings] + // method. + // [SecuritySettingsService.CreateSecuritySettings][google.cloud.dialogflow.cx.v3.SecuritySettingsService.CreateSecuritySettings] + // populates the name automatically. Format: `projects//locations//securitySettings/`. string name = 1; - // Required. The human-readable name of the security settings, unique within the - // location. + // Required. The human-readable name of the security settings, unique within + // the location. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; // Strategy that defines how we do redaction. @@ -295,8 +311,8 @@ message SecuritySettings { // Note: `inspect_template` must be located in the same region as the // `SecuritySettings`. string inspect_template = 9 [(google.api.resource_reference) = { - type: "dlp.googleapis.com/InspectTemplate" - }]; + type: "dlp.googleapis.com/InspectTemplate" + }]; // [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this // template to define de-identification configuration for the content. @@ -316,8 +332,8 @@ message SecuritySettings { // Note: `deidentify_template` must be located in the same region as the // `SecuritySettings`. string deidentify_template = 17 [(google.api.resource_reference) = { - type: "dlp.googleapis.com/DeidentifyTemplate" - }]; + type: "dlp.googleapis.com/DeidentifyTemplate" + }]; // Specifies how data is retained. Note that even if the data is // purged due to retention policy, we may still hold it in backup storage for @@ -338,21 +354,27 @@ message SecuritySettings { // ingesting audio to conversations via [Participants.AnalyzeContent][] or // [Participants.StreamingAnalyzeContent][]. // - // If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION or - // [audio_export_settings.gcs_bucket][] is empty, audio export is disabled. + // If + // [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] + // is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][] + // is empty, audio export is disabled. // // If audio export is enabled, audio is recorded and saved to // [audio_export_settings.gcs_bucket][], subject to retention policy of // [audio_export_settings.gcs_bucket][]. // // This setting won't effect audio input for implicit sessions via - // [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] or [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. + // [Sessions.DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] + // or + // [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]. AudioExportSettings audio_export_settings = 12; // Controls conversation exporting settings to Insights after conversation is // completed. // - // If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION, - // Insights export is disabled no matter what you configure here. + // If + // [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] + // is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter + // what you configure here. InsightsExportSettings insights_export_settings = 13; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto index 6b408e9b2b21..2b7825d1176d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto @@ -32,7 +32,7 @@ import "google/type/latlng.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb"; option java_multiple_files = true; option java_outer_classname = "SessionProto"; option java_package = "com.google.cloud.dialogflow.cx.v3"; @@ -45,8 +45,9 @@ option (google.api.resource_definition) = { }; // A session represents an interaction with a user. You retrieve user input -// and pass it to the [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to determine -// user intent and respond. +// and pass it to the +// [DetectIntent][google.cloud.dialogflow.cx.v3.Sessions.DetectIntent] method to +// determine user intent and respond. service Sessions { option (google.api.default_host) = "dialogflow.googleapis.com"; option (google.api.oauth_scopes) = @@ -79,8 +80,8 @@ service Sessions { // Note: Always use agent versions for production traffic. // See [Versions and // environments](https://cloud.google.com/dialogflow/cx/docs/concept/version). - rpc StreamingDetectIntent(stream StreamingDetectIntentRequest) returns (stream StreamingDetectIntentResponse) { - } + rpc StreamingDetectIntent(stream StreamingDetectIntentRequest) + returns (stream StreamingDetectIntentResponse) {} // Returns preliminary intent match results, doesn't change the session // status. @@ -95,9 +96,13 @@ service Sessions { }; } - // Fulfills a matched intent returned by [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent]. - // Must be called after [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with input from - // [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse]. Otherwise, the behavior is undefined. + // Fulfills a matched intent returned by + // [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent]. Must be + // called after + // [MatchIntent][google.cloud.dialogflow.cx.v3.Sessions.MatchIntent], with + // input from + // [MatchIntentResponse][google.cloud.dialogflow.cx.v3.MatchIntentResponse]. + // Otherwise, the behavior is undefined. rpc FulfillIntent(FulfillIntentRequest) returns (FulfillIntentResponse) { option (google.api.http) = { post: "/v3/{match_intent_request.session=projects/*/locations/*/agents/*/sessions/*}:fulfillIntent" @@ -171,9 +176,9 @@ message DetectIntentResponse { // The audio data bytes encoded as specified in the request. // Note: The output audio is generated based on the values of default platform // text responses found in the - // [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If - // multiple default text responses exist, they will be concatenated when - // generating audio. If no default platform text responses exist, the + // [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] + // field. If multiple default text responses exist, they will be concatenated + // when generating audio. If no default platform text responses exist, the // generated audio content will be empty. // // In some scenarios, multiple output audio fields may be present in the @@ -194,24 +199,29 @@ message DetectIntentResponse { } // The top-level message sent by the client to the -// [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] method. +// [Sessions.StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] +// method. // // Multiple request messages should be sent in order: // // 1. The first message must contain // [session][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.session], -// [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input] plus optionally -// [query_params][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_params]. If the client -// wants to receive an audio response, it should also contain +// [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input] +// plus optionally +// [query_params][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_params]. +// If the client wants to receive an audio response, it should also contain // [output_audio_config][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.output_audio_config]. // -// 2. If [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input] was set to -// [query_input.audio.config][google.cloud.dialogflow.cx.v3.AudioInput.config], all subsequent messages -// must contain [query_input.audio.audio][google.cloud.dialogflow.cx.v3.AudioInput.audio] to continue with -// Speech recognition. -// If you decide to rather detect an intent from text -// input after you already started Speech recognition, please send a message -// with [query_input.text][google.cloud.dialogflow.cx.v3.QueryInput.text]. +// 2. If +// [query_input][google.cloud.dialogflow.cx.v3.StreamingDetectIntentRequest.query_input] +// was set to +// [query_input.audio.config][google.cloud.dialogflow.cx.v3.AudioInput.config], +// all subsequent messages must contain +// [query_input.audio.audio][google.cloud.dialogflow.cx.v3.AudioInput.audio] +// to continue with Speech recognition. If you decide to rather detect an +// intent from text input after you already started Speech recognition, +// please send a message with +// [query_input.text][google.cloud.dialogflow.cx.v3.QueryInput.text]. // // However, note that: // @@ -240,8 +250,8 @@ message StreamingDetectIntentRequest { // See [Versions and // environments](https://cloud.google.com/dialogflow/cx/docs/concept/version). string session = 1 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Session" - }]; + type: "dialogflow.googleapis.com/Session" + }]; // The parameters of this query. QueryParameters query_params = 2; @@ -260,7 +270,8 @@ message StreamingDetectIntentRequest { } // The top-level message returned from the -// [StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] method. +// [StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] +// method. // // Multiple response messages (N) can be returned in order. // @@ -271,17 +282,21 @@ message StreamingDetectIntentRequest { // set, and the `StreamingDetectIntentRequest.enable_partial_response` // field was false, the `recognition_result` field is populated for each // of the (N-1) responses. -// See the [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] message for details -// about the result message sequence. +// See the +// [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] +// message for details about the result message sequence. // // * If the `StreamingDetectIntentRequest.enable_partial_response` field was // true, the `detect_intent_response` field is populated for each // of the (N-1) responses, where 1 <= N <= 4. -// These responses set the [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] field -// to `PARTIAL`. +// These responses set the +// [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] +// field to `PARTIAL`. // // For the final Nth response message, the `detect_intent_response` is fully -// populated, and [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] is set to `FINAL`. +// populated, and +// [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] +// is set to `FINAL`. message StreamingDetectIntentResponse { // The output response. oneof response { @@ -345,8 +360,8 @@ message StreamingRecognitionResult { // additional results). The client should stop sending additional audio // data, half-close the gRPC connection, and wait for any additional results // until the server closes the gRPC connection. This message is only sent if - // [`single_utterance`][google.cloud.dialogflow.cx.v3.InputAudioConfig.single_utterance] was set to - // `true`, and is not used otherwise. + // [`single_utterance`][google.cloud.dialogflow.cx.v3.InputAudioConfig.single_utterance] + // was set to `true`, and is not used otherwise. END_OF_SINGLE_UTTERANCE = 2; } @@ -382,7 +397,8 @@ message StreamingRecognitionResult { float stability = 6; // Word-specific information for the words recognized by Speech in - // [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. Populated if and only if `message_type` = `TRANSCRIPT` and + // [transcript][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult.transcript]. + // Populated if and only if `message_type` = `TRANSCRIPT` and // [InputAudioConfig.enable_word_info] is set. repeated SpeechWordInfo speech_word_info = 7; @@ -448,8 +464,8 @@ message QueryParameters { // use parameter value. google.protobuf.Struct parameters = 5; - // The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current - // page][QueryResult.current_page] in the session. + // The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to + // override the [current page][QueryResult.current_page] in the session. // Format: `projects//locations//agents//flows//pages/`. // @@ -457,12 +473,13 @@ message QueryParameters { // ignored by Dialogflow, including the [previous // page][QueryResult.current_page] and the [previous session // parameters][QueryResult.parameters]. - // In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and - // [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to - // direct a session to a specific state. - string current_page = 6 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Page" - }]; + // In most cases, + // [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] + // and [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] + // should be configured together to direct a session to a specific state. + string current_page = 6 [ + (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Page" } + ]; // Whether to disable webhook calls for this request. bool disable_webhook = 7; @@ -490,8 +507,23 @@ message QueryParameters { // the environment. Each flow can have at most one version specified in this // list. repeated string flow_versions = 14 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Version" - }]; + type: "dialogflow.googleapis.com/Version" + }]; + + // The channel which this query is for. + // + // If specified, only the + // [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] associated + // with the channel will be returned. If no + // [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] is + // associated with the channel, it falls back to the + // [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with + // unspecified channel. + // + // If unspecified, the + // [ResponseMessage][google.cloud.dialogflow.cx.v3.ResponseMessage] with + // unspecified channel will be returned. + string channel = 15; } // Represents the query input. It can contain one of: @@ -534,24 +566,25 @@ message QueryInput { message QueryResult { // The original conversational query. oneof query { - // If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field - // will contain a copy of the text. + // If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was + // provided as input, this field will contain a copy of the text. string text = 1; - // If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will - // contain a copy of the intent identifier. - // Format: `projects//locations//agents//locations//agents//intents/`. string trigger_intent = 11 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Intent" - }]; + type: "dialogflow.googleapis.com/Intent" + }]; - // If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, + // If [natural language speech + // audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, // this field will contain the transcript for the audio. string transcript = 12; - // If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain - // the name of the event. + // If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as + // input, this field will contain the name of the event. string trigger_event = 14; // If a [DTMF][DTMFInput] was provided as input, this field will contain @@ -565,7 +598,8 @@ message QueryResult { // for a list of the currently supported language codes. string language_code = 2; - // The collected [session parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters]. + // The collected [session + // parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters]. // // Depending on your protocol or client library language, this is a // map, associative array, symbol table, dictionary, or JSON object @@ -589,19 +623,23 @@ message QueryResult { // The list of webhook call status in the order of call sequence. repeated google.rpc.Status webhook_statuses = 13; - // The list of webhook payload in [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], in - // the order of call sequence. If some webhook call fails or doesn't return + // The list of webhook payload in + // [WebhookResponse.payload][google.cloud.dialogflow.cx.v3.WebhookResponse.payload], + // in the order of call sequence. If some webhook call fails or doesn't return // any payload, an empty `Struct` would be used instead. repeated google.protobuf.Struct webhook_payloads = 6; - // The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message, - // including but not limited to `name` and `display_name`. + // The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all + // fields are filled in this message, including but not limited to `name` and + // `display_name`. Page current_page = 7; - // The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the conversational query. Some, not all fields - // are filled in this message, including but not limited to: `name` and - // `display_name`. - // This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead. + // The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the + // conversational query. Some, not all fields are filled in this message, + // including but not limited to: `name` and `display_name`. This field is + // deprecated, please use + // [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] + // instead. Intent intent = 8 [deprecated = true]; // The intent detection confidence. Values range from 0.0 (completely @@ -610,7 +648,9 @@ message QueryResult { // help match the best intent within the classification threshold. // This value may change for the same end-user expression at any time due to a // model retraining or change in implementation. - // This field is deprecated, please use [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] instead. + // This field is deprecated, please use + // [QueryResult.match][google.cloud.dialogflow.cx.v3.QueryResult.match] + // instead. float intent_detection_confidence = 9 [deprecated = true]; // Intent match result, could be an intent or an event. @@ -637,14 +677,15 @@ message QueryResult { // The sentiment analyss result, which depends on // [`analyze_query_text_sentiment`] - // [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], specified in the request. + // [google.cloud.dialogflow.cx.v3.QueryParameters.analyze_query_text_sentiment], + // specified in the request. SentimentAnalysisResult sentiment_analysis_result = 17; } // Represents the natural language text to be processed. message TextInput { - // Required. The UTF-8 encoded natural language text to be processed. Text length must - // not exceed 256 characters. + // Required. The UTF-8 encoded natural language text to be processed. Text + // length must not exceed 256 characters. string text = 1 [(google.api.field_behavior) = REQUIRED]; } @@ -669,8 +710,9 @@ message AudioInput { // The natural language speech audio to be processed. // A single request can contain up to 1 minute of speech audio data. - // The [transcribed text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain more than 256 - // bytes. + // The [transcribed + // text][google.cloud.dialogflow.cx.v3.QueryResult.transcript] cannot contain + // more than 256 bytes. // // For non-streaming audio detect intent, both `config` and `audio` must be // provided. @@ -720,13 +762,15 @@ message Match { EVENT = 6; } - // The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. Some, not all fields are filled in - // this message, including but not limited to: `name` and `display_name`. Only - // filled for [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type. + // The [Intent][google.cloud.dialogflow.cx.v3.Intent] that matched the query. + // Some, not all fields are filled in this message, including but not limited + // to: `name` and `display_name`. Only filled for + // [`INTENT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match type. Intent intent = 1; // The event that matched the query. Filled for - // [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and + // [`EVENT`][google.cloud.dialogflow.cx.v3.Match.MatchType], + // [`NO_MATCH`][google.cloud.dialogflow.cx.v3.Match.MatchType] and // [`NO_INPUT`][google.cloud.dialogflow.cx.v3.Match.MatchType] match types. string event = 6; @@ -795,24 +839,25 @@ message MatchIntentRequest { message MatchIntentResponse { // The original conversational query. oneof query { - // If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field - // will contain a copy of the text. + // If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was + // provided as input, this field will contain a copy of the text. string text = 1; - // If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will - // contain a copy of the intent identifier. - // Format: `projects//locations//agents//locations//agents//intents/`. string trigger_intent = 2 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Intent" - }]; + type: "dialogflow.googleapis.com/Intent" + }]; - // If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, + // If [natural language speech + // audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, // this field will contain the transcript for the audio. string transcript = 3; - // If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will - // contain a copy of the event name. + // If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as + // input, this field will contain a copy of the event name. string trigger_event = 6; } @@ -820,8 +865,9 @@ message MatchIntentResponse { // we have that the particular intent matches the query. repeated Match matches = 4; - // The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all fields are filled in this message, - // including but not limited to `name` and `display_name`. + // The current [Page][google.cloud.dialogflow.cx.v3.Page]. Some, not all + // fields are filled in this message, including but not limited to `name` and + // `display_name`. Page current_page = 5; } @@ -850,9 +896,9 @@ message FulfillIntentResponse { // The audio data bytes encoded as specified in the request. // Note: The output audio is generated based on the values of default platform // text responses found in the - // [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] field. If - // multiple default text responses exist, they will be concatenated when - // generating audio. If no default platform text responses exist, the + // [`query_result.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_messages] + // field. If multiple default text responses exist, they will be concatenated + // when generating audio. If no default platform text responses exist, the // generated audio content will be empty. // // In some scenarios, multiple output audio fields may be present in the diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session_entity_type.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session_entity_type.proto index cf9f1a4106f5..c56e323f1480 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session_entity_type.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session_entity_type.proto @@ -26,14 +26,15 @@ import "google/protobuf/field_mask.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb"; option java_multiple_files = true; option java_outer_classname = "SessionEntityTypeProto"; option java_package = "com.google.cloud.dialogflow.cx.v3"; option objc_class_prefix = "DF"; option ruby_package = "Google::Cloud::Dialogflow::CX::V3"; -// Service for managing [SessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityType]. +// Service for managing +// [SessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityType]. service SessionEntityTypes { option (google.api.default_host) = "dialogflow.googleapis.com"; option (google.api.oauth_scopes) = @@ -41,7 +42,8 @@ service SessionEntityTypes { "https://www.googleapis.com/auth/dialogflow"; // Returns the list of all session entity types in the specified session. - rpc ListSessionEntityTypes(ListSessionEntityTypesRequest) returns (ListSessionEntityTypesResponse) { + rpc ListSessionEntityTypes(ListSessionEntityTypesRequest) + returns (ListSessionEntityTypesResponse) { option (google.api.http) = { get: "/v3/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypes" additional_bindings { @@ -52,7 +54,8 @@ service SessionEntityTypes { } // Retrieves the specified session entity type. - rpc GetSessionEntityType(GetSessionEntityTypeRequest) returns (SessionEntityType) { + rpc GetSessionEntityType(GetSessionEntityTypeRequest) + returns (SessionEntityType) { option (google.api.http) = { get: "/v3/{name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}" additional_bindings { @@ -63,7 +66,8 @@ service SessionEntityTypes { } // Creates a session entity type. - rpc CreateSessionEntityType(CreateSessionEntityTypeRequest) returns (SessionEntityType) { + rpc CreateSessionEntityType(CreateSessionEntityTypeRequest) + returns (SessionEntityType) { option (google.api.http) = { post: "/v3/{parent=projects/*/locations/*/agents/*/sessions/*}/entityTypes" body: "session_entity_type" @@ -76,7 +80,8 @@ service SessionEntityTypes { } // Updates the specified session entity type. - rpc UpdateSessionEntityType(UpdateSessionEntityTypeRequest) returns (SessionEntityType) { + rpc UpdateSessionEntityType(UpdateSessionEntityTypeRequest) + returns (SessionEntityType) { option (google.api.http) = { patch: "/v3/{session_entity_type.name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}" body: "session_entity_type" @@ -89,7 +94,8 @@ service SessionEntityTypes { } // Deletes the specified session entity type. - rpc DeleteSessionEntityType(DeleteSessionEntityTypeRequest) returns (google.protobuf.Empty) { + rpc DeleteSessionEntityType(DeleteSessionEntityTypeRequest) + returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v3/{name=projects/*/locations/*/agents/*/sessions/*/entityTypes/*}" additional_bindings { @@ -105,9 +111,9 @@ service SessionEntityTypes { // preferences, playlists, and so on. // // You can redefine a session entity type at the session level to extend or -// replace a [custom entity type][google.cloud.dialogflow.cx.v3.EntityType] at the user session level (we -// refer to the entity types defined at the agent level as "custom entity -// types"). +// replace a [custom entity type][google.cloud.dialogflow.cx.v3.EntityType] at +// the user session level (we refer to the entity types defined at the agent +// level as "custom entity types"). // // Note: session entity types apply to all queries, regardless of the language. // @@ -136,8 +142,9 @@ message SessionEntityType { // `GetSessionEntityType`, `CreateSessionEntityType` and // `UpdateSessionEntityType` only return the additional entities added in // this session entity type. If you want to get the supplemented list, - // please call [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType] on the custom entity type - // and merge. + // please call + // [EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType] + // on the custom entity type and merge. ENTITY_OVERRIDE_MODE_SUPPLEMENT = 2; } @@ -150,16 +157,19 @@ message SessionEntityType { // environment. string name = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. Indicates whether the additional data should override or supplement the - // custom entity type definition. - EntityOverrideMode entity_override_mode = 3 [(google.api.field_behavior) = REQUIRED]; + // Required. Indicates whether the additional data should override or + // supplement the custom entity type definition. + EntityOverrideMode entity_override_mode = 3 + [(google.api.field_behavior) = REQUIRED]; - // Required. The collection of entities to override or supplement the custom entity - // type. - repeated EntityType.Entity entities = 4 [(google.api.field_behavior) = REQUIRED]; + // Required. The collection of entities to override or supplement the custom + // entity type. + repeated EntityType.Entity entities = 4 + [(google.api.field_behavior) = REQUIRED]; } -// The request message for [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes]. +// The request message for +// [SessionEntityTypes.ListSessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityTypes.ListSessionEntityTypes]. message ListSessionEntityTypesRequest { // Required. The session to list all session entity types from. // Format: `projects//locations//agents//locations//agents//locations//agents//locations//agents//environments//sessions//entityTypes/`. If `Environment ID` is not specified, we assume default 'draft' // environment. - SessionEntityType session_entity_type = 1 [(google.api.field_behavior) = REQUIRED]; + SessionEntityType session_entity_type = 1 + [(google.api.field_behavior) = REQUIRED]; // The mask to control which fields get updated. google.protobuf.FieldMask update_mask = 2; } -// The request message for [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityType]. +// The request message for +// [SessionEntityTypes.DeleteSessionEntityType][google.cloud.dialogflow.cx.v3.SessionEntityTypes.DeleteSessionEntityType]. message DeleteSessionEntityTypeRequest { // Required. The name of the session entity type to delete. // Format: `projects//locations//agents//locations//agents/ + // [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase] + // will populate the name automatically. Otherwise use format: + // `projects//locations//agents/ // /testCases/`. string name = 1; @@ -214,8 +229,8 @@ message TestCase { // has a limit of 30 characters. repeated string tags = 2; - // Required. The human-readable name of the test case, unique within the agent. Limit of - // 200 characters. + // Required. The human-readable name of the test case, unique within the + // agent. Limit of 200 characters. string display_name = 3 [(google.api.field_behavior) = REQUIRED]; // Additional freeform notes about the test case. Limit of 400 characters. @@ -230,7 +245,8 @@ message TestCase { repeated ConversationTurn test_case_conversation_turns = 5; // Output only. When the test was created. - google.protobuf.Timestamp creation_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp creation_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; // The latest test result. TestCaseResult last_test_result = 12; @@ -251,8 +267,8 @@ message TestCaseResult { // Environment where the test was run. If not set, it indicates the draft // environment. string environment = 2 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Environment" - }]; + type: "dialogflow.googleapis.com/Environment" + }]; // The conversation turns uttered during the test case replay in chronological // order. @@ -278,9 +294,9 @@ message TestConfig { // of the test case. If both are set, `page` takes precedence over `flow`. If // neither is set, the test case will start with start page on the default // start flow. - string flow = 2 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Flow" - }]; + string flow = 2 [ + (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" } + ]; // The [page][google.cloud.dialogflow.cx.v3.Page] to start the test case with. // Format: `projects//locations//agents//locations//agents/`. string agent = 5 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Agent" - }]; + type: "dialogflow.googleapis.com/Agent" + }]; // The type of coverage requested. oneof coverage_type { @@ -543,7 +564,8 @@ message CalculateCoverageResponse { } } -// The request message for [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases]. +// The request message for +// [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases]. message ListTestCasesRequest { // Specifies how much test case information to include in the response. enum TestCaseView { @@ -580,7 +602,8 @@ message ListTestCasesRequest { TestCaseView view = 4; } -// The response message for [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases]. +// The response message for +// [TestCases.ListTestCases][google.cloud.dialogflow.cx.v3.TestCases.ListTestCases]. message ListTestCasesResponse { // The list of test cases. There will be a maximum number of items returned // based on the page_size field in the request. @@ -591,7 +614,8 @@ message ListTestCasesResponse { string next_page_token = 2; } -// The request message for [TestCases.BatchDeleteTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCases]. +// The request message for +// [TestCases.BatchDeleteTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchDeleteTestCases]. message BatchDeleteTestCasesRequest { // Required. The agent to delete test cases from. // Format: `projects//locations//agents/`. @@ -612,7 +636,8 @@ message BatchDeleteTestCasesRequest { ]; } -// The request message for [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]. +// The request message for +// [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]. message CreateTestCaseRequest { // Required. The agent to create the test case for. // Format: `projects//locations//agents/`. @@ -627,18 +652,22 @@ message CreateTestCaseRequest { TestCase test_case = 2 [(google.api.field_behavior) = REQUIRED]; } -// The request message for [TestCases.UpdateTestCase][google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCase]. +// The request message for +// [TestCases.UpdateTestCase][google.cloud.dialogflow.cx.v3.TestCases.UpdateTestCase]. message UpdateTestCaseRequest { // Required. The test case to update. TestCase test_case = 1 [(google.api.field_behavior) = REQUIRED]; // Required. The mask to specify which fields should be updated. The // [`creationTime`][google.cloud.dialogflow.cx.v3.TestCase.creation_time] and - // [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] cannot be updated. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + // [`lastTestResult`][google.cloud.dialogflow.cx.v3.TestCase.last_test_result] + // cannot be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } -// The request message for [TestCases.GetTestCase][google.cloud.dialogflow.cx.v3.TestCases.GetTestCase]. +// The request message for +// [TestCases.GetTestCase][google.cloud.dialogflow.cx.v3.TestCases.GetTestCase]. message GetTestCaseRequest { // Required. The name of the testcase. // Format: `projects//locations//agents//locations/ - // /agents//testCases/`. + // Required. Format of test case name to run: `projects//locations/ /agents//testCases/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -673,22 +703,23 @@ message RunTestCaseRequest { ]; } -// The response message for [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase]. +// The response message for +// [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase]. message RunTestCaseResponse { // The result. TestCaseResult result = 2; } -// Metadata returned for the [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase] long running operation. -// This message currently has no fields. -message RunTestCaseMetadata { +// Metadata returned for the +// [TestCases.RunTestCase][google.cloud.dialogflow.cx.v3.TestCases.RunTestCase] +// long running operation. This message currently has no fields. +message RunTestCaseMetadata {} -} - -// The request message for [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases]. +// The request message for +// [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases]. message BatchRunTestCasesRequest { - // Required. Agent name. Format: `projects//locations//agents/ - // `. + // Required. Agent name. Format: `projects//locations//agents/ `. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -696,9 +727,9 @@ message BatchRunTestCasesRequest { } ]; - // Optional. If not set, draft environment is assumed. Format: `projects//locations//agents//environments/`. + // Optional. If not set, draft environment is assumed. Format: + // `projects//locations//agents//environments/`. string environment = 2 [ (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { @@ -706,8 +737,8 @@ message BatchRunTestCasesRequest { } ]; - // Required. Format: `projects//locations//agents//testCases/`. + // Required. Format: `projects//locations//agents//testCases/`. repeated string test_cases = 3 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -716,16 +747,19 @@ message BatchRunTestCasesRequest { ]; } -// The response message for [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases]. +// The response message for +// [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases]. message BatchRunTestCasesResponse { // The test case results. The detailed - // [conversation turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are empty in this - // response. + // [conversation + // turns][google.cloud.dialogflow.cx.v3.TestCaseResult.conversation_turns] are + // empty in this response. repeated TestCaseResult results = 1; } -// Metadata returned for the [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases] long running -// operation. +// Metadata returned for the +// [TestCases.BatchRunTestCases][google.cloud.dialogflow.cx.v3.TestCases.BatchRunTestCases] +// long running operation. message BatchRunTestCasesMetadata { // The test errors. repeated TestError errors = 1; @@ -735,8 +769,8 @@ message BatchRunTestCasesMetadata { message TestError { // The test case resource name. string test_case = 1 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/TestCase" - }]; + type: "dialogflow.googleapis.com/TestCase" + }]; // The status associated with the test. google.rpc.Status status = 2; @@ -745,7 +779,8 @@ message TestError { google.protobuf.Timestamp test_time = 3; } -// The request message for [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases]. +// The request message for +// [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases]. message ImportTestCasesRequest { // Required. The agent to import test cases to. // Format: `projects//locations//agents/`. @@ -774,18 +809,20 @@ message ImportTestCasesRequest { } } -// The response message for [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases]. +// The response message for +// [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases]. message ImportTestCasesResponse { // The unique identifiers of the new test cases. // Format: `projects//locations//agents//testCases/`. repeated string names = 1 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/TestCase" - }]; + type: "dialogflow.googleapis.com/TestCase" + }]; } -// Metadata returned for the [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases] long running -// operation. +// Metadata returned for the +// [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases] +// long running operation. message ImportTestCasesMetadata { // Errors for failed test cases. repeated TestCaseError errors = 1; @@ -800,7 +837,8 @@ message TestCaseError { google.rpc.Status status = 2; } -// The request message for [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases]. +// The request message for +// [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases]. message ExportTestCasesRequest { // Data format of the exported test cases. enum DataFormat { @@ -855,7 +893,8 @@ message ExportTestCasesRequest { string filter = 4; } -// The response message for [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases]. +// The response message for +// [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases]. message ExportTestCasesResponse { // The exported test cases. oneof destination { @@ -869,14 +908,13 @@ message ExportTestCasesResponse { } } -// Metadata returned for the [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases] long running -// operation. -// This message currently has no fields. -message ExportTestCasesMetadata { - -} +// Metadata returned for the +// [TestCases.ExportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ExportTestCases] +// long running operation. This message currently has no fields. +message ExportTestCasesMetadata {} -// The request message for [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults]. +// The request message for +// [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults]. message ListTestCaseResultsRequest { // Required. The test case to list results for. // Format: `projects//locations//agents// @@ -923,7 +961,8 @@ message ListTestCaseResultsRequest { string filter = 4; } -// The response message for [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults]. +// The response message for +// [TestCases.ListTestCaseResults][google.cloud.dialogflow.cx.v3.TestCases.ListTestCaseResults]. message ListTestCaseResultsResponse { // The list of test case results. repeated TestCaseResult test_case_results = 1; @@ -933,7 +972,8 @@ message ListTestCaseResultsResponse { string next_page_token = 2; } -// The request message for [TestCases.GetTestCaseResult][google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResult]. +// The request message for +// [TestCases.GetTestCaseResult][google.cloud.dialogflow.cx.v3.TestCases.GetTestCaseResult]. message GetTestCaseResultRequest { // Required. The name of the testcase. // Format: `projects//locations//agents//locations//agents//flows//transitionRouteGroups/`. + // [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup] + // populates the name automatically. Format: `projects//locations//agents//flows//transitionRouteGroups/`. string name = 1; - // Required. The human-readable name of the transition route group, unique within - // the flow. The display name can be no longer than 30 characters. + // Required. The human-readable name of the transition route group, unique + // within the flow. The display name can be no longer than 30 characters. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - // Transition routes associated with the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. + // Transition routes associated with the + // [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup]. repeated TransitionRoute transition_routes = 5; } -// The request message for [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups]. +// The request message for +// [TransitionRouteGroups.ListTransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.ListTransitionRouteGroups]. message ListTransitionRouteGroupsRequest { // Required. The flow to list all transition route groups for. // Format: `projects//locations//agents//locations//agents//flows//transitionRouteGroups/`. string name = 1 [ @@ -193,10 +210,12 @@ message GetTransitionRouteGroupRequest { string language_code = 2; } -// The request message for [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]. +// The request message for +// [TransitionRouteGroups.CreateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.CreateTransitionRouteGroup]. message CreateTransitionRouteGroupRequest { - // Required. The flow to create an [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] for. - // Format: `projects//locations//agents//locations//agents//flows/`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -206,7 +225,8 @@ message CreateTransitionRouteGroupRequest { ]; // Required. The transition route group to create. - TransitionRouteGroup transition_route_group = 2 [(google.api.field_behavior) = REQUIRED]; + TransitionRouteGroup transition_route_group = 2 + [(google.api.field_behavior) = REQUIRED]; // The language of the following fields in `TransitionRouteGroup`: // @@ -222,10 +242,12 @@ message CreateTransitionRouteGroupRequest { string language_code = 3; } -// The request message for [TransitionRouteGroups.UpdateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroup]. +// The request message for +// [TransitionRouteGroups.UpdateTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.UpdateTransitionRouteGroup]. message UpdateTransitionRouteGroupRequest { // Required. The transition route group to update. - TransitionRouteGroup transition_route_group = 1 [(google.api.field_behavior) = REQUIRED]; + TransitionRouteGroup transition_route_group = 1 + [(google.api.field_behavior) = REQUIRED]; // The mask to control which fields get updated. google.protobuf.FieldMask update_mask = 2; @@ -244,11 +266,14 @@ message UpdateTransitionRouteGroupRequest { string language_code = 3; } -// The request message for [TransitionRouteGroups.DeleteTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroup]. +// The request message for +// [TransitionRouteGroups.DeleteTransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroups.DeleteTransitionRouteGroup]. message DeleteTransitionRouteGroupRequest { - // Required. The name of the [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] to delete. - // Format: `projects//locations//agents//flows//transitionRouteGroups/`. + // Required. The name of the + // [TransitionRouteGroup][google.cloud.dialogflow.cx.v3.TransitionRouteGroup] + // to delete. Format: `projects//locations//agents//flows//transitionRouteGroups/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/validation_message.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/validation_message.proto index fc7f25171822..f74b21c8fcbf 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/validation_message.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/validation_message.proto @@ -18,7 +18,7 @@ package google.cloud.dialogflow.cx.v3; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb"; option java_multiple_files = true; option java_outer_classname = "ValidationMessageProto"; option java_package = "com.google.cloud.dialogflow.cx.v3"; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/version.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/version.proto index 636503d6c25d..335cb835de73 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/version.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/version.proto @@ -28,7 +28,7 @@ import "google/protobuf/timestamp.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb"; option java_multiple_files = true; option java_outer_classname = "VersionProto"; option java_package = "com.google.cloud.dialogflow.cx.v3"; @@ -42,7 +42,8 @@ service Versions { "https://www.googleapis.com/auth/cloud-platform," "https://www.googleapis.com/auth/dialogflow"; - // Returns the list of all versions in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow]. + // Returns the list of all versions in the specified + // [Flow][google.cloud.dialogflow.cx.v3.Flow]. rpc ListVersions(ListVersionsRequest) returns (ListVersionsResponse) { option (google.api.http) = { get: "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions" @@ -58,15 +59,18 @@ service Versions { option (google.api.method_signature) = "name"; } - // Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow]. + // Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified + // [Flow][google.cloud.dialogflow.cx.v3.Flow]. // // This method is a [long-running // operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). // The returned `Operation` type has the following method-specific fields: // - // - `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata] + // - `metadata`: + // [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata] // - `response`: [Version][google.cloud.dialogflow.cx.v3.Version] - rpc CreateVersion(CreateVersionRequest) returns (google.longrunning.Operation) { + rpc CreateVersion(CreateVersionRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v3/{parent=projects/*/locations/*/agents/*/flows/*}/versions" body: "version" @@ -118,7 +122,8 @@ service Versions { } // Compares the specified base version with target version. - rpc CompareVersions(CompareVersionsRequest) returns (CompareVersionsResponse) { + rpc CompareVersions(CompareVersionsRequest) + returns (CompareVersionsResponse) { option (google.api.http) = { post: "/v3/{base_version=projects/*/locations/*/agents/*/flows/*/versions/*}:compareVersions" body: "*" @@ -134,8 +139,8 @@ message CreateVersionOperationMetadata { // Format: `projects//locations//agents//flows//versions/`. string version = 1 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Version" - }]; + type: "dialogflow.googleapis.com/Version" + }]; } // Represents a version of a flow. @@ -176,18 +181,20 @@ message Version { NluSettings nlu_settings = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Create time of the version. - google.protobuf.Timestamp create_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The state of this version. This field is read-only and cannot be set by - // create and update methods. + // Output only. The state of this version. This field is read-only and cannot + // be set by create and update methods. State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// The request message for [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions]. +// The request message for +// [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions]. message ListVersionsRequest { - // Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for. - // Format: `projects//locations//agents//flows/`. + // Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all + // versions for. Format: `projects//locations//agents//flows/`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -203,7 +210,8 @@ message ListVersionsRequest { string page_token = 3; } -// The response message for [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions]. +// The response message for +// [Versions.ListVersions][google.cloud.dialogflow.cx.v3.Versions.ListVersions]. message ListVersionsResponse { // A list of versions. There will be a maximum number of items returned based // on the page_size field in the request. The list may in some cases be empty @@ -215,7 +223,8 @@ message ListVersionsResponse { string next_page_token = 2; } -// The request message for [Versions.GetVersion][google.cloud.dialogflow.cx.v3.Versions.GetVersion]. +// The request message for +// [Versions.GetVersion][google.cloud.dialogflow.cx.v3.Versions.GetVersion]. message GetVersionRequest { // Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]. // Format: `projects//locations//agents//locations//agents//locations//agents//flows/`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -244,21 +255,24 @@ message CreateVersionRequest { Version version = 2 [(google.api.field_behavior) = REQUIRED]; } -// The request message for [Versions.UpdateVersion][google.cloud.dialogflow.cx.v3.Versions.UpdateVersion]. +// The request message for +// [Versions.UpdateVersion][google.cloud.dialogflow.cx.v3.Versions.UpdateVersion]. message UpdateVersionRequest { // Required. The version to update. Version version = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The mask to control which fields get updated. Currently only `description` - // and `display_name` can be updated. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + // Required. The mask to control which fields get updated. Currently only + // `description` and `display_name` can be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } -// The request message for [Versions.DeleteVersion][google.cloud.dialogflow.cx.v3.Versions.DeleteVersion]. +// The request message for +// [Versions.DeleteVersion][google.cloud.dialogflow.cx.v3.Versions.DeleteVersion]. message DeleteVersionRequest { - // Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to delete. - // Format: `projects//locations//agents//flows//versions/`. + // Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] + // to delete. Format: `projects//locations//agents//flows//versions/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -267,11 +281,12 @@ message DeleteVersionRequest { ]; } -// The request message for [Versions.LoadVersion][google.cloud.dialogflow.cx.v3.Versions.LoadVersion]. +// The request message for +// [Versions.LoadVersion][google.cloud.dialogflow.cx.v3.Versions.LoadVersion]. message LoadVersionRequest { - // Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow. - // Format: `projects//locations//agents//flows//versions/`. + // Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded + // to draft flow. Format: `projects//locations//agents//flows//versions/`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -286,10 +301,11 @@ message LoadVersionRequest { bool allow_override_agent_resources = 2; } -// The request message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions]. +// The request message for +// [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions]. message CompareVersionsRequest { - // Required. Name of the base flow version to compare with the target version. Use - // version ID `0` to indicate the draft version of the specified flow. + // Required. Name of the base flow version to compare with the target version. + // Use version ID `0` to indicate the draft version of the specified flow. // // Format: `projects//locations//agents/ // /flows//versions/`. @@ -321,7 +337,8 @@ message CompareVersionsRequest { string language_code = 3; } -// The response message for [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions]. +// The response message for +// [Versions.CompareVersions][google.cloud.dialogflow.cx.v3.Versions.CompareVersions]. message CompareVersionsResponse { // JSON representation of the base version content. string base_version_content_json = 1; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/webhook.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/webhook.proto index 7974131d7c76..a858ad90c7b0 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/webhook.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/webhook.proto @@ -28,7 +28,7 @@ import "google/protobuf/struct.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3"; -option go_package = "google.golang.org/genproto/googleapis/cloud/dialogflow/cx/v3;cx"; +option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb"; option java_multiple_files = true; option java_outer_classname = "WebhookProto"; option java_package = "com.google.cloud.dialogflow.cx.v3"; @@ -101,7 +101,8 @@ message Webhook { // Represents configuration for a generic web service. message GenericWebService { - // Required. The webhook URI for receiving POST requests. It must use https protocol. + // Required. The webhook URI for receiving POST requests. It must use https + // protocol. string uri = 1 [(google.api.field_behavior) = REQUIRED]; // The user name for HTTP Basic authentication. @@ -114,20 +115,20 @@ message Webhook { // requests. map request_headers = 4; - // Optional. Specifies a list of allowed custom CA certificates (in DER format) for - // HTTPS verification. This overrides the default SSL trust store. If this - // is empty or unspecified, Dialogflow will use Google's default trust store - // to verify certificates. - // N.B. Make sure the HTTPS server certificates are signed with "subject alt - // name". For instance a certificate can be self-signed using the following - // command, + // Optional. Specifies a list of allowed custom CA certificates (in DER + // format) for HTTPS verification. This overrides the default SSL trust + // store. If this is empty or unspecified, Dialogflow will use Google's + // default trust store to verify certificates. N.B. Make sure the HTTPS + // server certificates are signed with "subject alt name". For instance a + // certificate can be self-signed using the following command, // ``` // openssl x509 -req -days 200 -in example.com.csr \ // -signkey example.com.key \ // -out example.com.crt \ // -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") // ``` - repeated bytes allowed_ca_certs = 5 [(google.api.field_behavior) = OPTIONAL]; + repeated bytes allowed_ca_certs = 5 + [(google.api.field_behavior) = OPTIONAL]; } // Represents configuration for a [Service @@ -151,10 +152,12 @@ message Webhook { } // The unique identifier of the webhook. - // Required for the [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] method. - // [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] populates the name automatically. - // Format: `projects//locations//agents//webhooks/`. + // Required for the + // [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook] + // method. + // [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook] + // populates the name automatically. Format: `projects//locations//agents//webhooks/`. string name = 1; // Required. The human-readable name of the webhook, unique within the agent. @@ -179,7 +182,8 @@ message Webhook { bool disabled = 5; } -// The request message for [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks]. +// The request message for +// [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks]. message ListWebhooksRequest { // Required. The agent to list all webhooks for. // Format: `projects//locations//agents/`. @@ -198,7 +202,8 @@ message ListWebhooksRequest { string page_token = 3; } -// The response message for [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks]. +// The response message for +// [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks]. message ListWebhooksResponse { // The list of webhooks. There will be a maximum number of items returned // based on the page_size field in the request. @@ -209,7 +214,8 @@ message ListWebhooksResponse { string next_page_token = 2; } -// The request message for [Webhooks.GetWebhook][google.cloud.dialogflow.cx.v3.Webhooks.GetWebhook]. +// The request message for +// [Webhooks.GetWebhook][google.cloud.dialogflow.cx.v3.Webhooks.GetWebhook]. message GetWebhookRequest { // Required. The name of the webhook. // Format: `projects//locations//agents//locations//agents/`. @@ -237,7 +244,8 @@ message CreateWebhookRequest { Webhook webhook = 2 [(google.api.field_behavior) = REQUIRED]; } -// The request message for [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]. +// The request message for +// [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]. message UpdateWebhookRequest { // Required. The webhook to update. Webhook webhook = 1 [(google.api.field_behavior) = REQUIRED]; @@ -247,7 +255,8 @@ message UpdateWebhookRequest { google.protobuf.FieldMask update_mask = 2; } -// The request message for [Webhooks.DeleteWebhook][google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhook]. +// The request message for +// [Webhooks.DeleteWebhook][google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhook]. message DeleteWebhookRequest { // Required. The name of the webhook to delete. // Format: `projects//locations//agents//locations//agents//intents/`. string last_matched_intent = 1 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Intent" - }]; + type: "dialogflow.googleapis.com/Intent" + }]; - // Always present. The display name of the last matched [intent][google.cloud.dialogflow.cx.v3.Intent]. + // Always present. The display name of the last matched + // [intent][google.cloud.dialogflow.cx.v3.Intent]. string display_name = 3; // Parameters identified as a result of intent matching. This is a map of @@ -333,30 +346,32 @@ message WebhookRequest { float magnitude = 2; } - // Always present. The unique identifier of the [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] that - // will be returned to the API caller. + // Always present. The unique identifier of the + // [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse] + // that will be returned to the API caller. string detect_intent_response_id = 1; // The original conversational query. oneof query { - // If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was provided as input, this field - // will contain a copy of the text. + // If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was + // provided as input, this field will contain a copy of the text. string text = 10; - // If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as input, this field will - // contain a copy of the intent identifier. - // Format: `projects//locations//agents//locations//agents//intents/`. string trigger_intent = 11 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Intent" - }]; + type: "dialogflow.googleapis.com/Intent" + }]; - // If [natural language speech audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, + // If [natural language speech + // audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input, // this field will contain the transcript for the audio. string transcript = 12; - // If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as input, this field will contain - // the name of the event. + // If an [event][google.cloud.dialogflow.cx.v3.EventInput] was provided as + // input, this field will contain the name of the event. string trigger_event = 14; } @@ -382,7 +397,8 @@ message WebhookRequest { // [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3.WebhookResponse.fulfillment_response]; repeated ResponseMessage messages = 7; - // Custom data set in [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload]. + // Custom data set in + // [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload]. google.protobuf.Struct payload = 8; // The sentiment analysis result of the current user request. The field is @@ -427,7 +443,8 @@ message WebhookResponse { // if it does not intend to modify session status. SessionInfo session_info = 3; - // Value to append directly to [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads]. + // Value to append directly to + // [QueryResult.webhook_payloads][google.cloud.dialogflow.cx.v3.QueryResult.webhook_payloads]. google.protobuf.Struct payload = 4; // The target to transition to. This can be set optionally to indicate an @@ -438,15 +455,15 @@ message WebhookResponse { // Format: `projects//locations//agents//flows//pages/`. string target_page = 5 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Page" - }]; + type: "dialogflow.googleapis.com/Page" + }]; // The target flow to transition to. // Format: `projects//locations//agents//flows/`. string target_flow = 6 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Flow" - }]; + type: "dialogflow.googleapis.com/Flow" + }]; } } @@ -473,77 +490,101 @@ message PageInfo { FILLED = 3; } - // Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for + // Always present for + // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. + // Required for // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. // The human-readable name of the parameter, unique within the form. This // field cannot be modified by the webhook. string display_name = 1; - // Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // Optional for both + // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and + // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. // Indicates whether the parameter is required. Optional parameters will // not trigger prompts; however, they are filled if the user specifies // them. Required parameters must be filled before form filling concludes. bool required = 2; - // Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Required for - // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The state of the parameter. This field can be set - // to [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] by - // the webhook to invalidate the parameter; other values set by the + // Always present for + // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. + // Required for + // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The + // state of the parameter. This field can be set to + // [INVALID][google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo.ParameterState.INVALID] + // by the webhook to invalidate the parameter; other values set by the // webhook will be ignored. ParameterState state = 3; - // Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. - // The value of the parameter. This field can be set by the webhook to - // change the parameter value. + // Optional for both + // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and + // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The + // value of the parameter. This field can be set by the webhook to change + // the parameter value. google.protobuf.Value value = 4; - // Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // Optional for + // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored + // for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. // Indicates if the parameter value was just collected on the last // conversation turn. bool just_collected = 5; } - // Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. - // The parameters contained in the form. Note that the webhook cannot add - // or remove any form parameter. + // Optional for both + // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and + // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The + // parameters contained in the form. Note that the webhook cannot add or + // remove any form parameter. repeated ParameterInfo parameter_info = 2; } - // Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. - // The unique identifier of the current page. - // Format: `projects//locations//agents//flows//pages/`. - string current_page = 1 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Page" - }]; + // Always present for + // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for + // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The + // unique identifier of the current page. Format: `projects//locations//agents//flows//pages/`. + string current_page = 1 [ + (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Page" } + ]; - // Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. - // The display name of the current page. + // Always present for + // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for + // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The + // display name of the current page. string display_name = 4; - // Optional for both [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // Optional for both + // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest] and + // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. // Information about the form. FormInfo form_info = 3; } // Represents session information communicated to and from the webhook. message SessionInfo { - // Always present for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. - // The unique identifier of the [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This + // Always present for + // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Ignored for + // [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The + // unique identifier of the + // [session][google.cloud.dialogflow.cx.v3.DetectIntentRequest.session]. This // field can be used by the webhook to identify a session. // Format: `projects//locations//agents//sessions/` or `projects//locations//agents//environments//sessions/` // if environment is specified. string session = 1 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Session" - }]; - - // Optional for [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. - // All parameters collected from forms and intents during the session. - // Parameters can be created, updated, or removed by the webhook. To remove a - // parameter from the session, the webhook should explicitly set the parameter - // value to null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. The map is keyed by parameters' - // display names. + type: "dialogflow.googleapis.com/Session" + }]; + + // Optional for + // [WebhookRequest][google.cloud.dialogflow.cx.v3.WebhookRequest]. Optional + // for [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. All + // parameters collected from forms and intents during the session. Parameters + // can be created, updated, or removed by the webhook. To remove a parameter + // from the session, the webhook should explicitly set the parameter value to + // null in [WebhookResponse][google.cloud.dialogflow.cx.v3.WebhookResponse]. + // The map is keyed by parameters' display names. map parameters = 2; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettings.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettings.java index 0ebf97cdb656..ffc7b40897c5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettings.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AdvancedSettings.java @@ -153,7 +153,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENABLE_STACKDRIVER_LOGGING_FIELD_NUMBER = 2; - private boolean enableStackdriverLogging_; + private boolean enableStackdriverLogging_ = false; /** * * @@ -171,7 +171,7 @@ public boolean getEnableStackdriverLogging() { } public static final int ENABLE_INTERACTION_LOGGING_FIELD_NUMBER = 3; - private boolean enableInteractionLogging_; + private boolean enableInteractionLogging_ = false; /** * * @@ -401,10 +401,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; enableStackdriverLogging_ = false; - enableInteractionLogging_ = false; - return this; } @@ -436,12 +435,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings b buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings result = new com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings(this); - result.enableStackdriverLogging_ = enableStackdriverLogging_; - result.enableInteractionLogging_ = enableInteractionLogging_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableStackdriverLogging_ = enableStackdriverLogging_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableInteractionLogging_ = enableInteractionLogging_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -529,13 +540,13 @@ public Builder mergeFrom( case 16: { enableStackdriverLogging_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 16 case 24: { enableInteractionLogging_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 24 default: @@ -555,6 +566,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean enableStackdriverLogging_; /** * @@ -586,6 +599,7 @@ public boolean getEnableStackdriverLogging() { public Builder setEnableStackdriverLogging(boolean value) { enableStackdriverLogging_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -601,7 +615,7 @@ public Builder setEnableStackdriverLogging(boolean value) { * @return This builder for chaining. */ public Builder clearEnableStackdriverLogging() { - + bitField0_ = (bitField0_ & ~0x00000001); enableStackdriverLogging_ = false; onChanged(); return this; @@ -638,6 +652,7 @@ public boolean getEnableInteractionLogging() { public Builder setEnableInteractionLogging(boolean value) { enableInteractionLogging_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -653,7 +668,7 @@ public Builder setEnableInteractionLogging(boolean value) { * @return This builder for chaining. */ public Builder clearEnableInteractionLogging() { - + bitField0_ = (bitField0_ & ~0x00000002); enableInteractionLogging_ = false; onChanged(); return this; @@ -793,7 +808,10 @@ public boolean hasLoggingSettings() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettingsOrBuilder getLoggingSettingsOrBuilder() { - return getLoggingSettings(); + return loggingSettings_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + .getDefaultInstance() + : loggingSettings_; } private byte memoizedIsInitialized = -1; @@ -1007,10 +1025,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (loggingSettingsBuilder_ == null) { - loggingSettings_ = null; - } else { - loggingSettings_ = null; + bitField0_ = 0; + loggingSettings_ = null; + if (loggingSettingsBuilder_ != null) { + loggingSettingsBuilder_.dispose(); loggingSettingsBuilder_ = null; } return this; @@ -1040,15 +1058,21 @@ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings build() { public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings result = new com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings(this); - if (loggingSettingsBuilder_ == null) { - result.loggingSettings_ = loggingSettings_; - } else { - result.loggingSettings_ = loggingSettingsBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.loggingSettings_ = + loggingSettingsBuilder_ == null ? loggingSettings_ : loggingSettingsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1127,7 +1151,7 @@ public Builder mergeFrom( case 50: { input.readMessage(getLoggingSettingsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 50 default: @@ -1147,6 +1171,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings loggingSettings_; private com.google.protobuf.SingleFieldBuilderV3< @@ -1172,7 +1198,7 @@ public Builder mergeFrom( * @return Whether the loggingSettings field is set. */ public boolean hasLoggingSettings() { - return loggingSettingsBuilder_ != null || loggingSettings_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1224,11 +1250,11 @@ public Builder setLoggingSettings( throw new NullPointerException(); } loggingSettings_ = value; - onChanged(); } else { loggingSettingsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1251,11 +1277,11 @@ public Builder setLoggingSettings( builderForValue) { if (loggingSettingsBuilder_ == null) { loggingSettings_ = builderForValue.build(); - onChanged(); } else { loggingSettingsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1276,20 +1302,20 @@ public Builder setLoggingSettings( public Builder mergeLoggingSettings( com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings value) { if (loggingSettingsBuilder_ == null) { - if (loggingSettings_ != null) { - loggingSettings_ = - com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.newBuilder( - loggingSettings_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && loggingSettings_ != null + && loggingSettings_ + != com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings + .getDefaultInstance()) { + getLoggingSettingsBuilder().mergeFrom(value); } else { loggingSettings_ = value; } - onChanged(); } else { loggingSettingsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1308,14 +1334,13 @@ public Builder mergeLoggingSettings( * */ public Builder clearLoggingSettings() { - if (loggingSettingsBuilder_ == null) { - loggingSettings_ = null; - onChanged(); - } else { - loggingSettings_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + loggingSettings_ = null; + if (loggingSettingsBuilder_ != null) { + loggingSettingsBuilder_.dispose(); loggingSettingsBuilder_ = null; } - + onChanged(); return this; } /** @@ -1335,7 +1360,7 @@ public Builder clearLoggingSettings() { */ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.LoggingSettings.Builder getLoggingSettingsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getLoggingSettingsFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Agent.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Agent.java index c5dff4b0da08..2eb9450d262a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Agent.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Agent.java @@ -86,7 +86,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -147,7 +149,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -196,7 +200,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DEFAULT_LANGUAGE_CODE_FIELD_NUMBER = 3; - private volatile java.lang.Object defaultLanguageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultLanguageCode_ = ""; /** * * @@ -261,6 +267,8 @@ public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() { } public static final int SUPPORTED_LANGUAGE_CODES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList supportedLanguageCodes_; /** * @@ -326,7 +334,9 @@ public com.google.protobuf.ByteString getSupportedLanguageCodesBytes(int index) } public static final int TIME_ZONE_FIELD_NUMBER = 5; - private volatile java.lang.Object timeZone_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeZone_ = ""; /** * * @@ -379,7 +389,9 @@ public com.google.protobuf.ByteString getTimeZoneBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 6; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -430,7 +442,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int AVATAR_URI_FIELD_NUMBER = 7; - private volatile java.lang.Object avatarUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object avatarUri_ = ""; /** * * @@ -533,11 +547,15 @@ public com.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings getSpeechToTe @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettingsOrBuilder getSpeechToTextSettingsOrBuilder() { - return getSpeechToTextSettings(); + return speechToTextSettings_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.getDefaultInstance() + : speechToTextSettings_; } public static final int START_FLOW_FIELD_NUMBER = 16; - private volatile java.lang.Object startFlow_; + + @SuppressWarnings("serial") + private volatile java.lang.Object startFlow_ = ""; /** * * @@ -596,7 +614,9 @@ public com.google.protobuf.ByteString getStartFlowBytes() { } public static final int SECURITY_SETTINGS_FIELD_NUMBER = 17; - private volatile java.lang.Object securitySettings_; + + @SuppressWarnings("serial") + private volatile java.lang.Object securitySettings_ = ""; /** * * @@ -651,7 +671,7 @@ public com.google.protobuf.ByteString getSecuritySettingsBytes() { } public static final int ENABLE_STACKDRIVER_LOGGING_FIELD_NUMBER = 18; - private boolean enableStackdriverLogging_; + private boolean enableStackdriverLogging_ = false; /** * * @@ -675,7 +695,7 @@ public boolean getEnableStackdriverLogging() { } public static final int ENABLE_SPELL_CORRECTION_FIELD_NUMBER = 20; - private boolean enableSpellCorrection_; + private boolean enableSpellCorrection_ = false; /** * * @@ -694,7 +714,7 @@ public boolean getEnableSpellCorrection() { } public static final int LOCKED_FIELD_NUMBER = 27; - private boolean locked_; + private boolean locked_ = false; /** * * @@ -761,7 +781,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings getAdvancedSettin @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettingsOrBuilder getAdvancedSettingsOrBuilder() { - return getAdvancedSettings(); + return advancedSettings_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance() + : advancedSettings_; } private byte memoizedIsInitialized = -1; @@ -1108,40 +1130,28 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - defaultLanguageCode_ = ""; - supportedLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); timeZone_ = ""; - description_ = ""; - avatarUri_ = ""; - - if (speechToTextSettingsBuilder_ == null) { - speechToTextSettings_ = null; - } else { - speechToTextSettings_ = null; + speechToTextSettings_ = null; + if (speechToTextSettingsBuilder_ != null) { + speechToTextSettingsBuilder_.dispose(); speechToTextSettingsBuilder_ = null; } startFlow_ = ""; - securitySettings_ = ""; - enableStackdriverLogging_ = false; - enableSpellCorrection_ = false; - locked_ = false; - - if (advancedSettingsBuilder_ == null) { - advancedSettings_ = null; - } else { - advancedSettings_ = null; + advancedSettings_ = null; + if (advancedSettingsBuilder_ != null) { + advancedSettingsBuilder_.dispose(); advancedSettingsBuilder_ = null; } return this; @@ -1171,35 +1181,67 @@ public com.google.cloud.dialogflow.cx.v3beta1.Agent build() { public com.google.cloud.dialogflow.cx.v3beta1.Agent buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Agent result = new com.google.cloud.dialogflow.cx.v3beta1.Agent(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.defaultLanguageCode_ = defaultLanguageCode_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3beta1.Agent result) { + if (((bitField0_ & 0x00000008) != 0)) { supportedLanguageCodes_ = supportedLanguageCodes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.supportedLanguageCodes_ = supportedLanguageCodes_; - result.timeZone_ = timeZone_; - result.description_ = description_; - result.avatarUri_ = avatarUri_; - if (speechToTextSettingsBuilder_ == null) { - result.speechToTextSettings_ = speechToTextSettings_; - } else { - result.speechToTextSettings_ = speechToTextSettingsBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Agent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - result.startFlow_ = startFlow_; - result.securitySettings_ = securitySettings_; - result.enableStackdriverLogging_ = enableStackdriverLogging_; - result.enableSpellCorrection_ = enableSpellCorrection_; - result.locked_ = locked_; - if (advancedSettingsBuilder_ == null) { - result.advancedSettings_ = advancedSettings_; - } else { - result.advancedSettings_ = advancedSettingsBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.defaultLanguageCode_ = defaultLanguageCode_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.timeZone_ = timeZone_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.avatarUri_ = avatarUri_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.speechToTextSettings_ = + speechToTextSettingsBuilder_ == null + ? speechToTextSettings_ + : speechToTextSettingsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.startFlow_ = startFlow_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.securitySettings_ = securitySettings_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.enableStackdriverLogging_ = enableStackdriverLogging_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.enableSpellCorrection_ = enableSpellCorrection_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.locked_ = locked_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.advancedSettings_ = + advancedSettingsBuilder_ == null ? advancedSettings_ : advancedSettingsBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -1249,20 +1291,23 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Agent other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.Agent.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDefaultLanguageCode().isEmpty()) { defaultLanguageCode_ = other.defaultLanguageCode_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.supportedLanguageCodes_.isEmpty()) { if (supportedLanguageCodes_.isEmpty()) { supportedLanguageCodes_ = other.supportedLanguageCodes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureSupportedLanguageCodesIsMutable(); supportedLanguageCodes_.addAll(other.supportedLanguageCodes_); @@ -1271,14 +1316,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Agent other) { } if (!other.getTimeZone().isEmpty()) { timeZone_ = other.timeZone_; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getAvatarUri().isEmpty()) { avatarUri_ = other.avatarUri_; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasSpeechToTextSettings()) { @@ -1286,10 +1334,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Agent other) { } if (!other.getStartFlow().isEmpty()) { startFlow_ = other.startFlow_; + bitField0_ |= 0x00000100; onChanged(); } if (!other.getSecuritySettings().isEmpty()) { securitySettings_ = other.securitySettings_; + bitField0_ |= 0x00000200; onChanged(); } if (other.getEnableStackdriverLogging() != false) { @@ -1333,19 +1383,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { defaultLanguageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: @@ -1358,63 +1408,63 @@ public Builder mergeFrom( case 42: { timeZone_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 case 58: { avatarUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000040; break; } // case 58 case 106: { input.readMessage( getSpeechToTextSettingsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 106 case 130: { startFlow_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000100; break; } // case 130 case 138: { securitySettings_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000200; break; } // case 138 case 144: { enableStackdriverLogging_ = input.readBool(); - + bitField0_ |= 0x00000400; break; } // case 144 case 160: { enableSpellCorrection_ = input.readBool(); - + bitField0_ |= 0x00000800; break; } // case 160 case 178: { input.readMessage( getAdvancedSettingsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00002000; break; } // case 178 case 216: { locked_ = input.readBool(); - + bitField0_ |= 0x00001000; break; } // case 216 default: @@ -1515,8 +1565,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1538,8 +1588,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1566,8 +1616,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1633,8 +1683,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1650,8 +1700,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1672,8 +1722,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1763,8 +1813,8 @@ public Builder setDefaultLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - defaultLanguageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1788,8 +1838,8 @@ public Builder setDefaultLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDefaultLanguageCode() { - defaultLanguageCode_ = getDefaultInstance().getDefaultLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1818,8 +1868,8 @@ public Builder setDefaultLanguageCodeBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - defaultLanguageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1828,10 +1878,10 @@ public Builder setDefaultLanguageCodeBytes(com.google.protobuf.ByteString value) com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSupportedLanguageCodesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { supportedLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(supportedLanguageCodes_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } /** @@ -1974,7 +2024,7 @@ public Builder addAllSupportedLanguageCodes(java.lang.Iterable */ public Builder clearSupportedLanguageCodes() { supportedLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2069,8 +2119,8 @@ public Builder setTimeZone(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeZone_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2088,8 +2138,8 @@ public Builder setTimeZone(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeZone() { - timeZone_ = getDefaultInstance().getTimeZone(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2112,8 +2162,8 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeZone_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2182,8 +2232,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2200,8 +2250,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2223,8 +2273,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2299,8 +2349,8 @@ public Builder setAvatarUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - avatarUri_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2319,8 +2369,8 @@ public Builder setAvatarUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAvatarUri() { - avatarUri_ = getDefaultInstance().getAvatarUri(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2344,8 +2394,8 @@ public Builder setAvatarUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - avatarUri_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2369,7 +2419,7 @@ public Builder setAvatarUriBytes(com.google.protobuf.ByteString value) { * @return Whether the speechToTextSettings field is set. */ public boolean hasSpeechToTextSettings() { - return speechToTextSettingsBuilder_ != null || speechToTextSettings_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2409,11 +2459,11 @@ public Builder setSpeechToTextSettings( throw new NullPointerException(); } speechToTextSettings_ = value; - onChanged(); } else { speechToTextSettingsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2430,11 +2480,11 @@ public Builder setSpeechToTextSettings( com.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.Builder builderForValue) { if (speechToTextSettingsBuilder_ == null) { speechToTextSettings_ = builderForValue.build(); - onChanged(); } else { speechToTextSettingsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2450,20 +2500,20 @@ public Builder setSpeechToTextSettings( public Builder mergeSpeechToTextSettings( com.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings value) { if (speechToTextSettingsBuilder_ == null) { - if (speechToTextSettings_ != null) { - speechToTextSettings_ = - com.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.newBuilder( - speechToTextSettings_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && speechToTextSettings_ != null + && speechToTextSettings_ + != com.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings + .getDefaultInstance()) { + getSpeechToTextSettingsBuilder().mergeFrom(value); } else { speechToTextSettings_ = value; } - onChanged(); } else { speechToTextSettingsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2477,14 +2527,13 @@ public Builder mergeSpeechToTextSettings( * */ public Builder clearSpeechToTextSettings() { - if (speechToTextSettingsBuilder_ == null) { - speechToTextSettings_ = null; - onChanged(); - } else { - speechToTextSettings_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + speechToTextSettings_ = null; + if (speechToTextSettingsBuilder_ != null) { + speechToTextSettingsBuilder_.dispose(); speechToTextSettingsBuilder_ = null; } - + onChanged(); return this; } /** @@ -2499,7 +2548,7 @@ public Builder clearSpeechToTextSettings() { */ public com.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings.Builder getSpeechToTextSettingsBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getSpeechToTextSettingsFieldBuilder().getBuilder(); } @@ -2626,8 +2675,8 @@ public Builder setStartFlow(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - startFlow_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2648,8 +2697,8 @@ public Builder setStartFlow(java.lang.String value) { * @return This builder for chaining. */ public Builder clearStartFlow() { - startFlow_ = getDefaultInstance().getStartFlow(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -2675,8 +2724,8 @@ public Builder setStartFlowBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - startFlow_ = value; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2751,8 +2800,8 @@ public Builder setSecuritySettings(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - securitySettings_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2771,8 +2820,8 @@ public Builder setSecuritySettings(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSecuritySettings() { - securitySettings_ = getDefaultInstance().getSecuritySettings(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -2796,8 +2845,8 @@ public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - securitySettings_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2845,6 +2894,7 @@ public boolean getEnableStackdriverLogging() { public Builder setEnableStackdriverLogging(boolean value) { enableStackdriverLogging_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2866,7 +2916,7 @@ public Builder setEnableStackdriverLogging(boolean value) { */ @java.lang.Deprecated public Builder clearEnableStackdriverLogging() { - + bitField0_ = (bitField0_ & ~0x00000400); enableStackdriverLogging_ = false; onChanged(); return this; @@ -2905,6 +2955,7 @@ public boolean getEnableSpellCorrection() { public Builder setEnableSpellCorrection(boolean value) { enableSpellCorrection_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -2921,7 +2972,7 @@ public Builder setEnableSpellCorrection(boolean value) { * @return This builder for chaining. */ public Builder clearEnableSpellCorrection() { - + bitField0_ = (bitField0_ & ~0x00000800); enableSpellCorrection_ = false; onChanged(); return this; @@ -2960,6 +3011,7 @@ public boolean getLocked() { public Builder setLocked(boolean value) { locked_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -2976,7 +3028,7 @@ public Builder setLocked(boolean value) { * @return This builder for chaining. */ public Builder clearLocked() { - + bitField0_ = (bitField0_ & ~0x00001000); locked_ = false; onChanged(); return this; @@ -3001,7 +3053,7 @@ public Builder clearLocked() { * @return Whether the advancedSettings field is set. */ public boolean hasAdvancedSettings() { - return advancedSettingsBuilder_ != null || advancedSettings_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -3041,11 +3093,11 @@ public Builder setAdvancedSettings( throw new NullPointerException(); } advancedSettings_ = value; - onChanged(); } else { advancedSettingsBuilder_.setMessage(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3062,11 +3114,11 @@ public Builder setAdvancedSettings( com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder builderForValue) { if (advancedSettingsBuilder_ == null) { advancedSettings_ = builderForValue.build(); - onChanged(); } else { advancedSettingsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3082,19 +3134,19 @@ public Builder setAdvancedSettings( public Builder mergeAdvancedSettings( com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings value) { if (advancedSettingsBuilder_ == null) { - if (advancedSettings_ != null) { - advancedSettings_ = - com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.newBuilder(advancedSettings_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00002000) != 0) + && advancedSettings_ != null + && advancedSettings_ + != com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.getDefaultInstance()) { + getAdvancedSettingsBuilder().mergeFrom(value); } else { advancedSettings_ = value; } - onChanged(); } else { advancedSettingsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -3108,14 +3160,13 @@ public Builder mergeAdvancedSettings( * .google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 22; */ public Builder clearAdvancedSettings() { - if (advancedSettingsBuilder_ == null) { - advancedSettings_ = null; - onChanged(); - } else { - advancedSettings_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + advancedSettings_ = null; + if (advancedSettingsBuilder_ != null) { + advancedSettingsBuilder_.dispose(); advancedSettingsBuilder_ = null; } - + onChanged(); return this; } /** @@ -3130,7 +3181,7 @@ public Builder clearAdvancedSettings() { */ public com.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings.Builder getAdvancedSettingsBuilder() { - + bitField0_ |= 0x00002000; onChanged(); return getAdvancedSettingsFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentValidationResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentValidationResult.java index a3132c66d2a7..4cfd4419ba89 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentValidationResult.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentValidationResult.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -123,6 +125,8 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FLOW_VALIDATION_RESULTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List flowValidationResults_; /** @@ -418,15 +422,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - if (flowValidationResultsBuilder_ == null) { flowValidationResults_ = java.util.Collections.emptyList(); } else { flowValidationResults_ = null; flowValidationResultsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -455,19 +459,33 @@ public com.google.cloud.dialogflow.cx.v3beta1.AgentValidationResult build() { public com.google.cloud.dialogflow.cx.v3beta1.AgentValidationResult buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.AgentValidationResult result = new com.google.cloud.dialogflow.cx.v3beta1.AgentValidationResult(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.AgentValidationResult result) { if (flowValidationResultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { flowValidationResults_ = java.util.Collections.unmodifiableList(flowValidationResults_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.flowValidationResults_ = flowValidationResults_; } else { result.flowValidationResults_ = flowValidationResultsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.AgentValidationResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } } @java.lang.Override @@ -519,13 +537,14 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.AgentValidationR return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (flowValidationResultsBuilder_ == null) { if (!other.flowValidationResults_.isEmpty()) { if (flowValidationResults_.isEmpty()) { flowValidationResults_ = other.flowValidationResults_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureFlowValidationResultsIsMutable(); flowValidationResults_.addAll(other.flowValidationResults_); @@ -538,7 +557,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.AgentValidationR flowValidationResultsBuilder_.dispose(); flowValidationResultsBuilder_ = null; flowValidationResults_ = other.flowValidationResults_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); flowValidationResultsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFlowValidationResultsFieldBuilder() @@ -577,7 +596,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -680,8 +699,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -699,8 +718,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -723,8 +742,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -733,11 +752,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { flowValidationResults_ = java.util.Collections.emptyList(); private void ensureFlowValidationResultsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { flowValidationResults_ = new java.util.ArrayList( flowValidationResults_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -983,7 +1002,7 @@ public Builder addAllFlowValidationResults( public Builder clearFlowValidationResults() { if (flowValidationResultsBuilder_ == null) { flowValidationResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { flowValidationResultsBuilder_.clear(); @@ -1128,7 +1147,7 @@ public Builder removeFlowValidationResults(int index) { com.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult.Builder, com.google.cloud.dialogflow.cx.v3beta1.FlowValidationResultOrBuilder>( flowValidationResults_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); flowValidationResults_ = null; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AudioInput.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AudioInput.java index bc231d663150..e3acf1ddeb36 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AudioInput.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AudioInput.java @@ -118,11 +118,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig getConfig() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.InputAudioConfigOrBuilder getConfigOrBuilder() { - return getConfig(); + return config_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.getDefaultInstance() + : config_; } public static final int AUDIO_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString audio_; + private com.google.protobuf.ByteString audio_ = com.google.protobuf.ByteString.EMPTY; /** * * @@ -358,14 +360,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (configBuilder_ == null) { - config_ = null; - } else { - config_ = null; + bitField0_ = 0; + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); configBuilder_ = null; } audio_ = com.google.protobuf.ByteString.EMPTY; - return this; } @@ -393,16 +394,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.AudioInput build() { public com.google.cloud.dialogflow.cx.v3beta1.AudioInput buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.AudioInput result = new com.google.cloud.dialogflow.cx.v3beta1.AudioInput(this); - if (configBuilder_ == null) { - result.config_ = config_; - } else { - result.config_ = configBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.audio_ = audio_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.AudioInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.audio_ = audio_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -484,13 +492,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { audio_ = input.readBytes(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -510,6 +518,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig config_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig, @@ -530,7 +540,7 @@ public Builder mergeFrom( * @return Whether the config field is set. */ public boolean hasConfig() { - return configBuilder_ != null || config_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -571,11 +581,11 @@ public Builder setConfig(com.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig throw new NullPointerException(); } config_ = value; - onChanged(); } else { configBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -593,11 +603,11 @@ public Builder setConfig( com.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); - onChanged(); } else { configBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -613,19 +623,19 @@ public Builder setConfig( */ public Builder mergeConfig(com.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig value) { if (configBuilder_ == null) { - if (config_ != null) { - config_ = - com.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ + != com.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.getDefaultInstance()) { + getConfigBuilder().mergeFrom(value); } else { config_ = value; } - onChanged(); } else { configBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -640,14 +650,13 @@ public Builder mergeConfig(com.google.cloud.dialogflow.cx.v3beta1.InputAudioConf * */ public Builder clearConfig() { - if (configBuilder_ == null) { - config_ = null; - onChanged(); - } else { - config_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); configBuilder_ = null; } - + onChanged(); return this; } /** @@ -662,7 +671,7 @@ public Builder clearConfig() { * */ public com.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig.Builder getConfigBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getConfigFieldBuilder().getBuilder(); } @@ -762,8 +771,8 @@ public Builder setAudio(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - audio_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -787,7 +796,7 @@ public Builder setAudio(com.google.protobuf.ByteString value) { * @return This builder for chaining. */ public Builder clearAudio() { - + bitField0_ = (bitField0_ & ~0x00000002); audio_ = getDefaultInstance().getAudio(); onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchDeleteTestCasesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchDeleteTestCasesRequest.java index e349322dddfb..30346578ff88 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchDeleteTestCasesRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchDeleteTestCasesRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -125,6 +127,8 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int NAMES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList names_; /** * @@ -414,10 +418,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -447,17 +451,31 @@ public com.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest build( public com.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest result = new com.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; - if (((bitField0_ & 0x00000001) != 0)) { - names_ = names_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.names_ = names_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest result) { + if (((bitField0_ & 0x00000002) != 0)) { + names_ = names_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.names_ = names_; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.BatchDeleteTestCasesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -509,12 +527,13 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.names_.isEmpty()) { if (names_.isEmpty()) { names_ = other.names_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureNamesIsMutable(); names_.addAll(other.names_); @@ -550,7 +569,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: @@ -649,8 +668,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -669,8 +688,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -694,8 +713,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -704,9 +723,9 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNamesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { names_ = new com.google.protobuf.LazyStringArrayList(names_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -865,7 +884,7 @@ public Builder addAllNames(java.lang.Iterable values) { */ public Builder clearNames() { names_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchRunTestCasesMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchRunTestCasesMetadata.java index c1d683ada59d..9c7c2c74a527 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchRunTestCasesMetadata.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchRunTestCasesMetadata.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ERRORS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List errors_; /** * @@ -340,6 +342,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (errorsBuilder_ == null) { errors_ = java.util.Collections.emptyList(); } else { @@ -375,7 +378,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata build() public com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata result = new com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata result) { if (errorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -385,8 +397,11 @@ public com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata buildPar } else { result.errors_ = errorsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesMetadata result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchRunTestCasesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchRunTestCasesRequest.java index 7ca68cbf13fd..9574a1b3cd00 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchRunTestCasesRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchRunTestCasesRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int ENVIRONMENT_FIELD_NUMBER = 2; - private volatile java.lang.Object environment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object environment_ = ""; /** * * @@ -183,6 +187,8 @@ public com.google.protobuf.ByteString getEnvironmentBytes() { } public static final int TEST_CASES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList testCases_; /** * @@ -479,12 +485,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - environment_ = ""; - testCases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -513,18 +518,34 @@ public com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest result = new com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest(this); - int from_bitField0_ = bitField0_; - result.parent_ = parent_; - result.environment_ = environment_; - if (((bitField0_ & 0x00000001) != 0)) { - testCases_ = testCases_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.testCases_ = testCases_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest result) { + if (((bitField0_ & 0x00000004) != 0)) { + testCases_ = testCases_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.testCases_ = testCases_; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.environment_ = environment_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -575,16 +596,18 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getEnvironment().isEmpty()) { environment_ = other.environment_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.testCases_.isEmpty()) { if (testCases_.isEmpty()) { testCases_ = other.testCases_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTestCasesIsMutable(); testCases_.addAll(other.testCases_); @@ -620,13 +643,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { environment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -725,8 +748,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -745,8 +768,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -770,8 +793,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -849,8 +872,8 @@ public Builder setEnvironment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - environment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -870,8 +893,8 @@ public Builder setEnvironment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEnvironment() { - environment_ = getDefaultInstance().getEnvironment(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -896,8 +919,8 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - environment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -906,9 +929,9 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTestCasesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { testCases_ = new com.google.protobuf.LazyStringArrayList(testCases_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } /** @@ -1067,7 +1090,7 @@ public Builder addAllTestCases(java.lang.Iterable values) { */ public Builder clearTestCases() { testCases_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchRunTestCasesResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchRunTestCasesResponse.java index 54b07f7fef2f..7e6ab78b34d8 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchRunTestCasesResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/BatchRunTestCasesResponse.java @@ -69,6 +69,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int RESULTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List results_; /** * @@ -354,6 +356,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (resultsBuilder_ == null) { results_ = java.util.Collections.emptyList(); } else { @@ -389,7 +392,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse build() public com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse result = new com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse result) { if (resultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { results_ = java.util.Collections.unmodifiableList(results_); @@ -399,8 +411,11 @@ public com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse buildPar } else { result.results_ = resultsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.BatchRunTestCasesResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CalculateCoverageRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CalculateCoverageRequest.java index d1089d296fa5..e35f866b4062 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CalculateCoverageRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CalculateCoverageRequest.java @@ -251,7 +251,9 @@ private CoverageType(int value) { } public static final int AGENT_FIELD_NUMBER = 3; - private volatile java.lang.Object agent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object agent_ = ""; /** * * @@ -306,7 +308,7 @@ public com.google.protobuf.ByteString getAgentBytes() { } public static final int TYPE_FIELD_NUMBER = 2; - private int type_; + private int type_ = 0; /** * * @@ -339,9 +341,9 @@ public int getTypeValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType getType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType result = - com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType.valueOf(type_); + com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType.forNumber( + type_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType.UNRECOGNIZED : result; @@ -561,10 +563,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; agent_ = ""; - type_ = 0; - return this; } @@ -593,12 +594,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest result = new com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest(this); - result.agent_ = agent_; - result.type_ = type_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agent_ = agent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -649,6 +662,7 @@ public Builder mergeFrom( return this; if (!other.getAgent().isEmpty()) { agent_ = other.agent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.type_ != 0) { @@ -683,13 +697,13 @@ public Builder mergeFrom( case 16: { type_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { agent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 26 default: @@ -709,6 +723,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object agent_ = ""; /** * @@ -779,8 +795,8 @@ public Builder setAgent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - agent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -799,8 +815,8 @@ public Builder setAgent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAgent() { - agent_ = getDefaultInstance().getAgent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -824,8 +840,8 @@ public Builder setAgentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - agent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -863,8 +879,8 @@ public int getTypeValue() { * @return This builder for chaining. */ public Builder setTypeValue(int value) { - type_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -883,9 +899,8 @@ public Builder setTypeValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType getType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType result = - com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType.forNumber( type_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageRequest.CoverageType @@ -911,7 +926,7 @@ public Builder setType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; type_ = value.getNumber(); onChanged(); return this; @@ -930,7 +945,7 @@ public Builder setType( * @return This builder for chaining. */ public Builder clearType() { - + bitField0_ = (bitField0_ & ~0x00000002); type_ = 0; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CalculateCoverageResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CalculateCoverageResponse.java index 0317b7715e08..983e742008c5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CalculateCoverageResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CalculateCoverageResponse.java @@ -119,7 +119,9 @@ public CoverageTypeCase getCoverageTypeCase() { } public static final int AGENT_FIELD_NUMBER = 5; - private volatile java.lang.Object agent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object agent_ = ""; /** * * @@ -588,8 +590,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; agent_ = ""; - if (intentCoverageBuilder_ != null) { intentCoverageBuilder_.clear(); } @@ -629,33 +631,37 @@ public com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse build() public com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse result = new com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse(this); - result.agent_ = agent_; - if (coverageTypeCase_ == 2) { - if (intentCoverageBuilder_ == null) { - result.coverageType_ = coverageType_; - } else { - result.coverageType_ = intentCoverageBuilder_.build(); - } - } - if (coverageTypeCase_ == 4) { - if (transitionCoverageBuilder_ == null) { - result.coverageType_ = coverageType_; - } else { - result.coverageType_ = transitionCoverageBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (coverageTypeCase_ == 6) { - if (routeGroupCoverageBuilder_ == null) { - result.coverageType_ = coverageType_; - } else { - result.coverageType_ = routeGroupCoverageBuilder_.build(); - } - } - result.coverageTypeCase_ = coverageTypeCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agent_ = agent_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3beta1.CalculateCoverageResponse result) { + result.coverageTypeCase_ = coverageTypeCase_; + result.coverageType_ = this.coverageType_; + if (coverageTypeCase_ == 2 && intentCoverageBuilder_ != null) { + result.coverageType_ = intentCoverageBuilder_.build(); + } + if (coverageTypeCase_ == 4 && transitionCoverageBuilder_ != null) { + result.coverageType_ = transitionCoverageBuilder_.build(); + } + if (coverageTypeCase_ == 6 && routeGroupCoverageBuilder_ != null) { + result.coverageType_ = routeGroupCoverageBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -706,6 +712,7 @@ public Builder mergeFrom( return this; if (!other.getAgent().isEmpty()) { agent_ = other.agent_; + bitField0_ |= 0x00000001; onChanged(); } switch (other.getCoverageTypeCase()) { @@ -771,7 +778,7 @@ public Builder mergeFrom( case 42: { agent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 42 case 50: @@ -812,6 +819,8 @@ public Builder clearCoverageType() { return this; } + private int bitField0_; + private java.lang.Object agent_ = ""; /** * @@ -876,8 +885,8 @@ public Builder setAgent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - agent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -894,8 +903,8 @@ public Builder setAgent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAgent() { - agent_ = getDefaultInstance().getAgent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -917,8 +926,8 @@ public Builder setAgentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - agent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1134,7 +1143,6 @@ public Builder clearIntentCoverage() { } coverageTypeCase_ = 2; onChanged(); - ; return intentCoverageBuilder_; } @@ -1350,7 +1358,6 @@ public Builder clearTransitionCoverage() { } coverageTypeCase_ = 4; onChanged(); - ; return transitionCoverageBuilder_; } @@ -1594,7 +1601,6 @@ public Builder clearRouteGroupCoverage() { } coverageTypeCase_ = 6; onChanged(); - ; return routeGroupCoverageBuilder_; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Changelog.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Changelog.java index ed61fd01cb6a..b89ba2f025b3 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Changelog.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Changelog.java @@ -73,7 +73,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int USER_EMAIL_FIELD_NUMBER = 2; - private volatile java.lang.Object userEmail_; + + @SuppressWarnings("serial") + private volatile java.lang.Object userEmail_ = ""; /** * * @@ -175,7 +179,9 @@ public com.google.protobuf.ByteString getUserEmailBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 7; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -224,7 +230,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int ACTION_FIELD_NUMBER = 11; - private volatile java.lang.Object action_; + + @SuppressWarnings("serial") + private volatile java.lang.Object action_ = ""; /** * * @@ -273,7 +281,9 @@ public com.google.protobuf.ByteString getActionBytes() { } public static final int TYPE_FIELD_NUMBER = 8; - private volatile java.lang.Object type_; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; /** * * @@ -322,7 +332,9 @@ public com.google.protobuf.ByteString getTypeBytes() { } public static final int RESOURCE_FIELD_NUMBER = 3; - private volatile java.lang.Object resource_; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; /** * * @@ -413,7 +425,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } private byte memoizedIsInitialized = -1; @@ -672,22 +684,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - userEmail_ = ""; - displayName_ = ""; - action_ = ""; - type_ = ""; - resource_ = ""; - - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } return this; @@ -717,21 +723,38 @@ public com.google.cloud.dialogflow.cx.v3beta1.Changelog build() { public com.google.cloud.dialogflow.cx.v3beta1.Changelog buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Changelog result = new com.google.cloud.dialogflow.cx.v3beta1.Changelog(this); - result.name_ = name_; - result.userEmail_ = userEmail_; - result.displayName_ = displayName_; - result.action_ = action_; - result.type_ = type_; - result.resource_ = resource_; - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Changelog result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userEmail_ = userEmail_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.action_ = action_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.resource_ = resource_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -780,26 +803,32 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Changelog other) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getUserEmail().isEmpty()) { userEmail_ = other.userEmail_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getAction().isEmpty()) { action_ = other.action_; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getType().isEmpty()) { type_ = other.type_; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getResource().isEmpty()) { resource_ = other.resource_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasCreateTime()) { @@ -834,43 +863,43 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { userEmail_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { resource_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 26 case 34: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 34 case 58: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 58 case 66: { type_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 66 case 90: { action_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 90 default: @@ -890,6 +919,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -957,8 +988,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -976,8 +1007,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1000,8 +1031,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1067,8 +1098,8 @@ public Builder setUserEmail(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - userEmail_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1084,8 +1115,8 @@ public Builder setUserEmail(java.lang.String value) { * @return This builder for chaining. */ public Builder clearUserEmail() { - userEmail_ = getDefaultInstance().getUserEmail(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1106,8 +1137,8 @@ public Builder setUserEmailBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - userEmail_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1173,8 +1204,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1190,8 +1221,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1212,8 +1243,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1279,8 +1310,8 @@ public Builder setAction(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - action_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1296,8 +1327,8 @@ public Builder setAction(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAction() { - action_ = getDefaultInstance().getAction(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1318,8 +1349,8 @@ public Builder setActionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - action_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1385,8 +1416,8 @@ public Builder setType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - type_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1402,8 +1433,8 @@ public Builder setType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearType() { - type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1424,8 +1455,8 @@ public Builder setTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - type_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1491,8 +1522,8 @@ public Builder setResource(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - resource_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1508,8 +1539,8 @@ public Builder setResource(java.lang.String value) { * @return This builder for chaining. */ public Builder clearResource() { - resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -1530,8 +1561,8 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - resource_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1554,7 +1585,7 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -1591,11 +1622,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -1610,11 +1641,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -1628,17 +1659,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -1651,14 +1683,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp create_time = 4; */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1671,7 +1702,7 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 4; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CompareVersionsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CompareVersionsRequest.java index 4df2d9a5f066..02a2a91de1d3 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CompareVersionsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CompareVersionsRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int BASE_VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object baseVersion_; + + @SuppressWarnings("serial") + private volatile java.lang.Object baseVersion_ = ""; /** * * @@ -130,7 +132,9 @@ public com.google.protobuf.ByteString getBaseVersionBytes() { } public static final int TARGET_VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object targetVersion_; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetVersion_ = ""; /** * * @@ -189,7 +193,9 @@ public com.google.protobuf.ByteString getTargetVersionBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -464,12 +470,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; baseVersion_ = ""; - targetVersion_ = ""; - languageCode_ = ""; - return this; } @@ -498,13 +502,27 @@ public com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest result = new com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest(this); - result.baseVersion_ = baseVersion_; - result.targetVersion_ = targetVersion_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.baseVersion_ = baseVersion_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.targetVersion_ = targetVersion_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -554,14 +572,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsR return this; if (!other.getBaseVersion().isEmpty()) { baseVersion_ = other.baseVersion_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getTargetVersion().isEmpty()) { targetVersion_ = other.targetVersion_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -593,19 +614,19 @@ public Builder mergeFrom( case 10: { baseVersion_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { targetVersion_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -625,6 +646,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object baseVersion_ = ""; /** * @@ -701,8 +724,8 @@ public Builder setBaseVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - baseVersion_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -723,8 +746,8 @@ public Builder setBaseVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearBaseVersion() { - baseVersion_ = getDefaultInstance().getBaseVersion(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -750,8 +773,8 @@ public Builder setBaseVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - baseVersion_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -832,8 +855,8 @@ public Builder setTargetVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - targetVersion_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -854,8 +877,8 @@ public Builder setTargetVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTargetVersion() { - targetVersion_ = getDefaultInstance().getTargetVersion(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -881,8 +904,8 @@ public Builder setTargetVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - targetVersion_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -963,8 +986,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -985,8 +1008,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1012,8 +1035,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CompareVersionsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CompareVersionsResponse.java index 4702a57e252c..97f63b192faf 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CompareVersionsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CompareVersionsResponse.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int BASE_VERSION_CONTENT_JSON_FIELD_NUMBER = 1; - private volatile java.lang.Object baseVersionContentJson_; + + @SuppressWarnings("serial") + private volatile java.lang.Object baseVersionContentJson_ = ""; /** * * @@ -119,7 +121,9 @@ public com.google.protobuf.ByteString getBaseVersionContentJsonBytes() { } public static final int TARGET_VERSION_CONTENT_JSON_FIELD_NUMBER = 2; - private volatile java.lang.Object targetVersionContentJson_; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetVersionContentJson_ = ""; /** * * @@ -210,7 +214,7 @@ public com.google.protobuf.Timestamp getCompareTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCompareTimeOrBuilder() { - return getCompareTime(); + return compareTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : compareTime_; } private byte memoizedIsInitialized = -1; @@ -436,14 +440,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; baseVersionContentJson_ = ""; - targetVersionContentJson_ = ""; - - if (compareTimeBuilder_ == null) { - compareTime_ = null; - } else { - compareTime_ = null; + compareTime_ = null; + if (compareTimeBuilder_ != null) { + compareTimeBuilder_.dispose(); compareTimeBuilder_ = null; } return this; @@ -474,17 +476,28 @@ public com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse result = new com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse(this); - result.baseVersionContentJson_ = baseVersionContentJson_; - result.targetVersionContentJson_ = targetVersionContentJson_; - if (compareTimeBuilder_ == null) { - result.compareTime_ = compareTime_; - } else { - result.compareTime_ = compareTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.baseVersionContentJson_ = baseVersionContentJson_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.targetVersionContentJson_ = targetVersionContentJson_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.compareTime_ = + compareTimeBuilder_ == null ? compareTime_ : compareTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -534,10 +547,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.CompareVersionsR return this; if (!other.getBaseVersionContentJson().isEmpty()) { baseVersionContentJson_ = other.baseVersionContentJson_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getTargetVersionContentJson().isEmpty()) { targetVersionContentJson_ = other.targetVersionContentJson_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasCompareTime()) { @@ -572,19 +587,19 @@ public Builder mergeFrom( case 10: { baseVersionContentJson_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { targetVersionContentJson_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getCompareTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -604,6 +619,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object baseVersionContentJson_ = ""; /** * @@ -665,8 +682,8 @@ public Builder setBaseVersionContentJson(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - baseVersionContentJson_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -682,8 +699,8 @@ public Builder setBaseVersionContentJson(java.lang.String value) { * @return This builder for chaining. */ public Builder clearBaseVersionContentJson() { - baseVersionContentJson_ = getDefaultInstance().getBaseVersionContentJson(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -704,8 +721,8 @@ public Builder setBaseVersionContentJsonBytes(com.google.protobuf.ByteString val throw new NullPointerException(); } checkByteStringIsUtf8(value); - baseVersionContentJson_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -771,8 +788,8 @@ public Builder setTargetVersionContentJson(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - targetVersionContentJson_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -788,8 +805,8 @@ public Builder setTargetVersionContentJson(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTargetVersionContentJson() { - targetVersionContentJson_ = getDefaultInstance().getTargetVersionContentJson(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -810,8 +827,8 @@ public Builder setTargetVersionContentJsonBytes(com.google.protobuf.ByteString v throw new NullPointerException(); } checkByteStringIsUtf8(value); - targetVersionContentJson_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -834,7 +851,7 @@ public Builder setTargetVersionContentJsonBytes(com.google.protobuf.ByteString v * @return Whether the compareTime field is set. */ public boolean hasCompareTime() { - return compareTimeBuilder_ != null || compareTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -871,11 +888,11 @@ public Builder setCompareTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } compareTime_ = value; - onChanged(); } else { compareTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -890,11 +907,11 @@ public Builder setCompareTime(com.google.protobuf.Timestamp value) { public Builder setCompareTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (compareTimeBuilder_ == null) { compareTime_ = builderForValue.build(); - onChanged(); } else { compareTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -908,19 +925,18 @@ public Builder setCompareTime(com.google.protobuf.Timestamp.Builder builderForVa */ public Builder mergeCompareTime(com.google.protobuf.Timestamp value) { if (compareTimeBuilder_ == null) { - if (compareTime_ != null) { - compareTime_ = - com.google.protobuf.Timestamp.newBuilder(compareTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && compareTime_ != null + && compareTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCompareTimeBuilder().mergeFrom(value); } else { compareTime_ = value; } - onChanged(); } else { compareTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -933,14 +949,13 @@ public Builder mergeCompareTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp compare_time = 3; */ public Builder clearCompareTime() { - if (compareTimeBuilder_ == null) { - compareTime_ = null; - onChanged(); - } else { - compareTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + compareTime_ = null; + if (compareTimeBuilder_ != null) { + compareTimeBuilder_.dispose(); compareTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -953,7 +968,7 @@ public Builder clearCompareTime() { * .google.protobuf.Timestamp compare_time = 3; */ public com.google.protobuf.Timestamp.Builder getCompareTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getCompareTimeFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ContinuousTestResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ContinuousTestResult.java index 73abb5cdc275..1af037b663da 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ContinuousTestResult.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ContinuousTestResult.java @@ -233,7 +233,9 @@ private AggregatedTestResult(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -288,7 +290,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int RESULT_FIELD_NUMBER = 2; - private int result_; + private int result_ = 0; /** * * @@ -322,9 +324,8 @@ public int getResultValue() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult getResult() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult result = - com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult.forNumber( result_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult @@ -333,6 +334,8 @@ public int getResultValue() { } public static final int TEST_CASE_RESULTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList testCaseResults_; /** * @@ -436,7 +439,7 @@ public com.google.protobuf.Timestamp getRunTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getRunTimeOrBuilder() { - return getRunTime(); + return runTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : runTime_; } private byte memoizedIsInitialized = -1; @@ -682,16 +685,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - result_ = 0; - testCaseResults_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (runTimeBuilder_ == null) { - runTime_ = null; - } else { - runTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + runTime_ = null; + if (runTimeBuilder_ != null) { + runTimeBuilder_.dispose(); runTimeBuilder_ = null; } return this; @@ -721,21 +722,34 @@ public com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult build() { public com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult result = new com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.result_ = result_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult result) { + if (((bitField0_ & 0x00000004) != 0)) { testCaseResults_ = testCaseResults_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.testCaseResults_ = testCaseResults_; - if (runTimeBuilder_ == null) { - result.runTime_ = runTime_; - } else { - result.runTime_ = runTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.result_ = result_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.runTime_ = runTimeBuilder_ == null ? runTime_ : runTimeBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -786,6 +800,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestRe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.result_ != 0) { @@ -794,7 +809,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestRe if (!other.testCaseResults_.isEmpty()) { if (testCaseResults_.isEmpty()) { testCaseResults_ = other.testCaseResults_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTestCaseResultsIsMutable(); testCaseResults_.addAll(other.testCaseResults_); @@ -833,13 +848,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { result_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: @@ -852,7 +867,7 @@ public Builder mergeFrom( case 34: { input.readMessage(getRunTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -944,8 +959,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -964,8 +979,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -989,8 +1004,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1030,8 +1045,8 @@ public int getResultValue() { * @return This builder for chaining. */ public Builder setResultValue(int value) { - result_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1052,10 +1067,9 @@ public Builder setResultValue(int value) { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult getResult() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult result = - com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult.valueOf( - result_); + com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult + .forNumber(result_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.AggregatedTestResult .UNRECOGNIZED @@ -1081,7 +1095,7 @@ public Builder setResult( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; result_ = value.getNumber(); onChanged(); return this; @@ -1101,7 +1115,7 @@ public Builder setResult( * @return This builder for chaining. */ public Builder clearResult() { - + bitField0_ = (bitField0_ & ~0x00000002); result_ = 0; onChanged(); return this; @@ -1111,9 +1125,9 @@ public Builder clearResult() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTestCaseResultsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { testCaseResults_ = new com.google.protobuf.LazyStringArrayList(testCaseResults_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } /** @@ -1256,7 +1270,7 @@ public Builder addAllTestCaseResults(java.lang.Iterable values */ public Builder clearTestCaseResults() { testCaseResults_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1302,7 +1316,7 @@ public Builder addTestCaseResultsBytes(com.google.protobuf.ByteString value) { * @return Whether the runTime field is set. */ public boolean hasRunTime() { - return runTimeBuilder_ != null || runTime_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1337,11 +1351,11 @@ public Builder setRunTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } runTime_ = value; - onChanged(); } else { runTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1356,11 +1370,11 @@ public Builder setRunTime(com.google.protobuf.Timestamp value) { public Builder setRunTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (runTimeBuilder_ == null) { runTime_ = builderForValue.build(); - onChanged(); } else { runTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1374,17 +1388,18 @@ public Builder setRunTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeRunTime(com.google.protobuf.Timestamp value) { if (runTimeBuilder_ == null) { - if (runTime_ != null) { - runTime_ = - com.google.protobuf.Timestamp.newBuilder(runTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && runTime_ != null + && runTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getRunTimeBuilder().mergeFrom(value); } else { runTime_ = value; } - onChanged(); } else { runTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1397,14 +1412,13 @@ public Builder mergeRunTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp run_time = 4; */ public Builder clearRunTime() { - if (runTimeBuilder_ == null) { - runTime_ = null; - onChanged(); - } else { - runTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + runTime_ = null; + if (runTimeBuilder_ != null) { + runTimeBuilder_.dispose(); runTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1417,7 +1431,7 @@ public Builder clearRunTime() { * .google.protobuf.Timestamp run_time = 4; */ public com.google.protobuf.Timestamp.Builder getRunTimeBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getRunTimeFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationTurn.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationTurn.java index 96d65df02eba..f511f080a2a7 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationTurn.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationTurn.java @@ -288,7 +288,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.QueryInput getInput() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.QueryInputOrBuilder getInputOrBuilder() { - return getInput(); + return input_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.QueryInput.getDefaultInstance() + : input_; } public static final int INJECTED_PARAMETERS_FIELD_NUMBER = 2; @@ -339,11 +341,13 @@ public com.google.protobuf.Struct getInjectedParameters() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getInjectedParametersOrBuilder() { - return getInjectedParameters(); + return injectedParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : injectedParameters_; } public static final int IS_WEBHOOK_ENABLED_FIELD_NUMBER = 3; - private boolean isWebhookEnabled_; + private boolean isWebhookEnabled_ = false; /** * * @@ -363,7 +367,7 @@ public boolean getIsWebhookEnabled() { } public static final int ENABLE_SENTIMENT_ANALYSIS_FIELD_NUMBER = 7; - private boolean enableSentimentAnalysis_; + private boolean enableSentimentAnalysis_ = false; /** * * @@ -620,22 +624,19 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (inputBuilder_ == null) { - input_ = null; - } else { - input_ = null; + bitField0_ = 0; + input_ = null; + if (inputBuilder_ != null) { + inputBuilder_.dispose(); inputBuilder_ = null; } - if (injectedParametersBuilder_ == null) { - injectedParameters_ = null; - } else { - injectedParameters_ = null; + injectedParameters_ = null; + if (injectedParametersBuilder_ != null) { + injectedParametersBuilder_.dispose(); injectedParametersBuilder_ = null; } isWebhookEnabled_ = false; - enableSentimentAnalysis_ = false; - return this; } @@ -665,22 +666,33 @@ public com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput build() public com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput result = new com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput(this); - if (inputBuilder_ == null) { - result.input_ = input_; - } else { - result.input_ = inputBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (injectedParametersBuilder_ == null) { - result.injectedParameters_ = injectedParameters_; - } else { - result.injectedParameters_ = injectedParametersBuilder_.build(); - } - result.isWebhookEnabled_ = isWebhookEnabled_; - result.enableSentimentAnalysis_ = enableSentimentAnalysis_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.input_ = inputBuilder_ == null ? input_ : inputBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.injectedParameters_ = + injectedParametersBuilder_ == null + ? injectedParameters_ + : injectedParametersBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isWebhookEnabled_ = isWebhookEnabled_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.enableSentimentAnalysis_ = enableSentimentAnalysis_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -774,25 +786,25 @@ public Builder mergeFrom( { input.readMessage( getInjectedParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { isWebhookEnabled_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 case 42: { input.readMessage(getInputFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 42 case 56: { enableSentimentAnalysis_ = input.readBool(); - + bitField0_ |= 0x00000008; break; } // case 56 default: @@ -812,6 +824,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.QueryInput input_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.QueryInput, @@ -834,7 +848,7 @@ public Builder mergeFrom( * @return Whether the input field is set. */ public boolean hasInput() { - return inputBuilder_ != null || input_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -879,11 +893,11 @@ public Builder setInput(com.google.cloud.dialogflow.cx.v3beta1.QueryInput value) throw new NullPointerException(); } input_ = value; - onChanged(); } else { inputBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -903,11 +917,11 @@ public Builder setInput( com.google.cloud.dialogflow.cx.v3beta1.QueryInput.Builder builderForValue) { if (inputBuilder_ == null) { input_ = builderForValue.build(); - onChanged(); } else { inputBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -925,19 +939,18 @@ public Builder setInput( */ public Builder mergeInput(com.google.cloud.dialogflow.cx.v3beta1.QueryInput value) { if (inputBuilder_ == null) { - if (input_ != null) { - input_ = - com.google.cloud.dialogflow.cx.v3beta1.QueryInput.newBuilder(input_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && input_ != null + && input_ != com.google.cloud.dialogflow.cx.v3beta1.QueryInput.getDefaultInstance()) { + getInputBuilder().mergeFrom(value); } else { input_ = value; } - onChanged(); } else { inputBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -954,14 +967,13 @@ public Builder mergeInput(com.google.cloud.dialogflow.cx.v3beta1.QueryInput valu * .google.cloud.dialogflow.cx.v3beta1.QueryInput input = 5; */ public Builder clearInput() { - if (inputBuilder_ == null) { - input_ = null; - onChanged(); - } else { - input_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + input_ = null; + if (inputBuilder_ != null) { + inputBuilder_.dispose(); inputBuilder_ = null; } - + onChanged(); return this; } /** @@ -978,7 +990,7 @@ public Builder clearInput() { * .google.cloud.dialogflow.cx.v3beta1.QueryInput input = 5; */ public com.google.cloud.dialogflow.cx.v3beta1.QueryInput.Builder getInputBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInputFieldBuilder().getBuilder(); } @@ -1053,7 +1065,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.QueryInputOrBuilder getInputOrBuil * @return Whether the injectedParameters field is set. */ public boolean hasInjectedParameters() { - return injectedParametersBuilder_ != null || injectedParameters_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1092,11 +1104,11 @@ public Builder setInjectedParameters(com.google.protobuf.Struct value) { throw new NullPointerException(); } injectedParameters_ = value; - onChanged(); } else { injectedParametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1112,11 +1124,11 @@ public Builder setInjectedParameters(com.google.protobuf.Struct value) { public Builder setInjectedParameters(com.google.protobuf.Struct.Builder builderForValue) { if (injectedParametersBuilder_ == null) { injectedParameters_ = builderForValue.build(); - onChanged(); } else { injectedParametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1131,19 +1143,18 @@ public Builder setInjectedParameters(com.google.protobuf.Struct.Builder builderF */ public Builder mergeInjectedParameters(com.google.protobuf.Struct value) { if (injectedParametersBuilder_ == null) { - if (injectedParameters_ != null) { - injectedParameters_ = - com.google.protobuf.Struct.newBuilder(injectedParameters_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && injectedParameters_ != null + && injectedParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getInjectedParametersBuilder().mergeFrom(value); } else { injectedParameters_ = value; } - onChanged(); } else { injectedParametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1157,14 +1168,13 @@ public Builder mergeInjectedParameters(com.google.protobuf.Struct value) { * .google.protobuf.Struct injected_parameters = 2; */ public Builder clearInjectedParameters() { - if (injectedParametersBuilder_ == null) { - injectedParameters_ = null; - onChanged(); - } else { - injectedParameters_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + injectedParameters_ = null; + if (injectedParametersBuilder_ != null) { + injectedParametersBuilder_.dispose(); injectedParametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -1178,7 +1188,7 @@ public Builder clearInjectedParameters() { * .google.protobuf.Struct injected_parameters = 2; */ public com.google.protobuf.Struct.Builder getInjectedParametersBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getInjectedParametersFieldBuilder().getBuilder(); } @@ -1263,6 +1273,7 @@ public boolean getIsWebhookEnabled() { public Builder setIsWebhookEnabled(boolean value) { isWebhookEnabled_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1280,7 +1291,7 @@ public Builder setIsWebhookEnabled(boolean value) { * @return This builder for chaining. */ public Builder clearIsWebhookEnabled() { - + bitField0_ = (bitField0_ & ~0x00000004); isWebhookEnabled_ = false; onChanged(); return this; @@ -1317,6 +1328,7 @@ public boolean getEnableSentimentAnalysis() { public Builder setEnableSentimentAnalysis(boolean value) { enableSentimentAnalysis_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1332,7 +1344,7 @@ public Builder setEnableSentimentAnalysis(boolean value) { * @return This builder for chaining. */ public Builder clearEnableSentimentAnalysis() { - + bitField0_ = (bitField0_ & ~0x00000008); enableSentimentAnalysis_ = false; onChanged(); return this; @@ -1839,10 +1851,14 @@ public com.google.protobuf.Struct getSessionParameters() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getSessionParametersOrBuilder() { - return getSessionParameters(); + return sessionParameters_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : sessionParameters_; } public static final int DIFFERENCES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private java.util.List differences_; /** * @@ -1991,7 +2007,9 @@ public com.google.protobuf.Struct getDiagnosticInfo() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() { - return getDiagnosticInfo(); + return diagnosticInfo_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : diagnosticInfo_; } public static final int TRIGGERED_INTENT_FIELD_NUMBER = 7; @@ -2042,7 +2060,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Intent getTriggeredIntent() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.IntentOrBuilder getTriggeredIntentOrBuilder() { - return getTriggeredIntent(); + return triggeredIntent_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Intent.getDefaultInstance() + : triggeredIntent_; } public static final int CURRENT_PAGE_FIELD_NUMBER = 8; @@ -2093,10 +2113,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.Page getCurrentPage() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.PageOrBuilder getCurrentPageOrBuilder() { - return getCurrentPage(); + return currentPage_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance() + : currentPage_; } public static final int TEXT_RESPONSES_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") private java.util.List textResponses_; /** @@ -2225,7 +2249,7 @@ public com.google.rpc.Status getStatus() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - return getStatus(); + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } private byte memoizedIsInitialized = -1; @@ -2520,10 +2544,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (sessionParametersBuilder_ == null) { - sessionParameters_ = null; - } else { - sessionParameters_ = null; + bitField0_ = 0; + sessionParameters_ = null; + if (sessionParametersBuilder_ != null) { + sessionParametersBuilder_.dispose(); sessionParametersBuilder_ = null; } if (differencesBuilder_ == null) { @@ -2532,23 +2556,20 @@ public Builder clear() { differences_ = null; differencesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (diagnosticInfoBuilder_ == null) { - diagnosticInfo_ = null; - } else { - diagnosticInfo_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + diagnosticInfo_ = null; + if (diagnosticInfoBuilder_ != null) { + diagnosticInfoBuilder_.dispose(); diagnosticInfoBuilder_ = null; } - if (triggeredIntentBuilder_ == null) { - triggeredIntent_ = null; - } else { - triggeredIntent_ = null; + triggeredIntent_ = null; + if (triggeredIntentBuilder_ != null) { + triggeredIntentBuilder_.dispose(); triggeredIntentBuilder_ = null; } - if (currentPageBuilder_ == null) { - currentPage_ = null; - } else { - currentPage_ = null; + currentPage_ = null; + if (currentPageBuilder_ != null) { + currentPageBuilder_.dispose(); currentPageBuilder_ = null; } if (textResponsesBuilder_ == null) { @@ -2557,11 +2578,10 @@ public Builder clear() { textResponses_ = null; textResponsesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); - if (statusBuilder_ == null) { - status_ = null; - } else { - status_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); statusBuilder_ = null; } return this; @@ -2595,52 +2615,60 @@ public com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutpu buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput result = new com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput(this); - int from_bitField0_ = bitField0_; - if (sessionParametersBuilder_ == null) { - result.sessionParameters_ = sessionParameters_; - } else { - result.sessionParameters_ = sessionParametersBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput result) { if (differencesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { differences_ = java.util.Collections.unmodifiableList(differences_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.differences_ = differences_; } else { result.differences_ = differencesBuilder_.build(); } - if (diagnosticInfoBuilder_ == null) { - result.diagnosticInfo_ = diagnosticInfo_; - } else { - result.diagnosticInfo_ = diagnosticInfoBuilder_.build(); - } - if (triggeredIntentBuilder_ == null) { - result.triggeredIntent_ = triggeredIntent_; - } else { - result.triggeredIntent_ = triggeredIntentBuilder_.build(); - } - if (currentPageBuilder_ == null) { - result.currentPage_ = currentPage_; - } else { - result.currentPage_ = currentPageBuilder_.build(); - } if (textResponsesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { textResponses_ = java.util.Collections.unmodifiableList(textResponses_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } result.textResponses_ = textResponses_; } else { result.textResponses_ = textResponsesBuilder_.build(); } - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sessionParameters_ = + sessionParametersBuilder_ == null + ? sessionParameters_ + : sessionParametersBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.diagnosticInfo_ = + diagnosticInfoBuilder_ == null ? diagnosticInfo_ : diagnosticInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.triggeredIntent_ = + triggeredIntentBuilder_ == null ? triggeredIntent_ : triggeredIntentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.currentPage_ = + currentPageBuilder_ == null ? currentPage_ : currentPageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -2702,7 +2730,7 @@ public Builder mergeFrom( if (!other.differences_.isEmpty()) { if (differences_.isEmpty()) { differences_ = other.differences_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDifferencesIsMutable(); differences_.addAll(other.differences_); @@ -2715,7 +2743,7 @@ public Builder mergeFrom( differencesBuilder_.dispose(); differencesBuilder_ = null; differences_ = other.differences_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); differencesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDifferencesFieldBuilder() @@ -2738,7 +2766,7 @@ public Builder mergeFrom( if (!other.textResponses_.isEmpty()) { if (textResponses_.isEmpty()) { textResponses_ = other.textResponses_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureTextResponsesIsMutable(); textResponses_.addAll(other.textResponses_); @@ -2751,7 +2779,7 @@ public Builder mergeFrom( textResponsesBuilder_.dispose(); textResponsesBuilder_ = null; textResponses_ = other.textResponses_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); textResponsesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTextResponsesFieldBuilder() @@ -2794,7 +2822,7 @@ public Builder mergeFrom( { input.readMessage( getSessionParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 34 case 42: @@ -2815,20 +2843,20 @@ public Builder mergeFrom( { input.readMessage( getDiagnosticInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 50 case 58: { input.readMessage( getTriggeredIntentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 58 case 66: { input.readMessage(getCurrentPageFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 66 case 74: @@ -2848,7 +2876,7 @@ public Builder mergeFrom( case 82: { input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 82 default: @@ -2888,7 +2916,7 @@ public Builder mergeFrom( * @return Whether the sessionParameters field is set. */ public boolean hasSessionParameters() { - return sessionParametersBuilder_ != null || sessionParameters_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -2925,11 +2953,11 @@ public Builder setSessionParameters(com.google.protobuf.Struct value) { throw new NullPointerException(); } sessionParameters_ = value; - onChanged(); } else { sessionParametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2944,11 +2972,11 @@ public Builder setSessionParameters(com.google.protobuf.Struct value) { public Builder setSessionParameters(com.google.protobuf.Struct.Builder builderForValue) { if (sessionParametersBuilder_ == null) { sessionParameters_ = builderForValue.build(); - onChanged(); } else { sessionParametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2962,19 +2990,18 @@ public Builder setSessionParameters(com.google.protobuf.Struct.Builder builderFo */ public Builder mergeSessionParameters(com.google.protobuf.Struct value) { if (sessionParametersBuilder_ == null) { - if (sessionParameters_ != null) { - sessionParameters_ = - com.google.protobuf.Struct.newBuilder(sessionParameters_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && sessionParameters_ != null + && sessionParameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getSessionParametersBuilder().mergeFrom(value); } else { sessionParameters_ = value; } - onChanged(); } else { sessionParametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2987,14 +3014,13 @@ public Builder mergeSessionParameters(com.google.protobuf.Struct value) { * .google.protobuf.Struct session_parameters = 4; */ public Builder clearSessionParameters() { - if (sessionParametersBuilder_ == null) { - sessionParameters_ = null; - onChanged(); - } else { - sessionParameters_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + sessionParameters_ = null; + if (sessionParametersBuilder_ != null) { + sessionParametersBuilder_.dispose(); sessionParametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -3007,7 +3033,7 @@ public Builder clearSessionParameters() { * .google.protobuf.Struct session_parameters = 4; */ public com.google.protobuf.Struct.Builder getSessionParametersBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getSessionParametersFieldBuilder().getBuilder(); } @@ -3059,11 +3085,11 @@ public com.google.protobuf.StructOrBuilder getSessionParametersOrBuilder() { differences_ = java.util.Collections.emptyList(); private void ensureDifferencesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { differences_ = new java.util.ArrayList( differences_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -3330,7 +3356,7 @@ public Builder addAllDifferences( public Builder clearDifferences() { if (differencesBuilder_ == null) { differences_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { differencesBuilder_.clear(); @@ -3489,7 +3515,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.Builder addDiffe com.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.Builder, com.google.cloud.dialogflow.cx.v3beta1.TestRunDifferenceOrBuilder>( differences_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); differences_ = null; @@ -3519,7 +3545,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.Builder addDiffe * @return Whether the diagnosticInfo field is set. */ public boolean hasDiagnosticInfo() { - return diagnosticInfoBuilder_ != null || diagnosticInfo_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -3564,11 +3590,11 @@ public Builder setDiagnosticInfo(com.google.protobuf.Struct value) { throw new NullPointerException(); } diagnosticInfo_ = value; - onChanged(); } else { diagnosticInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3587,11 +3613,11 @@ public Builder setDiagnosticInfo(com.google.protobuf.Struct value) { public Builder setDiagnosticInfo(com.google.protobuf.Struct.Builder builderForValue) { if (diagnosticInfoBuilder_ == null) { diagnosticInfo_ = builderForValue.build(); - onChanged(); } else { diagnosticInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3609,19 +3635,18 @@ public Builder setDiagnosticInfo(com.google.protobuf.Struct.Builder builderForVa */ public Builder mergeDiagnosticInfo(com.google.protobuf.Struct value) { if (diagnosticInfoBuilder_ == null) { - if (diagnosticInfo_ != null) { - diagnosticInfo_ = - com.google.protobuf.Struct.newBuilder(diagnosticInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && diagnosticInfo_ != null + && diagnosticInfo_ != com.google.protobuf.Struct.getDefaultInstance()) { + getDiagnosticInfoBuilder().mergeFrom(value); } else { diagnosticInfo_ = value; } - onChanged(); } else { diagnosticInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3638,14 +3663,13 @@ public Builder mergeDiagnosticInfo(com.google.protobuf.Struct value) { * */ public Builder clearDiagnosticInfo() { - if (diagnosticInfoBuilder_ == null) { - diagnosticInfo_ = null; - onChanged(); - } else { - diagnosticInfo_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + diagnosticInfo_ = null; + if (diagnosticInfoBuilder_ != null) { + diagnosticInfoBuilder_.dispose(); diagnosticInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -3662,7 +3686,7 @@ public Builder clearDiagnosticInfo() { * */ public com.google.protobuf.Struct.Builder getDiagnosticInfoBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getDiagnosticInfoFieldBuilder().getBuilder(); } @@ -3737,7 +3761,7 @@ public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() { * @return Whether the triggeredIntent field is set. */ public boolean hasTriggeredIntent() { - return triggeredIntentBuilder_ != null || triggeredIntent_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -3776,11 +3800,11 @@ public Builder setTriggeredIntent(com.google.cloud.dialogflow.cx.v3beta1.Intent throw new NullPointerException(); } triggeredIntent_ = value; - onChanged(); } else { triggeredIntentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3797,11 +3821,11 @@ public Builder setTriggeredIntent( com.google.cloud.dialogflow.cx.v3beta1.Intent.Builder builderForValue) { if (triggeredIntentBuilder_ == null) { triggeredIntent_ = builderForValue.build(); - onChanged(); } else { triggeredIntentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3816,19 +3840,19 @@ public Builder setTriggeredIntent( */ public Builder mergeTriggeredIntent(com.google.cloud.dialogflow.cx.v3beta1.Intent value) { if (triggeredIntentBuilder_ == null) { - if (triggeredIntent_ != null) { - triggeredIntent_ = - com.google.cloud.dialogflow.cx.v3beta1.Intent.newBuilder(triggeredIntent_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && triggeredIntent_ != null + && triggeredIntent_ + != com.google.cloud.dialogflow.cx.v3beta1.Intent.getDefaultInstance()) { + getTriggeredIntentBuilder().mergeFrom(value); } else { triggeredIntent_ = value; } - onChanged(); } else { triggeredIntentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3842,14 +3866,13 @@ public Builder mergeTriggeredIntent(com.google.cloud.dialogflow.cx.v3beta1.Inten * .google.cloud.dialogflow.cx.v3beta1.Intent triggered_intent = 7; */ public Builder clearTriggeredIntent() { - if (triggeredIntentBuilder_ == null) { - triggeredIntent_ = null; - onChanged(); - } else { - triggeredIntent_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + triggeredIntent_ = null; + if (triggeredIntentBuilder_ != null) { + triggeredIntentBuilder_.dispose(); triggeredIntentBuilder_ = null; } - + onChanged(); return this; } /** @@ -3863,7 +3886,7 @@ public Builder clearTriggeredIntent() { * .google.cloud.dialogflow.cx.v3beta1.Intent triggered_intent = 7; */ public com.google.cloud.dialogflow.cx.v3beta1.Intent.Builder getTriggeredIntentBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getTriggeredIntentFieldBuilder().getBuilder(); } @@ -3932,7 +3955,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.IntentOrBuilder getTriggeredIntent * @return Whether the currentPage field is set. */ public boolean hasCurrentPage() { - return currentPageBuilder_ != null || currentPage_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -3971,11 +3994,11 @@ public Builder setCurrentPage(com.google.cloud.dialogflow.cx.v3beta1.Page value) throw new NullPointerException(); } currentPage_ = value; - onChanged(); } else { currentPageBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3992,11 +4015,11 @@ public Builder setCurrentPage( com.google.cloud.dialogflow.cx.v3beta1.Page.Builder builderForValue) { if (currentPageBuilder_ == null) { currentPage_ = builderForValue.build(); - onChanged(); } else { currentPageBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4011,19 +4034,18 @@ public Builder setCurrentPage( */ public Builder mergeCurrentPage(com.google.cloud.dialogflow.cx.v3beta1.Page value) { if (currentPageBuilder_ == null) { - if (currentPage_ != null) { - currentPage_ = - com.google.cloud.dialogflow.cx.v3beta1.Page.newBuilder(currentPage_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && currentPage_ != null + && currentPage_ != com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance()) { + getCurrentPageBuilder().mergeFrom(value); } else { currentPage_ = value; } - onChanged(); } else { currentPageBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4037,14 +4059,13 @@ public Builder mergeCurrentPage(com.google.cloud.dialogflow.cx.v3beta1.Page valu * .google.cloud.dialogflow.cx.v3beta1.Page current_page = 8; */ public Builder clearCurrentPage() { - if (currentPageBuilder_ == null) { - currentPage_ = null; - onChanged(); - } else { - currentPage_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + currentPage_ = null; + if (currentPageBuilder_ != null) { + currentPageBuilder_.dispose(); currentPageBuilder_ = null; } - + onChanged(); return this; } /** @@ -4058,7 +4079,7 @@ public Builder clearCurrentPage() { * .google.cloud.dialogflow.cx.v3beta1.Page current_page = 8; */ public com.google.cloud.dialogflow.cx.v3beta1.Page.Builder getCurrentPageBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getCurrentPageFieldBuilder().getBuilder(); } @@ -4112,11 +4133,11 @@ public com.google.cloud.dialogflow.cx.v3beta1.PageOrBuilder getCurrentPageOrBuil textResponses_ = java.util.Collections.emptyList(); private void ensureTextResponsesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { textResponses_ = new java.util.ArrayList( textResponses_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000020; } } @@ -4362,7 +4383,7 @@ public Builder addAllTextResponses( public Builder clearTextResponses() { if (textResponsesBuilder_ == null) { textResponses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { textResponsesBuilder_.clear(); @@ -4507,7 +4528,7 @@ public Builder removeTextResponses(int index) { com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.Builder, com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TextOrBuilder>( textResponses_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); textResponses_ = null; @@ -4532,7 +4553,7 @@ public Builder removeTextResponses(int index) { * @return Whether the status field is set. */ public boolean hasStatus() { - return statusBuilder_ != null || status_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -4569,11 +4590,11 @@ public Builder setStatus(com.google.rpc.Status value) { throw new NullPointerException(); } status_ = value; - onChanged(); } else { statusBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -4589,11 +4610,11 @@ public Builder setStatus(com.google.rpc.Status value) { public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); - onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -4608,16 +4629,18 @@ 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(); + if (((bitField0_ & 0x00000040) != 0) + && status_ != null + && status_ != com.google.rpc.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); } else { status_ = value; } - onChanged(); } else { statusBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -4631,14 +4654,13 @@ public Builder mergeStatus(com.google.rpc.Status value) { * .google.rpc.Status status = 10; */ public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; - onChanged(); - } else { - status_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); statusBuilder_ = null; } - + onChanged(); return this; } /** @@ -4652,7 +4674,7 @@ public Builder clearStatus() { * .google.rpc.Status status = 10; */ public com.google.rpc.Status.Builder getStatusBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getStatusFieldBuilder().getBuilder(); } @@ -4811,7 +4833,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput getUser @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInputOrBuilder getUserInputOrBuilder() { - return getUserInput(); + return userInput_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.getDefaultInstance() + : userInput_; } public static final int VIRTUAL_AGENT_OUTPUT_FIELD_NUMBER = 2; @@ -4869,7 +4893,10 @@ public boolean hasVirtualAgentOutput() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutputOrBuilder getVirtualAgentOutputOrBuilder() { - return getVirtualAgentOutput(); + return virtualAgentOutput_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + .getDefaultInstance() + : virtualAgentOutput_; } private byte memoizedIsInitialized = -1; @@ -5090,16 +5117,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (userInputBuilder_ == null) { - userInput_ = null; - } else { - userInput_ = null; + bitField0_ = 0; + userInput_ = null; + if (userInputBuilder_ != null) { + userInputBuilder_.dispose(); userInputBuilder_ = null; } - if (virtualAgentOutputBuilder_ == null) { - virtualAgentOutput_ = null; - } else { - virtualAgentOutput_ = null; + virtualAgentOutput_ = null; + if (virtualAgentOutputBuilder_ != null) { + virtualAgentOutputBuilder_.dispose(); virtualAgentOutputBuilder_ = null; } return this; @@ -5129,20 +5155,26 @@ public com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn build() { public com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn result = new com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn(this); - if (userInputBuilder_ == null) { - result.userInput_ = userInput_; - } else { - result.userInput_ = userInputBuilder_.build(); - } - if (virtualAgentOutputBuilder_ == null) { - result.virtualAgentOutput_ = virtualAgentOutput_; - } else { - result.virtualAgentOutput_ = virtualAgentOutputBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userInput_ = userInputBuilder_ == null ? userInput_ : userInputBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.virtualAgentOutput_ = + virtualAgentOutputBuilder_ == null + ? virtualAgentOutput_ + : virtualAgentOutputBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -5224,14 +5256,14 @@ public Builder mergeFrom( case 10: { input.readMessage(getUserInputFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getVirtualAgentOutputFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -5251,6 +5283,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput userInput_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput, @@ -5269,7 +5303,7 @@ public Builder mergeFrom( * @return Whether the userInput field is set. */ public boolean hasUserInput() { - return userInputBuilder_ != null || userInput_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -5307,11 +5341,11 @@ public Builder setUserInput( throw new NullPointerException(); } userInput_ = value; - onChanged(); } else { userInputBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -5327,11 +5361,11 @@ public Builder setUserInput( com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.Builder builderForValue) { if (userInputBuilder_ == null) { userInput_ = builderForValue.build(); - onChanged(); } else { userInputBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -5346,20 +5380,20 @@ public Builder setUserInput( public Builder mergeUserInput( com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput value) { if (userInputBuilder_ == null) { - if (userInput_ != null) { - userInput_ = - com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.newBuilder( - userInput_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && userInput_ != null + && userInput_ + != com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput + .getDefaultInstance()) { + getUserInputBuilder().mergeFrom(value); } else { userInput_ = value; } - onChanged(); } else { userInputBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -5372,14 +5406,13 @@ public Builder mergeUserInput( * .google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput user_input = 1; */ public Builder clearUserInput() { - if (userInputBuilder_ == null) { - userInput_ = null; - onChanged(); - } else { - userInput_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + userInput_ = null; + if (userInputBuilder_ != null) { + userInputBuilder_.dispose(); userInputBuilder_ = null; } - + onChanged(); return this; } /** @@ -5393,7 +5426,7 @@ public Builder clearUserInput() { */ public com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.UserInput.Builder getUserInputBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getUserInputFieldBuilder().getBuilder(); } @@ -5463,7 +5496,7 @@ public Builder clearUserInput() { * @return Whether the virtualAgentOutput field is set. */ public boolean hasVirtualAgentOutput() { - return virtualAgentOutputBuilder_ != null || virtualAgentOutput_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -5507,11 +5540,11 @@ public Builder setVirtualAgentOutput( throw new NullPointerException(); } virtualAgentOutput_ = value; - onChanged(); } else { virtualAgentOutputBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -5530,11 +5563,11 @@ public Builder setVirtualAgentOutput( builderForValue) { if (virtualAgentOutputBuilder_ == null) { virtualAgentOutput_ = builderForValue.build(); - onChanged(); } else { virtualAgentOutputBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -5551,20 +5584,20 @@ public Builder setVirtualAgentOutput( public Builder mergeVirtualAgentOutput( com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput value) { if (virtualAgentOutputBuilder_ == null) { - if (virtualAgentOutput_ != null) { - virtualAgentOutput_ = - com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.newBuilder( - virtualAgentOutput_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && virtualAgentOutput_ != null + && virtualAgentOutput_ + != com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput + .getDefaultInstance()) { + getVirtualAgentOutputBuilder().mergeFrom(value); } else { virtualAgentOutput_ = value; } - onChanged(); } else { virtualAgentOutputBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -5579,14 +5612,13 @@ public Builder mergeVirtualAgentOutput( * */ public Builder clearVirtualAgentOutput() { - if (virtualAgentOutputBuilder_ == null) { - virtualAgentOutput_ = null; - onChanged(); - } else { - virtualAgentOutput_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + virtualAgentOutput_ = null; + if (virtualAgentOutputBuilder_ != null) { + virtualAgentOutputBuilder_.dispose(); virtualAgentOutputBuilder_ = null; } - + onChanged(); return this; } /** @@ -5602,7 +5634,7 @@ public Builder clearVirtualAgentOutput() { */ public com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput.Builder getVirtualAgentOutputBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getVirtualAgentOutputFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateAgentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateAgentRequest.java index 27d0d7e9256d..cd1fd41bd613 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateAgentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateAgentRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -174,7 +176,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Agent getAgent() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.AgentOrBuilder getAgentOrBuilder() { - return getAgent(); + return agent_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Agent.getDefaultInstance() + : agent_; } private byte memoizedIsInitialized = -1; @@ -390,12 +394,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (agentBuilder_ == null) { - agent_ = null; - } else { - agent_ = null; + agent_ = null; + if (agentBuilder_ != null) { + agentBuilder_.dispose(); agentBuilder_ = null; } return this; @@ -425,16 +428,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest(this); - result.parent_ = parent_; - if (agentBuilder_ == null) { - result.agent_ = agent_; - } else { - result.agent_ = agentBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.CreateAgentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.agent_ = agentBuilder_ == null ? agent_ : agentBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -483,6 +493,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.CreateAgentReque return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasAgent()) { @@ -517,13 +528,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getAgentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -543,6 +554,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -613,8 +626,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -633,8 +646,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -658,8 +671,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -684,7 +697,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the agent field is set. */ public boolean hasAgent() { - return agentBuilder_ != null || agent_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -725,11 +738,11 @@ public Builder setAgent(com.google.cloud.dialogflow.cx.v3beta1.Agent value) { throw new NullPointerException(); } agent_ = value; - onChanged(); } else { agentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -746,11 +759,11 @@ public Builder setAgent(com.google.cloud.dialogflow.cx.v3beta1.Agent value) { public Builder setAgent(com.google.cloud.dialogflow.cx.v3beta1.Agent.Builder builderForValue) { if (agentBuilder_ == null) { agent_ = builderForValue.build(); - onChanged(); } else { agentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -766,19 +779,18 @@ public Builder setAgent(com.google.cloud.dialogflow.cx.v3beta1.Agent.Builder bui */ public Builder mergeAgent(com.google.cloud.dialogflow.cx.v3beta1.Agent value) { if (agentBuilder_ == null) { - if (agent_ != null) { - agent_ = - com.google.cloud.dialogflow.cx.v3beta1.Agent.newBuilder(agent_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && agent_ != null + && agent_ != com.google.cloud.dialogflow.cx.v3beta1.Agent.getDefaultInstance()) { + getAgentBuilder().mergeFrom(value); } else { agent_ = value; } - onChanged(); } else { agentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -793,14 +805,13 @@ public Builder mergeAgent(com.google.cloud.dialogflow.cx.v3beta1.Agent value) { * */ public Builder clearAgent() { - if (agentBuilder_ == null) { - agent_ = null; - onChanged(); - } else { - agent_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + agent_ = null; + if (agentBuilder_ != null) { + agentBuilder_.dispose(); agentBuilder_ = null; } - + onChanged(); return this; } /** @@ -815,7 +826,7 @@ public Builder clearAgent() { * */ public com.google.cloud.dialogflow.cx.v3beta1.Agent.Builder getAgentBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getAgentFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateEntityTypeRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateEntityTypeRequest.java index 0714404a86b1..f72e724108ab 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateEntityTypeRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateEntityTypeRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -175,11 +177,15 @@ public com.google.cloud.dialogflow.cx.v3beta1.EntityType getEntityType() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.EntityTypeOrBuilder getEntityTypeOrBuilder() { - return getEntityType(); + return entityType_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.EntityType.getDefaultInstance() + : entityType_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -465,16 +471,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (entityTypeBuilder_ == null) { - entityType_ = null; - } else { - entityType_ = null; + entityType_ = null; + if (entityTypeBuilder_ != null) { + entityTypeBuilder_.dispose(); entityTypeBuilder_ = null; } languageCode_ = ""; - return this; } @@ -503,17 +507,27 @@ public com.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest result = new com.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest(this); - result.parent_ = parent_; - if (entityTypeBuilder_ == null) { - result.entityType_ = entityType_; - } else { - result.entityType_ = entityTypeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.languageCode_ = languageCode_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.CreateEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entityType_ = entityTypeBuilder_ == null ? entityType_ : entityTypeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -563,6 +577,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.CreateEntityType return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasEntityType()) { @@ -570,6 +585,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.CreateEntityType } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -601,19 +617,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getEntityTypeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -633,6 +649,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -703,8 +721,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -723,8 +741,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -748,8 +766,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -774,7 +792,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the entityType field is set. */ public boolean hasEntityType() { - return entityTypeBuilder_ != null || entityType_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -815,11 +833,11 @@ public Builder setEntityType(com.google.cloud.dialogflow.cx.v3beta1.EntityType v throw new NullPointerException(); } entityType_ = value; - onChanged(); } else { entityTypeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -837,11 +855,11 @@ public Builder setEntityType( com.google.cloud.dialogflow.cx.v3beta1.EntityType.Builder builderForValue) { if (entityTypeBuilder_ == null) { entityType_ = builderForValue.build(); - onChanged(); } else { entityTypeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -857,19 +875,19 @@ public Builder setEntityType( */ public Builder mergeEntityType(com.google.cloud.dialogflow.cx.v3beta1.EntityType value) { if (entityTypeBuilder_ == null) { - if (entityType_ != null) { - entityType_ = - com.google.cloud.dialogflow.cx.v3beta1.EntityType.newBuilder(entityType_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && entityType_ != null + && entityType_ + != com.google.cloud.dialogflow.cx.v3beta1.EntityType.getDefaultInstance()) { + getEntityTypeBuilder().mergeFrom(value); } else { entityType_ = value; } - onChanged(); } else { entityTypeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -884,14 +902,13 @@ public Builder mergeEntityType(com.google.cloud.dialogflow.cx.v3beta1.EntityType * */ public Builder clearEntityType() { - if (entityTypeBuilder_ == null) { - entityType_ = null; - onChanged(); - } else { - entityType_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + entityType_ = null; + if (entityTypeBuilder_ != null) { + entityTypeBuilder_.dispose(); entityTypeBuilder_ = null; } - + onChanged(); return this; } /** @@ -906,7 +923,7 @@ public Builder clearEntityType() { * */ public com.google.cloud.dialogflow.cx.v3beta1.EntityType.Builder getEntityTypeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getEntityTypeFieldBuilder().getBuilder(); } @@ -1043,8 +1060,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1068,8 +1085,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1098,8 +1115,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateEnvironmentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateEnvironmentRequest.java index 07815f316018..6694fc0f39ab 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateEnvironmentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateEnvironmentRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -176,7 +178,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Environment getEnvironment() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.EnvironmentOrBuilder getEnvironmentOrBuilder() { - return getEnvironment(); + return environment_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Environment.getDefaultInstance() + : environment_; } private byte memoizedIsInitialized = -1; @@ -392,12 +396,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (environmentBuilder_ == null) { - environment_ = null; - } else { - environment_ = null; + environment_ = null; + if (environmentBuilder_ != null) { + environmentBuilder_.dispose(); environmentBuilder_ = null; } return this; @@ -428,16 +431,25 @@ public com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest(this); - result.parent_ = parent_; - if (environmentBuilder_ == null) { - result.environment_ = environment_; - } else { - result.environment_ = environmentBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.CreateEnvironmentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.environment_ = + environmentBuilder_ == null ? environment_ : environmentBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -488,6 +500,7 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasEnvironment()) { @@ -522,13 +535,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getEnvironmentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -548,6 +561,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -621,8 +636,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -642,8 +657,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -668,8 +683,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -694,7 +709,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the environment field is set. */ public boolean hasEnvironment() { - return environmentBuilder_ != null || environment_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -735,11 +750,11 @@ public Builder setEnvironment(com.google.cloud.dialogflow.cx.v3beta1.Environment throw new NullPointerException(); } environment_ = value; - onChanged(); } else { environmentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -757,11 +772,11 @@ public Builder setEnvironment( com.google.cloud.dialogflow.cx.v3beta1.Environment.Builder builderForValue) { if (environmentBuilder_ == null) { environment_ = builderForValue.build(); - onChanged(); } else { environmentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -777,19 +792,19 @@ public Builder setEnvironment( */ public Builder mergeEnvironment(com.google.cloud.dialogflow.cx.v3beta1.Environment value) { if (environmentBuilder_ == null) { - if (environment_ != null) { - environment_ = - com.google.cloud.dialogflow.cx.v3beta1.Environment.newBuilder(environment_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && environment_ != null + && environment_ + != com.google.cloud.dialogflow.cx.v3beta1.Environment.getDefaultInstance()) { + getEnvironmentBuilder().mergeFrom(value); } else { environment_ = value; } - onChanged(); } else { environmentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -804,14 +819,13 @@ public Builder mergeEnvironment(com.google.cloud.dialogflow.cx.v3beta1.Environme * */ public Builder clearEnvironment() { - if (environmentBuilder_ == null) { - environment_ = null; - onChanged(); - } else { - environment_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + environment_ = null; + if (environmentBuilder_ != null) { + environmentBuilder_.dispose(); environmentBuilder_ = null; } - + onChanged(); return this; } /** @@ -826,7 +840,7 @@ public Builder clearEnvironment() { * */ public com.google.cloud.dialogflow.cx.v3beta1.Environment.Builder getEnvironmentBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getEnvironmentFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateExperimentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateExperimentRequest.java index 1a03ee54feb5..3835eebaa9a3 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateExperimentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateExperimentRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -178,7 +180,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Experiment getExperiment() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ExperimentOrBuilder getExperimentOrBuilder() { - return getExperiment(); + return experiment_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.getDefaultInstance() + : experiment_; } private byte memoizedIsInitialized = -1; @@ -394,12 +398,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (experimentBuilder_ == null) { - experiment_ = null; - } else { - experiment_ = null; + experiment_ = null; + if (experimentBuilder_ != null) { + experimentBuilder_.dispose(); experimentBuilder_ = null; } return this; @@ -430,16 +433,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest(this); - result.parent_ = parent_; - if (experimentBuilder_ == null) { - result.experiment_ = experiment_; - } else { - result.experiment_ = experimentBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.CreateExperimentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.experiment_ = experimentBuilder_ == null ? experiment_ : experimentBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -489,6 +500,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.CreateExperiment return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasExperiment()) { @@ -523,13 +535,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getExperimentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -549,6 +561,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -625,8 +639,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -647,8 +661,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -674,8 +688,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -700,7 +714,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the experiment field is set. */ public boolean hasExperiment() { - return experimentBuilder_ != null || experiment_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -741,11 +755,11 @@ public Builder setExperiment(com.google.cloud.dialogflow.cx.v3beta1.Experiment v throw new NullPointerException(); } experiment_ = value; - onChanged(); } else { experimentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -763,11 +777,11 @@ public Builder setExperiment( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Builder builderForValue) { if (experimentBuilder_ == null) { experiment_ = builderForValue.build(); - onChanged(); } else { experimentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -783,19 +797,19 @@ public Builder setExperiment( */ public Builder mergeExperiment(com.google.cloud.dialogflow.cx.v3beta1.Experiment value) { if (experimentBuilder_ == null) { - if (experiment_ != null) { - experiment_ = - com.google.cloud.dialogflow.cx.v3beta1.Experiment.newBuilder(experiment_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && experiment_ != null + && experiment_ + != com.google.cloud.dialogflow.cx.v3beta1.Experiment.getDefaultInstance()) { + getExperimentBuilder().mergeFrom(value); } else { experiment_ = value; } - onChanged(); } else { experimentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -810,14 +824,13 @@ public Builder mergeExperiment(com.google.cloud.dialogflow.cx.v3beta1.Experiment * */ public Builder clearExperiment() { - if (experimentBuilder_ == null) { - experiment_ = null; - onChanged(); - } else { - experiment_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + experiment_ = null; + if (experimentBuilder_ != null) { + experimentBuilder_.dispose(); experimentBuilder_ = null; } - + onChanged(); return this; } /** @@ -832,7 +845,7 @@ public Builder clearExperiment() { * */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Builder getExperimentBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getExperimentFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateFlowRequest.java index e6767b6bc865..3e0cdd69e4d7 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateFlowRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateFlowRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -173,11 +175,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.Flow getFlow() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.FlowOrBuilder getFlowOrBuilder() { - return getFlow(); + return flow_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Flow.getDefaultInstance() : flow_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -465,16 +469,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (flowBuilder_ == null) { - flow_ = null; - } else { - flow_ = null; + flow_ = null; + if (flowBuilder_ != null) { + flowBuilder_.dispose(); flowBuilder_ = null; } languageCode_ = ""; - return this; } @@ -502,17 +504,26 @@ public com.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest result = new com.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest(this); - result.parent_ = parent_; - if (flowBuilder_ == null) { - result.flow_ = flow_; - } else { - result.flow_ = flowBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.languageCode_ = languageCode_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.CreateFlowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.flow_ = flowBuilder_ == null ? flow_ : flowBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -561,6 +572,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.CreateFlowReques return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasFlow()) { @@ -568,6 +580,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.CreateFlowReques } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -599,19 +612,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getFlowFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -631,6 +644,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -701,8 +716,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -721,8 +736,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -746,8 +761,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -772,7 +787,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the flow field is set. */ public boolean hasFlow() { - return flowBuilder_ != null || flow_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -813,11 +828,11 @@ public Builder setFlow(com.google.cloud.dialogflow.cx.v3beta1.Flow value) { throw new NullPointerException(); } flow_ = value; - onChanged(); } else { flowBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -834,11 +849,11 @@ public Builder setFlow(com.google.cloud.dialogflow.cx.v3beta1.Flow value) { public Builder setFlow(com.google.cloud.dialogflow.cx.v3beta1.Flow.Builder builderForValue) { if (flowBuilder_ == null) { flow_ = builderForValue.build(); - onChanged(); } else { flowBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -854,19 +869,18 @@ public Builder setFlow(com.google.cloud.dialogflow.cx.v3beta1.Flow.Builder build */ public Builder mergeFlow(com.google.cloud.dialogflow.cx.v3beta1.Flow value) { if (flowBuilder_ == null) { - if (flow_ != null) { - flow_ = - com.google.cloud.dialogflow.cx.v3beta1.Flow.newBuilder(flow_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && flow_ != null + && flow_ != com.google.cloud.dialogflow.cx.v3beta1.Flow.getDefaultInstance()) { + getFlowBuilder().mergeFrom(value); } else { flow_ = value; } - onChanged(); } else { flowBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -881,14 +895,13 @@ public Builder mergeFlow(com.google.cloud.dialogflow.cx.v3beta1.Flow value) { * */ public Builder clearFlow() { - if (flowBuilder_ == null) { - flow_ = null; - onChanged(); - } else { - flow_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + flow_ = null; + if (flowBuilder_ != null) { + flowBuilder_.dispose(); flowBuilder_ = null; } - + onChanged(); return this; } /** @@ -903,7 +916,7 @@ public Builder clearFlow() { * */ public com.google.cloud.dialogflow.cx.v3beta1.Flow.Builder getFlowBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getFlowFieldBuilder().getBuilder(); } @@ -1043,8 +1056,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1069,8 +1082,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1100,8 +1113,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateIntentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateIntentRequest.java index 91bed301d3c6..b1b32947663c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateIntentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateIntentRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -175,11 +177,15 @@ public com.google.cloud.dialogflow.cx.v3beta1.Intent getIntent() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.IntentOrBuilder getIntentOrBuilder() { - return getIntent(); + return intent_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Intent.getDefaultInstance() + : intent_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -461,16 +467,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (intentBuilder_ == null) { - intent_ = null; - } else { - intent_ = null; + intent_ = null; + if (intentBuilder_ != null) { + intentBuilder_.dispose(); intentBuilder_ = null; } languageCode_ = ""; - return this; } @@ -498,17 +502,26 @@ public com.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest(this); - result.parent_ = parent_; - if (intentBuilder_ == null) { - result.intent_ = intent_; - } else { - result.intent_ = intentBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.languageCode_ = languageCode_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.intent_ = intentBuilder_ == null ? intent_ : intentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -557,6 +570,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequ return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasIntent()) { @@ -564,6 +578,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.CreateIntentRequ } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -595,19 +610,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getIntentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -627,6 +642,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -697,8 +714,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -717,8 +734,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -742,8 +759,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -768,7 +785,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the intent field is set. */ public boolean hasIntent() { - return intentBuilder_ != null || intent_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -809,11 +826,11 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3beta1.Intent value) { throw new NullPointerException(); } intent_ = value; - onChanged(); } else { intentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -831,11 +848,11 @@ public Builder setIntent( com.google.cloud.dialogflow.cx.v3beta1.Intent.Builder builderForValue) { if (intentBuilder_ == null) { intent_ = builderForValue.build(); - onChanged(); } else { intentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -851,19 +868,18 @@ public Builder setIntent( */ public Builder mergeIntent(com.google.cloud.dialogflow.cx.v3beta1.Intent value) { if (intentBuilder_ == null) { - if (intent_ != null) { - intent_ = - com.google.cloud.dialogflow.cx.v3beta1.Intent.newBuilder(intent_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && intent_ != null + && intent_ != com.google.cloud.dialogflow.cx.v3beta1.Intent.getDefaultInstance()) { + getIntentBuilder().mergeFrom(value); } else { intent_ = value; } - onChanged(); } else { intentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -878,14 +894,13 @@ public Builder mergeIntent(com.google.cloud.dialogflow.cx.v3beta1.Intent value) * */ public Builder clearIntent() { - if (intentBuilder_ == null) { - intent_ = null; - onChanged(); - } else { - intent_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + intent_ = null; + if (intentBuilder_ != null) { + intentBuilder_.dispose(); intentBuilder_ = null; } - + onChanged(); return this; } /** @@ -900,7 +915,7 @@ public Builder clearIntent() { * */ public com.google.cloud.dialogflow.cx.v3beta1.Intent.Builder getIntentBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getIntentFieldBuilder().getBuilder(); } @@ -1031,8 +1046,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1054,8 +1069,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1082,8 +1097,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreatePageRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreatePageRequest.java index 34a9cb9761cf..ec50fe46087f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreatePageRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreatePageRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -175,11 +177,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.Page getPage() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.PageOrBuilder getPageOrBuilder() { - return getPage(); + return page_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance() : page_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -483,16 +487,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (pageBuilder_ == null) { - page_ = null; - } else { - page_ = null; + page_ = null; + if (pageBuilder_ != null) { + pageBuilder_.dispose(); pageBuilder_ = null; } languageCode_ = ""; - return this; } @@ -520,17 +522,26 @@ public com.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest result = new com.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest(this); - result.parent_ = parent_; - if (pageBuilder_ == null) { - result.page_ = page_; - } else { - result.page_ = pageBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.languageCode_ = languageCode_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.CreatePageRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.page_ = pageBuilder_ == null ? page_ : pageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -579,6 +590,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.CreatePageReques return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasPage()) { @@ -586,6 +598,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.CreatePageReques } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -617,19 +630,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getPageFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -649,6 +662,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -722,8 +737,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -743,8 +758,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -769,8 +784,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -795,7 +810,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the page field is set. */ public boolean hasPage() { - return pageBuilder_ != null || page_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -836,11 +851,11 @@ public Builder setPage(com.google.cloud.dialogflow.cx.v3beta1.Page value) { throw new NullPointerException(); } page_ = value; - onChanged(); } else { pageBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -857,11 +872,11 @@ public Builder setPage(com.google.cloud.dialogflow.cx.v3beta1.Page value) { public Builder setPage(com.google.cloud.dialogflow.cx.v3beta1.Page.Builder builderForValue) { if (pageBuilder_ == null) { page_ = builderForValue.build(); - onChanged(); } else { pageBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -877,19 +892,18 @@ public Builder setPage(com.google.cloud.dialogflow.cx.v3beta1.Page.Builder build */ public Builder mergePage(com.google.cloud.dialogflow.cx.v3beta1.Page value) { if (pageBuilder_ == null) { - if (page_ != null) { - page_ = - com.google.cloud.dialogflow.cx.v3beta1.Page.newBuilder(page_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && page_ != null + && page_ != com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance()) { + getPageBuilder().mergeFrom(value); } else { page_ = value; } - onChanged(); } else { pageBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -904,14 +918,13 @@ public Builder mergePage(com.google.cloud.dialogflow.cx.v3beta1.Page value) { * */ public Builder clearPage() { - if (pageBuilder_ == null) { - page_ = null; - onChanged(); - } else { - page_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + page_ = null; + if (pageBuilder_ != null) { + pageBuilder_.dispose(); pageBuilder_ = null; } - + onChanged(); return this; } /** @@ -926,7 +939,7 @@ public Builder clearPage() { * */ public com.google.cloud.dialogflow.cx.v3beta1.Page.Builder getPageBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getPageFieldBuilder().getBuilder(); } @@ -1090,8 +1103,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1124,8 +1137,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1163,8 +1176,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateSecuritySettingsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateSecuritySettingsRequest.java index 5c1ff8439410..23e1ce8adf47 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateSecuritySettingsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateSecuritySettingsRequest.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -176,7 +178,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings getSecuritySettin @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettingsOrBuilder getSecuritySettingsOrBuilder() { - return getSecuritySettings(); + return securitySettings_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.getDefaultInstance() + : securitySettings_; } private byte memoizedIsInitialized = -1; @@ -393,12 +397,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (securitySettingsBuilder_ == null) { - securitySettings_ = null; - } else { - securitySettings_ = null; + securitySettings_ = null; + if (securitySettingsBuilder_ != null) { + securitySettingsBuilder_.dispose(); securitySettingsBuilder_ = null; } return this; @@ -430,16 +433,25 @@ public com.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest buil public com.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest result = new com.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest(this); - result.parent_ = parent_; - if (securitySettingsBuilder_ == null) { - result.securitySettings_ = securitySettings_; - } else { - result.securitySettings_ = securitySettingsBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.CreateSecuritySettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.securitySettings_ = + securitySettingsBuilder_ == null ? securitySettings_ : securitySettingsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -491,6 +503,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasSecuritySettings()) { @@ -525,14 +538,14 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getSecuritySettingsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -552,6 +565,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -625,8 +640,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -646,8 +661,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -672,8 +687,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -698,7 +713,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the securitySettings field is set. */ public boolean hasSecuritySettings() { - return securitySettingsBuilder_ != null || securitySettings_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -740,11 +755,11 @@ public Builder setSecuritySettings( throw new NullPointerException(); } securitySettings_ = value; - onChanged(); } else { securitySettingsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -762,11 +777,11 @@ public Builder setSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.Builder builderForValue) { if (securitySettingsBuilder_ == null) { securitySettings_ = builderForValue.build(); - onChanged(); } else { securitySettingsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -783,19 +798,19 @@ public Builder setSecuritySettings( public Builder mergeSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings value) { if (securitySettingsBuilder_ == null) { - if (securitySettings_ != null) { - securitySettings_ = - com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.newBuilder(securitySettings_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && securitySettings_ != null + && securitySettings_ + != com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.getDefaultInstance()) { + getSecuritySettingsBuilder().mergeFrom(value); } else { securitySettings_ = value; } - onChanged(); } else { securitySettingsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -810,14 +825,13 @@ public Builder mergeSecuritySettings( * */ public Builder clearSecuritySettings() { - if (securitySettingsBuilder_ == null) { - securitySettings_ = null; - onChanged(); - } else { - securitySettings_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + securitySettings_ = null; + if (securitySettingsBuilder_ != null) { + securitySettingsBuilder_.dispose(); securitySettingsBuilder_ = null; } - + onChanged(); return this; } /** @@ -833,7 +847,7 @@ public Builder clearSecuritySettings() { */ public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.Builder getSecuritySettingsBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getSecuritySettingsFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateSessionEntityTypeRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateSessionEntityTypeRequest.java index f39dc4f9eebd..04f4061653ec 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateSessionEntityTypeRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateSessionEntityTypeRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -184,7 +186,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType getSessionEntity @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypeOrBuilder getSessionEntityTypeOrBuilder() { - return getSessionEntityType(); + return sessionEntityType_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.getDefaultInstance() + : sessionEntityType_; } private byte memoizedIsInitialized = -1; @@ -402,12 +406,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (sessionEntityTypeBuilder_ == null) { - sessionEntityType_ = null; - } else { - sessionEntityType_ = null; + sessionEntityType_ = null; + if (sessionEntityTypeBuilder_ != null) { + sessionEntityTypeBuilder_.dispose(); sessionEntityTypeBuilder_ = null; } return this; @@ -439,16 +442,27 @@ public com.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest bui public com.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest result = new com.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest(this); - result.parent_ = parent_; - if (sessionEntityTypeBuilder_ == null) { - result.sessionEntityType_ = sessionEntityType_; - } else { - result.sessionEntityType_ = sessionEntityTypeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.CreateSessionEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sessionEntityType_ = + sessionEntityTypeBuilder_ == null + ? sessionEntityType_ + : sessionEntityTypeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -500,6 +514,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasSessionEntityType()) { @@ -534,14 +549,14 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getSessionEntityTypeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -561,6 +576,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -643,8 +660,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -667,8 +684,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -696,8 +713,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -722,7 +739,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the sessionEntityType field is set. */ public boolean hasSessionEntityType() { - return sessionEntityTypeBuilder_ != null || sessionEntityType_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -764,11 +781,11 @@ public Builder setSessionEntityType( throw new NullPointerException(); } sessionEntityType_ = value; - onChanged(); } else { sessionEntityTypeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -786,11 +803,11 @@ public Builder setSessionEntityType( com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.Builder builderForValue) { if (sessionEntityTypeBuilder_ == null) { sessionEntityType_ = builderForValue.build(); - onChanged(); } else { sessionEntityTypeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -807,20 +824,19 @@ public Builder setSessionEntityType( public Builder mergeSessionEntityType( com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType value) { if (sessionEntityTypeBuilder_ == null) { - if (sessionEntityType_ != null) { - sessionEntityType_ = - com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.newBuilder( - sessionEntityType_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && sessionEntityType_ != null + && sessionEntityType_ + != com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.getDefaultInstance()) { + getSessionEntityTypeBuilder().mergeFrom(value); } else { sessionEntityType_ = value; } - onChanged(); } else { sessionEntityTypeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -835,14 +851,13 @@ public Builder mergeSessionEntityType( * */ public Builder clearSessionEntityType() { - if (sessionEntityTypeBuilder_ == null) { - sessionEntityType_ = null; - onChanged(); - } else { - sessionEntityType_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + sessionEntityType_ = null; + if (sessionEntityTypeBuilder_ != null) { + sessionEntityTypeBuilder_.dispose(); sessionEntityTypeBuilder_ = null; } - + onChanged(); return this; } /** @@ -858,7 +873,7 @@ public Builder clearSessionEntityType() { */ public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.Builder getSessionEntityTypeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getSessionEntityTypeFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateTestCaseRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateTestCaseRequest.java index 85291e222c9c..a56bbea7c355 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateTestCaseRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateTestCaseRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -174,7 +176,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestCase getTestCase() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.TestCaseOrBuilder getTestCaseOrBuilder() { - return getTestCase(); + return testCase_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.TestCase.getDefaultInstance() + : testCase_; } private byte memoizedIsInitialized = -1; @@ -390,12 +394,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (testCaseBuilder_ == null) { - testCase_ = null; - } else { - testCase_ = null; + testCase_ = null; + if (testCaseBuilder_ != null) { + testCaseBuilder_.dispose(); testCaseBuilder_ = null; } return this; @@ -426,16 +429,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest result = new com.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest(this); - result.parent_ = parent_; - if (testCaseBuilder_ == null) { - result.testCase_ = testCase_; - } else { - result.testCase_ = testCaseBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.testCase_ = testCaseBuilder_ == null ? testCase_ : testCaseBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -485,6 +496,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRe return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTestCase()) { @@ -519,13 +531,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getTestCaseFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -545,6 +557,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -615,8 +629,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -635,8 +649,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -660,8 +674,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -686,7 +700,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the testCase field is set. */ public boolean hasTestCase() { - return testCaseBuilder_ != null || testCase_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -727,11 +741,11 @@ public Builder setTestCase(com.google.cloud.dialogflow.cx.v3beta1.TestCase value throw new NullPointerException(); } testCase_ = value; - onChanged(); } else { testCaseBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -749,11 +763,11 @@ public Builder setTestCase( com.google.cloud.dialogflow.cx.v3beta1.TestCase.Builder builderForValue) { if (testCaseBuilder_ == null) { testCase_ = builderForValue.build(); - onChanged(); } else { testCaseBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -769,19 +783,18 @@ public Builder setTestCase( */ public Builder mergeTestCase(com.google.cloud.dialogflow.cx.v3beta1.TestCase value) { if (testCaseBuilder_ == null) { - if (testCase_ != null) { - testCase_ = - com.google.cloud.dialogflow.cx.v3beta1.TestCase.newBuilder(testCase_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && testCase_ != null + && testCase_ != com.google.cloud.dialogflow.cx.v3beta1.TestCase.getDefaultInstance()) { + getTestCaseBuilder().mergeFrom(value); } else { testCase_ = value; } - onChanged(); } else { testCaseBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -796,14 +809,13 @@ public Builder mergeTestCase(com.google.cloud.dialogflow.cx.v3beta1.TestCase val * */ public Builder clearTestCase() { - if (testCaseBuilder_ == null) { - testCase_ = null; - onChanged(); - } else { - testCase_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + testCase_ = null; + if (testCaseBuilder_ != null) { + testCaseBuilder_.dispose(); testCaseBuilder_ = null; } - + onChanged(); return this; } /** @@ -818,7 +830,7 @@ public Builder clearTestCase() { * */ public com.google.cloud.dialogflow.cx.v3beta1.TestCase.Builder getTestCaseBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTestCaseFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateTransitionRouteGroupRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateTransitionRouteGroupRequest.java index 9224315110eb..ce89ed84c187 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateTransitionRouteGroupRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateTransitionRouteGroupRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -181,11 +183,15 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup getTransition @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupOrBuilder getTransitionRouteGroupOrBuilder() { - return getTransitionRouteGroup(); + return transitionRouteGroup_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.getDefaultInstance() + : transitionRouteGroup_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -476,16 +482,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (transitionRouteGroupBuilder_ == null) { - transitionRouteGroup_ = null; - } else { - transitionRouteGroup_ = null; + transitionRouteGroup_ = null; + if (transitionRouteGroupBuilder_ != null) { + transitionRouteGroupBuilder_.dispose(); transitionRouteGroupBuilder_ = null; } languageCode_ = ""; - return this; } @@ -516,17 +520,30 @@ public com.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest public com.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest result = new com.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest(this); - result.parent_ = parent_; - if (transitionRouteGroupBuilder_ == null) { - result.transitionRouteGroup_ = transitionRouteGroup_; - } else { - result.transitionRouteGroup_ = transitionRouteGroupBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.languageCode_ = languageCode_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.CreateTransitionRouteGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.transitionRouteGroup_ = + transitionRouteGroupBuilder_ == null + ? transitionRouteGroup_ + : transitionRouteGroupBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -579,6 +596,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasTransitionRouteGroup()) { @@ -586,6 +604,7 @@ public Builder mergeFrom( } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -617,20 +636,20 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getTransitionRouteGroupFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -650,6 +669,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -726,8 +747,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -748,8 +769,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -775,8 +796,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -801,7 +822,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the transitionRouteGroup field is set. */ public boolean hasTransitionRouteGroup() { - return transitionRouteGroupBuilder_ != null || transitionRouteGroup_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -843,11 +864,11 @@ public Builder setTransitionRouteGroup( throw new NullPointerException(); } transitionRouteGroup_ = value; - onChanged(); } else { transitionRouteGroupBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -865,11 +886,11 @@ public Builder setTransitionRouteGroup( com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.Builder builderForValue) { if (transitionRouteGroupBuilder_ == null) { transitionRouteGroup_ = builderForValue.build(); - onChanged(); } else { transitionRouteGroupBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -886,20 +907,20 @@ public Builder setTransitionRouteGroup( public Builder mergeTransitionRouteGroup( com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup value) { if (transitionRouteGroupBuilder_ == null) { - if (transitionRouteGroup_ != null) { - transitionRouteGroup_ = - com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.newBuilder( - transitionRouteGroup_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && transitionRouteGroup_ != null + && transitionRouteGroup_ + != com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + .getDefaultInstance()) { + getTransitionRouteGroupBuilder().mergeFrom(value); } else { transitionRouteGroup_ = value; } - onChanged(); } else { transitionRouteGroupBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -914,14 +935,13 @@ public Builder mergeTransitionRouteGroup( * */ public Builder clearTransitionRouteGroup() { - if (transitionRouteGroupBuilder_ == null) { - transitionRouteGroup_ = null; - onChanged(); - } else { - transitionRouteGroup_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + transitionRouteGroup_ = null; + if (transitionRouteGroupBuilder_ != null) { + transitionRouteGroupBuilder_.dispose(); transitionRouteGroupBuilder_ = null; } - + onChanged(); return this; } /** @@ -937,7 +957,7 @@ public Builder clearTransitionRouteGroup() { */ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.Builder getTransitionRouteGroupBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getTransitionRouteGroupFieldBuilder().getBuilder(); } @@ -1075,8 +1095,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1100,8 +1120,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1130,8 +1150,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateVersionOperationMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateVersionOperationMetadata.java index 2dab9342a8fa..3ecf8b9fe6ca 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateVersionOperationMetadata.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateVersionOperationMetadata.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object version_; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; version_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata bui public com.google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata result = new com.google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata(this); - result.version_ = version_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -410,6 +422,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -441,7 +454,7 @@ public Builder mergeFrom( case 10: { version_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -461,6 +474,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object version_ = ""; /** * @@ -528,8 +543,8 @@ public Builder setVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - version_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -547,8 +562,8 @@ public Builder setVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -571,8 +586,8 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - version_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateVersionRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateVersionRequest.java index 32d403926713..d6d8c82571b6 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateVersionRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateVersionRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -178,7 +180,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Version getVersion() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.VersionOrBuilder getVersionOrBuilder() { - return getVersion(); + return version_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Version.getDefaultInstance() + : version_; } private byte memoizedIsInitialized = -1; @@ -394,12 +398,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (versionBuilder_ == null) { - version_ = null; - } else { - version_ = null; + version_ = null; + if (versionBuilder_ != null) { + versionBuilder_.dispose(); versionBuilder_ = null; } return this; @@ -429,16 +432,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest result = new com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest(this); - result.parent_ = parent_; - if (versionBuilder_ == null) { - result.version_ = version_; - } else { - result.version_ = versionBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.CreateVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.version_ = versionBuilder_ == null ? version_ : versionBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -487,6 +497,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.CreateVersionReq return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasVersion()) { @@ -521,13 +532,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getVersionFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -547,6 +558,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -623,8 +636,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -645,8 +658,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -672,8 +685,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -698,7 +711,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the version field is set. */ public boolean hasVersion() { - return versionBuilder_ != null || version_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -739,11 +752,11 @@ public Builder setVersion(com.google.cloud.dialogflow.cx.v3beta1.Version value) throw new NullPointerException(); } version_ = value; - onChanged(); } else { versionBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -761,11 +774,11 @@ public Builder setVersion( com.google.cloud.dialogflow.cx.v3beta1.Version.Builder builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); - onChanged(); } else { versionBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -781,19 +794,18 @@ public Builder setVersion( */ public Builder mergeVersion(com.google.cloud.dialogflow.cx.v3beta1.Version value) { if (versionBuilder_ == null) { - if (version_ != null) { - version_ = - com.google.cloud.dialogflow.cx.v3beta1.Version.newBuilder(version_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && version_ != null + && version_ != com.google.cloud.dialogflow.cx.v3beta1.Version.getDefaultInstance()) { + getVersionBuilder().mergeFrom(value); } else { version_ = value; } - onChanged(); } else { versionBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -808,14 +820,13 @@ public Builder mergeVersion(com.google.cloud.dialogflow.cx.v3beta1.Version value * */ public Builder clearVersion() { - if (versionBuilder_ == null) { - version_ = null; - onChanged(); - } else { - version_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + version_ = null; + if (versionBuilder_ != null) { + versionBuilder_.dispose(); versionBuilder_ = null; } - + onChanged(); return this; } /** @@ -830,7 +841,7 @@ public Builder clearVersion() { * */ public com.google.cloud.dialogflow.cx.v3beta1.Version.Builder getVersionBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getVersionFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateWebhookRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateWebhookRequest.java index c5dc0ad43369..a412c32b7b3d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateWebhookRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/CreateWebhookRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -174,7 +176,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Webhook getWebhook() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookOrBuilder getWebhookOrBuilder() { - return getWebhook(); + return webhook_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Webhook.getDefaultInstance() + : webhook_; } private byte memoizedIsInitialized = -1; @@ -390,12 +394,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - - if (webhookBuilder_ == null) { - webhook_ = null; - } else { - webhook_ = null; + webhook_ = null; + if (webhookBuilder_ != null) { + webhookBuilder_.dispose(); webhookBuilder_ = null; } return this; @@ -425,16 +428,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest result = new com.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest(this); - result.parent_ = parent_; - if (webhookBuilder_ == null) { - result.webhook_ = webhook_; - } else { - result.webhook_ = webhookBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.CreateWebhookRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.webhook_ = webhookBuilder_ == null ? webhook_ : webhookBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -483,6 +493,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.CreateWebhookReq return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasWebhook()) { @@ -517,13 +528,13 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getWebhookFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -543,6 +554,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -613,8 +626,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -633,8 +646,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -658,8 +671,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -684,7 +697,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the webhook field is set. */ public boolean hasWebhook() { - return webhookBuilder_ != null || webhook_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -725,11 +738,11 @@ public Builder setWebhook(com.google.cloud.dialogflow.cx.v3beta1.Webhook value) throw new NullPointerException(); } webhook_ = value; - onChanged(); } else { webhookBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -747,11 +760,11 @@ public Builder setWebhook( com.google.cloud.dialogflow.cx.v3beta1.Webhook.Builder builderForValue) { if (webhookBuilder_ == null) { webhook_ = builderForValue.build(); - onChanged(); } else { webhookBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -767,19 +780,18 @@ public Builder setWebhook( */ public Builder mergeWebhook(com.google.cloud.dialogflow.cx.v3beta1.Webhook value) { if (webhookBuilder_ == null) { - if (webhook_ != null) { - webhook_ = - com.google.cloud.dialogflow.cx.v3beta1.Webhook.newBuilder(webhook_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && webhook_ != null + && webhook_ != com.google.cloud.dialogflow.cx.v3beta1.Webhook.getDefaultInstance()) { + getWebhookBuilder().mergeFrom(value); } else { webhook_ = value; } - onChanged(); } else { webhookBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -794,14 +806,13 @@ public Builder mergeWebhook(com.google.cloud.dialogflow.cx.v3beta1.Webhook value * */ public Builder clearWebhook() { - if (webhookBuilder_ == null) { - webhook_ = null; - onChanged(); - } else { - webhook_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + webhook_ = null; + if (webhookBuilder_ != null) { + webhookBuilder_.dispose(); webhookBuilder_ = null; } - + onChanged(); return this; } /** @@ -816,7 +827,7 @@ public Builder clearWebhook() { * */ public com.google.cloud.dialogflow.cx.v3beta1.Webhook.Builder getWebhookBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getWebhookFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteAgentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteAgentRequest.java index 86bc22e0cabd..b2af4c95d7c0 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteAgentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteAgentRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -322,8 +324,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -351,11 +353,20 @@ public com.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.DeleteAgentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,6 +415,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.DeleteAgentReque return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -435,7 +447,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -455,6 +467,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -525,8 +539,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -545,8 +559,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -570,8 +584,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteEntityTypeRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteEntityTypeRequest.java index eae4ed40d4b2..4fe30a52699c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteEntityTypeRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteEntityTypeRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,7 +128,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_; + private boolean force_ = false; /** * * @@ -361,10 +363,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - force_ = false; - return this; } @@ -393,12 +394,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest result = new com.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest(this); - result.name_ = name_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.DeleteEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -448,6 +461,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.DeleteEntityType return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getForce() != false) { @@ -482,13 +496,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { force_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -508,6 +522,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -581,8 +597,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -602,8 +618,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -628,8 +644,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -685,6 +701,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -710,7 +727,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000002); force_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteEnvironmentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteEnvironmentRequest.java index 8102df2b677f..fbeb2d4dd182 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteEnvironmentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteEnvironmentRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -326,8 +328,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -356,11 +358,21 @@ public com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.DeleteEnvironmentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -411,6 +423,7 @@ public Builder mergeFrom( return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -442,7 +455,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -462,6 +475,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -538,8 +553,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -560,8 +575,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -587,8 +602,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteExperimentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteExperimentRequest.java index 5aed0fc9125f..ea4380cea627 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteExperimentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteExperimentRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -326,8 +328,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -356,11 +358,21 @@ public com.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.DeleteExperimentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -410,6 +422,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.DeleteExperiment return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -441,7 +454,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -461,6 +474,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -537,8 +552,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -559,8 +574,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -586,8 +601,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteFlowRequest.java index 8d7eff3f9e7c..d61d3bb20088 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteFlowRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteFlowRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,7 +128,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_; + private boolean force_ = false; /** * * @@ -359,10 +361,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - force_ = false; - return this; } @@ -390,12 +391,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest result = new com.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest(this); - result.name_ = name_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.DeleteFlowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -444,6 +456,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.DeleteFlowReques return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getForce() != false) { @@ -478,13 +491,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { force_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -504,6 +517,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -577,8 +592,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -598,8 +613,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -624,8 +639,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -677,6 +692,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -700,7 +716,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000002); force_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteIntentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteIntentRequest.java index 97adead81263..4f839dc8a7df 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteIntentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteIntentRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.DeleteIntentRequ return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeletePageRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeletePageRequest.java index b726fc4dd081..196c1c69c7dd 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeletePageRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeletePageRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,7 +128,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_; + private boolean force_ = false; /** * * @@ -359,10 +361,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - force_ = false; - return this; } @@ -390,12 +391,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest result = new com.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest(this); - result.name_ = name_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.DeletePageRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -444,6 +456,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.DeletePageReques return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getForce() != false) { @@ -478,13 +491,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { force_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -504,6 +517,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -577,8 +592,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -598,8 +613,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -624,8 +639,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -677,6 +692,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -700,7 +716,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000002); force_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteSecuritySettingsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteSecuritySettingsRequest.java index 8c276668212b..f7c051c81409 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteSecuritySettingsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteSecuritySettingsRequest.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -326,8 +328,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -357,11 +359,21 @@ public com.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest buil public com.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest result = new com.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.DeleteSecuritySettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -413,6 +425,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -444,7 +457,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -464,6 +477,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -540,8 +555,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -562,8 +577,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -589,8 +604,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteSessionEntityTypeRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteSessionEntityTypeRequest.java index 903b2f23b87f..a26261a91f2b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteSessionEntityTypeRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteSessionEntityTypeRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -335,8 +337,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -366,11 +368,21 @@ public com.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest bui public com.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest result = new com.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.DeleteSessionEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -422,6 +434,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -453,7 +466,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -473,6 +486,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -558,8 +573,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -583,8 +598,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -613,8 +628,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteTransitionRouteGroupRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteTransitionRouteGroupRequest.java index 656f58699f85..bd481074f5ff 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteTransitionRouteGroupRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteTransitionRouteGroupRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -131,7 +133,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_; + private boolean force_ = false; /** * * @@ -365,10 +367,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - force_ = false; - return this; } @@ -399,12 +400,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest public com.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest result = new com.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest(this); - result.name_ = name_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.DeleteTransitionRouteGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -457,6 +470,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getForce() != false) { @@ -491,13 +505,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { force_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -517,6 +531,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -596,8 +612,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -619,8 +635,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -647,8 +663,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -694,6 +710,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -714,7 +731,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000002); force_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteVersionRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteVersionRequest.java index a8364cf62430..3625ba3c9ffb 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteVersionRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteVersionRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -326,8 +328,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -355,11 +357,20 @@ public com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest result = new com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -408,6 +419,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.DeleteVersionReq return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -439,7 +451,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +471,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -535,8 +549,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -557,8 +571,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -584,8 +598,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteWebhookRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteWebhookRequest.java index 428c3cf8ca5c..6c458219c959 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteWebhookRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeleteWebhookRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,7 +128,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_; + private boolean force_ = false; /** * * @@ -359,10 +361,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - force_ = false; - return this; } @@ -390,12 +391,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest result = new com.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest(this); - result.name_ = name_; - result.force_ = force_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -444,6 +456,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.DeleteWebhookReq return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getForce() != false) { @@ -478,13 +491,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { force_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -504,6 +517,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -577,8 +592,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -598,8 +613,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -624,8 +639,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -677,6 +692,7 @@ public boolean getForce() { public Builder setForce(boolean value) { force_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -700,7 +716,7 @@ public Builder setForce(boolean value) { * @return This builder for chaining. */ public Builder clearForce() { - + bitField0_ = (bitField0_ & ~0x00000002); force_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowMetadata.java index 00e4cf8b503f..aa0f7a9a3d14 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowMetadata.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowMetadata.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TEST_ERRORS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List testErrors_; /** * @@ -341,6 +343,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (testErrorsBuilder_ == null) { testErrors_ = java.util.Collections.emptyList(); } else { @@ -375,7 +378,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata build() { public com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata result = new com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata result) { if (testErrorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { testErrors_ = java.util.Collections.unmodifiableList(testErrors_); @@ -385,8 +397,10 @@ public com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata buildPartial() } else { result.testErrors_ = testErrorsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowRequest.java index 7fbb8a5c0e2b..cf399245d43b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENVIRONMENT_FIELD_NUMBER = 1; - private volatile java.lang.Object environment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object environment_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getEnvironmentBytes() { } public static final int FLOW_VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object flowVersion_; + + @SuppressWarnings("serial") + private volatile java.lang.Object flowVersion_ = ""; /** * * @@ -391,10 +395,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; environment_ = ""; - flowVersion_ = ""; - return this; } @@ -422,12 +425,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest result = new com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest(this); - result.environment_ = environment_; - result.flowVersion_ = flowVersion_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.environment_ = environment_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.flowVersion_ = flowVersion_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -476,10 +490,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.DeployFlowReques return this; if (!other.getEnvironment().isEmpty()) { environment_ = other.environment_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFlowVersion().isEmpty()) { flowVersion_ = other.flowVersion_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -511,13 +527,13 @@ public Builder mergeFrom( case 10: { environment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { flowVersion_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -537,6 +553,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object environment_ = ""; /** * @@ -610,8 +628,8 @@ public Builder setEnvironment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - environment_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -631,8 +649,8 @@ public Builder setEnvironment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEnvironment() { - environment_ = getDefaultInstance().getEnvironment(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -657,8 +675,8 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - environment_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -736,8 +754,8 @@ public Builder setFlowVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - flowVersion_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -757,8 +775,8 @@ public Builder setFlowVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFlowVersion() { - flowVersion_ = getDefaultInstance().getFlowVersion(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -783,8 +801,8 @@ public Builder setFlowVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - flowVersion_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowResponse.java index ce345b8b82b1..811abc382016 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeployFlowResponse.java @@ -113,11 +113,15 @@ public com.google.cloud.dialogflow.cx.v3beta1.Environment getEnvironment() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.EnvironmentOrBuilder getEnvironmentOrBuilder() { - return getEnvironment(); + return environment_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Environment.getDefaultInstance() + : environment_; } public static final int DEPLOYMENT_FIELD_NUMBER = 2; - private volatile java.lang.Object deployment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deployment_ = ""; /** * * @@ -382,14 +386,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (environmentBuilder_ == null) { - environment_ = null; - } else { - environment_ = null; + bitField0_ = 0; + environment_ = null; + if (environmentBuilder_ != null) { + environmentBuilder_.dispose(); environmentBuilder_ = null; } deployment_ = ""; - return this; } @@ -417,16 +420,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse result = new com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse(this); - if (environmentBuilder_ == null) { - result.environment_ = environment_; - } else { - result.environment_ = environmentBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.deployment_ = deployment_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.environment_ = + environmentBuilder_ == null ? environment_ : environmentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.deployment_ = deployment_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -478,6 +489,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.DeployFlowRespon } if (!other.getDeployment().isEmpty()) { deployment_ = other.deployment_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -509,13 +521,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getEnvironmentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { deployment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -535,6 +547,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.Environment environment_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Environment, @@ -553,7 +567,7 @@ public Builder mergeFrom( * @return Whether the environment field is set. */ public boolean hasEnvironment() { - return environmentBuilder_ != null || environment_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -590,11 +604,11 @@ public Builder setEnvironment(com.google.cloud.dialogflow.cx.v3beta1.Environment throw new NullPointerException(); } environment_ = value; - onChanged(); } else { environmentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -610,11 +624,11 @@ public Builder setEnvironment( com.google.cloud.dialogflow.cx.v3beta1.Environment.Builder builderForValue) { if (environmentBuilder_ == null) { environment_ = builderForValue.build(); - onChanged(); } else { environmentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -628,19 +642,19 @@ public Builder setEnvironment( */ public Builder mergeEnvironment(com.google.cloud.dialogflow.cx.v3beta1.Environment value) { if (environmentBuilder_ == null) { - if (environment_ != null) { - environment_ = - com.google.cloud.dialogflow.cx.v3beta1.Environment.newBuilder(environment_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && environment_ != null + && environment_ + != com.google.cloud.dialogflow.cx.v3beta1.Environment.getDefaultInstance()) { + getEnvironmentBuilder().mergeFrom(value); } else { environment_ = value; } - onChanged(); } else { environmentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -653,14 +667,13 @@ public Builder mergeEnvironment(com.google.cloud.dialogflow.cx.v3beta1.Environme * .google.cloud.dialogflow.cx.v3beta1.Environment environment = 1; */ public Builder clearEnvironment() { - if (environmentBuilder_ == null) { - environment_ = null; - onChanged(); - } else { - environment_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + environment_ = null; + if (environmentBuilder_ != null) { + environmentBuilder_.dispose(); environmentBuilder_ = null; } - + onChanged(); return this; } /** @@ -673,7 +686,7 @@ public Builder clearEnvironment() { * .google.cloud.dialogflow.cx.v3beta1.Environment environment = 1; */ public com.google.cloud.dialogflow.cx.v3beta1.Environment.Builder getEnvironmentBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getEnvironmentFieldBuilder().getBuilder(); } @@ -788,8 +801,8 @@ public Builder setDeployment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deployment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -807,8 +820,8 @@ public Builder setDeployment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeployment() { - deployment_ = getDefaultInstance().getDeployment(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -831,8 +844,8 @@ public Builder setDeploymentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - deployment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Deployment.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Deployment.java index beb29c8d3830..68d03e703651 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Deployment.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Deployment.java @@ -401,6 +401,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DEPLOYMENT_TEST_RESULTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList deploymentTestResults_; /** * @@ -474,7 +476,9 @@ public com.google.protobuf.ByteString getDeploymentTestResultsBytes(int index) { } public static final int EXPERIMENT_FIELD_NUMBER = 2; - private volatile java.lang.Object experiment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object experiment_ = ""; /** * * @@ -744,10 +748,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; deploymentTestResults_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); experiment_ = ""; - return this; } @@ -775,15 +779,28 @@ public com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result build() { public com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result result = new com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result result) { if (((bitField0_ & 0x00000001) != 0)) { deploymentTestResults_ = deploymentTestResults_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.deploymentTestResults_ = deploymentTestResults_; - result.experiment_ = experiment_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.experiment_ = experiment_; + } } @java.lang.Override @@ -846,6 +863,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Deployment.Resul } if (!other.getExperiment().isEmpty()) { experiment_ = other.experiment_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -884,7 +902,7 @@ public Builder mergeFrom( case 18: { experiment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1178,8 +1196,8 @@ public Builder setExperiment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - experiment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1197,8 +1215,8 @@ public Builder setExperiment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearExperiment() { - experiment_ = getDefaultInstance().getExperiment(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1221,8 +1239,8 @@ public Builder setExperimentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - experiment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1292,7 +1310,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result getDefaultInstan } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -1345,7 +1365,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FLOW_VERSION_FIELD_NUMBER = 2; - private volatile java.lang.Object flowVersion_; + + @SuppressWarnings("serial") + private volatile java.lang.Object flowVersion_ = ""; /** * * @@ -1398,7 +1420,7 @@ public com.google.protobuf.ByteString getFlowVersionBytes() { } public static final int STATE_FIELD_NUMBER = 3; - private int state_; + private int state_ = 0; /** * * @@ -1427,9 +1449,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Deployment.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.Deployment.State result = - com.google.cloud.dialogflow.cx.v3beta1.Deployment.State.valueOf(state_); + com.google.cloud.dialogflow.cx.v3beta1.Deployment.State.forNumber(state_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.Deployment.State.UNRECOGNIZED : result; @@ -1480,7 +1501,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result getResult() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Deployment.ResultOrBuilder getResultOrBuilder() { - return getResult(); + return result_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.getDefaultInstance() + : result_; } public static final int START_TIME_FIELD_NUMBER = 5; @@ -1526,7 +1549,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 6; @@ -1572,7 +1595,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } private byte memoizedIsInitialized = -1; @@ -1837,28 +1860,23 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - flowVersion_ = ""; - state_ = 0; - - if (resultBuilder_ == null) { - result_ = null; - } else { - result_ = null; + result_ = null; + if (resultBuilder_ != null) { + resultBuilder_.dispose(); resultBuilder_ = null; } - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } return this; @@ -1888,28 +1906,35 @@ public com.google.cloud.dialogflow.cx.v3beta1.Deployment build() { public com.google.cloud.dialogflow.cx.v3beta1.Deployment buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Deployment result = new com.google.cloud.dialogflow.cx.v3beta1.Deployment(this); - result.name_ = name_; - result.flowVersion_ = flowVersion_; - result.state_ = state_; - if (resultBuilder_ == null) { - result.result_ = result_; - } else { - result.result_ = resultBuilder_.build(); - } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); - } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Deployment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.flowVersion_ = flowVersion_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1958,10 +1983,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Deployment other return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFlowVersion().isEmpty()) { flowVersion_ = other.flowVersion_; + bitField0_ |= 0x00000002; onChanged(); } if (other.state_ != 0) { @@ -2005,37 +2032,37 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { flowVersion_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { state_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage(getResultFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 50 default: @@ -2055,6 +2082,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -2122,8 +2151,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2141,8 +2170,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2165,8 +2194,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2238,8 +2267,8 @@ public Builder setFlowVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - flowVersion_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2257,8 +2286,8 @@ public Builder setFlowVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFlowVersion() { - flowVersion_ = getDefaultInstance().getFlowVersion(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2281,8 +2310,8 @@ public Builder setFlowVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - flowVersion_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2316,8 +2345,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2334,9 +2363,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Deployment.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.Deployment.State result = - com.google.cloud.dialogflow.cx.v3beta1.Deployment.State.valueOf(state_); + com.google.cloud.dialogflow.cx.v3beta1.Deployment.State.forNumber(state_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.Deployment.State.UNRECOGNIZED : result; @@ -2357,7 +2385,7 @@ public Builder setState(com.google.cloud.dialogflow.cx.v3beta1.Deployment.State if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; state_ = value.getNumber(); onChanged(); return this; @@ -2374,7 +2402,7 @@ public Builder setState(com.google.cloud.dialogflow.cx.v3beta1.Deployment.State * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000004); state_ = 0; onChanged(); return this; @@ -2398,7 +2426,7 @@ public Builder clearState() { * @return Whether the result field is set. */ public boolean hasResult() { - return resultBuilder_ != null || result_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -2435,11 +2463,11 @@ public Builder setResult(com.google.cloud.dialogflow.cx.v3beta1.Deployment.Resul throw new NullPointerException(); } result_ = value; - onChanged(); } else { resultBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2455,11 +2483,11 @@ public Builder setResult( com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); - onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2473,19 +2501,19 @@ public Builder setResult( */ public Builder mergeResult(com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result value) { if (resultBuilder_ == null) { - if (result_ != null) { - result_ = - com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.newBuilder(result_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && result_ != null + && result_ + != com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.getDefaultInstance()) { + getResultBuilder().mergeFrom(value); } else { result_ = value; } - onChanged(); } else { resultBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2498,14 +2526,13 @@ public Builder mergeResult(com.google.cloud.dialogflow.cx.v3beta1.Deployment.Res * .google.cloud.dialogflow.cx.v3beta1.Deployment.Result result = 4; */ public Builder clearResult() { - if (resultBuilder_ == null) { - result_ = null; - onChanged(); - } else { - result_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + result_ = null; + if (resultBuilder_ != null) { + resultBuilder_.dispose(); resultBuilder_ = null; } - + onChanged(); return this; } /** @@ -2518,7 +2545,7 @@ public Builder clearResult() { * .google.cloud.dialogflow.cx.v3beta1.Deployment.Result result = 4; */ public com.google.cloud.dialogflow.cx.v3beta1.Deployment.Result.Builder getResultBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getResultFieldBuilder().getBuilder(); } @@ -2584,7 +2611,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.Deployment.ResultOrBuilder getResu * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2619,11 +2646,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2638,11 +2665,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2656,17 +2683,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2679,14 +2707,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp start_time = 5; */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2699,7 +2726,7 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 5; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -2763,7 +2790,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2798,11 +2825,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2817,11 +2844,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2835,17 +2862,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2858,14 +2886,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp end_time = 6; */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2878,7 +2905,7 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 6; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentRequest.java index 53fab4d3a946..a2fa9f5b8f3a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentRequest.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SESSION_FIELD_NUMBER = 1; - private volatile java.lang.Object session_; + + @SuppressWarnings("serial") + private volatile java.lang.Object session_ = ""; /** * * @@ -191,7 +193,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.QueryParameters getQueryParams() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.QueryParametersOrBuilder getQueryParamsOrBuilder() { - return getQueryParams(); + return queryParams_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.getDefaultInstance() + : queryParams_; } public static final int QUERY_INPUT_FIELD_NUMBER = 3; @@ -245,7 +249,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.QueryInput getQueryInput() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.QueryInputOrBuilder getQueryInputOrBuilder() { - return getQueryInput(); + return queryInput_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.QueryInput.getDefaultInstance() + : queryInput_; } public static final int OUTPUT_AUDIO_CONFIG_FIELD_NUMBER = 4; @@ -294,7 +300,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig getOutputAudioCo @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() { - return getOutputAudioConfig(); + return outputAudioConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.getDefaultInstance() + : outputAudioConfig_; } private byte memoizedIsInitialized = -1; @@ -537,24 +545,21 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; session_ = ""; - - if (queryParamsBuilder_ == null) { - queryParams_ = null; - } else { - queryParams_ = null; + queryParams_ = null; + if (queryParamsBuilder_ != null) { + queryParamsBuilder_.dispose(); queryParamsBuilder_ = null; } - if (queryInputBuilder_ == null) { - queryInput_ = null; - } else { - queryInput_ = null; + queryInput_ = null; + if (queryInputBuilder_ != null) { + queryInputBuilder_.dispose(); queryInputBuilder_ = null; } - if (outputAudioConfigBuilder_ == null) { - outputAudioConfig_ = null; - } else { - outputAudioConfig_ = null; + outputAudioConfig_ = null; + if (outputAudioConfigBuilder_ != null) { + outputAudioConfigBuilder_.dispose(); outputAudioConfigBuilder_ = null; } return this; @@ -584,26 +589,33 @@ public com.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest(this); - result.session_ = session_; - if (queryParamsBuilder_ == null) { - result.queryParams_ = queryParams_; - } else { - result.queryParams_ = queryParamsBuilder_.build(); - } - if (queryInputBuilder_ == null) { - result.queryInput_ = queryInput_; - } else { - result.queryInput_ = queryInputBuilder_.build(); - } - if (outputAudioConfigBuilder_ == null) { - result.outputAudioConfig_ = outputAudioConfig_; - } else { - result.outputAudioConfig_ = outputAudioConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.session_ = session_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queryParams_ = + queryParamsBuilder_ == null ? queryParams_ : queryParamsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.queryInput_ = queryInputBuilder_ == null ? queryInput_ : queryInputBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.outputAudioConfig_ = + outputAudioConfigBuilder_ == null + ? outputAudioConfig_ + : outputAudioConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -652,6 +664,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequ return this; if (!other.getSession().isEmpty()) { session_ = other.session_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasQueryParams()) { @@ -692,26 +705,26 @@ public Builder mergeFrom( case 10: { session_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getQueryParamsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getQueryInputFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getOutputAudioConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -731,6 +744,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object session_ = ""; /** * @@ -837,8 +852,8 @@ public Builder setSession(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - session_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -869,8 +884,8 @@ public Builder setSession(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSession() { - session_ = getDefaultInstance().getSession(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -906,8 +921,8 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - session_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -930,7 +945,7 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) { * @return Whether the queryParams field is set. */ public boolean hasQueryParams() { - return queryParamsBuilder_ != null || queryParams_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -967,11 +982,11 @@ public Builder setQueryParams(com.google.cloud.dialogflow.cx.v3beta1.QueryParame throw new NullPointerException(); } queryParams_ = value; - onChanged(); } else { queryParamsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -987,11 +1002,11 @@ public Builder setQueryParams( com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.Builder builderForValue) { if (queryParamsBuilder_ == null) { queryParams_ = builderForValue.build(); - onChanged(); } else { queryParamsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1005,19 +1020,19 @@ public Builder setQueryParams( */ public Builder mergeQueryParams(com.google.cloud.dialogflow.cx.v3beta1.QueryParameters value) { if (queryParamsBuilder_ == null) { - if (queryParams_ != null) { - queryParams_ = - com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.newBuilder(queryParams_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && queryParams_ != null + && queryParams_ + != com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.getDefaultInstance()) { + getQueryParamsBuilder().mergeFrom(value); } else { queryParams_ = value; } - onChanged(); } else { queryParamsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1030,14 +1045,13 @@ public Builder mergeQueryParams(com.google.cloud.dialogflow.cx.v3beta1.QueryPara * .google.cloud.dialogflow.cx.v3beta1.QueryParameters query_params = 2; */ public Builder clearQueryParams() { - if (queryParamsBuilder_ == null) { - queryParams_ = null; - onChanged(); - } else { - queryParams_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + queryParams_ = null; + if (queryParamsBuilder_ != null) { + queryParamsBuilder_.dispose(); queryParamsBuilder_ = null; } - + onChanged(); return this; } /** @@ -1050,7 +1064,7 @@ public Builder clearQueryParams() { * .google.cloud.dialogflow.cx.v3beta1.QueryParameters query_params = 2; */ public com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.Builder getQueryParamsBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getQueryParamsFieldBuilder().getBuilder(); } @@ -1119,7 +1133,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.Builder getQueryPa * @return Whether the queryInput field is set. */ public boolean hasQueryInput() { - return queryInputBuilder_ != null || queryInput_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1160,11 +1174,11 @@ public Builder setQueryInput(com.google.cloud.dialogflow.cx.v3beta1.QueryInput v throw new NullPointerException(); } queryInput_ = value; - onChanged(); } else { queryInputBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1182,11 +1196,11 @@ public Builder setQueryInput( com.google.cloud.dialogflow.cx.v3beta1.QueryInput.Builder builderForValue) { if (queryInputBuilder_ == null) { queryInput_ = builderForValue.build(); - onChanged(); } else { queryInputBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1202,19 +1216,19 @@ public Builder setQueryInput( */ public Builder mergeQueryInput(com.google.cloud.dialogflow.cx.v3beta1.QueryInput value) { if (queryInputBuilder_ == null) { - if (queryInput_ != null) { - queryInput_ = - com.google.cloud.dialogflow.cx.v3beta1.QueryInput.newBuilder(queryInput_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && queryInput_ != null + && queryInput_ + != com.google.cloud.dialogflow.cx.v3beta1.QueryInput.getDefaultInstance()) { + getQueryInputBuilder().mergeFrom(value); } else { queryInput_ = value; } - onChanged(); } else { queryInputBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1229,14 +1243,13 @@ public Builder mergeQueryInput(com.google.cloud.dialogflow.cx.v3beta1.QueryInput * */ public Builder clearQueryInput() { - if (queryInputBuilder_ == null) { - queryInput_ = null; - onChanged(); - } else { - queryInput_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + queryInput_ = null; + if (queryInputBuilder_ != null) { + queryInputBuilder_.dispose(); queryInputBuilder_ = null; } - + onChanged(); return this; } /** @@ -1251,7 +1264,7 @@ public Builder clearQueryInput() { * */ public com.google.cloud.dialogflow.cx.v3beta1.QueryInput.Builder getQueryInputBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getQueryInputFieldBuilder().getBuilder(); } @@ -1321,7 +1334,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.QueryInputOrBuilder getQueryInputO * @return Whether the outputAudioConfig field is set. */ public boolean hasOutputAudioConfig() { - return outputAudioConfigBuilder_ != null || outputAudioConfig_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1359,11 +1372,11 @@ public Builder setOutputAudioConfig( throw new NullPointerException(); } outputAudioConfig_ = value; - onChanged(); } else { outputAudioConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1379,11 +1392,11 @@ public Builder setOutputAudioConfig( com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.Builder builderForValue) { if (outputAudioConfigBuilder_ == null) { outputAudioConfig_ = builderForValue.build(); - onChanged(); } else { outputAudioConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1398,20 +1411,19 @@ public Builder setOutputAudioConfig( public Builder mergeOutputAudioConfig( com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig value) { if (outputAudioConfigBuilder_ == null) { - if (outputAudioConfig_ != null) { - outputAudioConfig_ = - com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.newBuilder( - outputAudioConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && outputAudioConfig_ != null + && outputAudioConfig_ + != com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.getDefaultInstance()) { + getOutputAudioConfigBuilder().mergeFrom(value); } else { outputAudioConfig_ = value; } - onChanged(); } else { outputAudioConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1424,14 +1436,13 @@ public Builder mergeOutputAudioConfig( * .google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig output_audio_config = 4; */ public Builder clearOutputAudioConfig() { - if (outputAudioConfigBuilder_ == null) { - outputAudioConfig_ = null; - onChanged(); - } else { - outputAudioConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + outputAudioConfig_ = null; + if (outputAudioConfigBuilder_ != null) { + outputAudioConfigBuilder_.dispose(); outputAudioConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1445,7 +1456,7 @@ public Builder clearOutputAudioConfig() { */ public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.Builder getOutputAudioConfigBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getOutputAudioConfigFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponse.java index 7bcde390273d..2bdedfda8d1d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponse.java @@ -233,7 +233,9 @@ private ResponseType(int value) { } public static final int RESPONSE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object responseId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object responseId_ = ""; /** * * @@ -328,11 +330,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.QueryResult getQueryResult() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.QueryResultOrBuilder getQueryResultOrBuilder() { - return getQueryResult(); + return queryResult_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.QueryResult.getDefaultInstance() + : queryResult_; } public static final int OUTPUT_AUDIO_FIELD_NUMBER = 4; - private com.google.protobuf.ByteString outputAudio_; + private com.google.protobuf.ByteString outputAudio_ = com.google.protobuf.ByteString.EMPTY; /** * * @@ -404,11 +408,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig getOutputAudioCo @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() { - return getOutputAudioConfig(); + return outputAudioConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.getDefaultInstance() + : outputAudioConfig_; } public static final int RESPONSE_TYPE_FIELD_NUMBER = 6; - private int responseType_; + private int responseType_ = 0; /** * * @@ -440,9 +446,8 @@ public int getResponseTypeValue() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType getResponseType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType result = - com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType.forNumber( responseType_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType.UNRECOGNIZED @@ -450,7 +455,7 @@ public int getResponseTypeValue() { } public static final int ALLOW_CANCELLATION_FIELD_NUMBER = 7; - private boolean allowCancellation_; + private boolean allowCancellation_ = false; /** * * @@ -728,26 +733,21 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; responseId_ = ""; - - if (queryResultBuilder_ == null) { - queryResult_ = null; - } else { - queryResult_ = null; + queryResult_ = null; + if (queryResultBuilder_ != null) { + queryResultBuilder_.dispose(); queryResultBuilder_ = null; } outputAudio_ = com.google.protobuf.ByteString.EMPTY; - - if (outputAudioConfigBuilder_ == null) { - outputAudioConfig_ = null; - } else { - outputAudioConfig_ = null; + outputAudioConfig_ = null; + if (outputAudioConfigBuilder_ != null) { + outputAudioConfigBuilder_.dispose(); outputAudioConfigBuilder_ = null; } responseType_ = 0; - allowCancellation_ = false; - return this; } @@ -775,24 +775,39 @@ public com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse result = new com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse(this); - result.responseId_ = responseId_; - if (queryResultBuilder_ == null) { - result.queryResult_ = queryResult_; - } else { - result.queryResult_ = queryResultBuilder_.build(); - } - result.outputAudio_ = outputAudio_; - if (outputAudioConfigBuilder_ == null) { - result.outputAudioConfig_ = outputAudioConfig_; - } else { - result.outputAudioConfig_ = outputAudioConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.responseType_ = responseType_; - result.allowCancellation_ = allowCancellation_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.responseId_ = responseId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queryResult_ = + queryResultBuilder_ == null ? queryResult_ : queryResultBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outputAudio_ = outputAudio_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.outputAudioConfig_ = + outputAudioConfigBuilder_ == null + ? outputAudioConfig_ + : outputAudioConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.responseType_ = responseType_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.allowCancellation_ = allowCancellation_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -841,6 +856,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResp return this; if (!other.getResponseId().isEmpty()) { responseId_ = other.responseId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasQueryResult()) { @@ -887,38 +903,38 @@ public Builder mergeFrom( case 10: { responseId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getQueryResultFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 34: { outputAudio_ = input.readBytes(); - + bitField0_ |= 0x00000004; break; } // case 34 case 42: { input.readMessage( getOutputAudioConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 42 case 48: { responseType_ = input.readEnum(); - + bitField0_ |= 0x00000010; break; } // case 48 case 56: { allowCancellation_ = input.readBool(); - + bitField0_ |= 0x00000020; break; } // case 56 default: @@ -938,6 +954,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object responseId_ = ""; /** * @@ -1002,8 +1020,8 @@ public Builder setResponseId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - responseId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1020,8 +1038,8 @@ public Builder setResponseId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearResponseId() { - responseId_ = getDefaultInstance().getResponseId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1043,8 +1061,8 @@ public Builder setResponseIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - responseId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1067,7 +1085,7 @@ public Builder setResponseIdBytes(com.google.protobuf.ByteString value) { * @return Whether the queryResult field is set. */ public boolean hasQueryResult() { - return queryResultBuilder_ != null || queryResult_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1104,11 +1122,11 @@ public Builder setQueryResult(com.google.cloud.dialogflow.cx.v3beta1.QueryResult throw new NullPointerException(); } queryResult_ = value; - onChanged(); } else { queryResultBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1124,11 +1142,11 @@ public Builder setQueryResult( com.google.cloud.dialogflow.cx.v3beta1.QueryResult.Builder builderForValue) { if (queryResultBuilder_ == null) { queryResult_ = builderForValue.build(); - onChanged(); } else { queryResultBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1142,19 +1160,19 @@ public Builder setQueryResult( */ public Builder mergeQueryResult(com.google.cloud.dialogflow.cx.v3beta1.QueryResult value) { if (queryResultBuilder_ == null) { - if (queryResult_ != null) { - queryResult_ = - com.google.cloud.dialogflow.cx.v3beta1.QueryResult.newBuilder(queryResult_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && queryResult_ != null + && queryResult_ + != com.google.cloud.dialogflow.cx.v3beta1.QueryResult.getDefaultInstance()) { + getQueryResultBuilder().mergeFrom(value); } else { queryResult_ = value; } - onChanged(); } else { queryResultBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1167,14 +1185,13 @@ public Builder mergeQueryResult(com.google.cloud.dialogflow.cx.v3beta1.QueryResu * .google.cloud.dialogflow.cx.v3beta1.QueryResult query_result = 2; */ public Builder clearQueryResult() { - if (queryResultBuilder_ == null) { - queryResult_ = null; - onChanged(); - } else { - queryResult_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + queryResult_ = null; + if (queryResultBuilder_ != null) { + queryResultBuilder_.dispose(); queryResultBuilder_ = null; } - + onChanged(); return this; } /** @@ -1187,7 +1204,7 @@ public Builder clearQueryResult() { * .google.cloud.dialogflow.cx.v3beta1.QueryResult query_result = 2; */ public com.google.cloud.dialogflow.cx.v3beta1.QueryResult.Builder getQueryResultBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getQueryResultFieldBuilder().getBuilder(); } @@ -1285,8 +1302,8 @@ public Builder setOutputAudio(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - outputAudio_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1311,7 +1328,7 @@ public Builder setOutputAudio(com.google.protobuf.ByteString value) { * @return This builder for chaining. */ public Builder clearOutputAudio() { - + bitField0_ = (bitField0_ & ~0x00000004); outputAudio_ = getDefaultInstance().getOutputAudio(); onChanged(); return this; @@ -1335,7 +1352,7 @@ public Builder clearOutputAudio() { * @return Whether the outputAudioConfig field is set. */ public boolean hasOutputAudioConfig() { - return outputAudioConfigBuilder_ != null || outputAudioConfig_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1373,11 +1390,11 @@ public Builder setOutputAudioConfig( throw new NullPointerException(); } outputAudioConfig_ = value; - onChanged(); } else { outputAudioConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1393,11 +1410,11 @@ public Builder setOutputAudioConfig( com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.Builder builderForValue) { if (outputAudioConfigBuilder_ == null) { outputAudioConfig_ = builderForValue.build(); - onChanged(); } else { outputAudioConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1412,20 +1429,19 @@ public Builder setOutputAudioConfig( public Builder mergeOutputAudioConfig( com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig value) { if (outputAudioConfigBuilder_ == null) { - if (outputAudioConfig_ != null) { - outputAudioConfig_ = - com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.newBuilder( - outputAudioConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && outputAudioConfig_ != null + && outputAudioConfig_ + != com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.getDefaultInstance()) { + getOutputAudioConfigBuilder().mergeFrom(value); } else { outputAudioConfig_ = value; } - onChanged(); } else { outputAudioConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1438,14 +1454,13 @@ public Builder mergeOutputAudioConfig( * .google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig output_audio_config = 5; */ public Builder clearOutputAudioConfig() { - if (outputAudioConfigBuilder_ == null) { - outputAudioConfig_ = null; - onChanged(); - } else { - outputAudioConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + outputAudioConfig_ = null; + if (outputAudioConfigBuilder_ != null) { + outputAudioConfigBuilder_.dispose(); outputAudioConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1459,7 +1474,7 @@ public Builder clearOutputAudioConfig() { */ public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.Builder getOutputAudioConfigBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getOutputAudioConfigFieldBuilder().getBuilder(); } @@ -1541,8 +1556,8 @@ public int getResponseTypeValue() { * @return This builder for chaining. */ public Builder setResponseTypeValue(int value) { - responseType_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1562,9 +1577,8 @@ public Builder setResponseTypeValue(int value) { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType getResponseType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType result = - com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType.forNumber( responseType_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.ResponseType.UNRECOGNIZED @@ -1589,7 +1603,7 @@ public Builder setResponseType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000010; responseType_ = value.getNumber(); onChanged(); return this; @@ -1608,7 +1622,7 @@ public Builder setResponseType( * @return This builder for chaining. */ public Builder clearResponseType() { - + bitField0_ = (bitField0_ & ~0x00000010); responseType_ = 0; onChanged(); return this; @@ -1649,6 +1663,7 @@ public boolean getAllowCancellation() { public Builder setAllowCancellation(boolean value) { allowCancellation_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1666,7 +1681,7 @@ public Builder setAllowCancellation(boolean value) { * @return This builder for chaining. */ public Builder clearAllowCancellation() { - + bitField0_ = (bitField0_ & ~0x00000020); allowCancellation_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DtmfInput.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DtmfInput.java index a98bbc2029a4..0399aa600bb4 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DtmfInput.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DtmfInput.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DIGITS_FIELD_NUMBER = 1; - private volatile java.lang.Object digits_; + + @SuppressWarnings("serial") + private volatile java.lang.Object digits_ = ""; /** * * @@ -118,7 +120,9 @@ public com.google.protobuf.ByteString getDigitsBytes() { } public static final int FINISH_DIGIT_FIELD_NUMBER = 2; - private volatile java.lang.Object finishDigit_; + + @SuppressWarnings("serial") + private volatile java.lang.Object finishDigit_ = ""; /** * * @@ -372,10 +376,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; digits_ = ""; - finishDigit_ = ""; - return this; } @@ -403,12 +406,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.DtmfInput build() { public com.google.cloud.dialogflow.cx.v3beta1.DtmfInput buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.DtmfInput result = new com.google.cloud.dialogflow.cx.v3beta1.DtmfInput(this); - result.digits_ = digits_; - result.finishDigit_ = finishDigit_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.DtmfInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.digits_ = digits_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.finishDigit_ = finishDigit_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -457,10 +471,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.DtmfInput other) return this; if (!other.getDigits().isEmpty()) { digits_ = other.digits_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFinishDigit().isEmpty()) { finishDigit_ = other.finishDigit_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -492,13 +508,13 @@ public Builder mergeFrom( case 10: { digits_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { finishDigit_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -518,6 +534,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object digits_ = ""; /** * @@ -579,8 +597,8 @@ public Builder setDigits(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - digits_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -596,8 +614,8 @@ public Builder setDigits(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDigits() { - digits_ = getDefaultInstance().getDigits(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -618,8 +636,8 @@ public Builder setDigitsBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - digits_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -685,8 +703,8 @@ public Builder setFinishDigit(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - finishDigit_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -702,8 +720,8 @@ public Builder setFinishDigit(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFinishDigit() { - finishDigit_ = getDefaultInstance().getFinishDigit(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -724,8 +742,8 @@ public Builder setFinishDigitBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - finishDigit_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityType.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityType.java index 80ee21e42aac..79cf7e47cc9f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityType.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityType.java @@ -589,7 +589,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUE_FIELD_NUMBER = 1; - private volatile java.lang.Object value_; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; /** * * @@ -652,6 +654,8 @@ public com.google.protobuf.ByteString getValueBytes() { } public static final int SYNONYMS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList synonyms_; /** * @@ -944,10 +948,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; value_ = ""; - synonyms_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -975,17 +979,30 @@ public com.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity build() { public com.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity result = new com.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity(this); - int from_bitField0_ = bitField0_; - result.value_ = value_; - if (((bitField0_ & 0x00000001) != 0)) { - synonyms_ = synonyms_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.synonyms_ = synonyms_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity result) { + if (((bitField0_ & 0x00000002) != 0)) { + synonyms_ = synonyms_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.synonyms_ = synonyms_; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1036,12 +1053,13 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.EntityType.Entit return this; if (!other.getValue().isEmpty()) { value_ = other.value_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.synonyms_.isEmpty()) { if (synonyms_.isEmpty()) { synonyms_ = other.synonyms_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureSynonymsIsMutable(); synonyms_.addAll(other.synonyms_); @@ -1077,7 +1095,7 @@ public Builder mergeFrom( case 10: { value_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -1188,8 +1206,8 @@ public Builder setValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - value_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1212,8 +1230,8 @@ public Builder setValue(java.lang.String value) { * @return This builder for chaining. */ public Builder clearValue() { - value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1241,8 +1259,8 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - value_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1251,9 +1269,9 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureSynonymsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { synonyms_ = new com.google.protobuf.LazyStringArrayList(synonyms_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -1420,7 +1438,7 @@ public Builder addAllSynonyms(java.lang.Iterable values) { */ public Builder clearSynonyms() { synonyms_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1595,7 +1613,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VALUE_FIELD_NUMBER = 1; - private volatile java.lang.Object value_; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; /** * * @@ -1845,8 +1865,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; value_ = ""; - return this; } @@ -1876,11 +1896,21 @@ public com.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase build() public com.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase result = new com.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase(this); - result.value_ = value_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1934,6 +1964,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getValue().isEmpty()) { value_ = other.value_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1965,7 +1996,7 @@ public Builder mergeFrom( case 10: { value_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -1985,6 +2016,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object value_ = ""; /** * @@ -2046,8 +2079,8 @@ public Builder setValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - value_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2063,8 +2096,8 @@ public Builder setValue(java.lang.String value) { * @return This builder for chaining. */ public Builder clearValue() { - value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2085,8 +2118,8 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - value_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2159,7 +2192,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -2216,7 +2251,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -2267,7 +2304,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int KIND_FIELD_NUMBER = 3; - private int kind_; + private int kind_ = 0; /** * * @@ -2300,16 +2337,15 @@ public int getKindValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.EntityType.Kind getKind() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.EntityType.Kind result = - com.google.cloud.dialogflow.cx.v3beta1.EntityType.Kind.valueOf(kind_); + com.google.cloud.dialogflow.cx.v3beta1.EntityType.Kind.forNumber(kind_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.EntityType.Kind.UNRECOGNIZED : result; } public static final int AUTO_EXPANSION_MODE_FIELD_NUMBER = 4; - private int autoExpansionMode_; + private int autoExpansionMode_ = 0; /** * * @@ -2341,9 +2377,8 @@ public int getAutoExpansionModeValue() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode getAutoExpansionMode() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode result = - com.google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode.forNumber( autoExpansionMode_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode.UNRECOGNIZED @@ -2351,6 +2386,8 @@ public int getAutoExpansionModeValue() { } public static final int ENTITIES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private java.util.List entities_; /** * @@ -2422,6 +2459,8 @@ public com.google.cloud.dialogflow.cx.v3beta1.EntityType.EntityOrBuilder getEnti } public static final int EXCLUDED_PHRASES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") private java.util.List excludedPhrases_; /** @@ -2526,7 +2565,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase getExclu } public static final int ENABLE_FUZZY_EXTRACTION_FIELD_NUMBER = 7; - private boolean enableFuzzyExtraction_; + private boolean enableFuzzyExtraction_ = false; /** * * @@ -2544,7 +2583,7 @@ public boolean getEnableFuzzyExtraction() { } public static final int REDACT_FIELD_NUMBER = 9; - private boolean redact_; + private boolean redact_ = false; /** * * @@ -2857,32 +2896,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - kind_ = 0; - autoExpansionMode_ = 0; - if (entitiesBuilder_ == null) { entities_ = java.util.Collections.emptyList(); } else { entities_ = null; entitiesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); if (excludedPhrasesBuilder_ == null) { excludedPhrases_ = java.util.Collections.emptyList(); } else { excludedPhrases_ = null; excludedPhrasesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); enableFuzzyExtraction_ = false; - redact_ = false; - return this; } @@ -2910,33 +2944,56 @@ public com.google.cloud.dialogflow.cx.v3beta1.EntityType build() { public com.google.cloud.dialogflow.cx.v3beta1.EntityType buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.EntityType result = new com.google.cloud.dialogflow.cx.v3beta1.EntityType(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.kind_ = kind_; - result.autoExpansionMode_ = autoExpansionMode_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.EntityType result) { if (entitiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { entities_ = java.util.Collections.unmodifiableList(entities_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } result.entities_ = entities_; } else { result.entities_ = entitiesBuilder_.build(); } if (excludedPhrasesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { excludedPhrases_ = java.util.Collections.unmodifiableList(excludedPhrases_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } result.excludedPhrases_ = excludedPhrases_; } else { result.excludedPhrases_ = excludedPhrasesBuilder_.build(); } - result.enableFuzzyExtraction_ = enableFuzzyExtraction_; - result.redact_ = redact_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.EntityType result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.kind_ = kind_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.autoExpansionMode_ = autoExpansionMode_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.enableFuzzyExtraction_ = enableFuzzyExtraction_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.redact_ = redact_; + } } @java.lang.Override @@ -2987,10 +3044,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.EntityType other return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.kind_ != 0) { @@ -3003,7 +3062,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.EntityType other if (!other.entities_.isEmpty()) { if (entities_.isEmpty()) { entities_ = other.entities_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureEntitiesIsMutable(); entities_.addAll(other.entities_); @@ -3016,7 +3075,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.EntityType other entitiesBuilder_.dispose(); entitiesBuilder_ = null; entities_ = other.entities_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); entitiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntitiesFieldBuilder() @@ -3030,7 +3089,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.EntityType other if (!other.excludedPhrases_.isEmpty()) { if (excludedPhrases_.isEmpty()) { excludedPhrases_ = other.excludedPhrases_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureExcludedPhrasesIsMutable(); excludedPhrases_.addAll(other.excludedPhrases_); @@ -3043,7 +3102,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.EntityType other excludedPhrasesBuilder_.dispose(); excludedPhrasesBuilder_ = null; excludedPhrases_ = other.excludedPhrases_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); excludedPhrasesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getExcludedPhrasesFieldBuilder() @@ -3088,25 +3147,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { kind_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 24 case 32: { autoExpansionMode_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 case 42: @@ -3140,13 +3199,13 @@ public Builder mergeFrom( case 56: { enableFuzzyExtraction_ = input.readBool(); - + bitField0_ |= 0x00000040; break; } // case 56 case 72: { redact_ = input.readBool(); - + bitField0_ |= 0x00000080; break; } // case 72 default: @@ -3241,8 +3300,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3262,8 +3321,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3288,8 +3347,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3358,8 +3417,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3376,8 +3435,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3399,8 +3458,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3438,8 +3497,8 @@ public int getKindValue() { * @return This builder for chaining. */ public Builder setKindValue(int value) { - kind_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3458,9 +3517,8 @@ public Builder setKindValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.EntityType.Kind getKind() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.EntityType.Kind result = - com.google.cloud.dialogflow.cx.v3beta1.EntityType.Kind.valueOf(kind_); + com.google.cloud.dialogflow.cx.v3beta1.EntityType.Kind.forNumber(kind_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.EntityType.Kind.UNRECOGNIZED : result; @@ -3483,7 +3541,7 @@ public Builder setKind(com.google.cloud.dialogflow.cx.v3beta1.EntityType.Kind va if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; kind_ = value.getNumber(); onChanged(); return this; @@ -3502,7 +3560,7 @@ public Builder setKind(com.google.cloud.dialogflow.cx.v3beta1.EntityType.Kind va * @return This builder for chaining. */ public Builder clearKind() { - + bitField0_ = (bitField0_ & ~0x00000004); kind_ = 0; onChanged(); return this; @@ -3541,8 +3599,8 @@ public int getAutoExpansionModeValue() { * @return This builder for chaining. */ public Builder setAutoExpansionModeValue(int value) { - autoExpansionMode_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3562,9 +3620,8 @@ public Builder setAutoExpansionModeValue(int value) { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode getAutoExpansionMode() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode result = - com.google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode.forNumber( autoExpansionMode_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.EntityType.AutoExpansionMode.UNRECOGNIZED @@ -3589,7 +3646,7 @@ public Builder setAutoExpansionMode( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; autoExpansionMode_ = value.getNumber(); onChanged(); return this; @@ -3608,7 +3665,7 @@ public Builder setAutoExpansionMode( * @return This builder for chaining. */ public Builder clearAutoExpansionMode() { - + bitField0_ = (bitField0_ & ~0x00000008); autoExpansionMode_ = 0; onChanged(); return this; @@ -3618,11 +3675,11 @@ public Builder clearAutoExpansionMode() { java.util.Collections.emptyList(); private void ensureEntitiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { entities_ = new java.util.ArrayList( entities_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000010; } } @@ -3844,7 +3901,7 @@ public Builder addAllEntities( public Builder clearEntities() { if (entitiesBuilder_ == null) { entities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { entitiesBuilder_.clear(); @@ -3972,7 +4029,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.Builder addEntit com.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity, com.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.Builder, com.google.cloud.dialogflow.cx.v3beta1.EntityType.EntityOrBuilder>( - entities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entities_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); entities_ = null; } return entitiesBuilder_; @@ -3982,11 +4039,11 @@ public com.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.Builder addEntit excludedPhrases_ = java.util.Collections.emptyList(); private void ensureExcludedPhrasesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { excludedPhrases_ = new java.util.ArrayList< com.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase>(excludedPhrases_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000020; } } @@ -4277,7 +4334,7 @@ public Builder addAllExcludedPhrases( public Builder clearExcludedPhrases() { if (excludedPhrasesBuilder_ == null) { excludedPhrases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { excludedPhrasesBuilder_.clear(); @@ -4452,7 +4509,7 @@ public Builder removeExcludedPhrases(int index) { com.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhrase.Builder, com.google.cloud.dialogflow.cx.v3beta1.EntityType.ExcludedPhraseOrBuilder>( excludedPhrases_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); excludedPhrases_ = null; @@ -4491,6 +4548,7 @@ public boolean getEnableFuzzyExtraction() { public Builder setEnableFuzzyExtraction(boolean value) { enableFuzzyExtraction_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4506,7 +4564,7 @@ public Builder setEnableFuzzyExtraction(boolean value) { * @return This builder for chaining. */ public Builder clearEnableFuzzyExtraction() { - + bitField0_ = (bitField0_ & ~0x00000040); enableFuzzyExtraction_ = false; onChanged(); return this; @@ -4547,6 +4605,7 @@ public boolean getRedact() { public Builder setRedact(boolean value) { redact_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4564,7 +4623,7 @@ public Builder setRedact(boolean value) { * @return This builder for chaining. */ public Builder clearRedact() { - + bitField0_ = (bitField0_ & ~0x00000080); redact_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Environment.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Environment.java index 66b669f10a26..de4d3e83681f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Environment.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Environment.java @@ -163,7 +163,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object version_; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; /** * * @@ -419,8 +421,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; version_ = ""; - return this; } @@ -450,11 +452,21 @@ public com.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig build() public com.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig result = new com.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig(this); - result.version_ = version_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -508,6 +520,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -539,7 +552,7 @@ public Builder mergeFrom( case 10: { version_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -559,6 +572,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object version_ = ""; /** * @@ -629,8 +644,8 @@ public Builder setVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - version_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -649,8 +664,8 @@ public Builder setVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -674,8 +689,8 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - version_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -891,6 +906,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TEST_CASES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList testCases_; /** * @@ -960,7 +977,7 @@ public com.google.protobuf.ByteString getTestCasesBytes(int index) { } public static final int ENABLE_CONTINUOUS_RUN_FIELD_NUMBER = 2; - private boolean enableContinuousRun_; + private boolean enableContinuousRun_ = false; /** * * @@ -980,7 +997,7 @@ public boolean getEnableContinuousRun() { } public static final int ENABLE_PREDEPLOYMENT_RUN_FIELD_NUMBER = 3; - private boolean enablePredeploymentRun_; + private boolean enablePredeploymentRun_ = false; /** * * @@ -1226,12 +1243,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; testCases_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); enableContinuousRun_ = false; - enablePredeploymentRun_ = false; - return this; } @@ -1261,16 +1277,32 @@ public com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig build( public com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig result = new com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig result) { if (((bitField0_ & 0x00000001) != 0)) { testCases_ = testCases_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.testCases_ = testCases_; - result.enableContinuousRun_ = enableContinuousRun_; - result.enablePredeploymentRun_ = enablePredeploymentRun_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableContinuousRun_ = enableContinuousRun_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enablePredeploymentRun_ = enablePredeploymentRun_; + } } @java.lang.Override @@ -1376,13 +1408,13 @@ public Builder mergeFrom( case 16: { enableContinuousRun_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { enablePredeploymentRun_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -1625,6 +1657,7 @@ public boolean getEnableContinuousRun() { public Builder setEnableContinuousRun(boolean value) { enableContinuousRun_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1642,7 +1675,7 @@ public Builder setEnableContinuousRun(boolean value) { * @return This builder for chaining. */ public Builder clearEnableContinuousRun() { - + bitField0_ = (bitField0_ & ~0x00000002); enableContinuousRun_ = false; onChanged(); return this; @@ -1683,6 +1716,7 @@ public boolean getEnablePredeploymentRun() { public Builder setEnablePredeploymentRun(boolean value) { enablePredeploymentRun_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1700,7 +1734,7 @@ public Builder setEnablePredeploymentRun(boolean value) { * @return This builder for chaining. */ public Builder clearEnablePredeploymentRun() { - + bitField0_ = (bitField0_ & ~0x00000004); enablePredeploymentRun_ = false; onChanged(); return this; @@ -1900,6 +1934,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int WEBHOOK_OVERRIDES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List webhookOverrides_; /** * @@ -2195,6 +2231,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (webhookOverridesBuilder_ == null) { webhookOverrides_ = java.util.Collections.emptyList(); } else { @@ -2231,7 +2268,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig build() public com.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig result = new com.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig result) { if (webhookOverridesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { webhookOverrides_ = java.util.Collections.unmodifiableList(webhookOverrides_); @@ -2241,8 +2287,11 @@ public com.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig buildPar } else { result.webhookOverrides_ = webhookOverridesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -2883,7 +2932,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -2936,7 +2987,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -2987,7 +3040,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -3038,6 +3093,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int VERSION_CONFIGS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") private java.util.List versionConfigs_; /** @@ -3182,7 +3239,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int TEST_CASES_CONFIG_FIELD_NUMBER = 7; @@ -3234,7 +3291,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig getTes @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfigOrBuilder getTestCasesConfigOrBuilder() { - return getTestCasesConfig(); + return testCasesConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.getDefaultInstance() + : testCasesConfig_; } public static final int WEBHOOK_CONFIG_FIELD_NUMBER = 10; @@ -3283,7 +3342,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig getWebho @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfigOrBuilder getWebhookConfigOrBuilder() { - return getWebhookConfig(); + return webhookConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.getDefaultInstance() + : webhookConfig_; } private byte memoizedIsInitialized = -1; @@ -3561,35 +3622,30 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - if (versionConfigsBuilder_ == null) { versionConfigs_ = java.util.Collections.emptyList(); } else { versionConfigs_ = null; versionConfigsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - if (testCasesConfigBuilder_ == null) { - testCasesConfig_ = null; - } else { - testCasesConfig_ = null; + testCasesConfig_ = null; + if (testCasesConfigBuilder_ != null) { + testCasesConfigBuilder_.dispose(); testCasesConfigBuilder_ = null; } - if (webhookConfigBuilder_ == null) { - webhookConfig_ = null; - } else { - webhookConfig_ = null; + webhookConfig_ = null; + if (webhookConfigBuilder_ != null) { + webhookConfigBuilder_.dispose(); webhookConfigBuilder_ = null; } return this; @@ -3619,36 +3675,49 @@ public com.google.cloud.dialogflow.cx.v3beta1.Environment build() { public com.google.cloud.dialogflow.cx.v3beta1.Environment buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Environment result = new com.google.cloud.dialogflow.cx.v3beta1.Environment(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.Environment result) { if (versionConfigsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { versionConfigs_ = java.util.Collections.unmodifiableList(versionConfigs_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.versionConfigs_ = versionConfigs_; } else { result.versionConfigs_ = versionConfigsBuilder_.build(); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Environment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (testCasesConfigBuilder_ == null) { - result.testCasesConfig_ = testCasesConfig_; - } else { - result.testCasesConfig_ = testCasesConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (webhookConfigBuilder_ == null) { - result.webhookConfig_ = webhookConfig_; - } else { - result.webhookConfig_ = webhookConfigBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.testCasesConfig_ = + testCasesConfigBuilder_ == null ? testCasesConfig_ : testCasesConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.webhookConfig_ = + webhookConfigBuilder_ == null ? webhookConfig_ : webhookConfigBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -3699,21 +3768,24 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Environment othe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (versionConfigsBuilder_ == null) { if (!other.versionConfigs_.isEmpty()) { if (versionConfigs_.isEmpty()) { versionConfigs_ = other.versionConfigs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureVersionConfigsIsMutable(); versionConfigs_.addAll(other.versionConfigs_); @@ -3726,7 +3798,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Environment othe versionConfigsBuilder_.dispose(); versionConfigsBuilder_ = null; versionConfigs_ = other.versionConfigs_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); versionConfigsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVersionConfigsFieldBuilder() @@ -3774,25 +3846,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 42: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: @@ -3812,13 +3884,13 @@ public Builder mergeFrom( case 58: { input.readMessage(getTestCasesConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 58 case 82: { input.readMessage(getWebhookConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 82 default: @@ -3907,8 +3979,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3926,8 +3998,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3950,8 +4022,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4020,8 +4092,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4038,8 +4110,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -4061,8 +4133,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4131,8 +4203,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4149,8 +4221,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -4172,8 +4244,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4182,11 +4254,11 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { versionConfigs_ = java.util.Collections.emptyList(); private void ensureVersionConfigsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { versionConfigs_ = new java.util.ArrayList< com.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig>(versionConfigs_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -4466,7 +4538,7 @@ public Builder addAllVersionConfigs( public Builder clearVersionConfigs() { if (versionConfigsBuilder_ == null) { versionConfigs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { versionConfigsBuilder_.clear(); @@ -4634,7 +4706,7 @@ public Builder removeVersionConfigs(int index) { com.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfig.Builder, com.google.cloud.dialogflow.cx.v3beta1.Environment.VersionConfigOrBuilder>( versionConfigs_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); versionConfigs_ = null; @@ -4662,7 +4734,7 @@ public Builder removeVersionConfigs(int index) { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -4703,11 +4775,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4724,11 +4796,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4744,17 +4816,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4769,14 +4842,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -4791,7 +4863,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } @@ -4862,7 +4934,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the testCasesConfig field is set. */ public boolean hasTestCasesConfig() { - return testCasesConfigBuilder_ != null || testCasesConfig_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -4903,11 +4975,11 @@ public Builder setTestCasesConfig( throw new NullPointerException(); } testCasesConfig_ = value; - onChanged(); } else { testCasesConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -4925,11 +4997,11 @@ public Builder setTestCasesConfig( builderForValue) { if (testCasesConfigBuilder_ == null) { testCasesConfig_ = builderForValue.build(); - onChanged(); } else { testCasesConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -4945,20 +5017,20 @@ public Builder setTestCasesConfig( public Builder mergeTestCasesConfig( com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig value) { if (testCasesConfigBuilder_ == null) { - if (testCasesConfig_ != null) { - testCasesConfig_ = - com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.newBuilder( - testCasesConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && testCasesConfig_ != null + && testCasesConfig_ + != com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig + .getDefaultInstance()) { + getTestCasesConfigBuilder().mergeFrom(value); } else { testCasesConfig_ = value; } - onChanged(); } else { testCasesConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -4972,14 +5044,13 @@ public Builder mergeTestCasesConfig( * */ public Builder clearTestCasesConfig() { - if (testCasesConfigBuilder_ == null) { - testCasesConfig_ = null; - onChanged(); - } else { - testCasesConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + testCasesConfig_ = null; + if (testCasesConfigBuilder_ != null) { + testCasesConfigBuilder_.dispose(); testCasesConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -4994,7 +5065,7 @@ public Builder clearTestCasesConfig() { */ public com.google.cloud.dialogflow.cx.v3beta1.Environment.TestCasesConfig.Builder getTestCasesConfigBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getTestCasesConfigFieldBuilder().getBuilder(); } @@ -5065,7 +5136,7 @@ public Builder clearTestCasesConfig() { * @return Whether the webhookConfig field is set. */ public boolean hasWebhookConfig() { - return webhookConfigBuilder_ != null || webhookConfig_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -5105,11 +5176,11 @@ public Builder setWebhookConfig( throw new NullPointerException(); } webhookConfig_ = value; - onChanged(); } else { webhookConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -5126,11 +5197,11 @@ public Builder setWebhookConfig( com.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.Builder builderForValue) { if (webhookConfigBuilder_ == null) { webhookConfig_ = builderForValue.build(); - onChanged(); } else { webhookConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -5146,20 +5217,20 @@ public Builder setWebhookConfig( public Builder mergeWebhookConfig( com.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig value) { if (webhookConfigBuilder_ == null) { - if (webhookConfig_ != null) { - webhookConfig_ = - com.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.newBuilder( - webhookConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && webhookConfig_ != null + && webhookConfig_ + != com.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig + .getDefaultInstance()) { + getWebhookConfigBuilder().mergeFrom(value); } else { webhookConfig_ = value; } - onChanged(); } else { webhookConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -5173,14 +5244,13 @@ public Builder mergeWebhookConfig( * */ public Builder clearWebhookConfig() { - if (webhookConfigBuilder_ == null) { - webhookConfig_ = null; - onChanged(); - } else { - webhookConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + webhookConfig_ = null; + if (webhookConfigBuilder_ != null) { + webhookConfigBuilder_.dispose(); webhookConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -5195,7 +5265,7 @@ public Builder clearWebhookConfig() { */ public com.google.cloud.dialogflow.cx.v3beta1.Environment.WebhookConfig.Builder getWebhookConfigBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getWebhookConfigFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventHandler.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventHandler.java index bcda46a700b6..aceaf84f9a33 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventHandler.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventHandler.java @@ -130,7 +130,9 @@ public TargetCase getTargetCase() { } public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -179,7 +181,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int EVENT_FIELD_NUMBER = 4; - private volatile java.lang.Object event_; + + @SuppressWarnings("serial") + private volatile java.lang.Object event_ = ""; /** * * @@ -282,7 +286,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment getTriggerFulfillment( @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.FulfillmentOrBuilder getTriggerFulfillmentOrBuilder() { - return getTriggerFulfillment(); + return triggerFulfillment_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.getDefaultInstance() + : triggerFulfillment_; } public static final int TARGET_PAGE_FIELD_NUMBER = 2; @@ -706,14 +712,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - event_ = ""; - - if (triggerFulfillmentBuilder_ == null) { - triggerFulfillment_ = null; - } else { - triggerFulfillment_ = null; + triggerFulfillment_ = null; + if (triggerFulfillmentBuilder_ != null) { + triggerFulfillmentBuilder_.dispose(); triggerFulfillmentBuilder_ = null; } targetCase_ = 0; @@ -745,22 +749,33 @@ public com.google.cloud.dialogflow.cx.v3beta1.EventHandler build() { public com.google.cloud.dialogflow.cx.v3beta1.EventHandler buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.EventHandler result = new com.google.cloud.dialogflow.cx.v3beta1.EventHandler(this); - result.name_ = name_; - result.event_ = event_; - if (triggerFulfillmentBuilder_ == null) { - result.triggerFulfillment_ = triggerFulfillment_; - } else { - result.triggerFulfillment_ = triggerFulfillmentBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (targetCase_ == 2) { - result.target_ = target_; + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.EventHandler result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (targetCase_ == 3) { - result.target_ = target_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.event_ = event_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.triggerFulfillment_ = + triggerFulfillmentBuilder_ == null + ? triggerFulfillment_ + : triggerFulfillmentBuilder_.build(); } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3beta1.EventHandler result) { result.targetCase_ = targetCase_; - onBuilt(); - return result; + result.target_ = this.target_; } @java.lang.Override @@ -811,10 +826,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.EventHandler oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getEvent().isEmpty()) { event_ = other.event_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasTriggerFulfillment()) { @@ -883,20 +900,20 @@ public Builder mergeFrom( case 34: { event_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 34 case 42: { input.readMessage( getTriggerFulfillmentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 42 case 50: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 50 default: @@ -930,6 +947,8 @@ public Builder clearTarget() { return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -991,8 +1010,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1008,8 +1027,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1030,8 +1049,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1097,8 +1116,8 @@ public Builder setEvent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - event_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1114,8 +1133,8 @@ public Builder setEvent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEvent() { - event_ = getDefaultInstance().getEvent(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1136,8 +1155,8 @@ public Builder setEventBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - event_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1163,7 +1182,7 @@ public Builder setEventBytes(com.google.protobuf.ByteString value) { * @return Whether the triggerFulfillment field is set. */ public boolean hasTriggerFulfillment() { - return triggerFulfillmentBuilder_ != null || triggerFulfillment_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1206,11 +1225,11 @@ public Builder setTriggerFulfillment(com.google.cloud.dialogflow.cx.v3beta1.Fulf throw new NullPointerException(); } triggerFulfillment_ = value; - onChanged(); } else { triggerFulfillmentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1229,11 +1248,11 @@ public Builder setTriggerFulfillment( com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.Builder builderForValue) { if (triggerFulfillmentBuilder_ == null) { triggerFulfillment_ = builderForValue.build(); - onChanged(); } else { triggerFulfillmentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1251,19 +1270,19 @@ public Builder setTriggerFulfillment( public Builder mergeTriggerFulfillment( com.google.cloud.dialogflow.cx.v3beta1.Fulfillment value) { if (triggerFulfillmentBuilder_ == null) { - if (triggerFulfillment_ != null) { - triggerFulfillment_ = - com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.newBuilder(triggerFulfillment_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && triggerFulfillment_ != null + && triggerFulfillment_ + != com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.getDefaultInstance()) { + getTriggerFulfillmentBuilder().mergeFrom(value); } else { triggerFulfillment_ = value; } - onChanged(); } else { triggerFulfillmentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1279,14 +1298,13 @@ public Builder mergeTriggerFulfillment( * .google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 5; */ public Builder clearTriggerFulfillment() { - if (triggerFulfillmentBuilder_ == null) { - triggerFulfillment_ = null; - onChanged(); - } else { - triggerFulfillment_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + triggerFulfillment_ = null; + if (triggerFulfillmentBuilder_ != null) { + triggerFulfillmentBuilder_.dispose(); triggerFulfillmentBuilder_ = null; } - + onChanged(); return this; } /** @@ -1303,7 +1321,7 @@ public Builder clearTriggerFulfillment() { */ public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.Builder getTriggerFulfillmentBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getTriggerFulfillmentFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventInput.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventInput.java index 8db23db23992..addf4addc889 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventInput.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EventInput.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EVENT_FIELD_NUMBER = 1; - private volatile java.lang.Object event_; + + @SuppressWarnings("serial") + private volatile java.lang.Object event_ = ""; /** * * @@ -313,8 +315,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; event_ = ""; - return this; } @@ -342,11 +344,20 @@ public com.google.cloud.dialogflow.cx.v3beta1.EventInput build() { public com.google.cloud.dialogflow.cx.v3beta1.EventInput buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.EventInput result = new com.google.cloud.dialogflow.cx.v3beta1.EventInput(this); - result.event_ = event_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.EventInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.event_ = event_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -395,6 +406,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.EventInput other return this; if (!other.getEvent().isEmpty()) { event_ = other.event_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -426,7 +438,7 @@ public Builder mergeFrom( case 10: { event_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -446,6 +458,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object event_ = ""; /** * @@ -507,8 +521,8 @@ public Builder setEvent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - event_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -524,8 +538,8 @@ public Builder setEvent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEvent() { - event_ = getDefaultInstance().getEvent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -546,8 +560,8 @@ public Builder setEventBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - event_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Experiment.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Experiment.java index 114de1047519..a835749333ed 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Experiment.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Experiment.java @@ -443,7 +443,9 @@ public VariantsCase getVariantsCase() { } public static final int CONDITION_FIELD_NUMBER = 1; - private volatile java.lang.Object condition_; + + @SuppressWarnings("serial") + private volatile java.lang.Object condition_ = ""; /** * * @@ -773,8 +775,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; condition_ = ""; - if (versionVariantsBuilder_ != null) { versionVariantsBuilder_.clear(); } @@ -808,19 +810,31 @@ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition build() { public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition result = new com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition(this); - result.condition_ = condition_; - if (variantsCase_ == 2) { - if (versionVariantsBuilder_ == null) { - result.variants_ = variants_; - } else { - result.variants_ = versionVariantsBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - result.variantsCase_ = variantsCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.condition_ = condition_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition result) { + result.variantsCase_ = variantsCase_; + result.variants_ = this.variants_; + if (variantsCase_ == 2 && versionVariantsBuilder_ != null) { + result.variants_ = versionVariantsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -872,6 +886,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Experiment.Defin return this; if (!other.getCondition().isEmpty()) { condition_ = other.condition_; + bitField0_ |= 0x00000001; onChanged(); } switch (other.getVariantsCase()) { @@ -914,7 +929,7 @@ public Builder mergeFrom( case 10: { condition_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -955,6 +970,8 @@ public Builder clearVariants() { return this; } + private int bitField0_; + private java.lang.Object condition_ = ""; /** * @@ -1025,8 +1042,8 @@ public Builder setCondition(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - condition_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1045,8 +1062,8 @@ public Builder setCondition(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCondition() { - condition_ = getDefaultInstance().getCondition(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1070,8 +1087,8 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - condition_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1287,7 +1304,6 @@ public Builder clearVersionVariants() { } variantsCase_ = 2; onChanged(); - ; return versionVariantsBuilder_; } @@ -2035,7 +2051,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONFIDENCE_LEVEL_FIELD_NUMBER = 1; - private double confidenceLevel_; + private double confidenceLevel_ = 0D; /** * * @@ -2054,7 +2070,7 @@ public double getConfidenceLevel() { } public static final int RATIO_FIELD_NUMBER = 2; - private double ratio_; + private double ratio_ = 0D; /** * * @@ -2073,7 +2089,7 @@ public double getRatio() { } public static final int LOWER_BOUND_FIELD_NUMBER = 3; - private double lowerBound_; + private double lowerBound_ = 0D; /** * * @@ -2091,7 +2107,7 @@ public double getLowerBound() { } public static final int UPPER_BOUND_FIELD_NUMBER = 4; - private double upperBound_; + private double upperBound_ = 0D; /** * * @@ -2365,14 +2381,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; confidenceLevel_ = 0D; - ratio_ = 0D; - lowerBound_ = 0D; - upperBound_ = 0D; - return this; } @@ -2404,14 +2417,30 @@ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterv buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval result = new com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval(this); - result.confidenceLevel_ = confidenceLevel_; - result.ratio_ = ratio_; - result.lowerBound_ = lowerBound_; - result.upperBound_ = upperBound_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.confidenceLevel_ = confidenceLevel_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ratio_ = ratio_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.lowerBound_ = lowerBound_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.upperBound_ = upperBound_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2507,25 +2536,25 @@ public Builder mergeFrom( case 9: { confidenceLevel_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 case 17: { ratio_ = input.readDouble(); - + bitField0_ |= 0x00000002; break; } // case 17 case 25: { lowerBound_ = input.readDouble(); - + bitField0_ |= 0x00000004; break; } // case 25 case 33: { upperBound_ = input.readDouble(); - + bitField0_ |= 0x00000008; break; } // case 33 default: @@ -2545,6 +2574,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private double confidenceLevel_; /** * @@ -2578,6 +2609,7 @@ public double getConfidenceLevel() { public Builder setConfidenceLevel(double value) { confidenceLevel_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2594,7 +2626,7 @@ public Builder setConfidenceLevel(double value) { * @return This builder for chaining. */ public Builder clearConfidenceLevel() { - + bitField0_ = (bitField0_ & ~0x00000001); confidenceLevel_ = 0D; onChanged(); return this; @@ -2633,6 +2665,7 @@ public double getRatio() { public Builder setRatio(double value) { ratio_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2649,7 +2682,7 @@ public Builder setRatio(double value) { * @return This builder for chaining. */ public Builder clearRatio() { - + bitField0_ = (bitField0_ & ~0x00000002); ratio_ = 0D; onChanged(); return this; @@ -2686,6 +2719,7 @@ public double getLowerBound() { public Builder setLowerBound(double value) { lowerBound_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2701,7 +2735,7 @@ public Builder setLowerBound(double value) { * @return This builder for chaining. */ public Builder clearLowerBound() { - + bitField0_ = (bitField0_ & ~0x00000004); lowerBound_ = 0D; onChanged(); return this; @@ -2738,6 +2772,7 @@ public double getUpperBound() { public Builder setUpperBound(double value) { upperBound_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2753,7 +2788,7 @@ public Builder setUpperBound(double value) { * @return This builder for chaining. */ public Builder clearUpperBound() { - + bitField0_ = (bitField0_ & ~0x00000008); upperBound_ = 0D; onChanged(); return this; @@ -3086,7 +3121,7 @@ public ValueCase getValueCase() { } public static final int TYPE_FIELD_NUMBER = 1; - private int type_; + private int type_ = 0; /** * * @@ -3117,16 +3152,15 @@ public int getTypeValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType getType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType result = - com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType.valueOf(type_); + com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType.forNumber(type_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType.UNRECOGNIZED : result; } public static final int COUNT_TYPE_FIELD_NUMBER = 5; - private int countType_; + private int countType_ = 0; /** * * @@ -3159,9 +3193,9 @@ public int getCountTypeValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType getCountType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType result = - com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType.valueOf(countType_); + com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType.forNumber( + countType_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType.UNRECOGNIZED : result; @@ -3295,7 +3329,10 @@ public boolean hasConfidenceInterval() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceIntervalOrBuilder getConfidenceIntervalOrBuilder() { - return getConfidenceInterval(); + return confidenceInterval_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + .getDefaultInstance() + : confidenceInterval_; } private byte memoizedIsInitialized = -1; @@ -3584,14 +3621,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; type_ = 0; - countType_ = 0; - - if (confidenceIntervalBuilder_ == null) { - confidenceInterval_ = null; - } else { - confidenceInterval_ = null; + confidenceInterval_ = null; + if (confidenceIntervalBuilder_ != null) { + confidenceIntervalBuilder_.dispose(); confidenceIntervalBuilder_ = null; } valueCase_ = 0; @@ -3625,22 +3660,35 @@ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric build() { public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric result = new com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric(this); - result.type_ = type_; - result.countType_ = countType_; - if (valueCase_ == 2) { - result.value_ = value_; + if (bitField0_ != 0) { + buildPartial0(result); } - if (valueCase_ == 4) { - result.value_ = value_; + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; } - if (confidenceIntervalBuilder_ == null) { - result.confidenceInterval_ = confidenceInterval_; - } else { - result.confidenceInterval_ = confidenceIntervalBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.countType_ = countType_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.confidenceInterval_ = + confidenceIntervalBuilder_ == null + ? confidenceInterval_ + : confidenceIntervalBuilder_.build(); + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric result) { result.valueCase_ = valueCase_; - onBuilt(); - return result; + result.value_ = this.value_; } @java.lang.Override @@ -3748,7 +3796,7 @@ public Builder mergeFrom( case 8: { type_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 17: @@ -3761,7 +3809,7 @@ public Builder mergeFrom( { input.readMessage( getConfidenceIntervalFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 26 case 33: @@ -3773,7 +3821,7 @@ public Builder mergeFrom( case 40: { countType_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 40 default: @@ -3807,6 +3855,8 @@ public Builder clearValue() { return this; } + private int bitField0_; + private int type_ = 0; /** * @@ -3838,8 +3888,8 @@ public int getTypeValue() { * @return This builder for chaining. */ public Builder setTypeValue(int value) { - type_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3857,9 +3907,8 @@ public Builder setTypeValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType getType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType result = - com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType.valueOf(type_); + com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType.forNumber(type_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricType.UNRECOGNIZED : result; @@ -3882,7 +3931,7 @@ public Builder setType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; @@ -3900,7 +3949,7 @@ public Builder setType( * @return This builder for chaining. */ public Builder clearType() { - + bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; @@ -3939,8 +3988,8 @@ public int getCountTypeValue() { * @return This builder for chaining. */ public Builder setCountTypeValue(int value) { - countType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3959,9 +4008,8 @@ public Builder setCountTypeValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType getCountType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType result = - com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType.forNumber( countType_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.CountType.UNRECOGNIZED @@ -3986,7 +4034,7 @@ public Builder setCountType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; countType_ = value.getNumber(); onChanged(); return this; @@ -4005,7 +4053,7 @@ public Builder setCountType( * @return This builder for chaining. */ public Builder clearCountType() { - + bitField0_ = (bitField0_ & ~0x00000002); countType_ = 0; onChanged(); return this; @@ -4055,6 +4103,7 @@ public double getRatio() { * @return This builder for chaining. */ public Builder setRatio(double value) { + valueCase_ = 2; value_ = value; onChanged(); @@ -4124,6 +4173,7 @@ public double getCount() { * @return This builder for chaining. */ public Builder setCount(double value) { + valueCase_ = 4; value_ = value; onChanged(); @@ -4172,7 +4222,7 @@ public Builder clearCount() { * @return Whether the confidenceInterval field is set. */ public boolean hasConfidenceInterval() { - return confidenceIntervalBuilder_ != null || confidenceInterval_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -4218,11 +4268,11 @@ public Builder setConfidenceInterval( throw new NullPointerException(); } confidenceInterval_ = value; - onChanged(); } else { confidenceIntervalBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4242,11 +4292,11 @@ public Builder setConfidenceInterval( builderForValue) { if (confidenceIntervalBuilder_ == null) { confidenceInterval_ = builderForValue.build(); - onChanged(); } else { confidenceIntervalBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4264,20 +4314,20 @@ public Builder setConfidenceInterval( public Builder mergeConfidenceInterval( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval value) { if (confidenceIntervalBuilder_ == null) { - if (confidenceInterval_ != null) { - confidenceInterval_ = - com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval - .newBuilder(confidenceInterval_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && confidenceInterval_ != null + && confidenceInterval_ + != com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval + .getDefaultInstance()) { + getConfidenceIntervalBuilder().mergeFrom(value); } else { confidenceInterval_ = value; } - onChanged(); } else { confidenceIntervalBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4293,14 +4343,13 @@ public Builder mergeConfidenceInterval( * */ public Builder clearConfidenceInterval() { - if (confidenceIntervalBuilder_ == null) { - confidenceInterval_ = null; - onChanged(); - } else { - confidenceInterval_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + confidenceInterval_ = null; + if (confidenceIntervalBuilder_ != null) { + confidenceIntervalBuilder_.dispose(); confidenceIntervalBuilder_ = null; } - + onChanged(); return this; } /** @@ -4317,7 +4366,7 @@ public Builder clearConfidenceInterval() { */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.ConfidenceInterval.Builder getConfidenceIntervalBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getConfidenceIntervalFieldBuilder().getBuilder(); } @@ -4609,7 +4658,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object version_; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; /** * * @@ -4664,6 +4715,8 @@ public com.google.protobuf.ByteString getVersionBytes() { } public static final int METRICS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List metrics_; /** @@ -4747,7 +4800,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric getMetric } public static final int SESSION_COUNT_FIELD_NUMBER = 3; - private int sessionCount_; + private int sessionCount_ = 0; /** * * @@ -4995,17 +5048,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; version_ = ""; - if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); } else { metrics_ = null; metricsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); sessionCount_ = 0; - return this; } @@ -5037,20 +5089,36 @@ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics b buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics result = new com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics(this); - int from_bitField0_ = bitField0_; - result.version_ = version_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics result) { if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.metrics_ = metrics_; } else { result.metrics_ = metricsBuilder_.build(); } - result.sessionCount_ = sessionCount_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.VersionMetrics result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sessionCount_ = sessionCount_; + } } @java.lang.Override @@ -5107,13 +5175,14 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; + bitField0_ |= 0x00000001; onChanged(); } if (metricsBuilder_ == null) { if (!other.metrics_.isEmpty()) { if (metrics_.isEmpty()) { metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMetricsIsMutable(); metrics_.addAll(other.metrics_); @@ -5126,7 +5195,7 @@ public Builder mergeFrom( metricsBuilder_.dispose(); metricsBuilder_ = null; metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); metricsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMetricsFieldBuilder() @@ -5168,7 +5237,7 @@ public Builder mergeFrom( case 10: { version_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -5189,7 +5258,7 @@ public Builder mergeFrom( case 24: { sessionCount_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -5281,8 +5350,8 @@ public Builder setVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - version_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5301,8 +5370,8 @@ public Builder setVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -5326,8 +5395,8 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - version_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5336,11 +5405,11 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { metrics_ = java.util.Collections.emptyList(); private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { metrics_ = new java.util.ArrayList< com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric>(metrics_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -5590,7 +5659,7 @@ public Builder addAllMetrics( public Builder clearMetrics() { if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { metricsBuilder_.clear(); @@ -5737,7 +5806,7 @@ public Builder removeMetrics(int index) { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Metric.Builder, com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.MetricOrBuilder>( - metrics_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + metrics_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); metrics_ = null; } return metricsBuilder_; @@ -5774,6 +5843,7 @@ public int getSessionCount() { public Builder setSessionCount(int value) { sessionCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -5789,7 +5859,7 @@ public Builder setSessionCount(int value) { * @return This builder for chaining. */ public Builder clearSessionCount() { - + bitField0_ = (bitField0_ & ~0x00000004); sessionCount_ = 0; onChanged(); return this; @@ -5864,6 +5934,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int VERSION_METRICS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List versionMetrics_; /** @@ -5996,7 +6068,9 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return getLastUpdateTime(); + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } private byte memoizedIsInitialized = -1; @@ -6216,6 +6290,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (versionMetricsBuilder_ == null) { versionMetrics_ = java.util.Collections.emptyList(); } else { @@ -6223,10 +6298,9 @@ public Builder clear() { versionMetricsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); - if (lastUpdateTimeBuilder_ == null) { - lastUpdateTime_ = null; - } else { - lastUpdateTime_ = null; + lastUpdateTime_ = null; + if (lastUpdateTimeBuilder_ != null) { + lastUpdateTimeBuilder_.dispose(); lastUpdateTimeBuilder_ = null; } return this; @@ -6256,7 +6330,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result build() { public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = new com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result result) { if (versionMetricsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { versionMetrics_ = java.util.Collections.unmodifiableList(versionMetrics_); @@ -6266,13 +6349,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result buildPartial() { } else { result.versionMetrics_ = versionMetricsBuilder_.build(); } - if (lastUpdateTimeBuilder_ == null) { - result.lastUpdateTime_ = lastUpdateTime_; - } else { - result.lastUpdateTime_ = lastUpdateTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.lastUpdateTime_ = + lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -6398,7 +6482,7 @@ public Builder mergeFrom( { input.readMessage( getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -6858,7 +6942,7 @@ public Builder removeVersionMetrics(int index) { * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { - return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -6897,11 +6981,11 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } lastUpdateTime_ = value; - onChanged(); } else { lastUpdateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -6917,11 +7001,11 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); - onChanged(); } else { lastUpdateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -6936,19 +7020,18 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (lastUpdateTime_ != null) { - lastUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && lastUpdateTime_ != null + && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; } - onChanged(); } else { lastUpdateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -6962,14 +7045,13 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp last_update_time = 2; */ public Builder clearLastUpdateTime() { - if (lastUpdateTimeBuilder_ == null) { - lastUpdateTime_ = null; - onChanged(); - } else { - lastUpdateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + lastUpdateTime_ = null; + if (lastUpdateTimeBuilder_ != null) { + lastUpdateTimeBuilder_.dispose(); lastUpdateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -6983,7 +7065,7 @@ public Builder clearLastUpdateTime() { * .google.protobuf.Timestamp last_update_time = 2; */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } @@ -7098,7 +7180,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result getDefaultInstan } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -7151,7 +7235,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -7202,7 +7288,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -7251,7 +7339,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int STATE_FIELD_NUMBER = 4; - private int state_; + private int state_ = 0; /** * * @@ -7286,9 +7374,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.Experiment.State result = - com.google.cloud.dialogflow.cx.v3beta1.Experiment.State.valueOf(state_); + com.google.cloud.dialogflow.cx.v3beta1.Experiment.State.forNumber(state_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.State.UNRECOGNIZED : result; @@ -7340,7 +7427,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition getDefinitio @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.DefinitionOrBuilder getDefinitionOrBuilder() { - return getDefinition(); + return definition_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.getDefaultInstance() + : definition_; } public static final int ROLLOUT_CONFIG_FIELD_NUMBER = 14; @@ -7400,7 +7489,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig getRolloutConfig() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.RolloutConfigOrBuilder getRolloutConfigOrBuilder() { - return getRolloutConfig(); + return rolloutConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.getDefaultInstance() + : rolloutConfig_; } public static final int ROLLOUT_STATE_FIELD_NUMBER = 15; @@ -7448,11 +7539,15 @@ public com.google.cloud.dialogflow.cx.v3beta1.RolloutState getRolloutState() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.RolloutStateOrBuilder getRolloutStateOrBuilder() { - return getRolloutState(); + return rolloutState_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.RolloutState.getDefaultInstance() + : rolloutState_; } public static final int ROLLOUT_FAILURE_REASON_FIELD_NUMBER = 16; - private volatile java.lang.Object rolloutFailureReason_; + + @SuppressWarnings("serial") + private volatile java.lang.Object rolloutFailureReason_ = ""; /** * * @@ -7547,7 +7642,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result getResult() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.ResultOrBuilder getResultOrBuilder() { - return getResult(); + return result_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.getDefaultInstance() + : result_; } public static final int CREATE_TIME_FIELD_NUMBER = 7; @@ -7593,7 +7690,7 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int START_TIME_FIELD_NUMBER = 8; @@ -7639,7 +7736,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } public static final int END_TIME_FIELD_NUMBER = 9; @@ -7685,7 +7782,7 @@ public com.google.protobuf.Timestamp getEndTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { - return getEndTime(); + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 10; @@ -7733,7 +7830,9 @@ public com.google.protobuf.Timestamp getLastUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { - return getLastUpdateTime(); + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } public static final int EXPERIMENT_LENGTH_FIELD_NUMBER = 11; @@ -7787,10 +7886,14 @@ public com.google.protobuf.Duration getExperimentLength() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getExperimentLengthOrBuilder() { - return getExperimentLength(); + return experimentLength_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : experimentLength_; } public static final int VARIANTS_HISTORY_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") private java.util.List variantsHistory_; /** * @@ -8238,68 +8341,55 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - state_ = 0; - - if (definitionBuilder_ == null) { - definition_ = null; - } else { - definition_ = null; + definition_ = null; + if (definitionBuilder_ != null) { + definitionBuilder_.dispose(); definitionBuilder_ = null; } - if (rolloutConfigBuilder_ == null) { - rolloutConfig_ = null; - } else { - rolloutConfig_ = null; + rolloutConfig_ = null; + if (rolloutConfigBuilder_ != null) { + rolloutConfigBuilder_.dispose(); rolloutConfigBuilder_ = null; } - if (rolloutStateBuilder_ == null) { - rolloutState_ = null; - } else { - rolloutState_ = null; + rolloutState_ = null; + if (rolloutStateBuilder_ != null) { + rolloutStateBuilder_.dispose(); rolloutStateBuilder_ = null; } rolloutFailureReason_ = ""; - - if (resultBuilder_ == null) { - result_ = null; - } else { - result_ = null; + result_ = null; + if (resultBuilder_ != null) { + resultBuilder_.dispose(); resultBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - if (endTimeBuilder_ == null) { - endTime_ = null; - } else { - endTime_ = null; + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - if (lastUpdateTimeBuilder_ == null) { - lastUpdateTime_ = null; - } else { - lastUpdateTime_ = null; + lastUpdateTime_ = null; + if (lastUpdateTimeBuilder_ != null) { + lastUpdateTimeBuilder_.dispose(); lastUpdateTimeBuilder_ = null; } - if (experimentLengthBuilder_ == null) { - experimentLength_ = null; - } else { - experimentLength_ = null; + experimentLength_ = null; + if (experimentLengthBuilder_ != null) { + experimentLengthBuilder_.dispose(); experimentLengthBuilder_ = null; } if (variantsHistoryBuilder_ == null) { @@ -8308,7 +8398,7 @@ public Builder clear() { variantsHistory_ = null; variantsHistoryBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00004000); return this; } @@ -8336,68 +8426,75 @@ public com.google.cloud.dialogflow.cx.v3beta1.Experiment build() { public com.google.cloud.dialogflow.cx.v3beta1.Experiment buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Experiment result = new com.google.cloud.dialogflow.cx.v3beta1.Experiment(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; - result.state_ = state_; - if (definitionBuilder_ == null) { - result.definition_ = definition_; - } else { - result.definition_ = definitionBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - if (rolloutConfigBuilder_ == null) { - result.rolloutConfig_ = rolloutConfig_; + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.Experiment result) { + if (variantsHistoryBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0)) { + variantsHistory_ = java.util.Collections.unmodifiableList(variantsHistory_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.variantsHistory_ = variantsHistory_; } else { - result.rolloutConfig_ = rolloutConfigBuilder_.build(); + result.variantsHistory_ = variantsHistoryBuilder_.build(); } - if (rolloutStateBuilder_ == null) { - result.rolloutState_ = rolloutState_; - } else { - result.rolloutState_ = rolloutStateBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Experiment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - result.rolloutFailureReason_ = rolloutFailureReason_; - if (resultBuilder_ == null) { - result.result_ = result_; - } else { - result.result_ = resultBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; } - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; } - if (endTimeBuilder_ == null) { - result.endTime_ = endTime_; - } else { - result.endTime_ = endTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000010) != 0)) { + result.definition_ = definitionBuilder_ == null ? definition_ : definitionBuilder_.build(); } - if (lastUpdateTimeBuilder_ == null) { - result.lastUpdateTime_ = lastUpdateTime_; - } else { - result.lastUpdateTime_ = lastUpdateTimeBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.rolloutConfig_ = + rolloutConfigBuilder_ == null ? rolloutConfig_ : rolloutConfigBuilder_.build(); } - if (experimentLengthBuilder_ == null) { - result.experimentLength_ = experimentLength_; - } else { - result.experimentLength_ = experimentLengthBuilder_.build(); + if (((from_bitField0_ & 0x00000040) != 0)) { + result.rolloutState_ = + rolloutStateBuilder_ == null ? rolloutState_ : rolloutStateBuilder_.build(); } - if (variantsHistoryBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - variantsHistory_ = java.util.Collections.unmodifiableList(variantsHistory_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.variantsHistory_ = variantsHistory_; - } else { - result.variantsHistory_ = variantsHistoryBuilder_.build(); + if (((from_bitField0_ & 0x00000080) != 0)) { + result.rolloutFailureReason_ = rolloutFailureReason_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.lastUpdateTime_ = + lastUpdateTimeBuilder_ == null ? lastUpdateTime_ : lastUpdateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.experimentLength_ = + experimentLengthBuilder_ == null ? experimentLength_ : experimentLengthBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -8448,14 +8545,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Experiment other return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (other.state_ != 0) { @@ -8472,6 +8572,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Experiment other } if (!other.getRolloutFailureReason().isEmpty()) { rolloutFailureReason_ = other.rolloutFailureReason_; + bitField0_ |= 0x00000080; onChanged(); } if (other.hasResult()) { @@ -8496,7 +8597,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Experiment other if (!other.variantsHistory_.isEmpty()) { if (variantsHistory_.isEmpty()) { variantsHistory_ = other.variantsHistory_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00004000); } else { ensureVariantsHistoryIsMutable(); variantsHistory_.addAll(other.variantsHistory_); @@ -8509,7 +8610,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Experiment other variantsHistoryBuilder_.dispose(); variantsHistoryBuilder_ = null; variantsHistory_ = other.variantsHistory_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00004000); variantsHistoryBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getVariantsHistoryFieldBuilder() @@ -8548,68 +8649,68 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: { state_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage(getDefinitionFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { input.readMessage(getResultFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 50 case 58: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 58 case 66: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 66 case 74: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000800; break; } // case 74 case 82: { input.readMessage(getLastUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00001000; break; } // case 82 case 90: { input.readMessage( getExperimentLengthFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00002000; break; } // case 90 case 98: @@ -8629,19 +8730,19 @@ public Builder mergeFrom( case 114: { input.readMessage(getRolloutConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 114 case 122: { input.readMessage(getRolloutStateFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 122 case 130: { rolloutFailureReason_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 130 default: @@ -8730,8 +8831,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -8749,8 +8850,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -8773,8 +8874,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -8843,8 +8944,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -8861,8 +8962,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -8884,8 +8985,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -8951,8 +9052,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -8968,8 +9069,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -8990,8 +9091,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -9031,8 +9132,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -9052,9 +9153,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Experiment.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.Experiment.State result = - com.google.cloud.dialogflow.cx.v3beta1.Experiment.State.valueOf(state_); + com.google.cloud.dialogflow.cx.v3beta1.Experiment.State.forNumber(state_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.State.UNRECOGNIZED : result; @@ -9078,7 +9178,7 @@ public Builder setState(com.google.cloud.dialogflow.cx.v3beta1.Experiment.State if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; state_ = value.getNumber(); onChanged(); return this; @@ -9098,7 +9198,7 @@ public Builder setState(com.google.cloud.dialogflow.cx.v3beta1.Experiment.State * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000008); state_ = 0; onChanged(); return this; @@ -9122,7 +9222,7 @@ public Builder clearState() { * @return Whether the definition field is set. */ public boolean hasDefinition() { - return definitionBuilder_ != null || definition_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -9160,11 +9260,11 @@ public Builder setDefinition( throw new NullPointerException(); } definition_ = value; - onChanged(); } else { definitionBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -9180,11 +9280,11 @@ public Builder setDefinition( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.Builder builderForValue) { if (definitionBuilder_ == null) { definition_ = builderForValue.build(); - onChanged(); } else { definitionBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -9199,19 +9299,20 @@ public Builder setDefinition( public Builder mergeDefinition( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition value) { if (definitionBuilder_ == null) { - if (definition_ != null) { - definition_ = - com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.newBuilder(definition_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && definition_ != null + && definition_ + != com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition + .getDefaultInstance()) { + getDefinitionBuilder().mergeFrom(value); } else { definition_ = value; } - onChanged(); } else { definitionBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -9224,14 +9325,13 @@ public Builder mergeDefinition( * .google.cloud.dialogflow.cx.v3beta1.Experiment.Definition definition = 5; */ public Builder clearDefinition() { - if (definitionBuilder_ == null) { - definition_ = null; - onChanged(); - } else { - definition_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + definition_ = null; + if (definitionBuilder_ != null) { + definitionBuilder_.dispose(); definitionBuilder_ = null; } - + onChanged(); return this; } /** @@ -9245,7 +9345,7 @@ public Builder clearDefinition() { */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Definition.Builder getDefinitionBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getDefinitionFieldBuilder().getBuilder(); } @@ -9316,7 +9416,7 @@ public Builder clearDefinition() { * @return Whether the rolloutConfig field is set. */ public boolean hasRolloutConfig() { - return rolloutConfigBuilder_ != null || rolloutConfig_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -9361,11 +9461,11 @@ public Builder setRolloutConfig(com.google.cloud.dialogflow.cx.v3beta1.RolloutCo throw new NullPointerException(); } rolloutConfig_ = value; - onChanged(); } else { rolloutConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -9385,11 +9485,11 @@ public Builder setRolloutConfig( com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.Builder builderForValue) { if (rolloutConfigBuilder_ == null) { rolloutConfig_ = builderForValue.build(); - onChanged(); } else { rolloutConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -9407,19 +9507,19 @@ public Builder setRolloutConfig( */ public Builder mergeRolloutConfig(com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig value) { if (rolloutConfigBuilder_ == null) { - if (rolloutConfig_ != null) { - rolloutConfig_ = - com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.newBuilder(rolloutConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && rolloutConfig_ != null + && rolloutConfig_ + != com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.getDefaultInstance()) { + getRolloutConfigBuilder().mergeFrom(value); } else { rolloutConfig_ = value; } - onChanged(); } else { rolloutConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -9436,14 +9536,13 @@ public Builder mergeRolloutConfig(com.google.cloud.dialogflow.cx.v3beta1.Rollout * .google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14; */ public Builder clearRolloutConfig() { - if (rolloutConfigBuilder_ == null) { - rolloutConfig_ = null; - onChanged(); - } else { - rolloutConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + rolloutConfig_ = null; + if (rolloutConfigBuilder_ != null) { + rolloutConfigBuilder_.dispose(); rolloutConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -9460,7 +9559,7 @@ public Builder clearRolloutConfig() { * .google.cloud.dialogflow.cx.v3beta1.RolloutConfig rollout_config = 14; */ public com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.Builder getRolloutConfigBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getRolloutConfigFieldBuilder().getBuilder(); } @@ -9535,7 +9634,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.Builder getRolloutCo * @return Whether the rolloutState field is set. */ public boolean hasRolloutState() { - return rolloutStateBuilder_ != null || rolloutState_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -9572,11 +9671,11 @@ public Builder setRolloutState(com.google.cloud.dialogflow.cx.v3beta1.RolloutSta throw new NullPointerException(); } rolloutState_ = value; - onChanged(); } else { rolloutStateBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -9592,11 +9691,11 @@ public Builder setRolloutState( com.google.cloud.dialogflow.cx.v3beta1.RolloutState.Builder builderForValue) { if (rolloutStateBuilder_ == null) { rolloutState_ = builderForValue.build(); - onChanged(); } else { rolloutStateBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -9610,19 +9709,19 @@ public Builder setRolloutState( */ public Builder mergeRolloutState(com.google.cloud.dialogflow.cx.v3beta1.RolloutState value) { if (rolloutStateBuilder_ == null) { - if (rolloutState_ != null) { - rolloutState_ = - com.google.cloud.dialogflow.cx.v3beta1.RolloutState.newBuilder(rolloutState_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && rolloutState_ != null + && rolloutState_ + != com.google.cloud.dialogflow.cx.v3beta1.RolloutState.getDefaultInstance()) { + getRolloutStateBuilder().mergeFrom(value); } else { rolloutState_ = value; } - onChanged(); } else { rolloutStateBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -9635,14 +9734,13 @@ public Builder mergeRolloutState(com.google.cloud.dialogflow.cx.v3beta1.RolloutS * .google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15; */ public Builder clearRolloutState() { - if (rolloutStateBuilder_ == null) { - rolloutState_ = null; - onChanged(); - } else { - rolloutState_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + rolloutState_ = null; + if (rolloutStateBuilder_ != null) { + rolloutStateBuilder_.dispose(); rolloutStateBuilder_ = null; } - + onChanged(); return this; } /** @@ -9655,7 +9753,7 @@ public Builder clearRolloutState() { * .google.cloud.dialogflow.cx.v3beta1.RolloutState rollout_state = 15; */ public com.google.cloud.dialogflow.cx.v3beta1.RolloutState.Builder getRolloutStateBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getRolloutStateFieldBuilder().getBuilder(); } @@ -9767,8 +9865,8 @@ public Builder setRolloutFailureReason(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - rolloutFailureReason_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -9785,8 +9883,8 @@ public Builder setRolloutFailureReason(java.lang.String value) { * @return This builder for chaining. */ public Builder clearRolloutFailureReason() { - rolloutFailureReason_ = getDefaultInstance().getRolloutFailureReason(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -9808,8 +9906,8 @@ public Builder setRolloutFailureReasonBytes(com.google.protobuf.ByteString value throw new NullPointerException(); } checkByteStringIsUtf8(value); - rolloutFailureReason_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -9832,7 +9930,7 @@ public Builder setRolloutFailureReasonBytes(com.google.protobuf.ByteString value * @return Whether the result field is set. */ public boolean hasResult() { - return resultBuilder_ != null || result_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -9869,11 +9967,11 @@ public Builder setResult(com.google.cloud.dialogflow.cx.v3beta1.Experiment.Resul throw new NullPointerException(); } result_ = value; - onChanged(); } else { resultBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -9889,11 +9987,11 @@ public Builder setResult( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); - onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -9907,19 +10005,19 @@ public Builder setResult( */ public Builder mergeResult(com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result value) { if (resultBuilder_ == null) { - if (result_ != null) { - result_ = - com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.newBuilder(result_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && result_ != null + && result_ + != com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.getDefaultInstance()) { + getResultBuilder().mergeFrom(value); } else { result_ = value; } - onChanged(); } else { resultBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -9932,14 +10030,13 @@ public Builder mergeResult(com.google.cloud.dialogflow.cx.v3beta1.Experiment.Res * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6; */ public Builder clearResult() { - if (resultBuilder_ == null) { - result_ = null; - onChanged(); - } else { - result_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + result_ = null; + if (resultBuilder_ != null) { + resultBuilder_.dispose(); resultBuilder_ = null; } - + onChanged(); return this; } /** @@ -9952,7 +10049,7 @@ public Builder clearResult() { * .google.cloud.dialogflow.cx.v3beta1.Experiment.Result result = 6; */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Result.Builder getResultBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getResultFieldBuilder().getBuilder(); } @@ -10018,7 +10115,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.ResultOrBuilder getResu * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -10055,11 +10152,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -10074,11 +10171,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -10092,17 +10189,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -10115,14 +10213,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp create_time = 7; */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -10135,7 +10232,7 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 7; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -10201,7 +10298,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -10236,11 +10333,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -10255,11 +10352,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -10273,17 +10370,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -10296,14 +10394,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp start_time = 8; */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -10316,7 +10413,7 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 8; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -10380,7 +10477,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return endTimeBuilder_ != null || endTime_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -10415,11 +10512,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } endTime_ = value; - onChanged(); } else { endTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -10434,11 +10531,11 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (endTimeBuilder_ == null) { endTime_ = builderForValue.build(); - onChanged(); } else { endTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -10452,17 +10549,18 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (endTime_ != null) { - endTime_ = - com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000800) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); } else { endTime_ = value; } - onChanged(); } else { endTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -10475,14 +10573,13 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp end_time = 9; */ public Builder clearEndTime() { - if (endTimeBuilder_ == null) { - endTime_ = null; - onChanged(); - } else { - endTime_ = null; + bitField0_ = (bitField0_ & ~0x00000800); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); endTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -10495,7 +10592,7 @@ public Builder clearEndTime() { * .google.protobuf.Timestamp end_time = 9; */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - + bitField0_ |= 0x00000800; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -10559,7 +10656,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { - return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null; + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -10596,11 +10693,11 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } lastUpdateTime_ = value; - onChanged(); } else { lastUpdateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -10615,11 +10712,11 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); - onChanged(); } else { lastUpdateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -10633,19 +10730,18 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo */ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { - if (lastUpdateTime_ != null) { - lastUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00001000) != 0) + && lastUpdateTime_ != null + && lastUpdateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastUpdateTimeBuilder().mergeFrom(value); } else { lastUpdateTime_ = value; } - onChanged(); } else { lastUpdateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -10658,14 +10754,13 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp last_update_time = 10; */ public Builder clearLastUpdateTime() { - if (lastUpdateTimeBuilder_ == null) { - lastUpdateTime_ = null; - onChanged(); - } else { - lastUpdateTime_ = null; + bitField0_ = (bitField0_ & ~0x00001000); + lastUpdateTime_ = null; + if (lastUpdateTimeBuilder_ != null) { + lastUpdateTimeBuilder_.dispose(); lastUpdateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -10678,7 +10773,7 @@ public Builder clearLastUpdateTime() { * .google.protobuf.Timestamp last_update_time = 10; */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { - + bitField0_ |= 0x00001000; onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } @@ -10746,7 +10841,7 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { * @return Whether the experimentLength field is set. */ public boolean hasExperimentLength() { - return experimentLengthBuilder_ != null || experimentLength_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -10787,11 +10882,11 @@ public Builder setExperimentLength(com.google.protobuf.Duration value) { throw new NullPointerException(); } experimentLength_ = value; - onChanged(); } else { experimentLengthBuilder_.setMessage(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -10808,11 +10903,11 @@ public Builder setExperimentLength(com.google.protobuf.Duration value) { public Builder setExperimentLength(com.google.protobuf.Duration.Builder builderForValue) { if (experimentLengthBuilder_ == null) { experimentLength_ = builderForValue.build(); - onChanged(); } else { experimentLengthBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -10828,19 +10923,18 @@ public Builder setExperimentLength(com.google.protobuf.Duration.Builder builderF */ public Builder mergeExperimentLength(com.google.protobuf.Duration value) { if (experimentLengthBuilder_ == null) { - if (experimentLength_ != null) { - experimentLength_ = - com.google.protobuf.Duration.newBuilder(experimentLength_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00002000) != 0) + && experimentLength_ != null + && experimentLength_ != com.google.protobuf.Duration.getDefaultInstance()) { + getExperimentLengthBuilder().mergeFrom(value); } else { experimentLength_ = value; } - onChanged(); } else { experimentLengthBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -10855,14 +10949,13 @@ public Builder mergeExperimentLength(com.google.protobuf.Duration value) { * .google.protobuf.Duration experiment_length = 11; */ public Builder clearExperimentLength() { - if (experimentLengthBuilder_ == null) { - experimentLength_ = null; - onChanged(); - } else { - experimentLength_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + experimentLength_ = null; + if (experimentLengthBuilder_ != null) { + experimentLengthBuilder_.dispose(); experimentLengthBuilder_ = null; } - + onChanged(); return this; } /** @@ -10877,7 +10970,7 @@ public Builder clearExperimentLength() { * .google.protobuf.Duration experiment_length = 11; */ public com.google.protobuf.Duration.Builder getExperimentLengthBuilder() { - + bitField0_ |= 0x00002000; onChanged(); return getExperimentLengthFieldBuilder().getBuilder(); } @@ -10933,11 +11026,11 @@ public com.google.protobuf.DurationOrBuilder getExperimentLengthOrBuilder() { variantsHistory_ = java.util.Collections.emptyList(); private void ensureVariantsHistoryIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00004000) != 0)) { variantsHistory_ = new java.util.ArrayList( variantsHistory_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00004000; } } @@ -11169,7 +11262,7 @@ public Builder addAllVariantsHistory( public Builder clearVariantsHistory() { if (variantsHistoryBuilder_ == null) { variantsHistory_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); } else { variantsHistoryBuilder_.clear(); @@ -11304,7 +11397,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.Builder addVariant com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory.Builder, com.google.cloud.dialogflow.cx.v3beta1.VariantsHistoryOrBuilder>( variantsHistory_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); variantsHistory_ = null; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentRequest.java index 9e4b60219603..16a46a712679 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentRequest.java @@ -209,7 +209,9 @@ private DataFormat(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -264,7 +266,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int AGENT_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object agentUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentUri_ = ""; /** * * @@ -329,7 +333,7 @@ public com.google.protobuf.ByteString getAgentUriBytes() { } public static final int DATA_FORMAT_FIELD_NUMBER = 3; - private int dataFormat_; + private int dataFormat_ = 0; /** * * @@ -364,16 +368,17 @@ public int getDataFormatValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat getDataFormat() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat result = - com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat.valueOf(dataFormat_); + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat.forNumber(dataFormat_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat.UNRECOGNIZED : result; } public static final int ENVIRONMENT_FIELD_NUMBER = 5; - private volatile java.lang.Object environment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object environment_ = ""; /** * * @@ -661,14 +666,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - agentUri_ = ""; - dataFormat_ = 0; - environment_ = ""; - return this; } @@ -696,14 +698,29 @@ public com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest(this); - result.name_ = name_; - result.agentUri_ = agentUri_; - result.dataFormat_ = dataFormat_; - result.environment_ = environment_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.agentUri_ = agentUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dataFormat_ = dataFormat_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.environment_ = environment_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -752,10 +769,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ExportAgentReque return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getAgentUri().isEmpty()) { agentUri_ = other.agentUri_; + bitField0_ |= 0x00000002; onChanged(); } if (other.dataFormat_ != 0) { @@ -763,6 +782,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ExportAgentReque } if (!other.getEnvironment().isEmpty()) { environment_ = other.environment_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -794,25 +814,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { agentUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { dataFormat_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 24 case 42: { environment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 42 default: @@ -832,6 +852,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -902,8 +924,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -922,8 +944,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -947,8 +969,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1038,8 +1060,8 @@ public Builder setAgentUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - agentUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1063,8 +1085,8 @@ public Builder setAgentUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAgentUri() { - agentUri_ = getDefaultInstance().getAgentUri(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1093,8 +1115,8 @@ public Builder setAgentUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - agentUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1134,8 +1156,8 @@ public int getDataFormatValue() { * @return This builder for chaining. */ public Builder setDataFormatValue(int value) { - dataFormat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1155,9 +1177,9 @@ public Builder setDataFormatValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat getDataFormat() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat result = - com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat.valueOf(dataFormat_); + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat.forNumber( + dataFormat_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat.UNRECOGNIZED : result; @@ -1182,7 +1204,7 @@ public Builder setDataFormat( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; dataFormat_ = value.getNumber(); onChanged(); return this; @@ -1202,7 +1224,7 @@ public Builder setDataFormat( * @return This builder for chaining. */ public Builder clearDataFormat() { - + bitField0_ = (bitField0_ & ~0x00000004); dataFormat_ = 0; onChanged(); return this; @@ -1281,8 +1303,8 @@ public Builder setEnvironment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - environment_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1302,8 +1324,8 @@ public Builder setEnvironment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEnvironment() { - environment_ = getDefaultInstance().getEnvironment(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1328,8 +1350,8 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - environment_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentResponse.java index f2d7185f9a46..d9eeecb4d48b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportAgentResponse.java @@ -451,6 +451,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; agentCase_ = 0; agent_ = null; return this; @@ -480,17 +481,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse(this); - if (agentCase_ == 1) { - result.agent_ = agent_; - } - if (agentCase_ == 2) { - result.agent_ = agent_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.agentCase_ = agentCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse result) { + result.agentCase_ = agentCase_; + result.agent_ = this.agent_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -625,6 +633,8 @@ public Builder clearAgent() { return this; } + private int bitField0_; + /** * * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportFlowRequest.java index 91361dd969e6..6af3cd45d19d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportFlowRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportFlowRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int FLOW_URI_FIELD_NUMBER = 2; - private volatile java.lang.Object flowUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object flowUri_ = ""; /** * * @@ -192,7 +196,7 @@ public com.google.protobuf.ByteString getFlowUriBytes() { } public static final int INCLUDE_REFERENCED_FLOWS_FIELD_NUMBER = 4; - private boolean includeReferencedFlows_; + private boolean includeReferencedFlows_ = false; /** * * @@ -426,12 +430,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - flowUri_ = ""; - includeReferencedFlows_ = false; - return this; } @@ -459,13 +461,26 @@ public com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest(this); - result.name_ = name_; - result.flowUri_ = flowUri_; - result.includeReferencedFlows_ = includeReferencedFlows_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ExportFlowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.flowUri_ = flowUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.includeReferencedFlows_ = includeReferencedFlows_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -514,10 +529,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ExportFlowReques return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFlowUri().isEmpty()) { flowUri_ = other.flowUri_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getIncludeReferencedFlows() != false) { @@ -552,19 +569,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { flowUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 32: { includeReferencedFlows_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 32 default: @@ -584,6 +601,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -657,8 +676,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -678,8 +697,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -704,8 +723,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -795,8 +814,8 @@ public Builder setFlowUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - flowUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -820,8 +839,8 @@ public Builder setFlowUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFlowUri() { - flowUri_ = getDefaultInstance().getFlowUri(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -850,8 +869,8 @@ public Builder setFlowUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - flowUri_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -887,6 +906,7 @@ public boolean getIncludeReferencedFlows() { public Builder setIncludeReferencedFlows(boolean value) { includeReferencedFlows_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -902,7 +922,7 @@ public Builder setIncludeReferencedFlows(boolean value) { * @return This builder for chaining. */ public Builder clearIncludeReferencedFlows() { - + bitField0_ = (bitField0_ & ~0x00000004); includeReferencedFlows_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportFlowResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportFlowResponse.java index e504696f8690..78a4273c62b9 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportFlowResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportFlowResponse.java @@ -451,6 +451,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; flowCase_ = 0; flow_ = null; return this; @@ -480,17 +481,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse(this); - if (flowCase_ == 1) { - result.flow_ = flow_; - } - if (flowCase_ == 2) { - result.flow_ = flow_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.flowCase_ = flowCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse result) { + result.flowCase_ = flowCase_; + result.flow_ = this.flow_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -625,6 +633,8 @@ public Builder clearFlow() { return this; } + private int bitField0_; + /** * * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportTestCasesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportTestCasesRequest.java index 2f45f08815b6..bdead754d498 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportTestCasesRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportTestCasesRequest.java @@ -274,7 +274,9 @@ public DestinationCase getDestinationCase() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -423,7 +425,7 @@ public com.google.protobuf.ByteString getGcsUriBytes() { } public static final int DATA_FORMAT_FIELD_NUMBER = 3; - private int dataFormat_; + private int dataFormat_ = 0; /** * * @@ -456,9 +458,8 @@ public int getDataFormatValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat getDataFormat() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat result = - com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat.forNumber( dataFormat_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat.UNRECOGNIZED @@ -466,7 +467,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat } public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -771,12 +774,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - dataFormat_ = 0; - filter_ = ""; - destinationCase_ = 0; destination_ = null; return this; @@ -807,17 +808,34 @@ public com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest(this); - result.parent_ = parent_; - if (destinationCase_ == 2) { - result.destination_ = destination_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.dataFormat_ = dataFormat_; - result.filter_ = filter_; - result.destinationCase_ = destinationCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dataFormat_ = dataFormat_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -867,6 +885,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesR return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.dataFormat_ != 0) { @@ -874,6 +893,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesR } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000008; onChanged(); } switch (other.getDestinationCase()) { @@ -918,7 +938,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -931,13 +951,13 @@ public Builder mergeFrom( case 24: { dataFormat_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -971,6 +991,8 @@ public Builder clearDestination() { return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -1041,8 +1063,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1061,8 +1083,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1086,8 +1108,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1307,8 +1329,8 @@ public int getDataFormatValue() { * @return This builder for chaining. */ public Builder setDataFormatValue(int value) { - dataFormat_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1328,9 +1350,8 @@ public Builder setDataFormatValue(int value) { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat getDataFormat() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat result = - com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat.forNumber( dataFormat_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesRequest.DataFormat.UNRECOGNIZED @@ -1355,7 +1376,7 @@ public Builder setDataFormat( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; dataFormat_ = value.getNumber(); onChanged(); return this; @@ -1374,7 +1395,7 @@ public Builder setDataFormat( * @return This builder for chaining. */ public Builder clearDataFormat() { - + bitField0_ = (bitField0_ & ~0x00000004); dataFormat_ = 0; onChanged(); return this; @@ -1459,8 +1480,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1482,8 +1503,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1510,8 +1531,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportTestCasesResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportTestCasesResponse.java index cabaa119ed5b..878252e3360f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportTestCasesResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExportTestCasesResponse.java @@ -451,6 +451,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; destinationCase_ = 0; destination_ = null; return this; @@ -481,17 +482,25 @@ public com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse(this); - if (destinationCase_ == 1) { - result.destination_ = destination_; - } - if (destinationCase_ == 2) { - result.destination_ = destination_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.destinationCase_ = destinationCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse result) { + result.destinationCase_ = destinationCase_; + result.destination_ = this.destination_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -627,6 +636,8 @@ public Builder clearDestination() { return this; } + private int bitField0_; + /** * * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Flow.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Flow.java index c9fcd802fd67..a2c213f7025a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Flow.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Flow.java @@ -84,7 +84,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -137,7 +139,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -186,7 +190,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -237,6 +243,8 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } public static final int TRANSITION_ROUTES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List transitionRoutes_; /** * @@ -368,6 +376,8 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute getTransitionRoute } public static final int EVENT_HANDLERS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") private java.util.List eventHandlers_; /** * @@ -489,6 +499,8 @@ public com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder getEventHand } public static final int TRANSITION_ROUTE_GROUPS_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList transitionRouteGroups_; /** * @@ -626,7 +638,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.NluSettings getNluSettings() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.NluSettingsOrBuilder getNluSettingsOrBuilder() { - return getNluSettings(); + return nluSettings_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.NluSettings.getDefaultInstance() + : nluSettings_; } private byte memoizedIsInitialized = -1; @@ -908,32 +922,29 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - if (transitionRoutesBuilder_ == null) { transitionRoutes_ = java.util.Collections.emptyList(); } else { transitionRoutes_ = null; transitionRoutesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); if (eventHandlersBuilder_ == null) { eventHandlers_ = java.util.Collections.emptyList(); } else { eventHandlers_ = null; eventHandlersBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); - if (nluSettingsBuilder_ == null) { - nluSettings_ = null; - } else { - nluSettings_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + nluSettings_ = null; + if (nluSettingsBuilder_ != null) { + nluSettingsBuilder_.dispose(); nluSettingsBuilder_ = null; } return this; @@ -963,40 +974,55 @@ public com.google.cloud.dialogflow.cx.v3beta1.Flow build() { public com.google.cloud.dialogflow.cx.v3beta1.Flow buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Flow result = new com.google.cloud.dialogflow.cx.v3beta1.Flow(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3beta1.Flow result) { if (transitionRoutesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { transitionRoutes_ = java.util.Collections.unmodifiableList(transitionRoutes_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.transitionRoutes_ = transitionRoutes_; } else { result.transitionRoutes_ = transitionRoutesBuilder_.build(); } if (eventHandlersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { eventHandlers_ = java.util.Collections.unmodifiableList(eventHandlers_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); } result.eventHandlers_ = eventHandlers_; } else { result.eventHandlers_ = eventHandlersBuilder_.build(); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { transitionRouteGroups_ = transitionRouteGroups_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); } result.transitionRouteGroups_ = transitionRouteGroups_; - if (nluSettingsBuilder_ == null) { - result.nluSettings_ = nluSettings_; - } else { - result.nluSettings_ = nluSettingsBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Flow result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.nluSettings_ = + nluSettingsBuilder_ == null ? nluSettings_ : nluSettingsBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -1046,21 +1072,24 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Flow other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.Flow.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (transitionRoutesBuilder_ == null) { if (!other.transitionRoutes_.isEmpty()) { if (transitionRoutes_.isEmpty()) { transitionRoutes_ = other.transitionRoutes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureTransitionRoutesIsMutable(); transitionRoutes_.addAll(other.transitionRoutes_); @@ -1073,7 +1102,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Flow other) { transitionRoutesBuilder_.dispose(); transitionRoutesBuilder_ = null; transitionRoutes_ = other.transitionRoutes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); transitionRoutesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransitionRoutesFieldBuilder() @@ -1087,7 +1116,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Flow other) { if (!other.eventHandlers_.isEmpty()) { if (eventHandlers_.isEmpty()) { eventHandlers_ = other.eventHandlers_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureEventHandlersIsMutable(); eventHandlers_.addAll(other.eventHandlers_); @@ -1100,7 +1129,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Flow other) { eventHandlersBuilder_.dispose(); eventHandlersBuilder_ = null; eventHandlers_ = other.eventHandlers_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); eventHandlersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEventHandlersFieldBuilder() @@ -1113,7 +1142,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Flow other) { if (!other.transitionRouteGroups_.isEmpty()) { if (transitionRouteGroups_.isEmpty()) { transitionRouteGroups_ = other.transitionRouteGroups_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureTransitionRouteGroupsIsMutable(); transitionRouteGroups_.addAll(other.transitionRouteGroups_); @@ -1152,19 +1181,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: @@ -1198,7 +1227,7 @@ public Builder mergeFrom( case 90: { input.readMessage(getNluSettingsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 90 case 122: @@ -1294,8 +1323,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1313,8 +1342,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1337,8 +1366,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1404,8 +1433,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1421,8 +1450,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1443,8 +1472,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1513,8 +1542,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1531,8 +1560,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1554,8 +1583,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1564,11 +1593,11 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { transitionRoutes_ = java.util.Collections.emptyList(); private void ensureTransitionRoutesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { transitionRoutes_ = new java.util.ArrayList( transitionRoutes_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } @@ -1921,7 +1950,7 @@ public Builder addAllTransitionRoutes( public Builder clearTransitionRoutes() { if (transitionRoutesBuilder_ == null) { transitionRoutes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { transitionRoutesBuilder_.clear(); @@ -2133,7 +2162,7 @@ public Builder removeTransitionRoutes(int index) { com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder, com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder>( transitionRoutes_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); transitionRoutes_ = null; @@ -2145,11 +2174,11 @@ public Builder removeTransitionRoutes(int index) { java.util.Collections.emptyList(); private void ensureEventHandlersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { eventHandlers_ = new java.util.ArrayList( eventHandlers_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; } } @@ -2478,7 +2507,7 @@ public Builder addAllEventHandlers( public Builder clearEventHandlers() { if (eventHandlersBuilder_ == null) { eventHandlers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { eventHandlersBuilder_.clear(); @@ -2675,7 +2704,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder addEventHandl com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder, com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder>( eventHandlers_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); eventHandlers_ = null; @@ -2687,10 +2716,10 @@ public com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder addEventHandl com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTransitionRouteGroupsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { transitionRouteGroups_ = new com.google.protobuf.LazyStringArrayList(transitionRouteGroups_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; } } /** @@ -2897,7 +2926,7 @@ public Builder addAllTransitionRouteGroups(java.lang.Iterable */ public Builder clearTransitionRouteGroups() { transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2951,7 +2980,7 @@ public Builder addTransitionRouteGroupsBytes(com.google.protobuf.ByteString valu * @return Whether the nluSettings field is set. */ public boolean hasNluSettings() { - return nluSettingsBuilder_ != null || nluSettings_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2988,11 +3017,11 @@ public Builder setNluSettings(com.google.cloud.dialogflow.cx.v3beta1.NluSettings throw new NullPointerException(); } nluSettings_ = value; - onChanged(); } else { nluSettingsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -3008,11 +3037,11 @@ public Builder setNluSettings( com.google.cloud.dialogflow.cx.v3beta1.NluSettings.Builder builderForValue) { if (nluSettingsBuilder_ == null) { nluSettings_ = builderForValue.build(); - onChanged(); } else { nluSettingsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -3026,19 +3055,19 @@ public Builder setNluSettings( */ public Builder mergeNluSettings(com.google.cloud.dialogflow.cx.v3beta1.NluSettings value) { if (nluSettingsBuilder_ == null) { - if (nluSettings_ != null) { - nluSettings_ = - com.google.cloud.dialogflow.cx.v3beta1.NluSettings.newBuilder(nluSettings_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && nluSettings_ != null + && nluSettings_ + != com.google.cloud.dialogflow.cx.v3beta1.NluSettings.getDefaultInstance()) { + getNluSettingsBuilder().mergeFrom(value); } else { nluSettings_ = value; } - onChanged(); } else { nluSettingsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -3051,14 +3080,13 @@ public Builder mergeNluSettings(com.google.cloud.dialogflow.cx.v3beta1.NluSettin * .google.cloud.dialogflow.cx.v3beta1.NluSettings nlu_settings = 11; */ public Builder clearNluSettings() { - if (nluSettingsBuilder_ == null) { - nluSettings_ = null; - onChanged(); - } else { - nluSettings_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + nluSettings_ = null; + if (nluSettingsBuilder_ != null) { + nluSettingsBuilder_.dispose(); nluSettingsBuilder_ = null; } - + onChanged(); return this; } /** @@ -3071,7 +3099,7 @@ public Builder clearNluSettings() { * .google.cloud.dialogflow.cx.v3beta1.NluSettings nlu_settings = 11; */ public com.google.cloud.dialogflow.cx.v3beta1.NluSettings.Builder getNluSettingsBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getNluSettingsFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowValidationResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowValidationResult.java index 89d980a85ea9..254fd823c270 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowValidationResult.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowValidationResult.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -123,6 +125,8 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int VALIDATION_MESSAGES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List validationMessages_; /** @@ -242,7 +246,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } private byte memoizedIsInitialized = -1; @@ -470,19 +474,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - if (validationMessagesBuilder_ == null) { validationMessages_ = java.util.Collections.emptyList(); } else { validationMessages_ = null; validationMessagesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } return this; @@ -512,24 +515,35 @@ public com.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult build() { public com.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult result = new com.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult result) { if (validationMessagesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { validationMessages_ = java.util.Collections.unmodifiableList(validationMessages_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.validationMessages_ = validationMessages_; } else { result.validationMessages_ = validationMessagesBuilder_.build(); } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.FlowValidationResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -580,13 +594,14 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.FlowValidationRe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (validationMessagesBuilder_ == null) { if (!other.validationMessages_.isEmpty()) { if (validationMessages_.isEmpty()) { validationMessages_ = other.validationMessages_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValidationMessagesIsMutable(); validationMessages_.addAll(other.validationMessages_); @@ -599,7 +614,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.FlowValidationRe validationMessagesBuilder_.dispose(); validationMessagesBuilder_ = null; validationMessages_ = other.validationMessages_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); validationMessagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getValidationMessagesFieldBuilder() @@ -641,7 +656,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -661,7 +676,7 @@ public Builder mergeFrom( case 26: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -750,8 +765,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -769,8 +784,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -793,8 +808,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -803,11 +818,11 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { validationMessages_ = java.util.Collections.emptyList(); private void ensureValidationMessagesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { validationMessages_ = new java.util.ArrayList( validationMessages_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -1042,7 +1057,7 @@ public Builder addAllValidationMessages( public Builder clearValidationMessages() { if (validationMessagesBuilder_ == null) { validationMessages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { validationMessagesBuilder_.clear(); @@ -1179,7 +1194,7 @@ public Builder removeValidationMessages(int index) { com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Builder, com.google.cloud.dialogflow.cx.v3beta1.ValidationMessageOrBuilder>( validationMessages_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); validationMessages_ = null; @@ -1205,7 +1220,7 @@ public Builder removeValidationMessages(int index) { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1242,11 +1257,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1261,11 +1276,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1279,17 +1294,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1302,14 +1318,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp update_time = 3; */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1322,7 +1337,7 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 3; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Form.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Form.java index c3130975b9aa..c247a8ae0a67 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Form.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Form.java @@ -668,10 +668,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment getInitialPromptFulfil @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.FulfillmentOrBuilder getInitialPromptFulfillmentOrBuilder() { - return getInitialPromptFulfillment(); + return initialPromptFulfillment_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.getDefaultInstance() + : initialPromptFulfillment_; } public static final int REPROMPT_EVENT_HANDLERS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private java.util.List repromptEventHandlers_; /** @@ -1109,10 +1113,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (initialPromptFulfillmentBuilder_ == null) { - initialPromptFulfillment_ = null; - } else { - initialPromptFulfillment_ = null; + bitField0_ = 0; + initialPromptFulfillment_ = null; + if (initialPromptFulfillmentBuilder_ != null) { + initialPromptFulfillmentBuilder_.dispose(); initialPromptFulfillmentBuilder_ = null; } if (repromptEventHandlersBuilder_ == null) { @@ -1121,7 +1125,7 @@ public Builder clear() { repromptEventHandlers_ = null; repromptEventHandlersBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -1152,24 +1156,37 @@ public com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior build( public com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior result = new com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior(this); - int from_bitField0_ = bitField0_; - if (initialPromptFulfillmentBuilder_ == null) { - result.initialPromptFulfillment_ = initialPromptFulfillment_; - } else { - result.initialPromptFulfillment_ = initialPromptFulfillmentBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior result) { if (repromptEventHandlersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { repromptEventHandlers_ = java.util.Collections.unmodifiableList(repromptEventHandlers_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.repromptEventHandlers_ = repromptEventHandlers_; } else { result.repromptEventHandlers_ = repromptEventHandlersBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.initialPromptFulfillment_ = + initialPromptFulfillmentBuilder_ == null + ? initialPromptFulfillment_ + : initialPromptFulfillmentBuilder_.build(); + } } @java.lang.Override @@ -1230,7 +1247,7 @@ public Builder mergeFrom( if (!other.repromptEventHandlers_.isEmpty()) { if (repromptEventHandlers_.isEmpty()) { repromptEventHandlers_ = other.repromptEventHandlers_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureRepromptEventHandlersIsMutable(); repromptEventHandlers_.addAll(other.repromptEventHandlers_); @@ -1243,7 +1260,7 @@ public Builder mergeFrom( repromptEventHandlersBuilder_.dispose(); repromptEventHandlersBuilder_ = null; repromptEventHandlers_ = other.repromptEventHandlers_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); repromptEventHandlersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRepromptEventHandlersFieldBuilder() @@ -1283,7 +1300,7 @@ public Builder mergeFrom( { input.readMessage( getInitialPromptFulfillmentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 26 case 42: @@ -1340,7 +1357,7 @@ public Builder mergeFrom( * @return Whether the initialPromptFulfillment field is set. */ public boolean hasInitialPromptFulfillment() { - return initialPromptFulfillmentBuilder_ != null || initialPromptFulfillment_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1384,11 +1401,11 @@ public Builder setInitialPromptFulfillment( throw new NullPointerException(); } initialPromptFulfillment_ = value; - onChanged(); } else { initialPromptFulfillmentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1407,11 +1424,11 @@ public Builder setInitialPromptFulfillment( com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.Builder builderForValue) { if (initialPromptFulfillmentBuilder_ == null) { initialPromptFulfillment_ = builderForValue.build(); - onChanged(); } else { initialPromptFulfillmentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1429,20 +1446,19 @@ public Builder setInitialPromptFulfillment( public Builder mergeInitialPromptFulfillment( com.google.cloud.dialogflow.cx.v3beta1.Fulfillment value) { if (initialPromptFulfillmentBuilder_ == null) { - if (initialPromptFulfillment_ != null) { - initialPromptFulfillment_ = - com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.newBuilder( - initialPromptFulfillment_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && initialPromptFulfillment_ != null + && initialPromptFulfillment_ + != com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.getDefaultInstance()) { + getInitialPromptFulfillmentBuilder().mergeFrom(value); } else { initialPromptFulfillment_ = value; } - onChanged(); } else { initialPromptFulfillmentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1458,14 +1474,13 @@ public Builder mergeInitialPromptFulfillment( * */ public Builder clearInitialPromptFulfillment() { - if (initialPromptFulfillmentBuilder_ == null) { - initialPromptFulfillment_ = null; - onChanged(); - } else { - initialPromptFulfillment_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + initialPromptFulfillment_ = null; + if (initialPromptFulfillmentBuilder_ != null) { + initialPromptFulfillmentBuilder_.dispose(); initialPromptFulfillmentBuilder_ = null; } - + onChanged(); return this; } /** @@ -1482,7 +1497,7 @@ public Builder clearInitialPromptFulfillment() { */ public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.Builder getInitialPromptFulfillmentBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getInitialPromptFulfillmentFieldBuilder().getBuilder(); } @@ -1541,11 +1556,11 @@ public Builder clearInitialPromptFulfillment() { repromptEventHandlers_ = java.util.Collections.emptyList(); private void ensureRepromptEventHandlersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { repromptEventHandlers_ = new java.util.ArrayList( repromptEventHandlers_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -2077,7 +2092,7 @@ public Builder addAllRepromptEventHandlers( public Builder clearRepromptEventHandlers() { if (repromptEventHandlersBuilder_ == null) { repromptEventHandlers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { repromptEventHandlersBuilder_.clear(); @@ -2402,7 +2417,7 @@ public Builder removeRepromptEventHandlers(int index) { com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder, com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder>( repromptEventHandlers_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); repromptEventHandlers_ = null; @@ -2478,7 +2493,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -2529,7 +2546,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int REQUIRED_FIELD_NUMBER = 2; - private boolean required_; + private boolean required_ = false; /** * * @@ -2549,7 +2566,9 @@ public boolean getRequired() { } public static final int ENTITY_TYPE_FIELD_NUMBER = 3; - private volatile java.lang.Object entityType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityType_ = ""; /** * * @@ -2612,7 +2631,7 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { } public static final int IS_LIST_FIELD_NUMBER = 4; - private boolean isList_; + private boolean isList_ = false; /** * * @@ -2681,7 +2700,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior getFil @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehaviorOrBuilder getFillBehaviorOrBuilder() { - return getFillBehavior(); + return fillBehavior_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.getDefaultInstance() + : fillBehavior_; } public static final int DEFAULT_VALUE_FIELD_NUMBER = 9; @@ -2730,11 +2751,11 @@ public com.google.protobuf.Value getDefaultValue() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getDefaultValueOrBuilder() { - return getDefaultValue(); + return defaultValue_ == null ? com.google.protobuf.Value.getDefaultInstance() : defaultValue_; } public static final int REDACT_FIELD_NUMBER = 11; - private boolean redact_; + private boolean redact_ = false; /** * * @@ -3021,28 +3042,22 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; displayName_ = ""; - required_ = false; - entityType_ = ""; - isList_ = false; - - if (fillBehaviorBuilder_ == null) { - fillBehavior_ = null; - } else { - fillBehavior_ = null; + fillBehavior_ = null; + if (fillBehaviorBuilder_ != null) { + fillBehaviorBuilder_.dispose(); fillBehaviorBuilder_ = null; } - if (defaultValueBuilder_ == null) { - defaultValue_ = null; - } else { - defaultValue_ = null; + defaultValue_ = null; + if (defaultValueBuilder_ != null) { + defaultValueBuilder_.dispose(); defaultValueBuilder_ = null; } redact_ = false; - return this; } @@ -3070,25 +3085,40 @@ public com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter build() { public com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter result = new com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter(this); - result.displayName_ = displayName_; - result.required_ = required_; - result.entityType_ = entityType_; - result.isList_ = isList_; - if (fillBehaviorBuilder_ == null) { - result.fillBehavior_ = fillBehavior_; - } else { - result.fillBehavior_ = fillBehaviorBuilder_.build(); - } - if (defaultValueBuilder_ == null) { - result.defaultValue_ = defaultValue_; - } else { - result.defaultValue_ = defaultValueBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.redact_ = redact_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.required_ = required_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.entityType_ = entityType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.isList_ = isList_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.fillBehavior_ = + fillBehaviorBuilder_ == null ? fillBehavior_ : fillBehaviorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.defaultValue_ = + defaultValueBuilder_ == null ? defaultValue_ : defaultValueBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.redact_ = redact_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3139,6 +3169,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter o return this; if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getRequired() != false) { @@ -3146,6 +3177,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter o } if (!other.getEntityType().isEmpty()) { entityType_ = other.entityType_; + bitField0_ |= 0x00000004; onChanged(); } if (other.getIsList() != false) { @@ -3189,43 +3221,43 @@ public Builder mergeFrom( case 10: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { required_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { entityType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: { isList_ = input.readBool(); - + bitField0_ |= 0x00000008; break; } // case 32 case 58: { input.readMessage(getFillBehaviorFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 58 case 74: { input.readMessage(getDefaultValueFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 74 case 88: { redact_ = input.readBool(); - + bitField0_ |= 0x00000040; break; } // case 88 default: @@ -3245,6 +3277,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object displayName_ = ""; /** * @@ -3309,8 +3343,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3327,8 +3361,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3350,8 +3384,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3391,6 +3425,7 @@ public boolean getRequired() { public Builder setRequired(boolean value) { required_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3408,7 +3443,7 @@ public Builder setRequired(boolean value) { * @return This builder for chaining. */ public Builder clearRequired() { - + bitField0_ = (bitField0_ & ~0x00000002); required_ = false; onChanged(); return this; @@ -3496,8 +3531,8 @@ public Builder setEntityType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityType_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3520,8 +3555,8 @@ public Builder setEntityType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityType() { - entityType_ = getDefaultInstance().getEntityType(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -3549,8 +3584,8 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityType_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3586,6 +3621,7 @@ public boolean getIsList() { public Builder setIsList(boolean value) { isList_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3601,7 +3637,7 @@ public Builder setIsList(boolean value) { * @return This builder for chaining. */ public Builder clearIsList() { - + bitField0_ = (bitField0_ & ~0x00000008); isList_ = false; onChanged(); return this; @@ -3627,7 +3663,7 @@ public Builder clearIsList() { * @return Whether the fillBehavior field is set. */ public boolean hasFillBehavior() { - return fillBehaviorBuilder_ != null || fillBehavior_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -3670,11 +3706,11 @@ public Builder setFillBehavior( throw new NullPointerException(); } fillBehavior_ = value; - onChanged(); } else { fillBehaviorBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3693,11 +3729,11 @@ public Builder setFillBehavior( builderForValue) { if (fillBehaviorBuilder_ == null) { fillBehavior_ = builderForValue.build(); - onChanged(); } else { fillBehaviorBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3714,20 +3750,20 @@ public Builder setFillBehavior( public Builder mergeFillBehavior( com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior value) { if (fillBehaviorBuilder_ == null) { - if (fillBehavior_ != null) { - fillBehavior_ = - com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.newBuilder( - fillBehavior_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && fillBehavior_ != null + && fillBehavior_ + != com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior + .getDefaultInstance()) { + getFillBehaviorBuilder().mergeFrom(value); } else { fillBehavior_ = value; } - onChanged(); } else { fillBehaviorBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -3742,14 +3778,13 @@ public Builder mergeFillBehavior( * */ public Builder clearFillBehavior() { - if (fillBehaviorBuilder_ == null) { - fillBehavior_ = null; - onChanged(); - } else { - fillBehavior_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + fillBehavior_ = null; + if (fillBehaviorBuilder_ != null) { + fillBehaviorBuilder_.dispose(); fillBehaviorBuilder_ = null; } - + onChanged(); return this; } /** @@ -3765,7 +3800,7 @@ public Builder clearFillBehavior() { */ public com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.FillBehavior.Builder getFillBehaviorBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getFillBehaviorFieldBuilder().getBuilder(); } @@ -3838,7 +3873,7 @@ public Builder clearFillBehavior() { * @return Whether the defaultValue field is set. */ public boolean hasDefaultValue() { - return defaultValueBuilder_ != null || defaultValue_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -3877,11 +3912,11 @@ public Builder setDefaultValue(com.google.protobuf.Value value) { throw new NullPointerException(); } defaultValue_ = value; - onChanged(); } else { defaultValueBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -3897,11 +3932,11 @@ public Builder setDefaultValue(com.google.protobuf.Value value) { public Builder setDefaultValue(com.google.protobuf.Value.Builder builderForValue) { if (defaultValueBuilder_ == null) { defaultValue_ = builderForValue.build(); - onChanged(); } else { defaultValueBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -3916,17 +3951,18 @@ public Builder setDefaultValue(com.google.protobuf.Value.Builder builderForValue */ public Builder mergeDefaultValue(com.google.protobuf.Value value) { if (defaultValueBuilder_ == null) { - if (defaultValue_ != null) { - defaultValue_ = - com.google.protobuf.Value.newBuilder(defaultValue_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && defaultValue_ != null + && defaultValue_ != com.google.protobuf.Value.getDefaultInstance()) { + getDefaultValueBuilder().mergeFrom(value); } else { defaultValue_ = value; } - onChanged(); } else { defaultValueBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -3940,14 +3976,13 @@ public Builder mergeDefaultValue(com.google.protobuf.Value value) { * .google.protobuf.Value default_value = 9; */ public Builder clearDefaultValue() { - if (defaultValueBuilder_ == null) { - defaultValue_ = null; - onChanged(); - } else { - defaultValue_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + defaultValue_ = null; + if (defaultValueBuilder_ != null) { + defaultValueBuilder_.dispose(); defaultValueBuilder_ = null; } - + onChanged(); return this; } /** @@ -3961,7 +3996,7 @@ public Builder clearDefaultValue() { * .google.protobuf.Value default_value = 9; */ public com.google.protobuf.Value.Builder getDefaultValueBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getDefaultValueFieldBuilder().getBuilder(); } @@ -4054,6 +4089,7 @@ public boolean getRedact() { public Builder setRedact(boolean value) { redact_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4075,7 +4111,7 @@ public Builder setRedact(boolean value) { * @return This builder for chaining. */ public Builder clearRedact() { - + bitField0_ = (bitField0_ & ~0x00000040); redact_ = false; onChanged(); return this; @@ -4146,6 +4182,8 @@ public com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter getDefaultInstanceF } public static final int PARAMETERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List parameters_; /** * @@ -4419,6 +4457,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); } else { @@ -4453,7 +4492,15 @@ public com.google.cloud.dialogflow.cx.v3beta1.Form build() { public com.google.cloud.dialogflow.cx.v3beta1.Form buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Form result = new com.google.cloud.dialogflow.cx.v3beta1.Form(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3beta1.Form result) { if (parametersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { parameters_ = java.util.Collections.unmodifiableList(parameters_); @@ -4463,8 +4510,10 @@ public com.google.cloud.dialogflow.cx.v3beta1.Form buildPartial() { } else { result.parameters_ = parametersBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Form result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillIntentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillIntentRequest.java index 4d6d41925292..c8ed4b03cbb2 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillIntentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillIntentRequest.java @@ -114,7 +114,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest getMatchIntentR @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequestOrBuilder getMatchIntentRequestOrBuilder() { - return getMatchIntentRequest(); + return matchIntentRequest_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.getDefaultInstance() + : matchIntentRequest_; } public static final int MATCH_FIELD_NUMBER = 2; @@ -162,7 +164,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Match getMatch() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.MatchOrBuilder getMatchOrBuilder() { - return getMatch(); + return match_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Match.getDefaultInstance() + : match_; } public static final int OUTPUT_AUDIO_CONFIG_FIELD_NUMBER = 3; @@ -211,7 +215,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig getOutputAudioCo @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() { - return getOutputAudioConfig(); + return outputAudioConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.getDefaultInstance() + : outputAudioConfig_; } private byte memoizedIsInitialized = -1; @@ -445,22 +451,20 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (matchIntentRequestBuilder_ == null) { - matchIntentRequest_ = null; - } else { - matchIntentRequest_ = null; + bitField0_ = 0; + matchIntentRequest_ = null; + if (matchIntentRequestBuilder_ != null) { + matchIntentRequestBuilder_.dispose(); matchIntentRequestBuilder_ = null; } - if (matchBuilder_ == null) { - match_ = null; - } else { - match_ = null; + match_ = null; + if (matchBuilder_ != null) { + matchBuilder_.dispose(); matchBuilder_ = null; } - if (outputAudioConfigBuilder_ == null) { - outputAudioConfig_ = null; - } else { - outputAudioConfig_ = null; + outputAudioConfig_ = null; + if (outputAudioConfigBuilder_ != null) { + outputAudioConfigBuilder_.dispose(); outputAudioConfigBuilder_ = null; } return this; @@ -490,25 +494,32 @@ public com.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest(this); - if (matchIntentRequestBuilder_ == null) { - result.matchIntentRequest_ = matchIntentRequest_; - } else { - result.matchIntentRequest_ = matchIntentRequestBuilder_.build(); - } - if (matchBuilder_ == null) { - result.match_ = match_; - } else { - result.match_ = matchBuilder_.build(); - } - if (outputAudioConfigBuilder_ == null) { - result.outputAudioConfig_ = outputAudioConfig_; - } else { - result.outputAudioConfig_ = outputAudioConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.matchIntentRequest_ = + matchIntentRequestBuilder_ == null + ? matchIntentRequest_ + : matchIntentRequestBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.match_ = matchBuilder_ == null ? match_ : matchBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outputAudioConfig_ = + outputAudioConfigBuilder_ == null + ? outputAudioConfig_ + : outputAudioConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -594,20 +605,20 @@ public Builder mergeFrom( { input.readMessage( getMatchIntentRequestFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getMatchFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getOutputAudioConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -627,6 +638,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest matchIntentRequest_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest, @@ -646,7 +659,7 @@ public Builder mergeFrom( * @return Whether the matchIntentRequest field is set. */ public boolean hasMatchIntentRequest() { - return matchIntentRequestBuilder_ != null || matchIntentRequest_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -686,11 +699,11 @@ public Builder setMatchIntentRequest( throw new NullPointerException(); } matchIntentRequest_ = value; - onChanged(); } else { matchIntentRequestBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -707,11 +720,11 @@ public Builder setMatchIntentRequest( com.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.Builder builderForValue) { if (matchIntentRequestBuilder_ == null) { matchIntentRequest_ = builderForValue.build(); - onChanged(); } else { matchIntentRequestBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -727,20 +740,19 @@ public Builder setMatchIntentRequest( public Builder mergeMatchIntentRequest( com.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest value) { if (matchIntentRequestBuilder_ == null) { - if (matchIntentRequest_ != null) { - matchIntentRequest_ = - com.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.newBuilder( - matchIntentRequest_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && matchIntentRequest_ != null + && matchIntentRequest_ + != com.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.getDefaultInstance()) { + getMatchIntentRequestBuilder().mergeFrom(value); } else { matchIntentRequest_ = value; } - onChanged(); } else { matchIntentRequestBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -754,14 +766,13 @@ public Builder mergeMatchIntentRequest( * .google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest match_intent_request = 1; */ public Builder clearMatchIntentRequest() { - if (matchIntentRequestBuilder_ == null) { - matchIntentRequest_ = null; - onChanged(); - } else { - matchIntentRequest_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + matchIntentRequest_ = null; + if (matchIntentRequestBuilder_ != null) { + matchIntentRequestBuilder_.dispose(); matchIntentRequestBuilder_ = null; } - + onChanged(); return this; } /** @@ -776,7 +787,7 @@ public Builder clearMatchIntentRequest() { */ public com.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest.Builder getMatchIntentRequestBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getMatchIntentRequestFieldBuilder().getBuilder(); } @@ -845,7 +856,7 @@ public Builder clearMatchIntentRequest() { * @return Whether the match field is set. */ public boolean hasMatch() { - return matchBuilder_ != null || match_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -882,11 +893,11 @@ public Builder setMatch(com.google.cloud.dialogflow.cx.v3beta1.Match value) { throw new NullPointerException(); } match_ = value; - onChanged(); } else { matchBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -901,11 +912,11 @@ public Builder setMatch(com.google.cloud.dialogflow.cx.v3beta1.Match value) { public Builder setMatch(com.google.cloud.dialogflow.cx.v3beta1.Match.Builder builderForValue) { if (matchBuilder_ == null) { match_ = builderForValue.build(); - onChanged(); } else { matchBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -919,19 +930,18 @@ public Builder setMatch(com.google.cloud.dialogflow.cx.v3beta1.Match.Builder bui */ public Builder mergeMatch(com.google.cloud.dialogflow.cx.v3beta1.Match value) { if (matchBuilder_ == null) { - if (match_ != null) { - match_ = - com.google.cloud.dialogflow.cx.v3beta1.Match.newBuilder(match_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && match_ != null + && match_ != com.google.cloud.dialogflow.cx.v3beta1.Match.getDefaultInstance()) { + getMatchBuilder().mergeFrom(value); } else { match_ = value; } - onChanged(); } else { matchBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -944,14 +954,13 @@ public Builder mergeMatch(com.google.cloud.dialogflow.cx.v3beta1.Match value) { * .google.cloud.dialogflow.cx.v3beta1.Match match = 2; */ public Builder clearMatch() { - if (matchBuilder_ == null) { - match_ = null; - onChanged(); - } else { - match_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + match_ = null; + if (matchBuilder_ != null) { + matchBuilder_.dispose(); matchBuilder_ = null; } - + onChanged(); return this; } /** @@ -964,7 +973,7 @@ public Builder clearMatch() { * .google.cloud.dialogflow.cx.v3beta1.Match match = 2; */ public com.google.cloud.dialogflow.cx.v3beta1.Match.Builder getMatchBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getMatchFieldBuilder().getBuilder(); } @@ -1030,7 +1039,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.MatchOrBuilder getMatchOrBuilder() * @return Whether the outputAudioConfig field is set. */ public boolean hasOutputAudioConfig() { - return outputAudioConfigBuilder_ != null || outputAudioConfig_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1068,11 +1077,11 @@ public Builder setOutputAudioConfig( throw new NullPointerException(); } outputAudioConfig_ = value; - onChanged(); } else { outputAudioConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1088,11 +1097,11 @@ public Builder setOutputAudioConfig( com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.Builder builderForValue) { if (outputAudioConfigBuilder_ == null) { outputAudioConfig_ = builderForValue.build(); - onChanged(); } else { outputAudioConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1107,20 +1116,19 @@ public Builder setOutputAudioConfig( public Builder mergeOutputAudioConfig( com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig value) { if (outputAudioConfigBuilder_ == null) { - if (outputAudioConfig_ != null) { - outputAudioConfig_ = - com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.newBuilder( - outputAudioConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && outputAudioConfig_ != null + && outputAudioConfig_ + != com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.getDefaultInstance()) { + getOutputAudioConfigBuilder().mergeFrom(value); } else { outputAudioConfig_ = value; } - onChanged(); } else { outputAudioConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1133,14 +1141,13 @@ public Builder mergeOutputAudioConfig( * .google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig output_audio_config = 3; */ public Builder clearOutputAudioConfig() { - if (outputAudioConfigBuilder_ == null) { - outputAudioConfig_ = null; - onChanged(); - } else { - outputAudioConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + outputAudioConfig_ = null; + if (outputAudioConfigBuilder_ != null) { + outputAudioConfigBuilder_.dispose(); outputAudioConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1154,7 +1161,7 @@ public Builder clearOutputAudioConfig() { */ public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.Builder getOutputAudioConfigBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getOutputAudioConfigFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillIntentResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillIntentResponse.java index 5be85c48191b..3095467183ec 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillIntentResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FulfillIntentResponse.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int RESPONSE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object responseId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object responseId_ = ""; /** * * @@ -164,11 +166,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.QueryResult getQueryResult() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.QueryResultOrBuilder getQueryResultOrBuilder() { - return getQueryResult(); + return queryResult_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.QueryResult.getDefaultInstance() + : queryResult_; } public static final int OUTPUT_AUDIO_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString outputAudio_; + private com.google.protobuf.ByteString outputAudio_ = com.google.protobuf.ByteString.EMPTY; /** * * @@ -240,7 +244,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig getOutputAudioCo @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() { - return getOutputAudioConfig(); + return outputAudioConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.getDefaultInstance() + : outputAudioConfig_; } private byte memoizedIsInitialized = -1; @@ -478,20 +484,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; responseId_ = ""; - - if (queryResultBuilder_ == null) { - queryResult_ = null; - } else { - queryResult_ = null; + queryResult_ = null; + if (queryResultBuilder_ != null) { + queryResultBuilder_.dispose(); queryResultBuilder_ = null; } outputAudio_ = com.google.protobuf.ByteString.EMPTY; - - if (outputAudioConfigBuilder_ == null) { - outputAudioConfig_ = null; - } else { - outputAudioConfig_ = null; + outputAudioConfig_ = null; + if (outputAudioConfigBuilder_ != null) { + outputAudioConfigBuilder_.dispose(); outputAudioConfigBuilder_ = null; } return this; @@ -522,22 +525,34 @@ public com.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse result = new com.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse(this); - result.responseId_ = responseId_; - if (queryResultBuilder_ == null) { - result.queryResult_ = queryResult_; - } else { - result.queryResult_ = queryResultBuilder_.build(); - } - result.outputAudio_ = outputAudio_; - if (outputAudioConfigBuilder_ == null) { - result.outputAudioConfig_ = outputAudioConfig_; - } else { - result.outputAudioConfig_ = outputAudioConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.FulfillIntentResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.responseId_ = responseId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queryResult_ = + queryResultBuilder_ == null ? queryResult_ : queryResultBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outputAudio_ = outputAudio_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.outputAudioConfig_ = + outputAudioConfigBuilder_ == null + ? outputAudioConfig_ + : outputAudioConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -587,6 +602,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.FulfillIntentRes return this; if (!other.getResponseId().isEmpty()) { responseId_ = other.responseId_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasQueryResult()) { @@ -627,26 +643,26 @@ public Builder mergeFrom( case 10: { responseId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getQueryResultFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { outputAudio_ = input.readBytes(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getOutputAudioConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -666,6 +682,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object responseId_ = ""; /** * @@ -730,8 +748,8 @@ public Builder setResponseId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - responseId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -748,8 +766,8 @@ public Builder setResponseId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearResponseId() { - responseId_ = getDefaultInstance().getResponseId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -771,8 +789,8 @@ public Builder setResponseIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - responseId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -795,7 +813,7 @@ public Builder setResponseIdBytes(com.google.protobuf.ByteString value) { * @return Whether the queryResult field is set. */ public boolean hasQueryResult() { - return queryResultBuilder_ != null || queryResult_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -832,11 +850,11 @@ public Builder setQueryResult(com.google.cloud.dialogflow.cx.v3beta1.QueryResult throw new NullPointerException(); } queryResult_ = value; - onChanged(); } else { queryResultBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -852,11 +870,11 @@ public Builder setQueryResult( com.google.cloud.dialogflow.cx.v3beta1.QueryResult.Builder builderForValue) { if (queryResultBuilder_ == null) { queryResult_ = builderForValue.build(); - onChanged(); } else { queryResultBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -870,19 +888,19 @@ public Builder setQueryResult( */ public Builder mergeQueryResult(com.google.cloud.dialogflow.cx.v3beta1.QueryResult value) { if (queryResultBuilder_ == null) { - if (queryResult_ != null) { - queryResult_ = - com.google.cloud.dialogflow.cx.v3beta1.QueryResult.newBuilder(queryResult_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && queryResult_ != null + && queryResult_ + != com.google.cloud.dialogflow.cx.v3beta1.QueryResult.getDefaultInstance()) { + getQueryResultBuilder().mergeFrom(value); } else { queryResult_ = value; } - onChanged(); } else { queryResultBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -895,14 +913,13 @@ public Builder mergeQueryResult(com.google.cloud.dialogflow.cx.v3beta1.QueryResu * .google.cloud.dialogflow.cx.v3beta1.QueryResult query_result = 2; */ public Builder clearQueryResult() { - if (queryResultBuilder_ == null) { - queryResult_ = null; - onChanged(); - } else { - queryResult_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + queryResult_ = null; + if (queryResultBuilder_ != null) { + queryResultBuilder_.dispose(); queryResultBuilder_ = null; } - + onChanged(); return this; } /** @@ -915,7 +932,7 @@ public Builder clearQueryResult() { * .google.cloud.dialogflow.cx.v3beta1.QueryResult query_result = 2; */ public com.google.cloud.dialogflow.cx.v3beta1.QueryResult.Builder getQueryResultBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getQueryResultFieldBuilder().getBuilder(); } @@ -1013,8 +1030,8 @@ public Builder setOutputAudio(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - outputAudio_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1039,7 +1056,7 @@ public Builder setOutputAudio(com.google.protobuf.ByteString value) { * @return This builder for chaining. */ public Builder clearOutputAudio() { - + bitField0_ = (bitField0_ & ~0x00000004); outputAudio_ = getDefaultInstance().getOutputAudio(); onChanged(); return this; @@ -1063,7 +1080,7 @@ public Builder clearOutputAudio() { * @return Whether the outputAudioConfig field is set. */ public boolean hasOutputAudioConfig() { - return outputAudioConfigBuilder_ != null || outputAudioConfig_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1101,11 +1118,11 @@ public Builder setOutputAudioConfig( throw new NullPointerException(); } outputAudioConfig_ = value; - onChanged(); } else { outputAudioConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1121,11 +1138,11 @@ public Builder setOutputAudioConfig( com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.Builder builderForValue) { if (outputAudioConfigBuilder_ == null) { outputAudioConfig_ = builderForValue.build(); - onChanged(); } else { outputAudioConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1140,20 +1157,19 @@ public Builder setOutputAudioConfig( public Builder mergeOutputAudioConfig( com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig value) { if (outputAudioConfigBuilder_ == null) { - if (outputAudioConfig_ != null) { - outputAudioConfig_ = - com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.newBuilder( - outputAudioConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && outputAudioConfig_ != null + && outputAudioConfig_ + != com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.getDefaultInstance()) { + getOutputAudioConfigBuilder().mergeFrom(value); } else { outputAudioConfig_ = value; } - onChanged(); } else { outputAudioConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1166,14 +1182,13 @@ public Builder mergeOutputAudioConfig( * .google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig output_audio_config = 4; */ public Builder clearOutputAudioConfig() { - if (outputAudioConfigBuilder_ == null) { - outputAudioConfig_ = null; - onChanged(); - } else { - outputAudioConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + outputAudioConfig_ = null; + if (outputAudioConfigBuilder_ != null) { + outputAudioConfigBuilder_.dispose(); outputAudioConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1187,7 +1202,7 @@ public Builder clearOutputAudioConfig() { */ public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.Builder getOutputAudioConfigBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getOutputAudioConfigFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Fulfillment.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Fulfillment.java index e8338c9c7805..c4d20b9b25a3 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Fulfillment.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Fulfillment.java @@ -200,7 +200,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARAMETER_FIELD_NUMBER = 1; - private volatile java.lang.Object parameter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parameter_ = ""; /** * * @@ -291,7 +293,7 @@ public com.google.protobuf.Value getValue() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { - return getValue(); + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; } private byte memoizedIsInitialized = -1; @@ -511,12 +513,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parameter_ = ""; - - if (valueBuilder_ == null) { - value_ = null; - } else { - value_ = null; + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); valueBuilder_ = null; } return this; @@ -549,16 +550,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction bui public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction result = new com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction(this); - result.parameter_ = parameter_; - if (valueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = valueBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parameter_ = parameter_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -613,6 +622,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParameter().isEmpty()) { parameter_ = other.parameter_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasValue()) { @@ -647,13 +657,13 @@ public Builder mergeFrom( case 10: { parameter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -673,6 +683,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parameter_ = ""; /** * @@ -734,8 +746,8 @@ public Builder setParameter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parameter_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -751,8 +763,8 @@ public Builder setParameter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParameter() { - parameter_ = getDefaultInstance().getParameter(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -773,8 +785,8 @@ public Builder setParameterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parameter_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -797,7 +809,7 @@ public Builder setParameterBytes(com.google.protobuf.ByteString value) { * @return Whether the value field is set. */ public boolean hasValue() { - return valueBuilder_ != null || value_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -832,11 +844,11 @@ public Builder setValue(com.google.protobuf.Value value) { throw new NullPointerException(); } value_ = value; - onChanged(); } else { valueBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -851,11 +863,11 @@ public Builder setValue(com.google.protobuf.Value value) { public Builder setValue(com.google.protobuf.Value.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); - onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -869,16 +881,18 @@ public Builder setValue(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeValue(com.google.protobuf.Value value) { if (valueBuilder_ == null) { - if (value_ != null) { - value_ = com.google.protobuf.Value.newBuilder(value_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && value_ != null + && value_ != com.google.protobuf.Value.getDefaultInstance()) { + getValueBuilder().mergeFrom(value); } else { value_ = value; } - onChanged(); } else { valueBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -891,14 +905,13 @@ public Builder mergeValue(com.google.protobuf.Value value) { * .google.protobuf.Value value = 2; */ public Builder clearValue() { - if (valueBuilder_ == null) { - value_ = null; - onChanged(); - } else { - value_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); valueBuilder_ = null; } - + onChanged(); return this; } /** @@ -911,7 +924,7 @@ public Builder clearValue() { * .google.protobuf.Value value = 2; */ public com.google.protobuf.Value.Builder getValueBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getValueFieldBuilder().getBuilder(); } @@ -1876,6 +1889,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (messageBuilder_ != null) { messageBuilder_.clear(); } @@ -1921,25 +1935,33 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case .CaseContent(this); - if (casesOrMessageCase_ == 1) { - if (messageBuilder_ == null) { - result.casesOrMessage_ = casesOrMessage_; - } else { - result.casesOrMessage_ = messageBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (casesOrMessageCase_ == 2) { - if (additionalCasesBuilder_ == null) { - result.casesOrMessage_ = casesOrMessage_; - } else { - result.casesOrMessage_ = additionalCasesBuilder_.build(); - } - } - result.casesOrMessageCase_ = casesOrMessageCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent + result) { + result.casesOrMessageCase_ = casesOrMessageCase_; + result.casesOrMessage_ = this.casesOrMessage_; + if (casesOrMessageCase_ == 1 && messageBuilder_ != null) { + result.casesOrMessage_ = messageBuilder_.build(); + } + if (casesOrMessageCase_ == 2 && additionalCasesBuilder_ != null) { + result.casesOrMessage_ = additionalCasesBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2083,6 +2105,8 @@ public Builder clearCasesOrMessage() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage, com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Builder, @@ -2296,7 +2320,6 @@ public Builder clearMessage() { } casesOrMessageCase_ = 1; onChanged(); - ; return messageBuilder_; } @@ -2541,7 +2564,6 @@ public Builder clearAdditionalCases() { } casesOrMessageCase_ = 2; onChanged(); - ; return additionalCasesBuilder_; } @@ -2617,7 +2639,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int CONDITION_FIELD_NUMBER = 1; - private volatile java.lang.Object condition_; + + @SuppressWarnings("serial") + private volatile java.lang.Object condition_ = ""; /** * * @@ -2676,6 +2700,8 @@ public com.google.protobuf.ByteString getConditionBytes() { } public static final int CASE_CONTENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case.CaseContent> caseContent_; @@ -2987,15 +3013,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; condition_ = ""; - if (caseContentBuilder_ == null) { caseContent_ = java.util.Collections.emptyList(); } else { caseContent_ = null; caseContentBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -3027,19 +3053,33 @@ public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case result = new com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case(this); - int from_bitField0_ = bitField0_; - result.condition_ = condition_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case result) { if (caseContentBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { caseContent_ = java.util.Collections.unmodifiableList(caseContent_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.caseContent_ = caseContent_; } else { result.caseContent_ = caseContentBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.condition_ = condition_; + } } @java.lang.Override @@ -3096,13 +3136,14 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getCondition().isEmpty()) { condition_ = other.condition_; + bitField0_ |= 0x00000001; onChanged(); } if (caseContentBuilder_ == null) { if (!other.caseContent_.isEmpty()) { if (caseContent_.isEmpty()) { caseContent_ = other.caseContent_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCaseContentIsMutable(); caseContent_.addAll(other.caseContent_); @@ -3115,7 +3156,7 @@ public Builder mergeFrom( caseContentBuilder_.dispose(); caseContentBuilder_ = null; caseContent_ = other.caseContent_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); caseContentBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCaseContentFieldBuilder() @@ -3154,7 +3195,7 @@ public Builder mergeFrom( case 10: { condition_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -3269,8 +3310,8 @@ public Builder setCondition(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - condition_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3291,8 +3332,8 @@ public Builder setCondition(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCondition() { - condition_ = getDefaultInstance().getCondition(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3318,8 +3359,8 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - condition_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3330,12 +3371,12 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) { caseContent_ = java.util.Collections.emptyList(); private void ensureCaseContentIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { caseContent_ = new java.util.ArrayList< com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case .CaseContent>(caseContent_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -3600,7 +3641,7 @@ public Builder addAllCaseContent( public Builder clearCaseContent() { if (caseContentBuilder_ == null) { caseContent_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { caseContentBuilder_.clear(); @@ -3761,7 +3802,7 @@ public Builder removeCaseContent(int index) { com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Case .CaseContentOrBuilder>( caseContent_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); caseContent_ = null; @@ -3838,6 +3879,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int CASES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List cases_; /** @@ -4127,6 +4170,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (casesBuilder_ == null) { cases_ = java.util.Collections.emptyList(); } else { @@ -4163,7 +4207,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases build public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases result = new com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases result) { if (casesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { cases_ = java.util.Collections.unmodifiableList(cases_); @@ -4173,8 +4226,11 @@ public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases build } else { result.cases_ = casesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -4801,6 +4857,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int MESSAGES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List messages_; /** * @@ -4871,7 +4929,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageOrBuilder getMessag } public static final int WEBHOOK_FIELD_NUMBER = 2; - private volatile java.lang.Object webhook_; + + @SuppressWarnings("serial") + private volatile java.lang.Object webhook_ = ""; /** * * @@ -4924,7 +4984,7 @@ public com.google.protobuf.ByteString getWebhookBytes() { } public static final int RETURN_PARTIAL_RESPONSES_FIELD_NUMBER = 8; - private boolean returnPartialResponses_; + private boolean returnPartialResponses_ = false; /** * * @@ -4950,7 +5010,9 @@ public boolean getReturnPartialResponses() { } public static final int TAG_FIELD_NUMBER = 3; - private volatile java.lang.Object tag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tag_ = ""; /** * * @@ -5011,6 +5073,8 @@ public com.google.protobuf.ByteString getTagBytes() { } public static final int SET_PARAMETER_ACTIONS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List setParameterActions_; /** @@ -5095,6 +5159,8 @@ public int getSetParameterActionsCount() { } public static final int CONDITIONAL_CASES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private java.util.List conditionalCases_; /** @@ -5441,6 +5507,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (messagesBuilder_ == null) { messages_ = java.util.Collections.emptyList(); } else { @@ -5449,25 +5516,22 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); webhook_ = ""; - returnPartialResponses_ = false; - tag_ = ""; - if (setParameterActionsBuilder_ == null) { setParameterActions_ = java.util.Collections.emptyList(); } else { setParameterActions_ = null; setParameterActionsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); if (conditionalCasesBuilder_ == null) { conditionalCases_ = java.util.Collections.emptyList(); } else { conditionalCases_ = null; conditionalCasesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); return this; } @@ -5495,7 +5559,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment build() { public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Fulfillment result = new com.google.cloud.dialogflow.cx.v3beta1.Fulfillment(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.Fulfillment result) { if (messagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); @@ -5505,29 +5578,37 @@ public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment buildPartial() { } else { result.messages_ = messagesBuilder_.build(); } - result.webhook_ = webhook_; - result.returnPartialResponses_ = returnPartialResponses_; - result.tag_ = tag_; if (setParameterActionsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { setParameterActions_ = java.util.Collections.unmodifiableList(setParameterActions_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); } result.setParameterActions_ = setParameterActions_; } else { result.setParameterActions_ = setParameterActionsBuilder_.build(); } if (conditionalCasesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { conditionalCases_ = java.util.Collections.unmodifiableList(conditionalCases_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); } result.conditionalCases_ = conditionalCases_; } else { result.conditionalCases_ = conditionalCasesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Fulfillment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.webhook_ = webhook_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.returnPartialResponses_ = returnPartialResponses_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.tag_ = tag_; + } } @java.lang.Override @@ -5605,6 +5686,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Fulfillment othe } if (!other.getWebhook().isEmpty()) { webhook_ = other.webhook_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getReturnPartialResponses() != false) { @@ -5612,13 +5694,14 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Fulfillment othe } if (!other.getTag().isEmpty()) { tag_ = other.tag_; + bitField0_ |= 0x00000008; onChanged(); } if (setParameterActionsBuilder_ == null) { if (!other.setParameterActions_.isEmpty()) { if (setParameterActions_.isEmpty()) { setParameterActions_ = other.setParameterActions_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureSetParameterActionsIsMutable(); setParameterActions_.addAll(other.setParameterActions_); @@ -5631,7 +5714,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Fulfillment othe setParameterActionsBuilder_.dispose(); setParameterActionsBuilder_ = null; setParameterActions_ = other.setParameterActions_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); setParameterActionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSetParameterActionsFieldBuilder() @@ -5645,7 +5728,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Fulfillment othe if (!other.conditionalCases_.isEmpty()) { if (conditionalCases_.isEmpty()) { conditionalCases_ = other.conditionalCases_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureConditionalCasesIsMutable(); conditionalCases_.addAll(other.conditionalCases_); @@ -5658,7 +5741,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Fulfillment othe conditionalCasesBuilder_.dispose(); conditionalCasesBuilder_ = null; conditionalCases_ = other.conditionalCases_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); conditionalCasesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConditionalCasesFieldBuilder() @@ -5711,13 +5794,13 @@ public Builder mergeFrom( case 18: { webhook_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { tag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 26 case 34: @@ -5753,7 +5836,7 @@ public Builder mergeFrom( case 64: { returnPartialResponses_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 64 default: @@ -6202,8 +6285,8 @@ public Builder setWebhook(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - webhook_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -6221,8 +6304,8 @@ public Builder setWebhook(java.lang.String value) { * @return This builder for chaining. */ public Builder clearWebhook() { - webhook_ = getDefaultInstance().getWebhook(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -6245,8 +6328,8 @@ public Builder setWebhookBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - webhook_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -6298,6 +6381,7 @@ public boolean getReturnPartialResponses() { public Builder setReturnPartialResponses(boolean value) { returnPartialResponses_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -6321,7 +6405,7 @@ public Builder setReturnPartialResponses(boolean value) { * @return This builder for chaining. */ public Builder clearReturnPartialResponses() { - + bitField0_ = (bitField0_ & ~0x00000004); returnPartialResponses_ = false; onChanged(); return this; @@ -6406,8 +6490,8 @@ public Builder setTag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tag_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -6429,8 +6513,8 @@ public Builder setTag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTag() { - tag_ = getDefaultInstance().getTag(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -6457,8 +6541,8 @@ public Builder setTagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - tag_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -6467,12 +6551,12 @@ public Builder setTagBytes(com.google.protobuf.ByteString value) { setParameterActions_ = java.util.Collections.emptyList(); private void ensureSetParameterActionsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { setParameterActions_ = new java.util.ArrayList< com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction>( setParameterActions_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; } } @@ -6722,7 +6806,7 @@ public Builder addAllSetParameterActions( public Builder clearSetParameterActions() { if (setParameterActionsBuilder_ == null) { setParameterActions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { setParameterActionsBuilder_.clear(); @@ -6871,7 +6955,7 @@ public Builder removeSetParameterActions(int index) { com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction.Builder, com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterActionOrBuilder>( setParameterActions_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); setParameterActions_ = null; @@ -6883,12 +6967,12 @@ public Builder removeSetParameterActions(int index) { conditionalCases_ = java.util.Collections.emptyList(); private void ensureConditionalCasesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { conditionalCases_ = new java.util.ArrayList< com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases>( conditionalCases_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000020; } } @@ -7138,7 +7222,7 @@ public Builder addAllConditionalCases( public Builder clearConditionalCases() { if (conditionalCasesBuilder_ == null) { conditionalCases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { conditionalCasesBuilder_.clear(); @@ -7286,7 +7370,7 @@ public Builder removeConditionalCases(int index) { com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases.Builder, com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder>( conditionalCases_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); conditionalCases_ = null; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetAgentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetAgentRequest.java index d51796a25883..e766b5613f7e 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetAgentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetAgentRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -322,8 +324,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -351,11 +353,20 @@ public com.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -404,6 +415,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.GetAgentRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -435,7 +447,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -455,6 +467,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -525,8 +539,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -545,8 +559,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -570,8 +584,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetAgentValidationResultRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetAgentValidationResultRequest.java index 2dd375d8b415..a8cb87de8fb0 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetAgentValidationResultRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetAgentValidationResultRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -128,7 +130,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -386,10 +390,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - languageCode_ = ""; - return this; } @@ -420,12 +423,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest bu public com.google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest result = new com.google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest(this); - result.name_ = name_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.GetAgentValidationResultRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -477,10 +492,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -512,13 +529,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -538,6 +555,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -611,8 +630,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -632,8 +651,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -658,8 +677,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -725,8 +744,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -742,8 +761,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -764,8 +783,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetChangelogRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetChangelogRequest.java index cbafe06bb844..30dd5e8617fe 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetChangelogRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetChangelogRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest result = new com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.GetChangelogRequ return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetDeploymentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetDeploymentRequest.java index 4da9279aa5a3..74a363a3910c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetDeploymentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetDeploymentRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -326,8 +328,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -355,11 +357,20 @@ public com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -408,6 +419,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.GetDeploymentReq return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -439,7 +451,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +471,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -535,8 +549,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -557,8 +571,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -584,8 +598,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetEntityTypeRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetEntityTypeRequest.java index 077727f69367..85284b6d8c95 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetEntityTypeRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetEntityTypeRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -401,10 +405,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - languageCode_ = ""; - return this; } @@ -432,12 +435,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest result = new com.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest(this); - result.name_ = name_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -486,10 +500,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.GetEntityTypeReq return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -521,13 +537,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -547,6 +563,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -620,8 +638,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -641,8 +659,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -667,8 +685,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -761,8 +779,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -787,8 +805,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -818,8 +836,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetEnvironmentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetEnvironmentRequest.java index 2a78680e055c..928d34435882 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetEnvironmentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetEnvironmentRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -326,8 +328,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -356,11 +358,21 @@ public com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -410,6 +422,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.GetEnvironmentRe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -441,7 +454,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -461,6 +474,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -537,8 +552,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -559,8 +574,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -586,8 +601,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetExperimentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetExperimentRequest.java index 5760f60c3d2f..94ada08b6023 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetExperimentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetExperimentRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -326,8 +328,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -355,11 +357,20 @@ public com.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.GetExperimentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -408,6 +419,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.GetExperimentReq return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -439,7 +451,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +471,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -535,8 +549,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -557,8 +571,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -584,8 +598,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetFlowRequest.java index 7394f532508c..2f7ae248fcfe 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetFlowRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetFlowRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -403,10 +407,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - languageCode_ = ""; - return this; } @@ -434,12 +437,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest result = new com.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest(this); - result.name_ = name_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -488,10 +502,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.GetFlowRequest o return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -523,13 +539,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -549,6 +565,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -622,8 +640,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -643,8 +661,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -669,8 +687,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -766,8 +784,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -793,8 +811,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -825,8 +843,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetFlowValidationResultRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetFlowValidationResultRequest.java index 6373615e885c..4a4a5a2fdde7 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetFlowValidationResultRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetFlowValidationResultRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -128,7 +130,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -386,10 +390,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - languageCode_ = ""; - return this; } @@ -419,12 +422,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest bui public com.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest result = new com.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest(this); - result.name_ = name_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.GetFlowValidationResultRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -476,10 +491,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -511,13 +528,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -537,6 +554,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -610,8 +629,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -631,8 +650,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -657,8 +676,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -724,8 +743,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -741,8 +760,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -763,8 +782,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetIntentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetIntentRequest.java index 82b3b20a4d15..de156483cedc 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetIntentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetIntentRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -397,10 +401,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - languageCode_ = ""; - return this; } @@ -428,12 +431,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest(this); - result.name_ = name_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -482,10 +496,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.GetIntentRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -517,13 +533,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -543,6 +559,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -616,8 +634,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -637,8 +655,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -663,8 +681,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -751,8 +769,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -775,8 +793,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -804,8 +822,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetPageRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetPageRequest.java index 7543663bb5fb..5e404d44e482 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetPageRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetPageRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -419,10 +423,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - languageCode_ = ""; - return this; } @@ -450,12 +453,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.GetPageRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.GetPageRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.GetPageRequest result = new com.google.cloud.dialogflow.cx.v3beta1.GetPageRequest(this); - result.name_ = name_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.GetPageRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -504,10 +518,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.GetPageRequest o return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -539,13 +555,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -565,6 +581,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -638,8 +656,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -659,8 +677,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -685,8 +703,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -806,8 +824,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -841,8 +859,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -881,8 +899,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetSecuritySettingsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetSecuritySettingsRequest.java index f12594321fae..439fc2511e37 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetSecuritySettingsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetSecuritySettingsRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -326,8 +328,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -356,11 +358,21 @@ public com.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest build() public com.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest result = new com.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.GetSecuritySettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -411,6 +423,7 @@ public Builder mergeFrom( return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -442,7 +455,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -462,6 +475,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -535,8 +550,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -556,8 +571,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -582,8 +597,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetSessionEntityTypeRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetSessionEntityTypeRequest.java index b58b725d2fbb..f2679df8163f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetSessionEntityTypeRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetSessionEntityTypeRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -334,8 +336,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -365,11 +367,21 @@ public com.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest build( public com.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest result = new com.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.GetSessionEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -421,6 +433,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -452,7 +465,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -472,6 +485,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -557,8 +572,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -582,8 +597,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -612,8 +627,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseRequest.java index 404182e7d35b..076ab127b16d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest result = new com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseReque return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseResultRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseResultRequest.java index 53d5af44cc00..3fa1f61af7ab 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseResultRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTestCaseResultRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest result = new com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.GetTestCaseResultRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -409,6 +421,7 @@ public Builder mergeFrom( return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -440,7 +453,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -460,6 +473,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -533,8 +548,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -554,8 +569,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -580,8 +595,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTransitionRouteGroupRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTransitionRouteGroupRequest.java index a977af5af8f8..82c2cd6d7a42 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTransitionRouteGroupRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetTransitionRouteGroupRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -130,7 +132,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -406,10 +410,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - languageCode_ = ""; - return this; } @@ -439,12 +442,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest bui public com.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest result = new com.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest(this); - result.name_ = name_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.GetTransitionRouteGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -496,10 +511,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -531,13 +548,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -557,6 +574,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -633,8 +652,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -655,8 +674,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -682,8 +701,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -776,8 +795,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -802,8 +821,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -833,8 +852,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetVersionRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetVersionRequest.java index 2ec7146e221f..5db6e635013a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetVersionRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetVersionRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -326,8 +328,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -355,11 +357,20 @@ public com.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest result = new com.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.GetVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -408,6 +419,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.GetVersionReques return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -439,7 +451,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +471,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -535,8 +549,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -557,8 +571,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -584,8 +598,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetWebhookRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetWebhookRequest.java index 78b3a2c5819d..a1bf76de4d0d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetWebhookRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GetWebhookRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest result = new com.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.GetWebhookRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.GetWebhookReques return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportFlowRequest.java index 45c75f6ecf97..4285c4f3a7e4 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportFlowRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportFlowRequest.java @@ -284,7 +284,9 @@ public FlowCase getFlowCase() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -465,7 +467,7 @@ public com.google.protobuf.ByteString getFlowContent() { } public static final int IMPORT_OPTION_FIELD_NUMBER = 4; - private int importOption_; + private int importOption_ = 0; /** * * @@ -496,9 +498,8 @@ public int getImportOptionValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption getImportOption() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption result = - com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption.forNumber( importOption_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption.UNRECOGNIZED @@ -756,10 +757,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - importOption_ = 0; - flowCase_ = 0; flow_ = null; return this; @@ -789,19 +789,30 @@ public com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest(this); - result.parent_ = parent_; - if (flowCase_ == 2) { - result.flow_ = flow_; - } - if (flowCase_ == 3) { - result.flow_ = flow_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.importOption_ = importOption_; - result.flowCase_ = flowCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.importOption_ = importOption_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest result) { + result.flowCase_ = flowCase_; + result.flow_ = this.flow_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -850,6 +861,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ImportFlowReques return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.importOption_ != 0) { @@ -902,7 +914,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -921,7 +933,7 @@ public Builder mergeFrom( case 32: { importOption_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 default: @@ -955,6 +967,8 @@ public Builder clearFlow() { return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -1025,8 +1039,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1045,8 +1059,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1070,8 +1084,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1355,8 +1369,8 @@ public int getImportOptionValue() { * @return This builder for chaining. */ public Builder setImportOptionValue(int value) { - importOption_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1374,9 +1388,8 @@ public Builder setImportOptionValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption getImportOption() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption result = - com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption.forNumber( importOption_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRequest.ImportOption.UNRECOGNIZED @@ -1400,7 +1413,7 @@ public Builder setImportOption( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; importOption_ = value.getNumber(); onChanged(); return this; @@ -1418,7 +1431,7 @@ public Builder setImportOption( * @return This builder for chaining. */ public Builder clearImportOption() { - + bitField0_ = (bitField0_ & ~0x00000008); importOption_ = 0; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportFlowResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportFlowResponse.java index 35d880899008..5dbcd0aaa02b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportFlowResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportFlowResponse.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int FLOW_FIELD_NUMBER = 1; - private volatile java.lang.Object flow_; + + @SuppressWarnings("serial") + private volatile java.lang.Object flow_ = ""; /** * * @@ -320,8 +322,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; flow_ = ""; - return this; } @@ -349,11 +351,20 @@ public com.google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse(this); - result.flow_ = flow_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.flow_ = flow_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -402,6 +413,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ImportFlowRespon return this; if (!other.getFlow().isEmpty()) { flow_ = other.flow_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -433,7 +445,7 @@ public Builder mergeFrom( case 10: { flow_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -453,6 +465,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object flow_ = ""; /** * @@ -520,8 +534,8 @@ public Builder setFlow(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - flow_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -539,8 +553,8 @@ public Builder setFlow(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFlow() { - flow_ = getDefaultInstance().getFlow(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -563,8 +577,8 @@ public Builder setFlowBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - flow_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportTestCasesMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportTestCasesMetadata.java index 17c3d5e4f6c4..e2eb260faf6b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportTestCasesMetadata.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportTestCasesMetadata.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ERRORS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List errors_; /** * @@ -341,6 +343,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (errorsBuilder_ == null) { errors_ = java.util.Collections.emptyList(); } else { @@ -376,7 +379,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata build() { public com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata result = new com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata result) { if (errorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -386,8 +398,11 @@ public com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata buildParti } else { result.errors_ = errorsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportTestCasesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportTestCasesRequest.java index bc594f2e6f1d..e56cbde596d9 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportTestCasesRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportTestCasesRequest.java @@ -116,7 +116,9 @@ public SourceCase getSourceCase() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -532,8 +534,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - sourceCase_ = 0; source_ = null; return this; @@ -564,18 +566,28 @@ public com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest(this); - result.parent_ = parent_; - if (sourceCase_ == 2) { - result.source_ = source_; - } - if (sourceCase_ == 3) { - result.source_ = source_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.sourceCase_ = sourceCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -625,6 +637,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesR return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } switch (other.getSourceCase()) { @@ -674,7 +687,7 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -721,6 +734,8 @@ public Builder clearSource() { return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -791,8 +806,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -811,8 +826,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -836,8 +851,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportTestCasesResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportTestCasesResponse.java index fb9cca6245cf..bd9bf4b22485 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportTestCasesResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ImportTestCasesResponse.java @@ -69,6 +69,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAMES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList names_; /** * @@ -343,6 +345,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; names_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; @@ -373,14 +376,26 @@ public com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse result) { if (((bitField0_ & 0x00000001) != 0)) { names_ = names_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.names_ = names_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/InputAudioConfig.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/InputAudioConfig.java index f24c7c59d54f..581e41bc88f7 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/InputAudioConfig.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/InputAudioConfig.java @@ -71,7 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int AUDIO_ENCODING_FIELD_NUMBER = 1; - private int audioEncoding_; + private int audioEncoding_ = 0; /** * * @@ -104,16 +104,15 @@ public int getAudioEncodingValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.AudioEncoding getAudioEncoding() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.AudioEncoding result = - com.google.cloud.dialogflow.cx.v3beta1.AudioEncoding.valueOf(audioEncoding_); + com.google.cloud.dialogflow.cx.v3beta1.AudioEncoding.forNumber(audioEncoding_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.AudioEncoding.UNRECOGNIZED : result; } public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; - private int sampleRateHertz_; + private int sampleRateHertz_ = 0; /** * * @@ -135,7 +134,7 @@ public int getSampleRateHertz() { } public static final int ENABLE_WORD_INFO_FIELD_NUMBER = 13; - private boolean enableWordInfo_; + private boolean enableWordInfo_ = false; /** * * @@ -158,6 +157,8 @@ public boolean getEnableWordInfo() { } public static final int PHRASE_HINTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList phraseHints_; /** * @@ -235,7 +236,9 @@ public com.google.protobuf.ByteString getPhraseHintsBytes(int index) { } public static final int MODEL_FIELD_NUMBER = 7; - private volatile java.lang.Object model_; + + @SuppressWarnings("serial") + private volatile java.lang.Object model_ = ""; /** * * @@ -304,7 +307,7 @@ public com.google.protobuf.ByteString getModelBytes() { } public static final int MODEL_VARIANT_FIELD_NUMBER = 10; - private int modelVariant_; + private int modelVariant_ = 0; /** * * @@ -335,16 +338,15 @@ public int getModelVariantValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant getModelVariant() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant result = - com.google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant.valueOf(modelVariant_); + com.google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant.forNumber(modelVariant_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant.UNRECOGNIZED : result; } public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 8; - private boolean singleUtterance_; + private boolean singleUtterance_ = false; /** * * @@ -637,20 +639,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; audioEncoding_ = 0; - sampleRateHertz_ = 0; - enableWordInfo_ = false; - phraseHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); model_ = ""; - modelVariant_ = 0; - singleUtterance_ = false; - return this; } @@ -678,22 +675,45 @@ public com.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig build() { public com.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig result = new com.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig(this); - int from_bitField0_ = bitField0_; - result.audioEncoding_ = audioEncoding_; - result.sampleRateHertz_ = sampleRateHertz_; - result.enableWordInfo_ = enableWordInfo_; - if (((bitField0_ & 0x00000001) != 0)) { - phraseHints_ = phraseHints_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.phraseHints_ = phraseHints_; - result.model_ = model_; - result.modelVariant_ = modelVariant_; - result.singleUtterance_ = singleUtterance_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig result) { + if (((bitField0_ & 0x00000008) != 0)) { + phraseHints_ = phraseHints_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.phraseHints_ = phraseHints_; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.audioEncoding_ = audioEncoding_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sampleRateHertz_ = sampleRateHertz_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableWordInfo_ = enableWordInfo_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.model_ = model_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.modelVariant_ = modelVariant_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.singleUtterance_ = singleUtterance_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -752,7 +772,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig if (!other.phraseHints_.isEmpty()) { if (phraseHints_.isEmpty()) { phraseHints_ = other.phraseHints_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePhraseHintsIsMutable(); phraseHints_.addAll(other.phraseHints_); @@ -761,6 +781,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig } if (!other.getModel().isEmpty()) { model_ = other.model_; + bitField0_ |= 0x00000010; onChanged(); } if (other.modelVariant_ != 0) { @@ -798,13 +819,13 @@ public Builder mergeFrom( case 8: { audioEncoding_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { sampleRateHertz_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 34: @@ -817,25 +838,25 @@ public Builder mergeFrom( case 58: { model_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 58 case 64: { singleUtterance_ = input.readBool(); - + bitField0_ |= 0x00000040; break; } // case 64 case 80: { modelVariant_ = input.readEnum(); - + bitField0_ |= 0x00000020; break; } // case 80 case 104: { enableWordInfo_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 104 default: @@ -890,8 +911,8 @@ public int getAudioEncodingValue() { * @return This builder for chaining. */ public Builder setAudioEncodingValue(int value) { - audioEncoding_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -910,9 +931,8 @@ public Builder setAudioEncodingValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.AudioEncoding getAudioEncoding() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.AudioEncoding result = - com.google.cloud.dialogflow.cx.v3beta1.AudioEncoding.valueOf(audioEncoding_); + com.google.cloud.dialogflow.cx.v3beta1.AudioEncoding.forNumber(audioEncoding_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.AudioEncoding.UNRECOGNIZED : result; @@ -935,7 +955,7 @@ public Builder setAudioEncoding(com.google.cloud.dialogflow.cx.v3beta1.AudioEnco if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; audioEncoding_ = value.getNumber(); onChanged(); return this; @@ -954,7 +974,7 @@ public Builder setAudioEncoding(com.google.cloud.dialogflow.cx.v3beta1.AudioEnco * @return This builder for chaining. */ public Builder clearAudioEncoding() { - + bitField0_ = (bitField0_ & ~0x00000001); audioEncoding_ = 0; onChanged(); return this; @@ -999,6 +1019,7 @@ public int getSampleRateHertz() { public Builder setSampleRateHertz(int value) { sampleRateHertz_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1018,7 +1039,7 @@ public Builder setSampleRateHertz(int value) { * @return This builder for chaining. */ public Builder clearSampleRateHertz() { - + bitField0_ = (bitField0_ & ~0x00000002); sampleRateHertz_ = 0; onChanged(); return this; @@ -1065,6 +1086,7 @@ public boolean getEnableWordInfo() { public Builder setEnableWordInfo(boolean value) { enableWordInfo_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1085,7 +1107,7 @@ public Builder setEnableWordInfo(boolean value) { * @return This builder for chaining. */ public Builder clearEnableWordInfo() { - + bitField0_ = (bitField0_ & ~0x00000004); enableWordInfo_ = false; onChanged(); return this; @@ -1095,9 +1117,9 @@ public Builder clearEnableWordInfo() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePhraseHintsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { phraseHints_ = new com.google.protobuf.LazyStringArrayList(phraseHints_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } /** @@ -1264,7 +1286,7 @@ public Builder addAllPhraseHints(java.lang.Iterable values) { */ public Builder clearPhraseHints() { phraseHints_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1386,8 +1408,8 @@ public Builder setModel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - model_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1413,8 +1435,8 @@ public Builder setModel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearModel() { - model_ = getDefaultInstance().getModel(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1445,8 +1467,8 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - model_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1482,8 +1504,8 @@ public int getModelVariantValue() { * @return This builder for chaining. */ public Builder setModelVariantValue(int value) { - modelVariant_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1501,9 +1523,8 @@ public Builder setModelVariantValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant getModelVariant() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant result = - com.google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant.valueOf(modelVariant_); + com.google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant.forNumber(modelVariant_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.SpeechModelVariant.UNRECOGNIZED : result; @@ -1526,7 +1547,7 @@ public Builder setModelVariant( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000020; modelVariant_ = value.getNumber(); onChanged(); return this; @@ -1544,7 +1565,7 @@ public Builder setModelVariant( * @return This builder for chaining. */ public Builder clearModelVariant() { - + bitField0_ = (bitField0_ & ~0x00000020); modelVariant_ = 0; onChanged(); return this; @@ -1595,6 +1616,7 @@ public boolean getSingleUtterance() { public Builder setSingleUtterance(boolean value) { singleUtterance_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1617,7 +1639,7 @@ public Builder setSingleUtterance(boolean value) { * @return This builder for chaining. */ public Builder clearSingleUtterance() { - + bitField0_ = (bitField0_ & ~0x00000040); singleUtterance_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Intent.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Intent.java index b495c5321d9e..c7008ce16f01 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Intent.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Intent.java @@ -423,7 +423,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TEXT_FIELD_NUMBER = 1; - private volatile java.lang.Object text_; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; /** * * @@ -472,7 +474,9 @@ public com.google.protobuf.ByteString getTextBytes() { } public static final int PARAMETER_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object parameterId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parameterId_ = ""; /** * * @@ -736,10 +740,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; text_ = ""; - parameterId_ = ""; - return this; } @@ -769,12 +772,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part build() public com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part result = new com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part(this); - result.text_ = text_; - result.parameterId_ = parameterId_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.text_ = text_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parameterId_ = parameterId_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -828,10 +843,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getText().isEmpty()) { text_ = other.text_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getParameterId().isEmpty()) { parameterId_ = other.parameterId_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -863,13 +880,13 @@ public Builder mergeFrom( case 10: { text_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { parameterId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -889,6 +906,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object text_ = ""; /** * @@ -950,8 +969,8 @@ public Builder setText(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - text_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -967,8 +986,8 @@ public Builder setText(java.lang.String value) { * @return This builder for chaining. */ public Builder clearText() { - text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -989,8 +1008,8 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - text_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1062,8 +1081,8 @@ public Builder setParameterId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parameterId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1081,8 +1100,8 @@ public Builder setParameterId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParameterId() { - parameterId_ = getDefaultInstance().getParameterId(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1105,8 +1124,8 @@ public Builder setParameterIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parameterId_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1179,7 +1198,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -1228,6 +1249,8 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int PARTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List parts_; /** @@ -1381,7 +1404,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part getPart } public static final int REPEAT_COUNT_FIELD_NUMBER = 3; - private int repeatCount_; + private int repeatCount_ = 0; /** * * @@ -1618,17 +1641,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - if (partsBuilder_ == null) { parts_ = java.util.Collections.emptyList(); } else { parts_ = null; partsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); repeatCount_ = 0; - return this; } @@ -1657,20 +1679,36 @@ public com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase build() { public com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase result = new com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase(this); - int from_bitField0_ = bitField0_; - result.id_ = id_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase result) { if (partsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { parts_ = java.util.Collections.unmodifiableList(parts_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.parts_ = parts_; } else { result.parts_ = partsBuilder_.build(); } - result.repeatCount_ = repeatCount_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.repeatCount_ = repeatCount_; + } } @java.lang.Override @@ -1724,13 +1762,14 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingP return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (partsBuilder_ == null) { if (!other.parts_.isEmpty()) { if (parts_.isEmpty()) { parts_ = other.parts_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePartsIsMutable(); parts_.addAll(other.parts_); @@ -1743,7 +1782,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingP partsBuilder_.dispose(); partsBuilder_ = null; parts_ = other.parts_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); partsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPartsFieldBuilder() @@ -1785,7 +1824,7 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -1806,7 +1845,7 @@ public Builder mergeFrom( case 24: { repeatCount_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -1889,8 +1928,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1906,8 +1945,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1928,8 +1967,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1938,11 +1977,11 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { parts_ = java.util.Collections.emptyList(); private void ensurePartsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { parts_ = new java.util.ArrayList< com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part>(parts_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -2345,7 +2384,7 @@ public Builder addAllParts( public Builder clearParts() { if (partsBuilder_ == null) { parts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { partsBuilder_.clear(); @@ -2590,7 +2629,7 @@ public Builder removeParts(int index) { com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part, com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Part.Builder, com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.PartOrBuilder>( - parts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + parts_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); parts_ = null; } return partsBuilder_; @@ -2627,6 +2666,7 @@ public int getRepeatCount() { public Builder setRepeatCount(int value) { repeatCount_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2642,7 +2682,7 @@ public Builder setRepeatCount(int value) { * @return This builder for chaining. */ public Builder clearRepeatCount() { - + bitField0_ = (bitField0_ & ~0x00000004); repeatCount_ = 0; onChanged(); return this; @@ -2875,7 +2915,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ID_FIELD_NUMBER = 1; - private volatile java.lang.Object id_; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; /** * * @@ -2932,7 +2974,9 @@ public com.google.protobuf.ByteString getIdBytes() { } public static final int ENTITY_TYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object entityType_; + + @SuppressWarnings("serial") + private volatile java.lang.Object entityType_ = ""; /** * * @@ -2995,7 +3039,7 @@ public com.google.protobuf.ByteString getEntityTypeBytes() { } public static final int IS_LIST_FIELD_NUMBER = 3; - private boolean isList_; + private boolean isList_ = false; /** * * @@ -3013,7 +3057,7 @@ public boolean getIsList() { } public static final int REDACT_FIELD_NUMBER = 4; - private boolean redact_; + private boolean redact_ = false; /** * * @@ -3263,14 +3307,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; id_ = ""; - entityType_ = ""; - isList_ = false; - redact_ = false; - return this; } @@ -3298,14 +3339,29 @@ public com.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter build() { public com.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter result = new com.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter(this); - result.id_ = id_; - result.entityType_ = entityType_; - result.isList_ = isList_; - result.redact_ = redact_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entityType_ = entityType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isList_ = isList_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.redact_ = redact_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3356,10 +3412,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter return this; if (!other.getId().isEmpty()) { id_ = other.id_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getEntityType().isEmpty()) { entityType_ = other.entityType_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getIsList() != false) { @@ -3397,25 +3455,25 @@ public Builder mergeFrom( case 10: { id_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { entityType_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { isList_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 case 32: { redact_ = input.readBool(); - + bitField0_ |= 0x00000008; break; } // case 32 default: @@ -3435,6 +3493,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object id_ = ""; /** * @@ -3508,8 +3568,8 @@ public Builder setId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3529,8 +3589,8 @@ public Builder setId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearId() { - id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3555,8 +3615,8 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3643,8 +3703,8 @@ public Builder setEntityType(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - entityType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3667,8 +3727,8 @@ public Builder setEntityType(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEntityType() { - entityType_ = getDefaultInstance().getEntityType(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3696,8 +3756,8 @@ public Builder setEntityTypeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - entityType_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3733,6 +3793,7 @@ public boolean getIsList() { public Builder setIsList(boolean value) { isList_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3748,7 +3809,7 @@ public Builder setIsList(boolean value) { * @return This builder for chaining. */ public Builder clearIsList() { - + bitField0_ = (bitField0_ & ~0x00000004); isList_ = false; onChanged(); return this; @@ -3797,6 +3858,7 @@ public boolean getRedact() { public Builder setRedact(boolean value) { redact_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3818,7 +3880,7 @@ public Builder setRedact(boolean value) { * @return This builder for chaining. */ public Builder clearRedact() { - + bitField0_ = (bitField0_ & ~0x00000008); redact_ = false; onChanged(); return this; @@ -3889,7 +3951,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter getDefaultInstanc } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -3952,7 +4016,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -4001,6 +4067,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int TRAINING_PHRASES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List trainingPhrases_; /** @@ -4085,6 +4153,8 @@ public com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase getTrainingP } public static final int PARAMETERS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List parameters_; /** * @@ -4156,7 +4226,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.Intent.ParameterOrBuilder getParam } public static final int PRIORITY_FIELD_NUMBER = 5; - private int priority_; + private int priority_ = 0; /** * * @@ -4180,7 +4250,7 @@ public int getPriority() { } public static final int IS_FALLBACK_FIELD_NUMBER = 6; - private boolean isFallback_; + private boolean isFallback_ = false; /** * * @@ -4215,6 +4285,7 @@ private static final class LabelsDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -4302,7 +4373,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -4341,7 +4415,9 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public static final int DESCRIPTION_FIELD_NUMBER = 8; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -4686,31 +4762,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - if (trainingPhrasesBuilder_ == null) { trainingPhrases_ = java.util.Collections.emptyList(); } else { trainingPhrases_ = null; trainingPhrasesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); } else { parameters_ = null; parametersBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); priority_ = 0; - isFallback_ = false; - internalGetMutableLabels().clear(); description_ = ""; - return this; } @@ -4738,34 +4810,56 @@ public com.google.cloud.dialogflow.cx.v3beta1.Intent build() { public com.google.cloud.dialogflow.cx.v3beta1.Intent buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Intent result = new com.google.cloud.dialogflow.cx.v3beta1.Intent(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3beta1.Intent result) { if (trainingPhrasesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { trainingPhrases_ = java.util.Collections.unmodifiableList(trainingPhrases_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.trainingPhrases_ = trainingPhrases_; } else { result.trainingPhrases_ = trainingPhrasesBuilder_.build(); } if (parametersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { parameters_ = java.util.Collections.unmodifiableList(parameters_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); } result.parameters_ = parameters_; } else { result.parameters_ = parametersBuilder_.build(); } - result.priority_ = priority_; - result.isFallback_ = isFallback_; - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - result.description_ = description_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Intent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.priority_ = priority_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.isFallback_ = isFallback_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.description_ = description_; + } } @java.lang.Override @@ -4815,17 +4909,19 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Intent other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.Intent.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (trainingPhrasesBuilder_ == null) { if (!other.trainingPhrases_.isEmpty()) { if (trainingPhrases_.isEmpty()) { trainingPhrases_ = other.trainingPhrases_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTrainingPhrasesIsMutable(); trainingPhrases_.addAll(other.trainingPhrases_); @@ -4838,7 +4934,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Intent other) { trainingPhrasesBuilder_.dispose(); trainingPhrasesBuilder_ = null; trainingPhrases_ = other.trainingPhrases_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); trainingPhrasesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTrainingPhrasesFieldBuilder() @@ -4852,7 +4948,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Intent other) { if (!other.parameters_.isEmpty()) { if (parameters_.isEmpty()) { parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureParametersIsMutable(); parameters_.addAll(other.parameters_); @@ -4865,7 +4961,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Intent other) { parametersBuilder_.dispose(); parametersBuilder_ = null; parameters_ = other.parameters_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); parametersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getParametersFieldBuilder() @@ -4882,8 +4978,10 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Intent other) { setIsFallback(other.getIsFallback()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000040; if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000080; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -4915,13 +5013,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -4955,13 +5053,13 @@ public Builder mergeFrom( case 40: { priority_ = input.readInt32(); - + bitField0_ |= 0x00000010; break; } // case 40 case 48: { isFallback_ = input.readBool(); - + bitField0_ |= 0x00000020; break; } // case 48 case 58: @@ -4973,12 +5071,13 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000040; break; } // case 58 case 66: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 66 default: @@ -5082,8 +5181,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5106,8 +5205,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -5135,8 +5234,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5202,8 +5301,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -5219,8 +5318,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -5241,8 +5340,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -5251,11 +5350,11 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { trainingPhrases_ = java.util.Collections.emptyList(); private void ensureTrainingPhrasesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { trainingPhrases_ = new java.util.ArrayList( trainingPhrases_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -5512,7 +5611,7 @@ public Builder addAllTrainingPhrases( public Builder clearTrainingPhrases() { if (trainingPhrasesBuilder_ == null) { trainingPhrases_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { trainingPhrasesBuilder_.clear(); @@ -5664,7 +5763,7 @@ public Builder removeTrainingPhrases(int index) { com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhrase.Builder, com.google.cloud.dialogflow.cx.v3beta1.Intent.TrainingPhraseOrBuilder>( trainingPhrases_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); trainingPhrases_ = null; @@ -5676,11 +5775,11 @@ public Builder removeTrainingPhrases(int index) { java.util.Collections.emptyList(); private void ensureParametersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { parameters_ = new java.util.ArrayList( parameters_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; } } @@ -5902,7 +6001,7 @@ public Builder addAllParameters( public Builder clearParameters() { if (parametersBuilder_ == null) { parameters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { parametersBuilder_.clear(); @@ -6029,7 +6128,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.Builder addParame com.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter, com.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.Builder, com.google.cloud.dialogflow.cx.v3beta1.Intent.ParameterOrBuilder>( - parameters_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + parameters_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); parameters_ = null; } return parametersBuilder_; @@ -6078,6 +6177,7 @@ public int getPriority() { public Builder setPriority(int value) { priority_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -6099,7 +6199,7 @@ public Builder setPriority(int value) { * @return This builder for chaining. */ public Builder clearPriority() { - + bitField0_ = (bitField0_ & ~0x00000010); priority_ = 0; onChanged(); return this; @@ -6146,6 +6246,7 @@ public boolean getIsFallback() { public Builder setIsFallback(boolean value) { isFallback_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -6166,7 +6267,7 @@ public Builder setIsFallback(boolean value) { * @return This builder for chaining. */ public Builder clearIsFallback() { - + bitField0_ = (bitField0_ & ~0x00000020); isFallback_ = false; onChanged(); return this; @@ -6183,14 +6284,14 @@ private com.google.protobuf.MapField interna private com.google.protobuf.MapField internalGetMutableLabels() { - onChanged(); - ; if (labels_ == null) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); } if (!labels_.isMutable()) { labels_ = labels_.copy(); } + bitField0_ |= 0x00000040; + onChanged(); return labels_; } @@ -6272,8 +6373,10 @@ public java.util.Map getLabelsMap() { * map<string, string> labels = 7; */ @java.lang.Override - public java.lang.String getLabelsOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -6312,6 +6415,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000040); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -6344,6 +6448,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000040; return internalGetMutableLabels().getMutableMap(); } /** @@ -6372,8 +6477,8 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000040; return this; } /** @@ -6397,6 +6502,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000040; return this; } @@ -6464,8 +6570,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6482,8 +6588,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -6505,8 +6611,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentCoverage.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentCoverage.java index e6df40dbcc89..d672668b2cf7 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentCoverage.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentCoverage.java @@ -162,7 +162,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object intent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object intent_ = ""; /** * * @@ -211,7 +213,7 @@ public com.google.protobuf.ByteString getIntentBytes() { } public static final int COVERED_FIELD_NUMBER = 2; - private boolean covered_; + private boolean covered_ = false; /** * * @@ -438,10 +440,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; intent_ = ""; - covered_ = false; - return this; } @@ -470,12 +471,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent build() { public com.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent result = new com.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent(this); - result.intent_ = intent_; - result.covered_ = covered_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.Intent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.intent_ = intent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.covered_ = covered_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -527,6 +540,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.I return this; if (!other.getIntent().isEmpty()) { intent_ = other.intent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getCovered() != false) { @@ -561,13 +575,13 @@ public Builder mergeFrom( case 10: { intent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { covered_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -587,6 +601,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object intent_ = ""; /** * @@ -648,8 +664,8 @@ public Builder setIntent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - intent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -665,8 +681,8 @@ public Builder setIntent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearIntent() { - intent_ = getDefaultInstance().getIntent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -687,8 +703,8 @@ public Builder setIntentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - intent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -726,6 +742,7 @@ public boolean getCovered() { public Builder setCovered(boolean value) { covered_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -742,7 +759,7 @@ public Builder setCovered(boolean value) { * @return This builder for chaining. */ public Builder clearCovered() { - + bitField0_ = (bitField0_ & ~0x00000002); covered_ = false; onChanged(); return this; @@ -816,6 +833,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int INTENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List intents_; /** * @@ -888,7 +907,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.IntentCoverage.IntentOrBuilder get } public static final int COVERAGE_SCORE_FIELD_NUMBER = 2; - private float coverageScore_; + private float coverageScore_ = 0F; /** * * @@ -1116,6 +1135,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (intentsBuilder_ == null) { intents_ = java.util.Collections.emptyList(); } else { @@ -1124,7 +1144,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); coverageScore_ = 0F; - return this; } @@ -1152,7 +1171,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.IntentCoverage build() { public com.google.cloud.dialogflow.cx.v3beta1.IntentCoverage buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.IntentCoverage result = new com.google.cloud.dialogflow.cx.v3beta1.IntentCoverage(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.IntentCoverage result) { if (intentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { intents_ = java.util.Collections.unmodifiableList(intents_); @@ -1162,9 +1190,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.IntentCoverage buildPartial() { } else { result.intents_ = intentsBuilder_.build(); } - result.coverageScore_ = coverageScore_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.IntentCoverage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.coverageScore_ = coverageScore_; + } } @java.lang.Override @@ -1286,7 +1318,7 @@ public Builder mergeFrom( case 21: { coverageScore_ = input.readFloat(); - + bitField0_ |= 0x00000002; break; } // case 21 default: @@ -1705,6 +1737,7 @@ public float getCoverageScore() { public Builder setCoverageScore(float value) { coverageScore_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1720,7 +1753,7 @@ public Builder setCoverageScore(float value) { * @return This builder for chaining. */ public Builder clearCoverageScore() { - + bitField0_ = (bitField0_ & ~0x00000002); coverageScore_ = 0F; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentInput.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentInput.java index b9aecea0518b..826616d64f0a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentInput.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentInput.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object intent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object intent_ = ""; /** * * @@ -323,8 +325,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; intent_ = ""; - return this; } @@ -352,11 +354,20 @@ public com.google.cloud.dialogflow.cx.v3beta1.IntentInput build() { public com.google.cloud.dialogflow.cx.v3beta1.IntentInput buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.IntentInput result = new com.google.cloud.dialogflow.cx.v3beta1.IntentInput(this); - result.intent_ = intent_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.IntentInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.intent_ = intent_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -405,6 +416,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.IntentInput othe return this; if (!other.getIntent().isEmpty()) { intent_ = other.intent_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -436,7 +448,7 @@ public Builder mergeFrom( case 10: { intent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -456,6 +468,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object intent_ = ""; /** * @@ -529,8 +543,8 @@ public Builder setIntent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - intent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -550,8 +564,8 @@ public Builder setIntent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearIntent() { - intent_ = getDefaultInstance().getIntent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -576,8 +590,8 @@ public Builder setIntentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - intent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentOrBuilder.java index 0011a81b0e0d..7024779f7cd2 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentOrBuilder.java @@ -323,7 +323,6 @@ com.google.cloud.dialogflow.cx.v3beta1.Intent.ParameterOrBuilder getParametersOr * * map<string, string> labels = 7; */ - /* nullable */ java.lang.String getLabelsOrDefault( java.lang.String key, diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListAgentsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListAgentsRequest.java index 446cc68b8a20..3f376bbeda2d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListAgentsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListAgentsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -125,7 +127,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -144,7 +146,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -409,12 +413,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -442,13 +444,26 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ListAgentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -497,6 +512,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListAgentsReques return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -504,6 +520,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListAgentsReques } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -535,19 +552,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -567,6 +584,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -637,8 +656,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -657,8 +676,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -682,8 +701,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -721,6 +740,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -737,7 +757,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -804,8 +824,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -821,8 +841,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -843,8 +863,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListAgentsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListAgentsResponse.java index 7ed6e14ef145..5754b93c59c8 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListAgentsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListAgentsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int AGENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List agents_; /** * @@ -144,7 +146,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.AgentOrBuilder getAgentsOrBuilder( } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -404,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (agentsBuilder_ == null) { agents_ = java.util.Collections.emptyList(); } else { @@ -412,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -440,7 +444,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse result) { if (agentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { agents_ = java.util.Collections.unmodifiableList(agents_); @@ -450,9 +463,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse buildPartial() } else { result.agents_ = agentsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ListAgentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -530,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListAgentsRespon } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -574,7 +592,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1027,8 +1045,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1045,8 +1063,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1068,8 +1086,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListChangelogsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListChangelogsRequest.java index 15520d067ab5..f834481c2d0c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListChangelogsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListChangelogsRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int FILTER_FIELD_NUMBER = 2; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -213,7 +217,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -232,7 +236,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -506,14 +512,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -542,14 +545,30 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest(this); - result.parent_ = parent_; - result.filter_ = filter_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -599,10 +618,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRe return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -610,6 +631,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRe } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -641,25 +663,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -679,6 +701,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -749,8 +773,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -769,8 +793,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -794,8 +818,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -918,8 +942,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -954,8 +978,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -995,8 +1019,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1034,6 +1058,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1050,7 +1075,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1117,8 +1142,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1134,8 +1159,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1156,8 +1181,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListChangelogsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListChangelogsResponse.java index b73de4be393d..a59a97125033 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListChangelogsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListChangelogsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CHANGELOGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List changelogs_; /** * @@ -150,7 +152,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ChangelogOrBuilder getChangelogsOr } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -410,6 +414,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (changelogsBuilder_ == null) { changelogs_ = java.util.Collections.emptyList(); } else { @@ -418,7 +423,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -447,7 +451,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse result) { if (changelogsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { changelogs_ = java.util.Collections.unmodifiableList(changelogs_); @@ -457,9 +470,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse buildPartia } else { result.changelogs_ = changelogsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -538,6 +556,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListChangelogsRe } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -583,7 +602,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1061,8 +1080,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1079,8 +1098,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1102,8 +1121,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListContinuousTestResultsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListContinuousTestResultsRequest.java index 126e0f93c70f..3f5e44932127 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListContinuousTestResultsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListContinuousTestResultsRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -128,7 +130,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -147,7 +149,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -415,12 +419,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -451,13 +453,27 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest b public com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -510,6 +526,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -517,6 +534,7 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -548,19 +566,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -580,6 +598,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -653,8 +673,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -674,8 +694,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -700,8 +720,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -739,6 +759,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -755,7 +776,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -822,8 +843,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -839,8 +860,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -861,8 +882,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListContinuousTestResultsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListContinuousTestResultsResponse.java index 279743717ee4..52d8c3836010 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListContinuousTestResultsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListContinuousTestResultsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int CONTINUOUS_TEST_RESULTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List continuousTestResults_; /** @@ -154,7 +156,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult getContinuous } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -419,6 +423,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (continuousTestResultsBuilder_ == null) { continuousTestResults_ = java.util.Collections.emptyList(); } else { @@ -427,7 +432,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -458,7 +462,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse public com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse result) { if (continuousTestResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { continuousTestResults_ = java.util.Collections.unmodifiableList(continuousTestResults_); @@ -468,9 +481,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse } else { result.continuousTestResults_ = continuousTestResultsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListContinuousTestResultsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -552,6 +570,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -597,7 +616,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1090,8 +1109,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1108,8 +1127,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1131,8 +1150,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListDeploymentsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListDeploymentsRequest.java index 5cf880d09789..37339806dedb 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListDeploymentsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListDeploymentsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -148,7 +150,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -413,12 +417,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -447,13 +449,27 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -503,6 +519,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsR return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -510,6 +527,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsR } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -541,19 +559,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -573,6 +591,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -649,8 +669,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -671,8 +691,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -698,8 +718,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -737,6 +757,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -753,7 +774,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -820,8 +841,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -837,8 +858,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -859,8 +880,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListDeploymentsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListDeploymentsResponse.java index 25e3e2931e89..6be216fe91c2 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListDeploymentsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListDeploymentsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DEPLOYMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List deployments_; /** * @@ -155,7 +157,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.DeploymentOrBuilder getDeployments } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -415,6 +419,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (deploymentsBuilder_ == null) { deployments_ = java.util.Collections.emptyList(); } else { @@ -423,7 +428,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -452,7 +456,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse result) { if (deploymentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { deployments_ = java.util.Collections.unmodifiableList(deployments_); @@ -462,9 +475,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse buildParti } else { result.deployments_ = deploymentsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -543,6 +561,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListDeploymentsR } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -588,7 +607,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1086,8 +1105,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1104,8 +1123,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1127,8 +1146,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEntityTypesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEntityTypesRequest.java index 2bef8f796239..112cf2319795 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEntityTypesRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEntityTypesRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -126,7 +128,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -193,7 +197,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -212,7 +216,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -486,14 +492,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - languageCode_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -522,14 +525,30 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest(this); - result.parent_ = parent_; - result.languageCode_ = languageCode_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -579,10 +598,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesR return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -590,6 +611,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesR } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -621,25 +643,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -659,6 +681,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -729,8 +753,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -749,8 +773,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -774,8 +798,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -868,8 +892,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -894,8 +918,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -925,8 +949,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -964,6 +988,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -980,7 +1005,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1047,8 +1072,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1064,8 +1089,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1086,8 +1111,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEntityTypesResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEntityTypesResponse.java index cc31acb26c88..538bdb06d08a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEntityTypesResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEntityTypesResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENTITY_TYPES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List entityTypes_; /** * @@ -145,7 +147,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.EntityTypeOrBuilder getEntityTypes } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -405,6 +409,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (entityTypesBuilder_ == null) { entityTypes_ = java.util.Collections.emptyList(); } else { @@ -413,7 +418,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -442,7 +446,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse result) { if (entityTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { entityTypes_ = java.util.Collections.unmodifiableList(entityTypes_); @@ -452,9 +465,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse buildParti } else { result.entityTypes_ = entityTypesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -533,6 +551,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListEntityTypesR } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -578,7 +597,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1040,8 +1059,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1058,8 +1077,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1081,8 +1100,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEnvironmentsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEnvironmentsRequest.java index 261e83df8028..2c1dd8080267 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEnvironmentsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEnvironmentsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -146,7 +148,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -411,12 +415,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -445,13 +447,27 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -501,6 +517,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListEnvironments return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -508,6 +525,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListEnvironments } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -539,19 +557,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -571,6 +589,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -644,8 +664,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -665,8 +685,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -691,8 +711,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -730,6 +750,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -746,7 +767,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -813,8 +834,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -830,8 +851,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -852,8 +873,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEnvironmentsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEnvironmentsResponse.java index c0349ec3acdb..08aa2b2a248d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEnvironmentsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListEnvironmentsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENVIRONMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List environments_; /** * @@ -155,7 +157,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.EnvironmentOrBuilder getEnvironmen } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -415,6 +419,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (environmentsBuilder_ == null) { environments_ = java.util.Collections.emptyList(); } else { @@ -423,7 +428,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -452,7 +456,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse result) { if (environmentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { environments_ = java.util.Collections.unmodifiableList(environments_); @@ -462,9 +475,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse buildPart } else { result.environments_ = environmentsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListEnvironmentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -544,6 +562,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -589,7 +608,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1088,8 +1107,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1106,8 +1125,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1129,8 +1148,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListExperimentsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListExperimentsRequest.java index d409a23200c6..60b5b2d7c246 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListExperimentsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListExperimentsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -148,7 +150,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -413,12 +417,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -447,13 +449,27 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListExperimentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -503,6 +519,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListExperimentsR return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -510,6 +527,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListExperimentsR } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -541,19 +559,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -573,6 +591,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -649,8 +669,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -671,8 +691,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -698,8 +718,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -737,6 +757,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -753,7 +774,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -820,8 +841,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -837,8 +858,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -859,8 +880,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListExperimentsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListExperimentsResponse.java index 14b19576e9a9..e2a0cf38964b 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListExperimentsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListExperimentsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int EXPERIMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List experiments_; /** * @@ -155,7 +157,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ExperimentOrBuilder getExperiments } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -415,6 +419,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (experimentsBuilder_ == null) { experiments_ = java.util.Collections.emptyList(); } else { @@ -423,7 +428,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -452,7 +456,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse result) { if (experimentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { experiments_ = java.util.Collections.unmodifiableList(experiments_); @@ -462,9 +475,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse buildParti } else { result.experiments_ = experimentsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListExperimentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -543,6 +561,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListExperimentsR } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -588,7 +607,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1086,8 +1105,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1104,8 +1123,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1127,8 +1146,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListFlowsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListFlowsRequest.java index 7b5961bf810e..b477f2a699cb 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListFlowsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListFlowsRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -126,7 +128,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -145,7 +147,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -194,7 +198,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 4; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -488,14 +494,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - languageCode_ = ""; - return this; } @@ -523,14 +526,29 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -579,6 +597,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -586,10 +605,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListFlowsRequest } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -621,25 +642,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -659,6 +680,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -729,8 +752,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -749,8 +772,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -774,8 +797,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -813,6 +836,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -829,7 +853,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -896,8 +920,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -913,8 +937,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -935,8 +959,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1032,8 +1056,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1059,8 +1083,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1091,8 +1115,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListFlowsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListFlowsResponse.java index 314b86bf81d5..43dcdd2fc270 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListFlowsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListFlowsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int FLOWS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List flows_; /** * @@ -144,7 +146,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.FlowOrBuilder getFlowsOrBuilder(in } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -404,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (flowsBuilder_ == null) { flows_ = java.util.Collections.emptyList(); } else { @@ -412,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -440,7 +444,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse result) { if (flowsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { flows_ = java.util.Collections.unmodifiableList(flows_); @@ -450,9 +463,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse buildPartial() { } else { result.flows_ = flowsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ListFlowsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -530,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListFlowsRespons } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -574,7 +592,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1027,8 +1045,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1045,8 +1063,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1068,8 +1086,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListIntentsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListIntentsRequest.java index 10421966a385..84060957498f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListIntentsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListIntentsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -190,7 +194,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } public static final int INTENT_VIEW_FIELD_NUMBER = 5; - private int intentView_; + private int intentView_ = 0; /** * * @@ -219,14 +223,13 @@ public int getIntentViewValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.IntentView getIntentView() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.IntentView result = - com.google.cloud.dialogflow.cx.v3beta1.IntentView.valueOf(intentView_); + com.google.cloud.dialogflow.cx.v3beta1.IntentView.forNumber(intentView_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.IntentView.UNRECOGNIZED : result; } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -245,7 +248,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -530,16 +535,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - languageCode_ = ""; - intentView_ = 0; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -567,15 +568,32 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest(this); - result.parent_ = parent_; - result.languageCode_ = languageCode_; - result.intentView_ = intentView_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ListIntentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.intentView_ = intentView_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -624,10 +642,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListIntentsReque return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } if (other.intentView_ != 0) { @@ -638,6 +658,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListIntentsReque } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -669,31 +690,31 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000008; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 34 case 40: { intentView_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 40 default: @@ -713,6 +734,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -783,8 +806,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -803,8 +826,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -828,8 +851,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -916,8 +939,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -940,8 +963,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -969,8 +992,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1004,8 +1027,8 @@ public int getIntentViewValue() { * @return This builder for chaining. */ public Builder setIntentViewValue(int value) { - intentView_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1022,9 +1045,8 @@ public Builder setIntentViewValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.IntentView getIntentView() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.IntentView result = - com.google.cloud.dialogflow.cx.v3beta1.IntentView.valueOf(intentView_); + com.google.cloud.dialogflow.cx.v3beta1.IntentView.forNumber(intentView_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.IntentView.UNRECOGNIZED : result; @@ -1045,7 +1067,7 @@ public Builder setIntentView(com.google.cloud.dialogflow.cx.v3beta1.IntentView v if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; intentView_ = value.getNumber(); onChanged(); return this; @@ -1062,7 +1084,7 @@ public Builder setIntentView(com.google.cloud.dialogflow.cx.v3beta1.IntentView v * @return This builder for chaining. */ public Builder clearIntentView() { - + bitField0_ = (bitField0_ & ~0x00000004); intentView_ = 0; onChanged(); return this; @@ -1101,6 +1123,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1117,7 +1140,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000008); pageSize_ = 0; onChanged(); return this; @@ -1184,8 +1207,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1201,8 +1224,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1223,8 +1246,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListIntentsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListIntentsResponse.java index ede1c6842994..b15164f7c05d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListIntentsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListIntentsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int INTENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List intents_; /** * @@ -144,7 +146,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.IntentOrBuilder getIntentsOrBuilde } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -404,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (intentsBuilder_ == null) { intents_ = java.util.Collections.emptyList(); } else { @@ -412,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -440,7 +444,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse result) { if (intentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { intents_ = java.util.Collections.unmodifiableList(intents_); @@ -450,9 +463,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse buildPartial() } else { result.intents_ = intentsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ListIntentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -530,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListIntentsRespo } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -574,7 +592,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1028,8 +1046,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1046,8 +1064,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1069,8 +1087,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListPagesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListPagesRequest.java index e4ed498884b0..c0f764ddb3e4 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListPagesRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListPagesRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -128,7 +130,9 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -213,7 +217,7 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -232,7 +236,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -506,14 +512,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - languageCode_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -541,14 +544,29 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest(this); - result.parent_ = parent_; - result.languageCode_ = languageCode_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -597,10 +615,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getPageSize() != 0) { @@ -608,6 +628,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListPagesRequest } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -639,25 +660,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -677,6 +698,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -750,8 +773,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -771,8 +794,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -797,8 +820,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -918,8 +941,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -953,8 +976,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -993,8 +1016,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1032,6 +1055,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1048,7 +1072,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000004); pageSize_ = 0; onChanged(); return this; @@ -1115,8 +1139,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1132,8 +1156,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1154,8 +1178,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListPagesResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListPagesResponse.java index 9d64609b1e1b..07c882331695 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListPagesResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListPagesResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PAGES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List pages_; /** * @@ -144,7 +146,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.PageOrBuilder getPagesOrBuilder(in } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -404,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (pagesBuilder_ == null) { pages_ = java.util.Collections.emptyList(); } else { @@ -412,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -440,7 +444,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse result) { if (pagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { pages_ = java.util.Collections.unmodifiableList(pages_); @@ -450,9 +463,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse buildPartial() { } else { result.pages_ = pagesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ListPagesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -530,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListPagesRespons } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -574,7 +592,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1027,8 +1045,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1045,8 +1063,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1068,8 +1086,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSecuritySettingsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSecuritySettingsRequest.java index eaf51fbb2c90..4eeb7f1df9d7 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSecuritySettingsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSecuritySettingsRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -124,7 +126,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -143,7 +145,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -409,12 +413,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -444,13 +446,27 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest build( public com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -502,6 +518,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -509,6 +526,7 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -540,19 +558,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -572,6 +590,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -642,8 +662,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -662,8 +682,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -687,8 +707,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -726,6 +746,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -742,7 +763,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -809,8 +830,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -826,8 +847,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -848,8 +869,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSecuritySettingsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSecuritySettingsResponse.java index 7bea1729ce41..e63101c49b66 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSecuritySettingsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSecuritySettingsResponse.java @@ -69,6 +69,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SECURITY_SETTINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List securitySettings_; /** * @@ -145,7 +147,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings getSecuritySettin } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -406,6 +410,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (securitySettingsBuilder_ == null) { securitySettings_ = java.util.Collections.emptyList(); } else { @@ -414,7 +419,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -444,7 +448,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse build public com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse result) { if (securitySettingsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { securitySettings_ = java.util.Collections.unmodifiableList(securitySettings_); @@ -454,9 +467,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse build } else { result.securitySettings_ = securitySettingsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListSecuritySettingsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -537,6 +555,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -582,7 +601,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1054,8 +1073,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1072,8 +1091,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1095,8 +1114,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSessionEntityTypesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSessionEntityTypesRequest.java index b2e9f775dfe5..f71f1d3dae26 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSessionEntityTypesRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSessionEntityTypesRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -133,7 +135,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -152,7 +154,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -419,12 +423,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -454,13 +456,27 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest buil public com.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -512,6 +528,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -519,6 +536,7 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -550,19 +568,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -582,6 +600,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -664,8 +684,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -688,8 +708,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -717,8 +737,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -756,6 +776,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -772,7 +793,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -839,8 +860,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -856,8 +877,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -878,8 +899,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSessionEntityTypesResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSessionEntityTypesResponse.java index f54d17b2b5b8..dc4415943e14 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSessionEntityTypesResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListSessionEntityTypesResponse.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SESSION_ENTITY_TYPES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List sessionEntityTypes_; /** @@ -153,7 +155,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType getSessionEntity } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -416,6 +420,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (sessionEntityTypesBuilder_ == null) { sessionEntityTypes_ = java.util.Collections.emptyList(); } else { @@ -424,7 +429,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -454,7 +458,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse bui public com.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse result) { if (sessionEntityTypesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { sessionEntityTypes_ = java.util.Collections.unmodifiableList(sessionEntityTypes_); @@ -464,9 +477,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse bui } else { result.sessionEntityTypes_ = sessionEntityTypesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListSessionEntityTypesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -547,6 +565,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -592,7 +611,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1102,8 +1121,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1120,8 +1139,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1143,8 +1162,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCaseResultsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCaseResultsRequest.java index 7b3dcde1c27d..d4777b439735 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCaseResultsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCaseResultsRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -130,7 +132,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -149,7 +151,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -198,7 +202,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int FILTER_FIELD_NUMBER = 4; - private volatile java.lang.Object filter_; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; /** * * @@ -510,14 +516,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - filter_ = ""; - return this; } @@ -546,14 +549,30 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest build() public com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.filter_ = filter_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -604,6 +623,7 @@ public Builder mergeFrom( return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -611,10 +631,12 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -646,25 +668,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { filter_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -684,6 +706,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -760,8 +784,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -782,8 +806,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -809,8 +833,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -848,6 +872,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -864,7 +889,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -931,8 +956,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -948,8 +973,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -970,8 +995,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1091,8 +1116,8 @@ public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1126,8 +1151,8 @@ public Builder setFilter(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1166,8 +1191,8 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCaseResultsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCaseResultsResponse.java index ec2c0cb139d0..e2d6947ddfcb 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCaseResultsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCaseResultsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TEST_CASE_RESULTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List testCaseResults_; /** * @@ -141,7 +143,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestCaseResultOrBuilder getTestCas } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -403,6 +407,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (testCaseResultsBuilder_ == null) { testCaseResults_ = java.util.Collections.emptyList(); } else { @@ -411,7 +416,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -441,7 +445,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse build( public com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse result) { if (testCaseResultsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { testCaseResults_ = java.util.Collections.unmodifiableList(testCaseResults_); @@ -451,9 +464,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse buildP } else { result.testCaseResults_ = testCaseResultsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListTestCaseResultsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -534,6 +552,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -579,7 +598,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1047,8 +1066,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1065,8 +1084,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1088,8 +1107,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCasesRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCasesRequest.java index 9615812a9b6a..d22bd7e54023 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCasesRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCasesRequest.java @@ -234,7 +234,9 @@ private TestCaseView(int value) { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -289,7 +291,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -309,7 +311,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -358,7 +362,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int VIEW_FIELD_NUMBER = 4; - private int view_; + private int view_ = 0; /** * * @@ -387,9 +391,8 @@ public int getViewValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView getView() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView result = - com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView.valueOf(view_); + com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView.forNumber(view_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView.UNRECOGNIZED : result; @@ -627,14 +630,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - view_ = 0; - return this; } @@ -662,14 +662,29 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.view_ = view_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.view_ = view_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -718,6 +733,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesReq return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -725,6 +741,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesReq } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (other.view_ != 0) { @@ -759,25 +776,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 32: { view_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 default: @@ -797,6 +814,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -867,8 +886,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -887,8 +906,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -912,8 +931,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -953,6 +972,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -970,7 +990,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -1037,8 +1057,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1054,8 +1074,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1076,8 +1096,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1111,8 +1131,8 @@ public int getViewValue() { * @return This builder for chaining. */ public Builder setViewValue(int value) { - view_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1129,9 +1149,8 @@ public Builder setViewValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView getView() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView result = - com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView.valueOf(view_); + com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView.forNumber(view_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRequest.TestCaseView.UNRECOGNIZED : result; @@ -1153,7 +1172,7 @@ public Builder setView( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; view_ = value.getNumber(); onChanged(); return this; @@ -1170,7 +1189,7 @@ public Builder setView( * @return This builder for chaining. */ public Builder clearView() { - + bitField0_ = (bitField0_ & ~0x00000008); view_ = 0; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCasesResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCasesResponse.java index 4568122ffaec..c7b92be84a46 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCasesResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTestCasesResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TEST_CASES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List testCases_; /** * @@ -144,7 +146,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestCaseOrBuilder getTestCasesOrBu } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -404,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (testCasesBuilder_ == null) { testCases_ = java.util.Collections.emptyList(); } else { @@ -412,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -441,7 +445,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse result) { if (testCasesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { testCases_ = java.util.Collections.unmodifiableList(testCases_); @@ -451,9 +464,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse buildPartial } else { result.testCases_ = testCasesBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -532,6 +550,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListTestCasesRes } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -577,7 +596,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1033,8 +1052,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1051,8 +1070,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1074,8 +1093,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTransitionRouteGroupsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTransitionRouteGroupsRequest.java index fc1a9168918c..d537d7f16598 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTransitionRouteGroupsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTransitionRouteGroupsRequest.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -129,7 +131,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -148,7 +150,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -197,7 +201,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 4; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -492,14 +498,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - languageCode_ = ""; - return this; } @@ -530,14 +533,30 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest b public com.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -590,6 +609,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -597,10 +617,12 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000008; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -632,25 +654,25 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -670,6 +692,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -743,8 +767,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -764,8 +788,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -790,8 +814,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -829,6 +853,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -845,7 +870,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -912,8 +937,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -929,8 +954,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -951,8 +976,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1045,8 +1070,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1071,8 +1096,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1102,8 +1127,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTransitionRouteGroupsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTransitionRouteGroupsResponse.java index 8523d6a99482..d5e85d5b7919 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTransitionRouteGroupsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListTransitionRouteGroupsResponse.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRANSITION_ROUTE_GROUPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List transitionRouteGroups_; /** @@ -170,7 +172,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup getTransition } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -436,6 +440,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (transitionRouteGroupsBuilder_ == null) { transitionRouteGroups_ = java.util.Collections.emptyList(); } else { @@ -444,7 +449,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -475,7 +479,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse public com.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse result) { if (transitionRouteGroupsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { transitionRouteGroups_ = java.util.Collections.unmodifiableList(transitionRouteGroups_); @@ -485,9 +498,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse } else { result.transitionRouteGroups_ = transitionRouteGroupsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ListTransitionRouteGroupsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -569,6 +587,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -614,7 +633,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1161,8 +1180,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1179,8 +1198,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1202,8 +1221,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListVersionsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListVersionsRequest.java index 0fce93e8ceae..5c48df509fc8 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListVersionsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListVersionsRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -127,7 +129,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -146,7 +148,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -411,12 +415,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -444,13 +446,26 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -499,6 +514,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequ return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -506,6 +522,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListVersionsRequ } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -537,19 +554,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -569,6 +586,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -642,8 +661,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -663,8 +682,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -689,8 +708,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -728,6 +747,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -744,7 +764,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -811,8 +831,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -828,8 +848,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -850,8 +870,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListVersionsResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListVersionsResponse.java index 58ec7b4377f4..5d04f6903fae 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListVersionsResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListVersionsResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VERSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List versions_; /** * @@ -149,7 +151,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.VersionOrBuilder getVersionsOrBuil } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -409,6 +413,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (versionsBuilder_ == null) { versions_ = java.util.Collections.emptyList(); } else { @@ -417,7 +422,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -445,7 +449,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse result) { if (versionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { versions_ = java.util.Collections.unmodifiableList(versions_); @@ -455,9 +468,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse buildPartial( } else { result.versions_ = versionsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ListVersionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -535,6 +552,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListVersionsResp } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -579,7 +597,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1052,8 +1070,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1070,8 +1088,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1093,8 +1111,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListWebhooksRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListWebhooksRequest.java index 116867ada8ae..eea4169f0dc8 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListWebhooksRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListWebhooksRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; /** * * @@ -125,7 +127,7 @@ public com.google.protobuf.ByteString getParentBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -144,7 +146,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -409,12 +413,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -442,13 +444,26 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -497,6 +512,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequ return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -504,6 +520,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksRequ } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -535,19 +552,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -567,6 +584,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object parent_ = ""; /** * @@ -637,8 +656,8 @@ public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -657,8 +676,8 @@ public Builder setParent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -682,8 +701,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - parent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -721,6 +740,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -737,7 +757,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -804,8 +824,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -821,8 +841,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -843,8 +863,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListWebhooksResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListWebhooksResponse.java index 923aaa7b26f0..54417ae20f1d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListWebhooksResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ListWebhooksResponse.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int WEBHOOKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List webhooks_; /** * @@ -144,7 +146,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.WebhookOrBuilder getWebhooksOrBuil } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -404,6 +408,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (webhooksBuilder_ == null) { webhooks_ = java.util.Collections.emptyList(); } else { @@ -412,7 +417,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -440,7 +444,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse result = new com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse result) { if (webhooksBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { webhooks_ = java.util.Collections.unmodifiableList(webhooks_); @@ -450,9 +463,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse buildPartial( } else { result.webhooks_ = webhooksBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -530,6 +547,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ListWebhooksResp } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -574,7 +592,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1029,8 +1047,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1047,8 +1065,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1070,8 +1088,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LoadVersionRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LoadVersionRequest.java index 73e7fbed0ada..e4d372de337c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LoadVersionRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LoadVersionRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,7 +128,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int ALLOW_OVERRIDE_AGENT_RESOURCES_FIELD_NUMBER = 2; - private boolean allowOverrideAgentResources_; + private boolean allowOverrideAgentResources_ = false; /** * * @@ -355,10 +357,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - allowOverrideAgentResources_ = false; - return this; } @@ -386,12 +387,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest result = new com.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest(this); - result.name_ = name_; - result.allowOverrideAgentResources_ = allowOverrideAgentResources_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.LoadVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.allowOverrideAgentResources_ = allowOverrideAgentResources_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -440,6 +452,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.LoadVersionReque return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getAllowOverrideAgentResources() != false) { @@ -474,13 +487,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { allowOverrideAgentResources_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -500,6 +513,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -573,8 +588,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -594,8 +609,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -620,8 +635,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -663,6 +678,7 @@ public boolean getAllowOverrideAgentResources() { public Builder setAllowOverrideAgentResources(boolean value) { allowOverrideAgentResources_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -681,7 +697,7 @@ public Builder setAllowOverrideAgentResources(boolean value) { * @return This builder for chaining. */ public Builder clearAllowOverrideAgentResources() { - + bitField0_ = (bitField0_ & ~0x00000002); allowOverrideAgentResources_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LookupEnvironmentHistoryRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LookupEnvironmentHistoryRequest.java index 19586689bc94..8c37dea05229 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LookupEnvironmentHistoryRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LookupEnvironmentHistoryRequest.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -128,7 +130,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; + private int pageSize_ = 0; /** * * @@ -147,7 +149,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; /** * * @@ -414,12 +418,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; } @@ -450,13 +452,27 @@ public com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest bu public com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest result = new com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest(this); - result.name_ = name_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -508,6 +524,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getPageSize() != 0) { @@ -515,6 +532,7 @@ public Builder mergeFrom( } if (!other.getPageToken().isEmpty()) { pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -546,19 +564,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { pageSize_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { pageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -578,6 +596,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -651,8 +671,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -672,8 +692,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -698,8 +718,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -737,6 +757,7 @@ public int getPageSize() { public Builder setPageSize(int value) { pageSize_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -753,7 +774,7 @@ public Builder setPageSize(int value) { * @return This builder for chaining. */ public Builder clearPageSize() { - + bitField0_ = (bitField0_ & ~0x00000002); pageSize_ = 0; onChanged(); return this; @@ -820,8 +841,8 @@ public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -837,8 +858,8 @@ public Builder setPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -859,8 +880,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LookupEnvironmentHistoryResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LookupEnvironmentHistoryResponse.java index a33161aeeb98..c486c89a2428 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LookupEnvironmentHistoryResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/LookupEnvironmentHistoryResponse.java @@ -71,6 +71,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENVIRONMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List environments_; /** * @@ -151,7 +153,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.EnvironmentOrBuilder getEnvironmen } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; /** * * @@ -414,6 +418,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (environmentsBuilder_ == null) { environments_ = java.util.Collections.emptyList(); } else { @@ -422,7 +427,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); nextPageToken_ = ""; - return this; } @@ -453,7 +457,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse b public com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse result = new com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse result) { if (environmentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { environments_ = java.util.Collections.unmodifiableList(environments_); @@ -463,9 +476,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse b } else { result.environments_ = environmentsBuilder_.build(); } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.LookupEnvironmentHistoryResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } } @java.lang.Override @@ -547,6 +565,7 @@ public Builder mergeFrom( } if (!other.getNextPageToken().isEmpty()) { nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -592,7 +611,7 @@ public Builder mergeFrom( case 18: { nextPageToken_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1073,8 +1092,8 @@ public Builder setNextPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1091,8 +1110,8 @@ public Builder setNextPageToken(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1114,8 +1133,8 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - nextPageToken_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Match.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Match.java index 78683d835f7a..0f976d3b1513 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Match.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Match.java @@ -368,11 +368,15 @@ public com.google.cloud.dialogflow.cx.v3beta1.Intent getIntent() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.IntentOrBuilder getIntentOrBuilder() { - return getIntent(); + return intent_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Intent.getDefaultInstance() + : intent_; } public static final int EVENT_FIELD_NUMBER = 6; - private volatile java.lang.Object event_; + + @SuppressWarnings("serial") + private volatile java.lang.Object event_ = ""; /** * * @@ -504,11 +508,13 @@ public com.google.protobuf.Struct getParameters() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { - return getParameters(); + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; } public static final int RESOLVED_INPUT_FIELD_NUMBER = 3; - private volatile java.lang.Object resolvedInput_; + + @SuppressWarnings("serial") + private volatile java.lang.Object resolvedInput_ = ""; /** * * @@ -561,7 +567,7 @@ public com.google.protobuf.ByteString getResolvedInputBytes() { } public static final int MATCH_TYPE_FIELD_NUMBER = 4; - private int matchType_; + private int matchType_ = 0; /** * * @@ -590,16 +596,15 @@ public int getMatchTypeValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Match.MatchType getMatchType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.Match.MatchType result = - com.google.cloud.dialogflow.cx.v3beta1.Match.MatchType.valueOf(matchType_); + com.google.cloud.dialogflow.cx.v3beta1.Match.MatchType.forNumber(matchType_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.Match.MatchType.UNRECOGNIZED : result; } public static final int CONFIDENCE_FIELD_NUMBER = 5; - private float confidence_; + private float confidence_ = 0F; /** * * @@ -878,26 +883,21 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (intentBuilder_ == null) { - intent_ = null; - } else { - intent_ = null; + bitField0_ = 0; + intent_ = null; + if (intentBuilder_ != null) { + intentBuilder_.dispose(); intentBuilder_ = null; } event_ = ""; - - if (parametersBuilder_ == null) { - parameters_ = null; - } else { - parameters_ = null; + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } resolvedInput_ = ""; - matchType_ = 0; - confidence_ = 0F; - return this; } @@ -925,24 +925,35 @@ public com.google.cloud.dialogflow.cx.v3beta1.Match build() { public com.google.cloud.dialogflow.cx.v3beta1.Match buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Match result = new com.google.cloud.dialogflow.cx.v3beta1.Match(this); - if (intentBuilder_ == null) { - result.intent_ = intent_; - } else { - result.intent_ = intentBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.event_ = event_; - if (parametersBuilder_ == null) { - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); - } - result.resolvedInput_ = resolvedInput_; - result.matchType_ = matchType_; - result.confidence_ = confidence_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Match result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.intent_ = intentBuilder_ == null ? intent_ : intentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.event_ = event_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.resolvedInput_ = resolvedInput_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.matchType_ = matchType_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.confidence_ = confidence_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -993,6 +1004,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Match other) { } if (!other.getEvent().isEmpty()) { event_ = other.event_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasParameters()) { @@ -1000,6 +1012,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Match other) { } if (!other.getResolvedInput().isEmpty()) { resolvedInput_ = other.resolvedInput_; + bitField0_ |= 0x00000008; onChanged(); } if (other.matchType_ != 0) { @@ -1037,37 +1050,37 @@ public Builder mergeFrom( case 10: { input.readMessage(getIntentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 18 case 26: { resolvedInput_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 26 case 32: { matchType_ = input.readEnum(); - + bitField0_ |= 0x00000010; break; } // case 32 case 45: { confidence_ = input.readFloat(); - + bitField0_ |= 0x00000020; break; } // case 45 case 50: { event_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 50 default: @@ -1087,6 +1100,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.Intent intent_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Intent, @@ -1108,7 +1123,7 @@ public Builder mergeFrom( * @return Whether the intent field is set. */ public boolean hasIntent() { - return intentBuilder_ != null || intent_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1151,11 +1166,11 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3beta1.Intent value) { throw new NullPointerException(); } intent_ = value; - onChanged(); } else { intentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1174,11 +1189,11 @@ public Builder setIntent( com.google.cloud.dialogflow.cx.v3beta1.Intent.Builder builderForValue) { if (intentBuilder_ == null) { intent_ = builderForValue.build(); - onChanged(); } else { intentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1195,19 +1210,18 @@ public Builder setIntent( */ public Builder mergeIntent(com.google.cloud.dialogflow.cx.v3beta1.Intent value) { if (intentBuilder_ == null) { - if (intent_ != null) { - intent_ = - com.google.cloud.dialogflow.cx.v3beta1.Intent.newBuilder(intent_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && intent_ != null + && intent_ != com.google.cloud.dialogflow.cx.v3beta1.Intent.getDefaultInstance()) { + getIntentBuilder().mergeFrom(value); } else { intent_ = value; } - onChanged(); } else { intentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1223,14 +1237,13 @@ public Builder mergeIntent(com.google.cloud.dialogflow.cx.v3beta1.Intent value) * .google.cloud.dialogflow.cx.v3beta1.Intent intent = 1; */ public Builder clearIntent() { - if (intentBuilder_ == null) { - intent_ = null; - onChanged(); - } else { - intent_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + intent_ = null; + if (intentBuilder_ != null) { + intentBuilder_.dispose(); intentBuilder_ = null; } - + onChanged(); return this; } /** @@ -1246,7 +1259,7 @@ public Builder clearIntent() { * .google.cloud.dialogflow.cx.v3beta1.Intent intent = 1; */ public com.google.cloud.dialogflow.cx.v3beta1.Intent.Builder getIntentBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getIntentFieldBuilder().getBuilder(); } @@ -1373,8 +1386,8 @@ public Builder setEvent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - event_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1394,8 +1407,8 @@ public Builder setEvent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEvent() { - event_ = getDefaultInstance().getEvent(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1420,8 +1433,8 @@ public Builder setEventBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - event_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1455,7 +1468,7 @@ public Builder setEventBytes(com.google.protobuf.ByteString value) { * @return Whether the parameters field is set. */ public boolean hasParameters() { - return parametersBuilder_ != null || parameters_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1512,11 +1525,11 @@ public Builder setParameters(com.google.protobuf.Struct value) { throw new NullPointerException(); } parameters_ = value; - onChanged(); } else { parametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1542,11 +1555,11 @@ public Builder setParameters(com.google.protobuf.Struct value) { public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) { if (parametersBuilder_ == null) { parameters_ = builderForValue.build(); - onChanged(); } else { parametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1571,17 +1584,18 @@ public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) */ public Builder mergeParameters(com.google.protobuf.Struct value) { if (parametersBuilder_ == null) { - if (parameters_ != null) { - parameters_ = - com.google.protobuf.Struct.newBuilder(parameters_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && parameters_ != null + && parameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getParametersBuilder().mergeFrom(value); } else { parameters_ = value; } - onChanged(); } else { parametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1605,14 +1619,13 @@ public Builder mergeParameters(com.google.protobuf.Struct value) { * .google.protobuf.Struct parameters = 2; */ public Builder clearParameters() { - if (parametersBuilder_ == null) { - parameters_ = null; - onChanged(); - } else { - parameters_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -1636,7 +1649,7 @@ public Builder clearParameters() { * .google.protobuf.Struct parameters = 2; */ public com.google.protobuf.Struct.Builder getParametersBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getParametersFieldBuilder().getBuilder(); } @@ -1771,8 +1784,8 @@ public Builder setResolvedInput(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - resolvedInput_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1790,8 +1803,8 @@ public Builder setResolvedInput(java.lang.String value) { * @return This builder for chaining. */ public Builder clearResolvedInput() { - resolvedInput_ = getDefaultInstance().getResolvedInput(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1814,8 +1827,8 @@ public Builder setResolvedInputBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - resolvedInput_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1849,8 +1862,8 @@ public int getMatchTypeValue() { * @return This builder for chaining. */ public Builder setMatchTypeValue(int value) { - matchType_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1867,9 +1880,8 @@ public Builder setMatchTypeValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Match.MatchType getMatchType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.Match.MatchType result = - com.google.cloud.dialogflow.cx.v3beta1.Match.MatchType.valueOf(matchType_); + com.google.cloud.dialogflow.cx.v3beta1.Match.MatchType.forNumber(matchType_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.Match.MatchType.UNRECOGNIZED : result; @@ -1890,7 +1902,7 @@ public Builder setMatchType(com.google.cloud.dialogflow.cx.v3beta1.Match.MatchTy if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000010; matchType_ = value.getNumber(); onChanged(); return this; @@ -1907,7 +1919,7 @@ public Builder setMatchType(com.google.cloud.dialogflow.cx.v3beta1.Match.MatchTy * @return This builder for chaining. */ public Builder clearMatchType() { - + bitField0_ = (bitField0_ & ~0x00000010); matchType_ = 0; onChanged(); return this; @@ -1954,6 +1966,7 @@ public float getConfidence() { public Builder setConfidence(float value) { confidence_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1974,7 +1987,7 @@ public Builder setConfidence(float value) { * @return This builder for chaining. */ public Builder clearConfidence() { - + bitField0_ = (bitField0_ & ~0x00000020); confidence_ = 0F; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchIntentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchIntentRequest.java index eba2248cb1c7..26f00757ea96 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchIntentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchIntentRequest.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SESSION_FIELD_NUMBER = 1; - private volatile java.lang.Object session_; + + @SuppressWarnings("serial") + private volatile java.lang.Object session_ = ""; /** * * @@ -185,7 +187,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.QueryParameters getQueryParams() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.QueryParametersOrBuilder getQueryParamsOrBuilder() { - return getQueryParams(); + return queryParams_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.getDefaultInstance() + : queryParams_; } public static final int QUERY_INPUT_FIELD_NUMBER = 3; @@ -239,7 +243,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.QueryInput getQueryInput() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.QueryInputOrBuilder getQueryInputOrBuilder() { - return getQueryInput(); + return queryInput_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.QueryInput.getDefaultInstance() + : queryInput_; } private byte memoizedIsInitialized = -1; @@ -468,18 +474,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; session_ = ""; - - if (queryParamsBuilder_ == null) { - queryParams_ = null; - } else { - queryParams_ = null; + queryParams_ = null; + if (queryParamsBuilder_ != null) { + queryParamsBuilder_.dispose(); queryParamsBuilder_ = null; } - if (queryInputBuilder_ == null) { - queryInput_ = null; - } else { - queryInput_ = null; + queryInput_ = null; + if (queryInputBuilder_ != null) { + queryInputBuilder_.dispose(); queryInputBuilder_ = null; } return this; @@ -509,21 +513,27 @@ public com.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest(this); - result.session_ = session_; - if (queryParamsBuilder_ == null) { - result.queryParams_ = queryParams_; - } else { - result.queryParams_ = queryParamsBuilder_.build(); - } - if (queryInputBuilder_ == null) { - result.queryInput_ = queryInput_; - } else { - result.queryInput_ = queryInputBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.MatchIntentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.session_ = session_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queryParams_ = + queryParamsBuilder_ == null ? queryParams_ : queryParamsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.queryInput_ = queryInputBuilder_ == null ? queryInput_ : queryInputBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -572,6 +582,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.MatchIntentReque return this; if (!other.getSession().isEmpty()) { session_ = other.session_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasQueryParams()) { @@ -609,19 +620,19 @@ public Builder mergeFrom( case 10: { session_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getQueryParamsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getQueryInputFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -641,6 +652,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object session_ = ""; /** * @@ -738,8 +751,8 @@ public Builder setSession(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - session_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -767,8 +780,8 @@ public Builder setSession(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSession() { - session_ = getDefaultInstance().getSession(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -801,8 +814,8 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - session_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -825,7 +838,7 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) { * @return Whether the queryParams field is set. */ public boolean hasQueryParams() { - return queryParamsBuilder_ != null || queryParams_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -862,11 +875,11 @@ public Builder setQueryParams(com.google.cloud.dialogflow.cx.v3beta1.QueryParame throw new NullPointerException(); } queryParams_ = value; - onChanged(); } else { queryParamsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -882,11 +895,11 @@ public Builder setQueryParams( com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.Builder builderForValue) { if (queryParamsBuilder_ == null) { queryParams_ = builderForValue.build(); - onChanged(); } else { queryParamsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -900,19 +913,19 @@ public Builder setQueryParams( */ public Builder mergeQueryParams(com.google.cloud.dialogflow.cx.v3beta1.QueryParameters value) { if (queryParamsBuilder_ == null) { - if (queryParams_ != null) { - queryParams_ = - com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.newBuilder(queryParams_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && queryParams_ != null + && queryParams_ + != com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.getDefaultInstance()) { + getQueryParamsBuilder().mergeFrom(value); } else { queryParams_ = value; } - onChanged(); } else { queryParamsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -925,14 +938,13 @@ public Builder mergeQueryParams(com.google.cloud.dialogflow.cx.v3beta1.QueryPara * .google.cloud.dialogflow.cx.v3beta1.QueryParameters query_params = 2; */ public Builder clearQueryParams() { - if (queryParamsBuilder_ == null) { - queryParams_ = null; - onChanged(); - } else { - queryParams_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + queryParams_ = null; + if (queryParamsBuilder_ != null) { + queryParamsBuilder_.dispose(); queryParamsBuilder_ = null; } - + onChanged(); return this; } /** @@ -945,7 +957,7 @@ public Builder clearQueryParams() { * .google.cloud.dialogflow.cx.v3beta1.QueryParameters query_params = 2; */ public com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.Builder getQueryParamsBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getQueryParamsFieldBuilder().getBuilder(); } @@ -1014,7 +1026,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.Builder getQueryPa * @return Whether the queryInput field is set. */ public boolean hasQueryInput() { - return queryInputBuilder_ != null || queryInput_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1055,11 +1067,11 @@ public Builder setQueryInput(com.google.cloud.dialogflow.cx.v3beta1.QueryInput v throw new NullPointerException(); } queryInput_ = value; - onChanged(); } else { queryInputBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1077,11 +1089,11 @@ public Builder setQueryInput( com.google.cloud.dialogflow.cx.v3beta1.QueryInput.Builder builderForValue) { if (queryInputBuilder_ == null) { queryInput_ = builderForValue.build(); - onChanged(); } else { queryInputBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1097,19 +1109,19 @@ public Builder setQueryInput( */ public Builder mergeQueryInput(com.google.cloud.dialogflow.cx.v3beta1.QueryInput value) { if (queryInputBuilder_ == null) { - if (queryInput_ != null) { - queryInput_ = - com.google.cloud.dialogflow.cx.v3beta1.QueryInput.newBuilder(queryInput_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && queryInput_ != null + && queryInput_ + != com.google.cloud.dialogflow.cx.v3beta1.QueryInput.getDefaultInstance()) { + getQueryInputBuilder().mergeFrom(value); } else { queryInput_ = value; } - onChanged(); } else { queryInputBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1124,14 +1136,13 @@ public Builder mergeQueryInput(com.google.cloud.dialogflow.cx.v3beta1.QueryInput * */ public Builder clearQueryInput() { - if (queryInputBuilder_ == null) { - queryInput_ = null; - onChanged(); - } else { - queryInput_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + queryInput_ = null; + if (queryInputBuilder_ != null) { + queryInputBuilder_.dispose(); queryInputBuilder_ = null; } - + onChanged(); return this; } /** @@ -1146,7 +1157,7 @@ public Builder clearQueryInput() { * */ public com.google.cloud.dialogflow.cx.v3beta1.QueryInput.Builder getQueryInputBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getQueryInputFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchIntentResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchIntentResponse.java index 6972da6dfd0d..4eebe55aee32 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchIntentResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/MatchIntentResponse.java @@ -422,6 +422,8 @@ public com.google.protobuf.ByteString getTriggerEventBytes() { } public static final int MATCHES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List matches_; /** * @@ -546,7 +548,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Page getCurrentPage() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.PageOrBuilder getCurrentPageOrBuilder() { - return getCurrentPage(); + return currentPage_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance() + : currentPage_; } private byte memoizedIsInitialized = -1; @@ -824,17 +828,17 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (matchesBuilder_ == null) { matches_ = java.util.Collections.emptyList(); } else { matches_ = null; matchesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (currentPageBuilder_ == null) { - currentPage_ = null; - } else { - currentPage_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + currentPage_ = null; + if (currentPageBuilder_ != null) { + currentPageBuilder_.dispose(); currentPageBuilder_ = null; } queryCase_ = 0; @@ -866,36 +870,40 @@ public com.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse result = new com.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse(this); - int from_bitField0_ = bitField0_; - if (queryCase_ == 1) { - result.query_ = query_; - } - if (queryCase_ == 2) { - result.query_ = query_; - } - if (queryCase_ == 3) { - result.query_ = query_; - } - if (queryCase_ == 6) { - result.query_ = query_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse result) { if (matchesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { matches_ = java.util.Collections.unmodifiableList(matches_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } result.matches_ = matches_; } else { result.matches_ = matchesBuilder_.build(); } - if (currentPageBuilder_ == null) { - result.currentPage_ = currentPage_; - } else { - result.currentPage_ = currentPageBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.currentPage_ = + currentPageBuilder_ == null ? currentPage_ : currentPageBuilder_.build(); } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3beta1.MatchIntentResponse result) { result.queryCase_ = queryCase_; - onBuilt(); - return result; + result.query_ = this.query_; } @java.lang.Override @@ -948,7 +956,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.MatchIntentRespo if (!other.matches_.isEmpty()) { if (matches_.isEmpty()) { matches_ = other.matches_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureMatchesIsMutable(); matches_.addAll(other.matches_); @@ -961,7 +969,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.MatchIntentRespo matchesBuilder_.dispose(); matchesBuilder_ = null; matches_ = other.matches_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); matchesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMatchesFieldBuilder() @@ -1071,7 +1079,7 @@ public Builder mergeFrom( case 42: { input.readMessage(getCurrentPageFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000020; break; } // case 42 case 50: @@ -1696,9 +1704,9 @@ public Builder setTriggerEventBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureMatchesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { matches_ = new java.util.ArrayList(matches_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000010; } } @@ -1925,7 +1933,7 @@ public Builder addAllMatches( public Builder clearMatches() { if (matchesBuilder_ == null) { matches_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { matchesBuilder_.clear(); @@ -2054,7 +2062,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.Match.Builder addMatchesBuilder(in com.google.cloud.dialogflow.cx.v3beta1.Match, com.google.cloud.dialogflow.cx.v3beta1.Match.Builder, com.google.cloud.dialogflow.cx.v3beta1.MatchOrBuilder>( - matches_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + matches_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); matches_ = null; } return matchesBuilder_; @@ -2080,7 +2088,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.Match.Builder addMatchesBuilder(in * @return Whether the currentPage field is set. */ public boolean hasCurrentPage() { - return currentPageBuilder_ != null || currentPage_ != null; + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -2121,11 +2129,11 @@ public Builder setCurrentPage(com.google.cloud.dialogflow.cx.v3beta1.Page value) throw new NullPointerException(); } currentPage_ = value; - onChanged(); } else { currentPageBuilder_.setMessage(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2143,11 +2151,11 @@ public Builder setCurrentPage( com.google.cloud.dialogflow.cx.v3beta1.Page.Builder builderForValue) { if (currentPageBuilder_ == null) { currentPage_ = builderForValue.build(); - onChanged(); } else { currentPageBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2163,19 +2171,18 @@ public Builder setCurrentPage( */ public Builder mergeCurrentPage(com.google.cloud.dialogflow.cx.v3beta1.Page value) { if (currentPageBuilder_ == null) { - if (currentPage_ != null) { - currentPage_ = - com.google.cloud.dialogflow.cx.v3beta1.Page.newBuilder(currentPage_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000020) != 0) + && currentPage_ != null + && currentPage_ != com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance()) { + getCurrentPageBuilder().mergeFrom(value); } else { currentPage_ = value; } - onChanged(); } else { currentPageBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000020; + onChanged(); return this; } /** @@ -2190,14 +2197,13 @@ public Builder mergeCurrentPage(com.google.cloud.dialogflow.cx.v3beta1.Page valu * .google.cloud.dialogflow.cx.v3beta1.Page current_page = 5; */ public Builder clearCurrentPage() { - if (currentPageBuilder_ == null) { - currentPage_ = null; - onChanged(); - } else { - currentPage_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + currentPage_ = null; + if (currentPageBuilder_ != null) { + currentPageBuilder_.dispose(); currentPageBuilder_ = null; } - + onChanged(); return this; } /** @@ -2212,7 +2218,7 @@ public Builder clearCurrentPage() { * .google.cloud.dialogflow.cx.v3beta1.Page current_page = 5; */ public com.google.cloud.dialogflow.cx.v3beta1.Page.Builder getCurrentPageBuilder() { - + bitField0_ |= 0x00000020; onChanged(); return getCurrentPageFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/NluSettings.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/NluSettings.java index 1445ad615007..84278986df7f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/NluSettings.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/NluSettings.java @@ -394,7 +394,7 @@ private ModelTrainingMode(int value) { } public static final int MODEL_TYPE_FIELD_NUMBER = 1; - private int modelType_; + private int modelType_ = 0; /** * * @@ -423,16 +423,15 @@ public int getModelTypeValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType result = - com.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType.valueOf(modelType_); + com.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType.UNRECOGNIZED : result; } public static final int CLASSIFICATION_THRESHOLD_FIELD_NUMBER = 3; - private float classificationThreshold_; + private float classificationThreshold_ = 0F; /** * * @@ -455,7 +454,7 @@ public float getClassificationThreshold() { } public static final int MODEL_TRAINING_MODE_FIELD_NUMBER = 4; - private int modelTrainingMode_; + private int modelTrainingMode_ = 0; /** * * @@ -489,9 +488,8 @@ public int getModelTrainingModeValue() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode getModelTrainingMode() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode result = - com.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode.forNumber( modelTrainingMode_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode.UNRECOGNIZED @@ -724,12 +722,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; modelType_ = 0; - classificationThreshold_ = 0F; - modelTrainingMode_ = 0; - return this; } @@ -757,13 +753,26 @@ public com.google.cloud.dialogflow.cx.v3beta1.NluSettings build() { public com.google.cloud.dialogflow.cx.v3beta1.NluSettings buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.NluSettings result = new com.google.cloud.dialogflow.cx.v3beta1.NluSettings(this); - result.modelType_ = modelType_; - result.classificationThreshold_ = classificationThreshold_; - result.modelTrainingMode_ = modelTrainingMode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.NluSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelType_ = modelType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.classificationThreshold_ = classificationThreshold_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.modelTrainingMode_ = modelTrainingMode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -848,19 +857,19 @@ public Builder mergeFrom( case 8: { modelType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 29: { classificationThreshold_ = input.readFloat(); - + bitField0_ |= 0x00000002; break; } // case 29 case 32: { modelTrainingMode_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 32 default: @@ -880,6 +889,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int modelType_ = 0; /** * @@ -909,8 +920,8 @@ public int getModelTypeValue() { * @return This builder for chaining. */ public Builder setModelTypeValue(int value) { - modelType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -927,9 +938,8 @@ public Builder setModelTypeValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType getModelType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType result = - com.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType.valueOf(modelType_); + com.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType.forNumber(modelType_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType.UNRECOGNIZED : result; @@ -951,7 +961,7 @@ public Builder setModelType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; modelType_ = value.getNumber(); onChanged(); return this; @@ -968,7 +978,7 @@ public Builder setModelType( * @return This builder for chaining. */ public Builder clearModelType() { - + bitField0_ = (bitField0_ & ~0x00000001); modelType_ = 0; onChanged(); return this; @@ -1015,6 +1025,7 @@ public float getClassificationThreshold() { public Builder setClassificationThreshold(float value) { classificationThreshold_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1035,7 +1046,7 @@ public Builder setClassificationThreshold(float value) { * @return This builder for chaining. */ public Builder clearClassificationThreshold() { - + bitField0_ = (bitField0_ & ~0x00000002); classificationThreshold_ = 0F; onChanged(); return this; @@ -1074,8 +1085,8 @@ public int getModelTrainingModeValue() { * @return This builder for chaining. */ public Builder setModelTrainingModeValue(int value) { - modelTrainingMode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1095,9 +1106,8 @@ public Builder setModelTrainingModeValue(int value) { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode getModelTrainingMode() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode result = - com.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode.forNumber( modelTrainingMode_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode.UNRECOGNIZED @@ -1122,7 +1132,7 @@ public Builder setModelTrainingMode( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; modelTrainingMode_ = value.getNumber(); onChanged(); return this; @@ -1141,7 +1151,7 @@ public Builder setModelTrainingMode( * @return This builder for chaining. */ public Builder clearModelTrainingMode() { - + bitField0_ = (bitField0_ & ~0x00000004); modelTrainingMode_ = 0; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/OutputAudioConfig.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/OutputAudioConfig.java index 8c244d5511c7..e9c427da6b5a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/OutputAudioConfig.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/OutputAudioConfig.java @@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int AUDIO_ENCODING_FIELD_NUMBER = 1; - private int audioEncoding_; + private int audioEncoding_ = 0; /** * * @@ -101,16 +101,15 @@ public int getAudioEncodingValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding getAudioEncoding() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding result = - com.google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding.valueOf(audioEncoding_); + com.google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding.forNumber(audioEncoding_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding.UNRECOGNIZED : result; } public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; - private int sampleRateHertz_; + private int sampleRateHertz_ = 0; /** * * @@ -180,7 +179,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig getSynthesi @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfigOrBuilder getSynthesizeSpeechConfigOrBuilder() { - return getSynthesizeSpeechConfig(); + return synthesizeSpeechConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.getDefaultInstance() + : synthesizeSpeechConfig_; } private byte memoizedIsInitialized = -1; @@ -411,14 +412,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; audioEncoding_ = 0; - sampleRateHertz_ = 0; - - if (synthesizeSpeechConfigBuilder_ == null) { - synthesizeSpeechConfig_ = null; - } else { - synthesizeSpeechConfig_ = null; + synthesizeSpeechConfig_ = null; + if (synthesizeSpeechConfigBuilder_ != null) { + synthesizeSpeechConfigBuilder_.dispose(); synthesizeSpeechConfigBuilder_ = null; } return this; @@ -448,17 +447,29 @@ public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig build() { public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig result = new com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig(this); - result.audioEncoding_ = audioEncoding_; - result.sampleRateHertz_ = sampleRateHertz_; - if (synthesizeSpeechConfigBuilder_ == null) { - result.synthesizeSpeechConfig_ = synthesizeSpeechConfig_; - } else { - result.synthesizeSpeechConfig_ = synthesizeSpeechConfigBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.audioEncoding_ = audioEncoding_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sampleRateHertz_ = sampleRateHertz_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.synthesizeSpeechConfig_ = + synthesizeSpeechConfigBuilder_ == null + ? synthesizeSpeechConfig_ + : synthesizeSpeechConfigBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -543,20 +554,20 @@ public Builder mergeFrom( case 8: { audioEncoding_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 16: { sampleRateHertz_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getSynthesizeSpeechConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -576,6 +587,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int audioEncoding_ = 0; /** * @@ -609,8 +622,8 @@ public int getAudioEncodingValue() { * @return This builder for chaining. */ public Builder setAudioEncodingValue(int value) { - audioEncoding_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -629,9 +642,8 @@ public Builder setAudioEncodingValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding getAudioEncoding() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding result = - com.google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding.valueOf(audioEncoding_); + com.google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding.forNumber(audioEncoding_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.OutputAudioEncoding.UNRECOGNIZED : result; @@ -655,7 +667,7 @@ public Builder setAudioEncoding( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; audioEncoding_ = value.getNumber(); onChanged(); return this; @@ -674,7 +686,7 @@ public Builder setAudioEncoding( * @return This builder for chaining. */ public Builder clearAudioEncoding() { - + bitField0_ = (bitField0_ & ~0x00000001); audioEncoding_ = 0; onChanged(); return this; @@ -719,6 +731,7 @@ public int getSampleRateHertz() { public Builder setSampleRateHertz(int value) { sampleRateHertz_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -738,7 +751,7 @@ public Builder setSampleRateHertz(int value) { * @return This builder for chaining. */ public Builder clearSampleRateHertz() { - + bitField0_ = (bitField0_ & ~0x00000002); sampleRateHertz_ = 0; onChanged(); return this; @@ -764,7 +777,7 @@ public Builder clearSampleRateHertz() { * @return Whether the synthesizeSpeechConfig field is set. */ public boolean hasSynthesizeSpeechConfig() { - return synthesizeSpeechConfigBuilder_ != null || synthesizeSpeechConfig_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -807,11 +820,11 @@ public Builder setSynthesizeSpeechConfig( throw new NullPointerException(); } synthesizeSpeechConfig_ = value; - onChanged(); } else { synthesizeSpeechConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -829,11 +842,11 @@ public Builder setSynthesizeSpeechConfig( com.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.Builder builderForValue) { if (synthesizeSpeechConfigBuilder_ == null) { synthesizeSpeechConfig_ = builderForValue.build(); - onChanged(); } else { synthesizeSpeechConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -850,20 +863,20 @@ public Builder setSynthesizeSpeechConfig( public Builder mergeSynthesizeSpeechConfig( com.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig value) { if (synthesizeSpeechConfigBuilder_ == null) { - if (synthesizeSpeechConfig_ != null) { - synthesizeSpeechConfig_ = - com.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.newBuilder( - synthesizeSpeechConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && synthesizeSpeechConfig_ != null + && synthesizeSpeechConfig_ + != com.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig + .getDefaultInstance()) { + getSynthesizeSpeechConfigBuilder().mergeFrom(value); } else { synthesizeSpeechConfig_ = value; } - onChanged(); } else { synthesizeSpeechConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -878,14 +891,13 @@ public Builder mergeSynthesizeSpeechConfig( * */ public Builder clearSynthesizeSpeechConfig() { - if (synthesizeSpeechConfigBuilder_ == null) { - synthesizeSpeechConfig_ = null; - onChanged(); - } else { - synthesizeSpeechConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + synthesizeSpeechConfig_ = null; + if (synthesizeSpeechConfigBuilder_ != null) { + synthesizeSpeechConfigBuilder_.dispose(); synthesizeSpeechConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -901,7 +913,7 @@ public Builder clearSynthesizeSpeechConfig() { */ public com.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig.Builder getSynthesizeSpeechConfigBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getSynthesizeSpeechConfigFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Page.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Page.java index 542e1b4718fc..fc2128f6f9e8 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Page.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Page.java @@ -84,7 +84,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -147,7 +149,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -241,7 +245,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment getEntryFulfillment() @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.FulfillmentOrBuilder getEntryFulfillmentOrBuilder() { - return getEntryFulfillment(); + return entryFulfillment_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.getDefaultInstance() + : entryFulfillment_; } public static final int FORM_FIELD_NUMBER = 4; @@ -290,10 +296,12 @@ public com.google.cloud.dialogflow.cx.v3beta1.Form getForm() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.FormOrBuilder getFormOrBuilder() { - return getForm(); + return form_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Form.getDefaultInstance() : form_; } public static final int TRANSITION_ROUTE_GROUPS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList transitionRouteGroups_; /** * @@ -399,6 +407,8 @@ public com.google.protobuf.ByteString getTransitionRouteGroupsBytes(int index) { } public static final int TRANSITION_ROUTES_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") private java.util.List transitionRoutes_; /** * @@ -570,6 +580,8 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute getTransitionRoute } public static final int EVENT_HANDLERS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") private java.util.List eventHandlers_; /** * @@ -930,38 +942,35 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - - if (entryFulfillmentBuilder_ == null) { - entryFulfillment_ = null; - } else { - entryFulfillment_ = null; + entryFulfillment_ = null; + if (entryFulfillmentBuilder_ != null) { + entryFulfillmentBuilder_.dispose(); entryFulfillmentBuilder_ = null; } - if (formBuilder_ == null) { - form_ = null; - } else { - form_ = null; + form_ = null; + if (formBuilder_ != null) { + formBuilder_.dispose(); formBuilder_ = null; } transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); if (transitionRoutesBuilder_ == null) { transitionRoutes_ = java.util.Collections.emptyList(); } else { transitionRoutes_ = null; transitionRoutesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); if (eventHandlersBuilder_ == null) { eventHandlers_ = java.util.Collections.emptyList(); } else { eventHandlers_ = null; eventHandlersBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000040); return this; } @@ -989,44 +998,55 @@ public com.google.cloud.dialogflow.cx.v3beta1.Page build() { public com.google.cloud.dialogflow.cx.v3beta1.Page buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Page result = new com.google.cloud.dialogflow.cx.v3beta1.Page(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - if (entryFulfillmentBuilder_ == null) { - result.entryFulfillment_ = entryFulfillment_; - } else { - result.entryFulfillment_ = entryFulfillmentBuilder_.build(); - } - if (formBuilder_ == null) { - result.form_ = form_; - } else { - result.form_ = formBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - if (((bitField0_ & 0x00000001) != 0)) { + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.dialogflow.cx.v3beta1.Page result) { + if (((bitField0_ & 0x00000010) != 0)) { transitionRouteGroups_ = transitionRouteGroups_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } result.transitionRouteGroups_ = transitionRouteGroups_; if (transitionRoutesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { transitionRoutes_ = java.util.Collections.unmodifiableList(transitionRoutes_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } result.transitionRoutes_ = transitionRoutes_; } else { result.transitionRoutes_ = transitionRoutesBuilder_.build(); } if (eventHandlersBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { eventHandlers_ = java.util.Collections.unmodifiableList(eventHandlers_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000040); } result.eventHandlers_ = eventHandlers_; } else { result.eventHandlers_ = eventHandlersBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Page result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.entryFulfillment_ = + entryFulfillmentBuilder_ == null ? entryFulfillment_ : entryFulfillmentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.form_ = formBuilder_ == null ? form_ : formBuilder_.build(); + } } @java.lang.Override @@ -1076,10 +1096,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Page other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasEntryFulfillment()) { @@ -1091,7 +1113,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Page other) { if (!other.transitionRouteGroups_.isEmpty()) { if (transitionRouteGroups_.isEmpty()) { transitionRouteGroups_ = other.transitionRouteGroups_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureTransitionRouteGroupsIsMutable(); transitionRouteGroups_.addAll(other.transitionRouteGroups_); @@ -1102,7 +1124,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Page other) { if (!other.transitionRoutes_.isEmpty()) { if (transitionRoutes_.isEmpty()) { transitionRoutes_ = other.transitionRoutes_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureTransitionRoutesIsMutable(); transitionRoutes_.addAll(other.transitionRoutes_); @@ -1115,7 +1137,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Page other) { transitionRoutesBuilder_.dispose(); transitionRoutesBuilder_ = null; transitionRoutes_ = other.transitionRoutes_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); transitionRoutesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransitionRoutesFieldBuilder() @@ -1129,7 +1151,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Page other) { if (!other.eventHandlers_.isEmpty()) { if (eventHandlers_.isEmpty()) { eventHandlers_ = other.eventHandlers_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000040); } else { ensureEventHandlersIsMutable(); eventHandlers_.addAll(other.eventHandlers_); @@ -1142,7 +1164,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Page other) { eventHandlersBuilder_.dispose(); eventHandlersBuilder_ = null; eventHandlers_ = other.eventHandlers_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000040); eventHandlersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEventHandlersFieldBuilder() @@ -1181,26 +1203,26 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 34: { input.readMessage(getFormFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 58: { input.readMessage( getEntryFulfillmentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 58 case 74: @@ -1339,8 +1361,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1363,8 +1385,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1392,8 +1414,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1459,8 +1481,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1476,8 +1498,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1498,8 +1520,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1522,7 +1544,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the entryFulfillment field is set. */ public boolean hasEntryFulfillment() { - return entryFulfillmentBuilder_ != null || entryFulfillment_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1559,11 +1581,11 @@ public Builder setEntryFulfillment(com.google.cloud.dialogflow.cx.v3beta1.Fulfil throw new NullPointerException(); } entryFulfillment_ = value; - onChanged(); } else { entryFulfillmentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1579,11 +1601,11 @@ public Builder setEntryFulfillment( com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.Builder builderForValue) { if (entryFulfillmentBuilder_ == null) { entryFulfillment_ = builderForValue.build(); - onChanged(); } else { entryFulfillmentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1597,19 +1619,19 @@ public Builder setEntryFulfillment( */ public Builder mergeEntryFulfillment(com.google.cloud.dialogflow.cx.v3beta1.Fulfillment value) { if (entryFulfillmentBuilder_ == null) { - if (entryFulfillment_ != null) { - entryFulfillment_ = - com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.newBuilder(entryFulfillment_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && entryFulfillment_ != null + && entryFulfillment_ + != com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.getDefaultInstance()) { + getEntryFulfillmentBuilder().mergeFrom(value); } else { entryFulfillment_ = value; } - onChanged(); } else { entryFulfillmentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1622,14 +1644,13 @@ public Builder mergeEntryFulfillment(com.google.cloud.dialogflow.cx.v3beta1.Fulf * .google.cloud.dialogflow.cx.v3beta1.Fulfillment entry_fulfillment = 7; */ public Builder clearEntryFulfillment() { - if (entryFulfillmentBuilder_ == null) { - entryFulfillment_ = null; - onChanged(); - } else { - entryFulfillment_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + entryFulfillment_ = null; + if (entryFulfillmentBuilder_ != null) { + entryFulfillmentBuilder_.dispose(); entryFulfillmentBuilder_ = null; } - + onChanged(); return this; } /** @@ -1642,7 +1663,7 @@ public Builder clearEntryFulfillment() { * .google.cloud.dialogflow.cx.v3beta1.Fulfillment entry_fulfillment = 7; */ public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.Builder getEntryFulfillmentBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getEntryFulfillmentFieldBuilder().getBuilder(); } @@ -1710,7 +1731,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.Builder getEntryFulfil * @return Whether the form field is set. */ public boolean hasForm() { - return formBuilder_ != null || form_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1749,11 +1770,11 @@ public Builder setForm(com.google.cloud.dialogflow.cx.v3beta1.Form value) { throw new NullPointerException(); } form_ = value; - onChanged(); } else { formBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1769,11 +1790,11 @@ public Builder setForm(com.google.cloud.dialogflow.cx.v3beta1.Form value) { public Builder setForm(com.google.cloud.dialogflow.cx.v3beta1.Form.Builder builderForValue) { if (formBuilder_ == null) { form_ = builderForValue.build(); - onChanged(); } else { formBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1788,19 +1809,18 @@ public Builder setForm(com.google.cloud.dialogflow.cx.v3beta1.Form.Builder build */ public Builder mergeForm(com.google.cloud.dialogflow.cx.v3beta1.Form value) { if (formBuilder_ == null) { - if (form_ != null) { - form_ = - com.google.cloud.dialogflow.cx.v3beta1.Form.newBuilder(form_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && form_ != null + && form_ != com.google.cloud.dialogflow.cx.v3beta1.Form.getDefaultInstance()) { + getFormBuilder().mergeFrom(value); } else { form_ = value; } - onChanged(); } else { formBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1814,14 +1834,13 @@ public Builder mergeForm(com.google.cloud.dialogflow.cx.v3beta1.Form value) { * .google.cloud.dialogflow.cx.v3beta1.Form form = 4; */ public Builder clearForm() { - if (formBuilder_ == null) { - form_ = null; - onChanged(); - } else { - form_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + form_ = null; + if (formBuilder_ != null) { + formBuilder_.dispose(); formBuilder_ = null; } - + onChanged(); return this; } /** @@ -1835,7 +1854,7 @@ public Builder clearForm() { * .google.cloud.dialogflow.cx.v3beta1.Form form = 4; */ public com.google.cloud.dialogflow.cx.v3beta1.Form.Builder getFormBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getFormFieldBuilder().getBuilder(); } @@ -1889,10 +1908,10 @@ public com.google.cloud.dialogflow.cx.v3beta1.FormOrBuilder getFormOrBuilder() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTransitionRouteGroupsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { transitionRouteGroups_ = new com.google.protobuf.LazyStringArrayList(transitionRouteGroups_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000010; } } /** @@ -2123,7 +2142,7 @@ public Builder addAllTransitionRouteGroups(java.lang.Iterable */ public Builder clearTransitionRouteGroups() { transitionRouteGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2166,11 +2185,11 @@ public Builder addTransitionRouteGroupsBytes(com.google.protobuf.ByteString valu transitionRoutes_ = java.util.Collections.emptyList(); private void ensureTransitionRoutesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { transitionRoutes_ = new java.util.ArrayList( transitionRoutes_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000020; } } @@ -2611,7 +2630,7 @@ public Builder addAllTransitionRoutes( public Builder clearTransitionRoutes() { if (transitionRoutesBuilder_ == null) { transitionRoutes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { transitionRoutesBuilder_.clear(); @@ -2879,7 +2898,7 @@ public Builder removeTransitionRoutes(int index) { com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder, com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder>( transitionRoutes_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); transitionRoutes_ = null; @@ -2891,11 +2910,11 @@ public Builder removeTransitionRoutes(int index) { java.util.Collections.emptyList(); private void ensureEventHandlersIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000040) != 0)) { eventHandlers_ = new java.util.ArrayList( eventHandlers_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000040; } } @@ -3125,7 +3144,7 @@ public Builder addAllEventHandlers( public Builder clearEventHandlers() { if (eventHandlersBuilder_ == null) { eventHandlers_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { eventHandlersBuilder_.clear(); @@ -3259,7 +3278,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder addEventHandl com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder, com.google.cloud.dialogflow.cx.v3beta1.EventHandlerOrBuilder>( eventHandlers_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); eventHandlers_ = null; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PageInfo.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PageInfo.java index 7e2ab6590611..d60ee836bcbd 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PageInfo.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PageInfo.java @@ -619,7 +619,9 @@ private ParameterState(int value) { } public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -678,7 +680,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int REQUIRED_FIELD_NUMBER = 2; - private boolean required_; + private boolean required_ = false; /** * * @@ -701,7 +703,7 @@ public boolean getRequired() { } public static final int STATE_FIELD_NUMBER = 3; - private int state_; + private int state_ = 0; /** * * @@ -749,11 +751,10 @@ public int getStateValue() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState getState() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState result = com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo - .ParameterState.valueOf(state_); + .ParameterState.forNumber(state_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState .UNRECOGNIZED @@ -815,11 +816,11 @@ public com.google.protobuf.Value getValue() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { - return getValue(); + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; } public static final int JUST_COLLECTED_FIELD_NUMBER = 5; - private boolean justCollected_; + private boolean justCollected_ = false; /** * * @@ -1099,20 +1100,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; displayName_ = ""; - required_ = false; - state_ = 0; - - if (valueBuilder_ == null) { - value_ = null; - } else { - value_ = null; + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); valueBuilder_ = null; } justCollected_ = false; - return this; } @@ -1144,19 +1141,33 @@ public com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo bu buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo result = new com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo(this); - result.displayName_ = displayName_; - result.required_ = required_; - result.state_ = state_; - if (valueBuilder_ == null) { - result.value_ = value_; - } else { - result.value_ = valueBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.justCollected_ = justCollected_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.required_ = required_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.justCollected_ = justCollected_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1211,6 +1222,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getRequired() != false) { @@ -1254,31 +1266,31 @@ public Builder mergeFrom( case 10: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { required_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 case 24: { state_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 24 case 34: { input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 40: { justCollected_ = input.readBool(); - + bitField0_ |= 0x00000010; break; } // case 40 default: @@ -1298,6 +1310,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object displayName_ = ""; /** * @@ -1374,8 +1388,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1396,8 +1410,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1423,8 +1437,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1470,6 +1484,7 @@ public boolean getRequired() { public Builder setRequired(boolean value) { required_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1490,7 +1505,7 @@ public Builder setRequired(boolean value) { * @return This builder for chaining. */ public Builder clearRequired() { - + bitField0_ = (bitField0_ & ~0x00000002); required_ = false; onChanged(); return this; @@ -1543,8 +1558,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1571,11 +1586,10 @@ public Builder setStateValue(int value) { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState getState() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo.ParameterState result = com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo - .ParameterState.valueOf(state_); + .ParameterState.forNumber(state_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.ParameterInfo .ParameterState.UNRECOGNIZED @@ -1608,7 +1622,7 @@ public Builder setState( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; state_ = value.getNumber(); onChanged(); return this; @@ -1634,7 +1648,7 @@ public Builder setState( * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000004); state_ = 0; onChanged(); return this; @@ -1662,7 +1676,7 @@ public Builder clearState() { * @return Whether the value field is set. */ public boolean hasValue() { - return valueBuilder_ != null || value_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1705,11 +1719,11 @@ public Builder setValue(com.google.protobuf.Value value) { throw new NullPointerException(); } value_ = value; - onChanged(); } else { valueBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1728,11 +1742,11 @@ public Builder setValue(com.google.protobuf.Value value) { public Builder setValue(com.google.protobuf.Value.Builder builderForValue) { if (valueBuilder_ == null) { value_ = builderForValue.build(); - onChanged(); } else { valueBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1750,16 +1764,18 @@ public Builder setValue(com.google.protobuf.Value.Builder builderForValue) { */ public Builder mergeValue(com.google.protobuf.Value value) { if (valueBuilder_ == null) { - if (value_ != null) { - value_ = com.google.protobuf.Value.newBuilder(value_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && value_ != null + && value_ != com.google.protobuf.Value.getDefaultInstance()) { + getValueBuilder().mergeFrom(value); } else { value_ = value; } - onChanged(); } else { valueBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1776,14 +1792,13 @@ public Builder mergeValue(com.google.protobuf.Value value) { * .google.protobuf.Value value = 4; */ public Builder clearValue() { - if (valueBuilder_ == null) { - value_ = null; - onChanged(); - } else { - value_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); valueBuilder_ = null; } - + onChanged(); return this; } /** @@ -1800,7 +1815,7 @@ public Builder clearValue() { * .google.protobuf.Value value = 4; */ public com.google.protobuf.Value.Builder getValueBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getValueFieldBuilder().getBuilder(); } @@ -1895,6 +1910,7 @@ public boolean getJustCollected() { public Builder setJustCollected(boolean value) { justCollected_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1915,7 +1931,7 @@ public Builder setJustCollected(boolean value) { * @return This builder for chaining. */ public Builder clearJustCollected() { - + bitField0_ = (bitField0_ & ~0x00000010); justCollected_ = false; onChanged(); return this; @@ -1990,6 +2006,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int PARAMETER_INFO_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List parameterInfo_; /** @@ -2296,6 +2314,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (parameterInfoBuilder_ == null) { parameterInfo_ = java.util.Collections.emptyList(); } else { @@ -2330,7 +2349,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo build() { public com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo result = new com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo result) { if (parameterInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { parameterInfo_ = java.util.Collections.unmodifiableList(parameterInfo_); @@ -2340,8 +2368,10 @@ public com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo buildPartial() { } else { result.parameterInfo_ = parameterInfoBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -3032,7 +3062,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo getDefaultInstan } public static final int CURRENT_PAGE_FIELD_NUMBER = 1; - private volatile java.lang.Object currentPage_; + + @SuppressWarnings("serial") + private volatile java.lang.Object currentPage_ = ""; /** * * @@ -3093,7 +3125,9 @@ public com.google.protobuf.ByteString getCurrentPageBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 4; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -3203,7 +3237,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo getFormInfo() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfoOrBuilder getFormInfoOrBuilder() { - return getFormInfo(); + return formInfo_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.getDefaultInstance() + : formInfo_; } private byte memoizedIsInitialized = -1; @@ -3426,14 +3462,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; currentPage_ = ""; - displayName_ = ""; - - if (formInfoBuilder_ == null) { - formInfo_ = null; - } else { - formInfo_ = null; + formInfo_ = null; + if (formInfoBuilder_ != null) { + formInfoBuilder_.dispose(); formInfoBuilder_ = null; } return this; @@ -3463,17 +3497,26 @@ public com.google.cloud.dialogflow.cx.v3beta1.PageInfo build() { public com.google.cloud.dialogflow.cx.v3beta1.PageInfo buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.PageInfo result = new com.google.cloud.dialogflow.cx.v3beta1.PageInfo(this); - result.currentPage_ = currentPage_; - result.displayName_ = displayName_; - if (formInfoBuilder_ == null) { - result.formInfo_ = formInfo_; - } else { - result.formInfo_ = formInfoBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.PageInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.currentPage_ = currentPage_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.formInfo_ = formInfoBuilder_ == null ? formInfo_ : formInfoBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3522,10 +3565,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.PageInfo other) return this; if (!other.getCurrentPage().isEmpty()) { currentPage_ = other.currentPage_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasFormInfo()) { @@ -3560,19 +3605,19 @@ public Builder mergeFrom( case 10: { currentPage_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: { input.readMessage(getFormInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 34 default: @@ -3592,6 +3637,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object currentPage_ = ""; /** * @@ -3671,8 +3718,8 @@ public Builder setCurrentPage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - currentPage_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3694,8 +3741,8 @@ public Builder setCurrentPage(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCurrentPage() { - currentPage_ = getDefaultInstance().getCurrentPage(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3722,8 +3769,8 @@ public Builder setCurrentPageBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - currentPage_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3801,8 +3848,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3822,8 +3869,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -3848,8 +3895,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3875,7 +3922,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * @return Whether the formInfo field is set. */ public boolean hasFormInfo() { - return formInfoBuilder_ != null || formInfo_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -3918,11 +3965,11 @@ public Builder setFormInfo(com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormI throw new NullPointerException(); } formInfo_ = value; - onChanged(); } else { formInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3941,11 +3988,11 @@ public Builder setFormInfo( com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.Builder builderForValue) { if (formInfoBuilder_ == null) { formInfo_ = builderForValue.build(); - onChanged(); } else { formInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3962,19 +4009,19 @@ public Builder setFormInfo( */ public Builder mergeFormInfo(com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo value) { if (formInfoBuilder_ == null) { - if (formInfo_ != null) { - formInfo_ = - com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.newBuilder(formInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && formInfo_ != null + && formInfo_ + != com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.getDefaultInstance()) { + getFormInfoBuilder().mergeFrom(value); } else { formInfo_ = value; } - onChanged(); } else { formInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -3990,14 +4037,13 @@ public Builder mergeFormInfo(com.google.cloud.dialogflow.cx.v3beta1.PageInfo.For * .google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo form_info = 3; */ public Builder clearFormInfo() { - if (formInfoBuilder_ == null) { - formInfo_ = null; - onChanged(); - } else { - formInfo_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + formInfo_ = null; + if (formInfoBuilder_ != null) { + formInfoBuilder_.dispose(); formInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -4013,7 +4059,7 @@ public Builder clearFormInfo() { * .google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo form_info = 3; */ public com.google.cloud.dialogflow.cx.v3beta1.PageInfo.FormInfo.Builder getFormInfoBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getFormInfoFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryInput.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryInput.java index 3fbd013bbf40..6eb6f5d292fe 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryInput.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryInput.java @@ -383,7 +383,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.DtmfInputOrBuilder getDtmfOrBuilde } public static final int LANGUAGE_CODE_FIELD_NUMBER = 4; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -722,6 +724,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (textBuilder_ != null) { textBuilder_.clear(); } @@ -738,7 +741,6 @@ public Builder clear() { dtmfBuilder_.clear(); } languageCode_ = ""; - inputCase_ = 0; input_ = null; return this; @@ -768,45 +770,39 @@ public com.google.cloud.dialogflow.cx.v3beta1.QueryInput build() { public com.google.cloud.dialogflow.cx.v3beta1.QueryInput buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.QueryInput result = new com.google.cloud.dialogflow.cx.v3beta1.QueryInput(this); - if (inputCase_ == 2) { - if (textBuilder_ == null) { - result.input_ = input_; - } else { - result.input_ = textBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (inputCase_ == 3) { - if (intentBuilder_ == null) { - result.input_ = input_; - } else { - result.input_ = intentBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.QueryInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.languageCode_ = languageCode_; } - if (inputCase_ == 5) { - if (audioBuilder_ == null) { - result.input_ = input_; - } else { - result.input_ = audioBuilder_.build(); - } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3beta1.QueryInput result) { + result.inputCase_ = inputCase_; + result.input_ = this.input_; + if (inputCase_ == 2 && textBuilder_ != null) { + result.input_ = textBuilder_.build(); } - if (inputCase_ == 6) { - if (eventBuilder_ == null) { - result.input_ = input_; - } else { - result.input_ = eventBuilder_.build(); - } + if (inputCase_ == 3 && intentBuilder_ != null) { + result.input_ = intentBuilder_.build(); } - if (inputCase_ == 7) { - if (dtmfBuilder_ == null) { - result.input_ = input_; - } else { - result.input_ = dtmfBuilder_.build(); - } + if (inputCase_ == 5 && audioBuilder_ != null) { + result.input_ = audioBuilder_.build(); + } + if (inputCase_ == 6 && eventBuilder_ != null) { + result.input_ = eventBuilder_.build(); + } + if (inputCase_ == 7 && dtmfBuilder_ != null) { + result.input_ = dtmfBuilder_.build(); } - result.languageCode_ = languageCode_; - result.inputCase_ = inputCase_; - onBuilt(); - return result; } @java.lang.Override @@ -857,6 +853,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.QueryInput other return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000020; onChanged(); } switch (other.getInputCase()) { @@ -931,7 +928,7 @@ public Builder mergeFrom( case 34: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 34 case 42: @@ -983,6 +980,8 @@ public Builder clearInput() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.TextInput, com.google.cloud.dialogflow.cx.v3beta1.TextInput.Builder, @@ -1189,7 +1188,6 @@ public com.google.cloud.dialogflow.cx.v3beta1.TextInputOrBuilder getTextOrBuilde } inputCase_ = 2; onChanged(); - ; return textBuilder_; } @@ -1399,7 +1397,6 @@ public com.google.cloud.dialogflow.cx.v3beta1.IntentInputOrBuilder getIntentOrBu } inputCase_ = 3; onChanged(); - ; return intentBuilder_; } @@ -1609,7 +1606,6 @@ public com.google.cloud.dialogflow.cx.v3beta1.AudioInputOrBuilder getAudioOrBuil } inputCase_ = 5; onChanged(); - ; return audioBuilder_; } @@ -1819,7 +1815,6 @@ public com.google.cloud.dialogflow.cx.v3beta1.EventInputOrBuilder getEventOrBuil } inputCase_ = 6; onChanged(); - ; return eventBuilder_; } @@ -2029,7 +2024,6 @@ public com.google.cloud.dialogflow.cx.v3beta1.DtmfInputOrBuilder getDtmfOrBuilde } inputCase_ = 7; onChanged(); - ; return dtmfBuilder_; } @@ -2103,8 +2097,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2123,8 +2117,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2148,8 +2142,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParameters.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParameters.java index 560fbc79b3e3..f6132cdd2873 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParameters.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParameters.java @@ -83,7 +83,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int TIME_ZONE_FIELD_NUMBER = 1; - private volatile java.lang.Object timeZone_; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeZone_ = ""; /** * * @@ -180,10 +182,12 @@ public com.google.type.LatLng getGeoLocation() { */ @java.lang.Override public com.google.type.LatLngOrBuilder getGeoLocationOrBuilder() { - return getGeoLocation(); + return geoLocation_ == null ? com.google.type.LatLng.getDefaultInstance() : geoLocation_; } public static final int SESSION_ENTITY_TYPES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List sessionEntityTypes_; /** @@ -349,7 +353,7 @@ public com.google.protobuf.Struct getPayload() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { - return getPayload(); + return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_; } public static final int PARAMETERS_FIELD_NUMBER = 5; @@ -443,11 +447,13 @@ public com.google.protobuf.Struct getParameters() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { - return getParameters(); + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; } public static final int CURRENT_PAGE_FIELD_NUMBER = 6; - private volatile java.lang.Object currentPage_; + + @SuppressWarnings("serial") + private volatile java.lang.Object currentPage_ = ""; /** * * @@ -522,7 +528,7 @@ public com.google.protobuf.ByteString getCurrentPageBytes() { } public static final int DISABLE_WEBHOOK_FIELD_NUMBER = 7; - private boolean disableWebhook_; + private boolean disableWebhook_ = false; /** * * @@ -540,7 +546,7 @@ public boolean getDisableWebhook() { } public static final int ANALYZE_QUERY_TEXT_SENTIMENT_FIELD_NUMBER = 8; - private boolean analyzeQueryTextSentiment_; + private boolean analyzeQueryTextSentiment_ = false; /** * * @@ -571,6 +577,7 @@ private static final class WebhookHeadersDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField webhookHeaders_; private com.google.protobuf.MapField @@ -651,8 +658,10 @@ public java.util.Map getWebhookHeadersMap() * map<string, string> webhook_headers = 10; */ @java.lang.Override - public java.lang.String getWebhookHeadersOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getWebhookHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -688,6 +697,8 @@ public java.lang.String getWebhookHeadersOrThrow(java.lang.String key) { } public static final int FLOW_VERSIONS_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList flowVersions_; /** * @@ -773,7 +784,9 @@ public com.google.protobuf.ByteString getFlowVersionsBytes(int index) { } public static final int CHANNEL_FIELD_NUMBER = 15; - private volatile java.lang.Object channel_; + + @SuppressWarnings("serial") + private volatile java.lang.Object channel_ = ""; /** * * @@ -1182,12 +1195,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; timeZone_ = ""; - - if (geoLocationBuilder_ == null) { - geoLocation_ = null; - } else { - geoLocation_ = null; + geoLocation_ = null; + if (geoLocationBuilder_ != null) { + geoLocationBuilder_.dispose(); geoLocationBuilder_ = null; } if (sessionEntityTypesBuilder_ == null) { @@ -1196,30 +1208,24 @@ public Builder clear() { sessionEntityTypes_ = null; sessionEntityTypesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (payloadBuilder_ == null) { - payload_ = null; - } else { - payload_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); payloadBuilder_ = null; } - if (parametersBuilder_ == null) { - parameters_ = null; - } else { - parameters_ = null; + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } currentPage_ = ""; - disableWebhook_ = false; - analyzeQueryTextSentiment_ = false; - internalGetMutableWebhookHeaders().clear(); flowVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); channel_ = ""; - return this; } @@ -1247,45 +1253,63 @@ public com.google.cloud.dialogflow.cx.v3beta1.QueryParameters build() { public com.google.cloud.dialogflow.cx.v3beta1.QueryParameters buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.QueryParameters result = new com.google.cloud.dialogflow.cx.v3beta1.QueryParameters(this); - int from_bitField0_ = bitField0_; - result.timeZone_ = timeZone_; - if (geoLocationBuilder_ == null) { - result.geoLocation_ = geoLocation_; - } else { - result.geoLocation_ = geoLocationBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.QueryParameters result) { if (sessionEntityTypesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { sessionEntityTypes_ = java.util.Collections.unmodifiableList(sessionEntityTypes_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.sessionEntityTypes_ = sessionEntityTypes_; } else { result.sessionEntityTypes_ = sessionEntityTypesBuilder_.build(); } - if (payloadBuilder_ == null) { - result.payload_ = payload_; - } else { - result.payload_ = payloadBuilder_.build(); - } - if (parametersBuilder_ == null) { - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); - } - result.currentPage_ = currentPage_; - result.disableWebhook_ = disableWebhook_; - result.analyzeQueryTextSentiment_ = analyzeQueryTextSentiment_; - result.webhookHeaders_ = internalGetWebhookHeaders(); - result.webhookHeaders_.makeImmutable(); - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { flowVersions_ = flowVersions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); } result.flowVersions_ = flowVersions_; - result.channel_ = channel_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.QueryParameters result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timeZone_ = timeZone_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.geoLocation_ = + geoLocationBuilder_ == null ? geoLocation_ : geoLocationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.payload_ = payloadBuilder_ == null ? payload_ : payloadBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.currentPage_ = currentPage_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.disableWebhook_ = disableWebhook_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.analyzeQueryTextSentiment_ = analyzeQueryTextSentiment_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.webhookHeaders_ = internalGetWebhookHeaders(); + result.webhookHeaders_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.channel_ = channel_; + } } @java.lang.Override @@ -1336,6 +1360,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.QueryParameters return this; if (!other.getTimeZone().isEmpty()) { timeZone_ = other.timeZone_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasGeoLocation()) { @@ -1345,7 +1370,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.QueryParameters if (!other.sessionEntityTypes_.isEmpty()) { if (sessionEntityTypes_.isEmpty()) { sessionEntityTypes_ = other.sessionEntityTypes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureSessionEntityTypesIsMutable(); sessionEntityTypes_.addAll(other.sessionEntityTypes_); @@ -1358,7 +1383,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.QueryParameters sessionEntityTypesBuilder_.dispose(); sessionEntityTypesBuilder_ = null; sessionEntityTypes_ = other.sessionEntityTypes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); sessionEntityTypesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSessionEntityTypesFieldBuilder() @@ -1376,6 +1401,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.QueryParameters } if (!other.getCurrentPage().isEmpty()) { currentPage_ = other.currentPage_; + bitField0_ |= 0x00000020; onChanged(); } if (other.getDisableWebhook() != false) { @@ -1385,10 +1411,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.QueryParameters setAnalyzeQueryTextSentiment(other.getAnalyzeQueryTextSentiment()); } internalGetMutableWebhookHeaders().mergeFrom(other.internalGetWebhookHeaders()); + bitField0_ |= 0x00000100; if (!other.flowVersions_.isEmpty()) { if (flowVersions_.isEmpty()) { flowVersions_ = other.flowVersions_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureFlowVersionsIsMutable(); flowVersions_.addAll(other.flowVersions_); @@ -1397,6 +1424,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.QueryParameters } if (!other.getChannel().isEmpty()) { channel_ = other.channel_; + bitField0_ |= 0x00000400; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1428,13 +1456,13 @@ public Builder mergeFrom( case 10: { timeZone_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getGeoLocationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -1454,31 +1482,31 @@ public Builder mergeFrom( case 34: { input.readMessage(getPayloadFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 50: { currentPage_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 50 case 56: { disableWebhook_ = input.readBool(); - + bitField0_ |= 0x00000040; break; } // case 56 case 64: { analyzeQueryTextSentiment_ = input.readBool(); - + bitField0_ |= 0x00000080; break; } // case 64 case 82: @@ -1490,6 +1518,7 @@ public Builder mergeFrom( internalGetMutableWebhookHeaders() .getMutableMap() .put(webhookHeaders__.getKey(), webhookHeaders__.getValue()); + bitField0_ |= 0x00000100; break; } // case 82 case 114: @@ -1502,7 +1531,7 @@ public Builder mergeFrom( case 122: { channel_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000400; break; } // case 122 default: @@ -1594,8 +1623,8 @@ public Builder setTimeZone(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - timeZone_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1614,8 +1643,8 @@ public Builder setTimeZone(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTimeZone() { - timeZone_ = getDefaultInstance().getTimeZone(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1639,8 +1668,8 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - timeZone_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1661,7 +1690,7 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { * @return Whether the geoLocation field is set. */ public boolean hasGeoLocation() { - return geoLocationBuilder_ != null || geoLocation_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1696,11 +1725,11 @@ public Builder setGeoLocation(com.google.type.LatLng value) { throw new NullPointerException(); } geoLocation_ = value; - onChanged(); } else { geoLocationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1715,11 +1744,11 @@ public Builder setGeoLocation(com.google.type.LatLng value) { public Builder setGeoLocation(com.google.type.LatLng.Builder builderForValue) { if (geoLocationBuilder_ == null) { geoLocation_ = builderForValue.build(); - onChanged(); } else { geoLocationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1733,17 +1762,18 @@ public Builder setGeoLocation(com.google.type.LatLng.Builder builderForValue) { */ public Builder mergeGeoLocation(com.google.type.LatLng value) { if (geoLocationBuilder_ == null) { - if (geoLocation_ != null) { - geoLocation_ = - com.google.type.LatLng.newBuilder(geoLocation_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && geoLocation_ != null + && geoLocation_ != com.google.type.LatLng.getDefaultInstance()) { + getGeoLocationBuilder().mergeFrom(value); } else { geoLocation_ = value; } - onChanged(); } else { geoLocationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1756,14 +1786,13 @@ public Builder mergeGeoLocation(com.google.type.LatLng value) { * .google.type.LatLng geo_location = 2; */ public Builder clearGeoLocation() { - if (geoLocationBuilder_ == null) { - geoLocation_ = null; - onChanged(); - } else { - geoLocation_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + geoLocation_ = null; + if (geoLocationBuilder_ != null) { + geoLocationBuilder_.dispose(); geoLocationBuilder_ = null; } - + onChanged(); return this; } /** @@ -1776,7 +1805,7 @@ public Builder clearGeoLocation() { * .google.type.LatLng geo_location = 2; */ public com.google.type.LatLng.Builder getGeoLocationBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getGeoLocationFieldBuilder().getBuilder(); } @@ -1824,11 +1853,11 @@ public com.google.type.LatLngOrBuilder getGeoLocationOrBuilder() { sessionEntityTypes_ = java.util.Collections.emptyList(); private void ensureSessionEntityTypesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { sessionEntityTypes_ = new java.util.ArrayList( sessionEntityTypes_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -2096,7 +2125,7 @@ public Builder addAllSessionEntityTypes( public Builder clearSessionEntityTypes() { if (sessionEntityTypesBuilder_ == null) { sessionEntityTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { sessionEntityTypesBuilder_.clear(); @@ -2254,7 +2283,7 @@ public Builder removeSessionEntityTypes(int index) { com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.Builder, com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypeOrBuilder>( sessionEntityTypes_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); sessionEntityTypes_ = null; @@ -2292,7 +2321,7 @@ public Builder removeSessionEntityTypes(int index) { * @return Whether the payload field is set. */ public boolean hasPayload() { - return payloadBuilder_ != null || payload_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -2351,11 +2380,11 @@ public Builder setPayload(com.google.protobuf.Struct value) { throw new NullPointerException(); } payload_ = value; - onChanged(); } else { payloadBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2382,11 +2411,11 @@ public Builder setPayload(com.google.protobuf.Struct value) { public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); - onChanged(); } else { payloadBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2412,17 +2441,18 @@ public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) { */ public Builder mergePayload(com.google.protobuf.Struct value) { if (payloadBuilder_ == null) { - if (payload_ != null) { - payload_ = - com.google.protobuf.Struct.newBuilder(payload_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && payload_ != null + && payload_ != com.google.protobuf.Struct.getDefaultInstance()) { + getPayloadBuilder().mergeFrom(value); } else { payload_ = value; } - onChanged(); } else { payloadBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -2447,14 +2477,13 @@ public Builder mergePayload(com.google.protobuf.Struct value) { * .google.protobuf.Struct payload = 4; */ public Builder clearPayload() { - if (payloadBuilder_ == null) { - payload_ = null; - onChanged(); - } else { - payload_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); payloadBuilder_ = null; } - + onChanged(); return this; } /** @@ -2479,7 +2508,7 @@ public Builder clearPayload() { * .google.protobuf.Struct payload = 4; */ public com.google.protobuf.Struct.Builder getPayloadBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getPayloadFieldBuilder().getBuilder(); } @@ -2583,7 +2612,7 @@ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { * @return Whether the parameters field is set. */ public boolean hasParameters() { - return parametersBuilder_ != null || parameters_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -2650,11 +2679,11 @@ public Builder setParameters(com.google.protobuf.Struct value) { throw new NullPointerException(); } parameters_ = value; - onChanged(); } else { parametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2685,11 +2714,11 @@ public Builder setParameters(com.google.protobuf.Struct value) { public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) { if (parametersBuilder_ == null) { parameters_ = builderForValue.build(); - onChanged(); } else { parametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2719,17 +2748,18 @@ public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) */ public Builder mergeParameters(com.google.protobuf.Struct value) { if (parametersBuilder_ == null) { - if (parameters_ != null) { - parameters_ = - com.google.protobuf.Struct.newBuilder(parameters_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && parameters_ != null + && parameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getParametersBuilder().mergeFrom(value); } else { parameters_ = value; } - onChanged(); } else { parametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -2758,14 +2788,13 @@ public Builder mergeParameters(com.google.protobuf.Struct value) { * .google.protobuf.Struct parameters = 5; */ public Builder clearParameters() { - if (parametersBuilder_ == null) { - parameters_ = null; - onChanged(); - } else { - parameters_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -2794,7 +2823,7 @@ public Builder clearParameters() { * .google.protobuf.Struct parameters = 5; */ public com.google.protobuf.Struct.Builder getParametersBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getParametersFieldBuilder().getBuilder(); } @@ -2972,8 +3001,8 @@ public Builder setCurrentPage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - currentPage_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3002,8 +3031,8 @@ public Builder setCurrentPage(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCurrentPage() { - currentPage_ = getDefaultInstance().getCurrentPage(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -3037,8 +3066,8 @@ public Builder setCurrentPageBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - currentPage_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3074,6 +3103,7 @@ public boolean getDisableWebhook() { public Builder setDisableWebhook(boolean value) { disableWebhook_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3089,7 +3119,7 @@ public Builder setDisableWebhook(boolean value) { * @return This builder for chaining. */ public Builder clearDisableWebhook() { - + bitField0_ = (bitField0_ & ~0x00000040); disableWebhook_ = false; onChanged(); return this; @@ -3128,6 +3158,7 @@ public boolean getAnalyzeQueryTextSentiment() { public Builder setAnalyzeQueryTextSentiment(boolean value) { analyzeQueryTextSentiment_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3144,7 +3175,7 @@ public Builder setAnalyzeQueryTextSentiment(boolean value) { * @return This builder for chaining. */ public Builder clearAnalyzeQueryTextSentiment() { - + bitField0_ = (bitField0_ & ~0x00000080); analyzeQueryTextSentiment_ = false; onChanged(); return this; @@ -3163,8 +3194,6 @@ public Builder clearAnalyzeQueryTextSentiment() { private com.google.protobuf.MapField internalGetMutableWebhookHeaders() { - onChanged(); - ; if (webhookHeaders_ == null) { webhookHeaders_ = com.google.protobuf.MapField.newMapField(WebhookHeadersDefaultEntryHolder.defaultEntry); @@ -3172,6 +3201,8 @@ public Builder clearAnalyzeQueryTextSentiment() { if (!webhookHeaders_.isMutable()) { webhookHeaders_ = webhookHeaders_.copy(); } + bitField0_ |= 0x00000100; + onChanged(); return webhookHeaders_; } @@ -3244,8 +3275,10 @@ public java.util.Map getWebhookHeadersMap() * map<string, string> webhook_headers = 10; */ @java.lang.Override - public java.lang.String getWebhookHeadersOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getWebhookHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -3281,6 +3314,7 @@ public java.lang.String getWebhookHeadersOrThrow(java.lang.String key) { } public Builder clearWebhookHeaders() { + bitField0_ = (bitField0_ & ~0x00000100); internalGetMutableWebhookHeaders().getMutableMap().clear(); return this; } @@ -3310,6 +3344,7 @@ public Builder removeWebhookHeaders(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableWebhookHeaders() { + bitField0_ |= 0x00000100; return internalGetMutableWebhookHeaders().getMutableMap(); } /** @@ -3335,8 +3370,8 @@ public Builder putWebhookHeaders(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableWebhookHeaders().getMutableMap().put(key, value); + bitField0_ |= 0x00000100; return this; } /** @@ -3357,6 +3392,7 @@ public Builder putWebhookHeaders(java.lang.String key, java.lang.String value) { */ public Builder putAllWebhookHeaders(java.util.Map values) { internalGetMutableWebhookHeaders().getMutableMap().putAll(values); + bitField0_ |= 0x00000100; return this; } @@ -3364,9 +3400,9 @@ public Builder putAllWebhookHeaders(java.util.Map values) { */ public Builder clearFlowVersions() { flowVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -3673,8 +3709,8 @@ public Builder setChannel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - channel_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3700,8 +3736,8 @@ public Builder setChannel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearChannel() { - channel_ = getDefaultInstance().getChannel(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -3732,8 +3768,8 @@ public Builder setChannelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - channel_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParametersOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParametersOrBuilder.java index b03769db42c8..a543d44f9ada 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParametersOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryParametersOrBuilder.java @@ -460,7 +460,6 @@ com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypeOrBuilder getSessionEnti * * map<string, string> webhook_headers = 10; */ - /* nullable */ java.lang.String getWebhookHeadersOrDefault( java.lang.String key, diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResult.java index a5fe69f49059..472373f6b40d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResult.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/QueryResult.java @@ -482,7 +482,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.DtmfInputOrBuilder getDtmfOrBuilde } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -615,10 +617,12 @@ public com.google.protobuf.Struct getParameters() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { - return getParameters(); + return parameters_ == null ? com.google.protobuf.Struct.getDefaultInstance() : parameters_; } public static final int RESPONSE_MESSAGES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List responseMessages_; /** * @@ -705,6 +709,8 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage getResponseMessage } public static final int WEBHOOK_STATUSES_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") private java.util.List webhookStatuses_; /** * @@ -774,6 +780,8 @@ public com.google.rpc.StatusOrBuilder getWebhookStatusesOrBuilder(int index) { } public static final int WEBHOOK_PAYLOADS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") private java.util.List webhookPayloads_; /** * @@ -908,7 +916,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Page getCurrentPage() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.PageOrBuilder getCurrentPageOrBuilder() { - return getCurrentPage(); + return currentPage_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance() + : currentPage_; } public static final int INTENT_FIELD_NUMBER = 8; @@ -978,11 +988,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.Intent getIntent() { @java.lang.Override @java.lang.Deprecated public com.google.cloud.dialogflow.cx.v3beta1.IntentOrBuilder getIntentOrBuilder() { - return getIntent(); + return intent_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Intent.getDefaultInstance() + : intent_; } public static final int INTENT_DETECTION_CONFIDENCE_FIELD_NUMBER = 9; - private float intentDetectionConfidence_; + private float intentDetectionConfidence_ = 0F; /** * * @@ -1055,7 +1067,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Match getMatch() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.MatchOrBuilder getMatchOrBuilder() { - return getMatch(); + return match_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Match.getDefaultInstance() + : match_; } public static final int DIAGNOSTIC_INFO_FIELD_NUMBER = 10; @@ -1145,7 +1159,9 @@ public com.google.protobuf.Struct getDiagnosticInfo() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() { - return getDiagnosticInfo(); + return diagnosticInfo_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : diagnosticInfo_; } public static final int SENTIMENT_ANALYSIS_RESULT_FIELD_NUMBER = 17; @@ -1210,7 +1226,9 @@ public boolean hasSentimentAnalysisResult() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder() { - return getSentimentAnalysisResult(); + return sentimentAnalysisResult_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.getDefaultInstance() + : sentimentAnalysisResult_; } private byte memoizedIsInitialized = -1; @@ -1615,15 +1633,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (dtmfBuilder_ != null) { dtmfBuilder_.clear(); } languageCode_ = ""; - - if (parametersBuilder_ == null) { - parameters_ = null; - } else { - parameters_ = null; + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } if (responseMessagesBuilder_ == null) { @@ -1632,51 +1649,45 @@ public Builder clear() { responseMessages_ = null; responseMessagesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); if (webhookStatusesBuilder_ == null) { webhookStatuses_ = java.util.Collections.emptyList(); } else { webhookStatuses_ = null; webhookStatusesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000100); if (webhookPayloadsBuilder_ == null) { webhookPayloads_ = java.util.Collections.emptyList(); } else { webhookPayloads_ = null; webhookPayloadsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000004); - if (currentPageBuilder_ == null) { - currentPage_ = null; - } else { - currentPage_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + currentPage_ = null; + if (currentPageBuilder_ != null) { + currentPageBuilder_.dispose(); currentPageBuilder_ = null; } - if (intentBuilder_ == null) { - intent_ = null; - } else { - intent_ = null; + intent_ = null; + if (intentBuilder_ != null) { + intentBuilder_.dispose(); intentBuilder_ = null; } intentDetectionConfidence_ = 0F; - - if (matchBuilder_ == null) { - match_ = null; - } else { - match_ = null; + match_ = null; + if (matchBuilder_ != null) { + matchBuilder_.dispose(); matchBuilder_ = null; } - if (diagnosticInfoBuilder_ == null) { - diagnosticInfo_ = null; - } else { - diagnosticInfo_ = null; + diagnosticInfo_ = null; + if (diagnosticInfoBuilder_ != null) { + diagnosticInfoBuilder_.dispose(); diagnosticInfoBuilder_ = null; } - if (sentimentAnalysisResultBuilder_ == null) { - sentimentAnalysisResult_ = null; - } else { - sentimentAnalysisResult_ = null; + sentimentAnalysisResult_ = null; + if (sentimentAnalysisResultBuilder_ != null) { + sentimentAnalysisResultBuilder_.dispose(); sentimentAnalysisResultBuilder_ = null; } queryCase_ = 0; @@ -1708,88 +1719,85 @@ public com.google.cloud.dialogflow.cx.v3beta1.QueryResult build() { public com.google.cloud.dialogflow.cx.v3beta1.QueryResult buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.QueryResult result = new com.google.cloud.dialogflow.cx.v3beta1.QueryResult(this); - int from_bitField0_ = bitField0_; - if (queryCase_ == 1) { - result.query_ = query_; - } - if (queryCase_ == 11) { - result.query_ = query_; - } - if (queryCase_ == 12) { - result.query_ = query_; - } - if (queryCase_ == 14) { - result.query_ = query_; - } - if (queryCase_ == 23) { - if (dtmfBuilder_ == null) { - result.query_ = query_; - } else { - result.query_ = dtmfBuilder_.build(); - } - } - result.languageCode_ = languageCode_; - if (parametersBuilder_ == null) { - result.parameters_ = parameters_; - } else { - result.parameters_ = parametersBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.QueryResult result) { if (responseMessagesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { responseMessages_ = java.util.Collections.unmodifiableList(responseMessages_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); } result.responseMessages_ = responseMessages_; } else { result.responseMessages_ = responseMessagesBuilder_.build(); } if (webhookStatusesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000100) != 0)) { webhookStatuses_ = java.util.Collections.unmodifiableList(webhookStatuses_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000100); } result.webhookStatuses_ = webhookStatuses_; } else { result.webhookStatuses_ = webhookStatusesBuilder_.build(); } if (webhookPayloadsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000200) != 0)) { webhookPayloads_ = java.util.Collections.unmodifiableList(webhookPayloads_); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); } result.webhookPayloads_ = webhookPayloads_; } else { result.webhookPayloads_ = webhookPayloadsBuilder_.build(); } - if (currentPageBuilder_ == null) { - result.currentPage_ = currentPage_; - } else { - result.currentPage_ = currentPageBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.QueryResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.languageCode_ = languageCode_; } - if (intentBuilder_ == null) { - result.intent_ = intent_; - } else { - result.intent_ = intentBuilder_.build(); + if (((from_bitField0_ & 0x00000040) != 0)) { + result.parameters_ = parametersBuilder_ == null ? parameters_ : parametersBuilder_.build(); } - result.intentDetectionConfidence_ = intentDetectionConfidence_; - if (matchBuilder_ == null) { - result.match_ = match_; - } else { - result.match_ = matchBuilder_.build(); + if (((from_bitField0_ & 0x00000400) != 0)) { + result.currentPage_ = + currentPageBuilder_ == null ? currentPage_ : currentPageBuilder_.build(); } - if (diagnosticInfoBuilder_ == null) { - result.diagnosticInfo_ = diagnosticInfo_; - } else { - result.diagnosticInfo_ = diagnosticInfoBuilder_.build(); + if (((from_bitField0_ & 0x00000800) != 0)) { + result.intent_ = intentBuilder_ == null ? intent_ : intentBuilder_.build(); } - if (sentimentAnalysisResultBuilder_ == null) { - result.sentimentAnalysisResult_ = sentimentAnalysisResult_; - } else { - result.sentimentAnalysisResult_ = sentimentAnalysisResultBuilder_.build(); + if (((from_bitField0_ & 0x00001000) != 0)) { + result.intentDetectionConfidence_ = intentDetectionConfidence_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.match_ = matchBuilder_ == null ? match_ : matchBuilder_.build(); } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.diagnosticInfo_ = + diagnosticInfoBuilder_ == null ? diagnosticInfo_ : diagnosticInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.sentimentAnalysisResult_ = + sentimentAnalysisResultBuilder_ == null + ? sentimentAnalysisResult_ + : sentimentAnalysisResultBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3beta1.QueryResult result) { result.queryCase_ = queryCase_; - onBuilt(); - return result; + result.query_ = this.query_; + if (queryCase_ == 23 && dtmfBuilder_ != null) { + result.query_ = dtmfBuilder_.build(); + } } @java.lang.Override @@ -1840,6 +1848,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.QueryResult othe return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasParameters()) { @@ -1849,7 +1858,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.QueryResult othe if (!other.responseMessages_.isEmpty()) { if (responseMessages_.isEmpty()) { responseMessages_ = other.responseMessages_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureResponseMessagesIsMutable(); responseMessages_.addAll(other.responseMessages_); @@ -1862,7 +1871,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.QueryResult othe responseMessagesBuilder_.dispose(); responseMessagesBuilder_ = null; responseMessages_ = other.responseMessages_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); responseMessagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResponseMessagesFieldBuilder() @@ -1876,7 +1885,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.QueryResult othe if (!other.webhookStatuses_.isEmpty()) { if (webhookStatuses_.isEmpty()) { webhookStatuses_ = other.webhookStatuses_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000100); } else { ensureWebhookStatusesIsMutable(); webhookStatuses_.addAll(other.webhookStatuses_); @@ -1889,7 +1898,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.QueryResult othe webhookStatusesBuilder_.dispose(); webhookStatusesBuilder_ = null; webhookStatuses_ = other.webhookStatuses_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000100); webhookStatusesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWebhookStatusesFieldBuilder() @@ -1903,7 +1912,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.QueryResult othe if (!other.webhookPayloads_.isEmpty()) { if (webhookPayloads_.isEmpty()) { webhookPayloads_ = other.webhookPayloads_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); } else { ensureWebhookPayloadsIsMutable(); webhookPayloads_.addAll(other.webhookPayloads_); @@ -1916,7 +1925,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.QueryResult othe webhookPayloadsBuilder_.dispose(); webhookPayloadsBuilder_ = null; webhookPayloads_ = other.webhookPayloads_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); webhookPayloadsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWebhookPayloadsFieldBuilder() @@ -2019,13 +2028,13 @@ public Builder mergeFrom( case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 18 case 26: { input.readMessage(getParametersFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 26 case 34: @@ -2057,25 +2066,25 @@ public Builder mergeFrom( case 58: { input.readMessage(getCurrentPageFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000400; break; } // case 58 case 66: { input.readMessage(getIntentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000800; break; } // case 66 case 77: { intentDetectionConfidence_ = input.readFloat(); - + bitField0_ |= 0x00001000; break; } // case 77 case 82: { input.readMessage(getDiagnosticInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00004000; break; } // case 82 case 90: @@ -2114,14 +2123,14 @@ public Builder mergeFrom( case 122: { input.readMessage(getMatchFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00002000; break; } // case 122 case 138: { input.readMessage( getSentimentAnalysisResultFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00008000; break; } // case 138 case 186: @@ -2956,7 +2965,6 @@ public com.google.cloud.dialogflow.cx.v3beta1.DtmfInputOrBuilder getDtmfOrBuilde } queryCase_ = 23; onChanged(); - ; return dtmfBuilder_; } @@ -3030,8 +3038,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3050,8 +3058,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -3075,8 +3083,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3111,7 +3119,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { * @return Whether the parameters field is set. */ public boolean hasParameters() { - return parametersBuilder_ != null || parameters_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -3170,11 +3178,11 @@ public Builder setParameters(com.google.protobuf.Struct value) { throw new NullPointerException(); } parameters_ = value; - onChanged(); } else { parametersBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -3201,11 +3209,11 @@ public Builder setParameters(com.google.protobuf.Struct value) { public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) { if (parametersBuilder_ == null) { parameters_ = builderForValue.build(); - onChanged(); } else { parametersBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -3231,17 +3239,18 @@ public Builder setParameters(com.google.protobuf.Struct.Builder builderForValue) */ public Builder mergeParameters(com.google.protobuf.Struct value) { if (parametersBuilder_ == null) { - if (parameters_ != null) { - parameters_ = - com.google.protobuf.Struct.newBuilder(parameters_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && parameters_ != null + && parameters_ != com.google.protobuf.Struct.getDefaultInstance()) { + getParametersBuilder().mergeFrom(value); } else { parameters_ = value; } - onChanged(); } else { parametersBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -3266,14 +3275,13 @@ public Builder mergeParameters(com.google.protobuf.Struct value) { * .google.protobuf.Struct parameters = 3; */ public Builder clearParameters() { - if (parametersBuilder_ == null) { - parameters_ = null; - onChanged(); - } else { - parameters_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + parameters_ = null; + if (parametersBuilder_ != null) { + parametersBuilder_.dispose(); parametersBuilder_ = null; } - + onChanged(); return this; } /** @@ -3298,7 +3306,7 @@ public Builder clearParameters() { * .google.protobuf.Struct parameters = 3; */ public com.google.protobuf.Struct.Builder getParametersBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getParametersFieldBuilder().getBuilder(); } @@ -3372,11 +3380,11 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() { responseMessages_ = java.util.Collections.emptyList(); private void ensureResponseMessagesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { responseMessages_ = new java.util.ArrayList( responseMessages_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000080; } } @@ -3630,7 +3638,7 @@ public Builder addAllResponseMessages( public Builder clearResponseMessages() { if (responseMessagesBuilder_ == null) { responseMessages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { responseMessagesBuilder_.clear(); @@ -3779,7 +3787,7 @@ public Builder removeResponseMessages(int index) { com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Builder, com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageOrBuilder>( responseMessages_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); responseMessages_ = null; @@ -3791,9 +3799,9 @@ public Builder removeResponseMessages(int index) { java.util.Collections.emptyList(); private void ensureWebhookStatusesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000100) != 0)) { webhookStatuses_ = new java.util.ArrayList(webhookStatuses_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000100; } } @@ -4004,7 +4012,7 @@ public Builder addAllWebhookStatuses( public Builder clearWebhookStatuses() { if (webhookStatusesBuilder_ == null) { webhookStatuses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); } else { webhookStatusesBuilder_.clear(); @@ -4124,7 +4132,7 @@ public java.util.List getWebhookStatusesBuilderLi com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( webhookStatuses_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); webhookStatuses_ = null; @@ -4136,9 +4144,9 @@ public java.util.List getWebhookStatusesBuilderLi java.util.Collections.emptyList(); private void ensureWebhookPayloadsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000200) != 0)) { webhookPayloads_ = new java.util.ArrayList(webhookPayloads_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000200; } } @@ -4386,7 +4394,7 @@ public Builder addAllWebhookPayloads( public Builder clearWebhookPayloads() { if (webhookPayloadsBuilder_ == null) { webhookPayloads_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); } else { webhookPayloadsBuilder_.clear(); @@ -4529,7 +4537,7 @@ public java.util.List getWebhookPayloadsBuil com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( webhookPayloads_, - ((bitField0_ & 0x00000004) != 0), + ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); webhookPayloads_ = null; @@ -4557,7 +4565,7 @@ public java.util.List getWebhookPayloadsBuil * @return Whether the currentPage field is set. */ public boolean hasCurrentPage() { - return currentPageBuilder_ != null || currentPage_ != null; + return ((bitField0_ & 0x00000400) != 0); } /** * @@ -4598,11 +4606,11 @@ public Builder setCurrentPage(com.google.cloud.dialogflow.cx.v3beta1.Page value) throw new NullPointerException(); } currentPage_ = value; - onChanged(); } else { currentPageBuilder_.setMessage(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -4620,11 +4628,11 @@ public Builder setCurrentPage( com.google.cloud.dialogflow.cx.v3beta1.Page.Builder builderForValue) { if (currentPageBuilder_ == null) { currentPage_ = builderForValue.build(); - onChanged(); } else { currentPageBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -4640,19 +4648,18 @@ public Builder setCurrentPage( */ public Builder mergeCurrentPage(com.google.cloud.dialogflow.cx.v3beta1.Page value) { if (currentPageBuilder_ == null) { - if (currentPage_ != null) { - currentPage_ = - com.google.cloud.dialogflow.cx.v3beta1.Page.newBuilder(currentPage_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000400) != 0) + && currentPage_ != null + && currentPage_ != com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance()) { + getCurrentPageBuilder().mergeFrom(value); } else { currentPage_ = value; } - onChanged(); } else { currentPageBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000400; + onChanged(); return this; } /** @@ -4667,14 +4674,13 @@ public Builder mergeCurrentPage(com.google.cloud.dialogflow.cx.v3beta1.Page valu * .google.cloud.dialogflow.cx.v3beta1.Page current_page = 7; */ public Builder clearCurrentPage() { - if (currentPageBuilder_ == null) { - currentPage_ = null; - onChanged(); - } else { - currentPage_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + currentPage_ = null; + if (currentPageBuilder_ != null) { + currentPageBuilder_.dispose(); currentPageBuilder_ = null; } - + onChanged(); return this; } /** @@ -4689,7 +4695,7 @@ public Builder clearCurrentPage() { * .google.cloud.dialogflow.cx.v3beta1.Page current_page = 7; */ public com.google.cloud.dialogflow.cx.v3beta1.Page.Builder getCurrentPageBuilder() { - + bitField0_ |= 0x00000400; onChanged(); return getCurrentPageFieldBuilder().getBuilder(); } @@ -4767,7 +4773,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.PageOrBuilder getCurrentPageOrBuil */ @java.lang.Deprecated public boolean hasIntent() { - return intentBuilder_ != null || intent_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -4818,11 +4824,11 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3beta1.Intent value) { throw new NullPointerException(); } intent_ = value; - onChanged(); } else { intentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -4844,11 +4850,11 @@ public Builder setIntent( com.google.cloud.dialogflow.cx.v3beta1.Intent.Builder builderForValue) { if (intentBuilder_ == null) { intent_ = builderForValue.build(); - onChanged(); } else { intentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -4868,19 +4874,18 @@ public Builder setIntent( @java.lang.Deprecated public Builder mergeIntent(com.google.cloud.dialogflow.cx.v3beta1.Intent value) { if (intentBuilder_ == null) { - if (intent_ != null) { - intent_ = - com.google.cloud.dialogflow.cx.v3beta1.Intent.newBuilder(intent_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000800) != 0) + && intent_ != null + && intent_ != com.google.cloud.dialogflow.cx.v3beta1.Intent.getDefaultInstance()) { + getIntentBuilder().mergeFrom(value); } else { intent_ = value; } - onChanged(); } else { intentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -4899,14 +4904,13 @@ public Builder mergeIntent(com.google.cloud.dialogflow.cx.v3beta1.Intent value) */ @java.lang.Deprecated public Builder clearIntent() { - if (intentBuilder_ == null) { - intent_ = null; - onChanged(); - } else { - intent_ = null; + bitField0_ = (bitField0_ & ~0x00000800); + intent_ = null; + if (intentBuilder_ != null) { + intentBuilder_.dispose(); intentBuilder_ = null; } - + onChanged(); return this; } /** @@ -4925,7 +4929,7 @@ public Builder clearIntent() { */ @java.lang.Deprecated public com.google.cloud.dialogflow.cx.v3beta1.Intent.Builder getIntentBuilder() { - + bitField0_ |= 0x00000800; onChanged(); return getIntentFieldBuilder().getBuilder(); } @@ -5037,6 +5041,7 @@ public float getIntentDetectionConfidence() { public Builder setIntentDetectionConfidence(float value) { intentDetectionConfidence_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -5063,7 +5068,7 @@ public Builder setIntentDetectionConfidence(float value) { */ @java.lang.Deprecated public Builder clearIntentDetectionConfidence() { - + bitField0_ = (bitField0_ & ~0x00001000); intentDetectionConfidence_ = 0F; onChanged(); return this; @@ -5087,7 +5092,7 @@ public Builder clearIntentDetectionConfidence() { * @return Whether the match field is set. */ public boolean hasMatch() { - return matchBuilder_ != null || match_ != null; + return ((bitField0_ & 0x00002000) != 0); } /** * @@ -5124,11 +5129,11 @@ public Builder setMatch(com.google.cloud.dialogflow.cx.v3beta1.Match value) { throw new NullPointerException(); } match_ = value; - onChanged(); } else { matchBuilder_.setMessage(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -5143,11 +5148,11 @@ public Builder setMatch(com.google.cloud.dialogflow.cx.v3beta1.Match value) { public Builder setMatch(com.google.cloud.dialogflow.cx.v3beta1.Match.Builder builderForValue) { if (matchBuilder_ == null) { match_ = builderForValue.build(); - onChanged(); } else { matchBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -5161,19 +5166,18 @@ public Builder setMatch(com.google.cloud.dialogflow.cx.v3beta1.Match.Builder bui */ public Builder mergeMatch(com.google.cloud.dialogflow.cx.v3beta1.Match value) { if (matchBuilder_ == null) { - if (match_ != null) { - match_ = - com.google.cloud.dialogflow.cx.v3beta1.Match.newBuilder(match_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00002000) != 0) + && match_ != null + && match_ != com.google.cloud.dialogflow.cx.v3beta1.Match.getDefaultInstance()) { + getMatchBuilder().mergeFrom(value); } else { match_ = value; } - onChanged(); } else { matchBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00002000; + onChanged(); return this; } /** @@ -5186,14 +5190,13 @@ public Builder mergeMatch(com.google.cloud.dialogflow.cx.v3beta1.Match value) { * .google.cloud.dialogflow.cx.v3beta1.Match match = 15; */ public Builder clearMatch() { - if (matchBuilder_ == null) { - match_ = null; - onChanged(); - } else { - match_ = null; + bitField0_ = (bitField0_ & ~0x00002000); + match_ = null; + if (matchBuilder_ != null) { + matchBuilder_.dispose(); matchBuilder_ = null; } - + onChanged(); return this; } /** @@ -5206,7 +5209,7 @@ public Builder clearMatch() { * .google.cloud.dialogflow.cx.v3beta1.Match match = 15; */ public com.google.cloud.dialogflow.cx.v3beta1.Match.Builder getMatchBuilder() { - + bitField0_ |= 0x00002000; onChanged(); return getMatchFieldBuilder().getBuilder(); } @@ -5286,7 +5289,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.MatchOrBuilder getMatchOrBuilder() * @return Whether the diagnosticInfo field is set. */ public boolean hasDiagnosticInfo() { - return diagnosticInfoBuilder_ != null || diagnosticInfo_ != null; + return ((bitField0_ & 0x00004000) != 0); } /** * @@ -5351,11 +5354,11 @@ public Builder setDiagnosticInfo(com.google.protobuf.Struct value) { throw new NullPointerException(); } diagnosticInfo_ = value; - onChanged(); } else { diagnosticInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -5384,11 +5387,11 @@ public Builder setDiagnosticInfo(com.google.protobuf.Struct value) { public Builder setDiagnosticInfo(com.google.protobuf.Struct.Builder builderForValue) { if (diagnosticInfoBuilder_ == null) { diagnosticInfo_ = builderForValue.build(); - onChanged(); } else { diagnosticInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -5416,19 +5419,18 @@ public Builder setDiagnosticInfo(com.google.protobuf.Struct.Builder builderForVa */ public Builder mergeDiagnosticInfo(com.google.protobuf.Struct value) { if (diagnosticInfoBuilder_ == null) { - if (diagnosticInfo_ != null) { - diagnosticInfo_ = - com.google.protobuf.Struct.newBuilder(diagnosticInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00004000) != 0) + && diagnosticInfo_ != null + && diagnosticInfo_ != com.google.protobuf.Struct.getDefaultInstance()) { + getDiagnosticInfoBuilder().mergeFrom(value); } else { diagnosticInfo_ = value; } - onChanged(); } else { diagnosticInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00004000; + onChanged(); return this; } /** @@ -5455,14 +5457,13 @@ public Builder mergeDiagnosticInfo(com.google.protobuf.Struct value) { * .google.protobuf.Struct diagnostic_info = 10; */ public Builder clearDiagnosticInfo() { - if (diagnosticInfoBuilder_ == null) { - diagnosticInfo_ = null; - onChanged(); - } else { - diagnosticInfo_ = null; + bitField0_ = (bitField0_ & ~0x00004000); + diagnosticInfo_ = null; + if (diagnosticInfoBuilder_ != null) { + diagnosticInfoBuilder_.dispose(); diagnosticInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -5489,7 +5490,7 @@ public Builder clearDiagnosticInfo() { * .google.protobuf.Struct diagnostic_info = 10; */ public com.google.protobuf.Struct.Builder getDiagnosticInfoBuilder() { - + bitField0_ |= 0x00004000; onChanged(); return getDiagnosticInfoFieldBuilder().getBuilder(); } @@ -5588,7 +5589,7 @@ public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() { * @return Whether the sentimentAnalysisResult field is set. */ public boolean hasSentimentAnalysisResult() { - return sentimentAnalysisResultBuilder_ != null || sentimentAnalysisResult_ != null; + return ((bitField0_ & 0x00008000) != 0); } /** * @@ -5637,11 +5638,11 @@ public Builder setSentimentAnalysisResult( throw new NullPointerException(); } sentimentAnalysisResult_ = value; - onChanged(); } else { sentimentAnalysisResultBuilder_.setMessage(value); } - + bitField0_ |= 0x00008000; + onChanged(); return this; } /** @@ -5662,11 +5663,11 @@ public Builder setSentimentAnalysisResult( com.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.Builder builderForValue) { if (sentimentAnalysisResultBuilder_ == null) { sentimentAnalysisResult_ = builderForValue.build(); - onChanged(); } else { sentimentAnalysisResultBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00008000; + onChanged(); return this; } /** @@ -5686,20 +5687,20 @@ public Builder setSentimentAnalysisResult( public Builder mergeSentimentAnalysisResult( com.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult value) { if (sentimentAnalysisResultBuilder_ == null) { - if (sentimentAnalysisResult_ != null) { - sentimentAnalysisResult_ = - com.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.newBuilder( - sentimentAnalysisResult_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00008000) != 0) + && sentimentAnalysisResult_ != null + && sentimentAnalysisResult_ + != com.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult + .getDefaultInstance()) { + getSentimentAnalysisResultBuilder().mergeFrom(value); } else { sentimentAnalysisResult_ = value; } - onChanged(); } else { sentimentAnalysisResultBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00008000; + onChanged(); return this; } /** @@ -5717,14 +5718,13 @@ public Builder mergeSentimentAnalysisResult( * */ public Builder clearSentimentAnalysisResult() { - if (sentimentAnalysisResultBuilder_ == null) { - sentimentAnalysisResult_ = null; - onChanged(); - } else { - sentimentAnalysisResult_ = null; + bitField0_ = (bitField0_ & ~0x00008000); + sentimentAnalysisResult_ = null; + if (sentimentAnalysisResultBuilder_ != null) { + sentimentAnalysisResultBuilder_.dispose(); sentimentAnalysisResultBuilder_ = null; } - + onChanged(); return this; } /** @@ -5743,7 +5743,7 @@ public Builder clearSentimentAnalysisResult() { */ public com.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult.Builder getSentimentAnalysisResultBuilder() { - + bitField0_ |= 0x00008000; onChanged(); return getSentimentAnalysisResultFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResourceName.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResourceName.java index 1ca2fb17f343..e6cd33413dc5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResourceName.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResourceName.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -118,7 +120,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -372,10 +376,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - return this; } @@ -403,12 +406,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResourceName build() { public com.google.cloud.dialogflow.cx.v3beta1.ResourceName buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ResourceName result = new com.google.cloud.dialogflow.cx.v3beta1.ResourceName(this); - result.name_ = name_; - result.displayName_ = displayName_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ResourceName result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -457,10 +471,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ResourceName oth return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -492,13 +508,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -518,6 +534,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -579,8 +597,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -596,8 +614,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -618,8 +636,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -685,8 +703,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -702,8 +720,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -724,8 +742,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessage.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessage.java index 5cb113875048..389cf8a59cbf 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessage.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ResponseMessage.java @@ -202,6 +202,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TEXT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList text_; /** * @@ -263,7 +265,7 @@ public com.google.protobuf.ByteString getTextBytes(int index) { } public static final int ALLOW_PLAYBACK_INTERRUPTION_FIELD_NUMBER = 2; - private boolean allowPlaybackInterruption_; + private boolean allowPlaybackInterruption_ = false; /** * * @@ -500,10 +502,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; text_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); allowPlaybackInterruption_ = false; - return this; } @@ -532,15 +534,29 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text build() { public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text result = new com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text result) { if (((bitField0_ & 0x00000001) != 0)) { text_ = text_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.text_ = text_; - result.allowPlaybackInterruption_ = allowPlaybackInterruption_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.allowPlaybackInterruption_ = allowPlaybackInterruption_; + } } @java.lang.Override @@ -641,7 +657,7 @@ public Builder mergeFrom( case 16: { allowPlaybackInterruption_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -868,6 +884,7 @@ public boolean getAllowPlaybackInterruption() { public Builder setAllowPlaybackInterruption(boolean value) { allowPlaybackInterruption_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -886,7 +903,7 @@ public Builder setAllowPlaybackInterruption(boolean value) { * @return This builder for chaining. */ public Builder clearAllowPlaybackInterruption() { - + bitField0_ = (bitField0_ & ~0x00000002); allowPlaybackInterruption_ = false; onChanged(); return this; @@ -1105,7 +1122,7 @@ public com.google.protobuf.Struct getMetadata() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } private byte memoizedIsInitialized = -1; @@ -1328,10 +1345,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + bitField0_ = 0; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; @@ -1365,15 +1382,21 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff b buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff result = new com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff(this); - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.LiveAgentHandoff result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1458,7 +1481,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -1478,6 +1501,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Struct metadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, @@ -1497,7 +1522,7 @@ public Builder mergeFrom( * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1534,11 +1559,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) { throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1554,11 +1579,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) { public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1573,17 +1598,18 @@ public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Struct value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1597,14 +1623,13 @@ public Builder mergeMetadata(com.google.protobuf.Struct value) { * .google.protobuf.Struct metadata = 1; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -1618,7 +1643,7 @@ public Builder clearMetadata() { * .google.protobuf.Struct metadata = 1; */ public com.google.protobuf.Struct.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -1878,7 +1903,7 @@ public com.google.protobuf.Struct getMetadata() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return getMetadata(); + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } private byte memoizedIsInitialized = -1; @@ -2108,10 +2133,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; + bitField0_ = 0; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } return this; @@ -2145,15 +2170,21 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSucces buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess result = new com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess(this); - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.ConversationSuccess result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2238,7 +2269,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -2258,6 +2289,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.protobuf.Struct metadata_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, @@ -2276,7 +2309,7 @@ public Builder mergeFrom( * @return Whether the metadata field is set. */ public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -2311,11 +2344,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) { throw new NullPointerException(); } metadata_ = value; - onChanged(); } else { metadataBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2330,11 +2363,11 @@ public Builder setMetadata(com.google.protobuf.Struct value) { public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); - onChanged(); } else { metadataBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2348,17 +2381,18 @@ public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { */ public Builder mergeMetadata(com.google.protobuf.Struct value) { if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.protobuf.Struct.newBuilder(metadata_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); } else { metadata_ = value; } - onChanged(); } else { metadataBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2371,14 +2405,13 @@ public Builder mergeMetadata(com.google.protobuf.Struct value) { * .google.protobuf.Struct metadata = 1; */ public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); metadataBuilder_ = null; } - + onChanged(); return this; } /** @@ -2391,7 +2424,7 @@ public Builder clearMetadata() { * .google.protobuf.Struct metadata = 1; */ public com.google.protobuf.Struct.Builder getMetadataBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } @@ -2845,7 +2878,7 @@ public com.google.protobuf.ByteString getSsmlBytes() { } public static final int ALLOW_PLAYBACK_INTERRUPTION_FIELD_NUMBER = 3; - private boolean allowPlaybackInterruption_; + private boolean allowPlaybackInterruption_ = false; /** * * @@ -3106,8 +3139,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; allowPlaybackInterruption_ = false; - sourceCase_ = 0; source_ = null; return this; @@ -3140,18 +3173,28 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText bu public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText result = new com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText(this); - if (sourceCase_ == 1) { - result.source_ = source_; + if (bitField0_ != 0) { + buildPartial0(result); } - if (sourceCase_ == 2) { - result.source_ = source_; - } - result.allowPlaybackInterruption_ = allowPlaybackInterruption_; - result.sourceCase_ = sourceCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.allowPlaybackInterruption_ = allowPlaybackInterruption_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.OutputAudioText result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3270,7 +3313,7 @@ public Builder mergeFrom( case 24: { allowPlaybackInterruption_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -3304,6 +3347,8 @@ public Builder clearSource() { return this; } + private int bitField0_; + /** * * @@ -3615,6 +3660,7 @@ public boolean getAllowPlaybackInterruption() { public Builder setAllowPlaybackInterruption(boolean value) { allowPlaybackInterruption_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3633,7 +3679,7 @@ public Builder setAllowPlaybackInterruption(boolean value) { * @return This builder for chaining. */ public Builder clearAllowPlaybackInterruption() { - + bitField0_ = (bitField0_ & ~0x00000004); allowPlaybackInterruption_ = false; onChanged(); return this; @@ -4251,7 +4297,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int AUDIO_URI_FIELD_NUMBER = 1; - private volatile java.lang.Object audioUri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object audioUri_ = ""; /** * * @@ -4302,7 +4350,7 @@ public com.google.protobuf.ByteString getAudioUriBytes() { } public static final int ALLOW_PLAYBACK_INTERRUPTION_FIELD_NUMBER = 2; - private boolean allowPlaybackInterruption_; + private boolean allowPlaybackInterruption_ = false; /** * * @@ -4534,10 +4582,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; audioUri_ = ""; - allowPlaybackInterruption_ = false; - return this; } @@ -4567,12 +4614,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio build() public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio result = new com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio(this); - result.audioUri_ = audioUri_; - result.allowPlaybackInterruption_ = allowPlaybackInterruption_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.PlayAudio result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.audioUri_ = audioUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.allowPlaybackInterruption_ = allowPlaybackInterruption_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -4626,6 +4685,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getAudioUri().isEmpty()) { audioUri_ = other.audioUri_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getAllowPlaybackInterruption() != false) { @@ -4660,13 +4720,13 @@ public Builder mergeFrom( case 10: { audioUri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { allowPlaybackInterruption_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -4686,6 +4746,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object audioUri_ = ""; /** * @@ -4750,8 +4812,8 @@ public Builder setAudioUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - audioUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4768,8 +4830,8 @@ public Builder setAudioUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAudioUri() { - audioUri_ = getDefaultInstance().getAudioUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -4791,8 +4853,8 @@ public Builder setAudioUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - audioUri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4834,6 +4896,7 @@ public boolean getAllowPlaybackInterruption() { public Builder setAllowPlaybackInterruption(boolean value) { allowPlaybackInterruption_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4852,7 +4915,7 @@ public Builder setAllowPlaybackInterruption(boolean value) { * @return This builder for chaining. */ public Builder clearAllowPlaybackInterruption() { - + bitField0_ = (bitField0_ & ~0x00000002); allowPlaybackInterruption_ = false; onChanged(); return this; @@ -5349,7 +5412,7 @@ public com.google.protobuf.ByteString getUriBytes() { } public static final int ALLOW_PLAYBACK_INTERRUPTION_FIELD_NUMBER = 3; - private boolean allowPlaybackInterruption_; + private boolean allowPlaybackInterruption_ = false; /** * * @@ -5619,8 +5682,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; allowPlaybackInterruption_ = false; - contentCase_ = 0; content_ = null; return this; @@ -5654,18 +5717,28 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment result = new com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment(this); - if (contentCase_ == 1) { - result.content_ = content_; - } - if (contentCase_ == 2) { - result.content_ = content_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.allowPlaybackInterruption_ = allowPlaybackInterruption_; - result.contentCase_ = contentCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.allowPlaybackInterruption_ = allowPlaybackInterruption_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment result) { + result.contentCase_ = contentCase_; + result.content_ = this.content_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -5782,7 +5855,7 @@ public Builder mergeFrom( case 24: { allowPlaybackInterruption_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -5816,6 +5889,8 @@ public Builder clearContent() { return this; } + private int bitField0_; + /** * * @@ -6069,6 +6144,7 @@ public boolean getAllowPlaybackInterruption() { public Builder setAllowPlaybackInterruption(boolean value) { allowPlaybackInterruption_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -6087,7 +6163,7 @@ public Builder setAllowPlaybackInterruption(boolean value) { * @return This builder for chaining. */ public Builder clearAllowPlaybackInterruption() { - + bitField0_ = (bitField0_ & ~0x00000004); allowPlaybackInterruption_ = false; onChanged(); return this; @@ -6162,6 +6238,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int SEGMENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio.Segment> segments_; @@ -6457,6 +6535,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); } else { @@ -6493,7 +6572,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio build() public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio result = new com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio result) { if (segmentsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { segments_ = java.util.Collections.unmodifiableList(segments_); @@ -6503,8 +6591,11 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio buildPa } else { result.segments_ = segmentsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.MixedAudio result) { + int from_bitField0_ = bitField0_; } @java.lang.Override @@ -7571,6 +7662,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; endpointCase_ = 0; endpoint_ = null; return this; @@ -7604,14 +7696,25 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferC buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall result = new com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall(this); - if (endpointCase_ == 1) { - result.endpoint_ = endpoint_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.endpointCase_ = endpointCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TelephonyTransferCall result) { + result.endpointCase_ = endpointCase_; + result.endpoint_ = this.endpoint_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -7742,6 +7845,8 @@ public Builder clearEndpoint() { return this; } + private int bitField0_; + /** * * @@ -8580,7 +8685,9 @@ public boolean hasTelephonyTransferCall() { } public static final int CHANNEL_FIELD_NUMBER = 19; - private volatile java.lang.Object channel_; + + @SuppressWarnings("serial") + private volatile java.lang.Object channel_ = ""; /** * * @@ -9003,6 +9110,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (textBuilder_ != null) { textBuilder_.clear(); } @@ -9031,7 +9139,6 @@ public Builder clear() { telephonyTransferCallBuilder_.clear(); } channel_ = ""; - messageCase_ = 0; message_ = null; return this; @@ -9061,73 +9168,51 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage build() { public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage result = new com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage(this); - if (messageCase_ == 1) { - if (textBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = textBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (messageCase_ == 2) { - if (payloadBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = payloadBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000200) != 0)) { + result.channel_ = channel_; } - if (messageCase_ == 9) { - if (conversationSuccessBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = conversationSuccessBuilder_.build(); - } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage result) { + result.messageCase_ = messageCase_; + result.message_ = this.message_; + if (messageCase_ == 1 && textBuilder_ != null) { + result.message_ = textBuilder_.build(); } - if (messageCase_ == 8) { - if (outputAudioTextBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = outputAudioTextBuilder_.build(); - } + if (messageCase_ == 2 && payloadBuilder_ != null) { + result.message_ = payloadBuilder_.build(); } - if (messageCase_ == 10) { - if (liveAgentHandoffBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = liveAgentHandoffBuilder_.build(); - } + if (messageCase_ == 9 && conversationSuccessBuilder_ != null) { + result.message_ = conversationSuccessBuilder_.build(); } - if (messageCase_ == 11) { - if (endInteractionBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = endInteractionBuilder_.build(); - } + if (messageCase_ == 8 && outputAudioTextBuilder_ != null) { + result.message_ = outputAudioTextBuilder_.build(); } - if (messageCase_ == 12) { - if (playAudioBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = playAudioBuilder_.build(); - } + if (messageCase_ == 10 && liveAgentHandoffBuilder_ != null) { + result.message_ = liveAgentHandoffBuilder_.build(); } - if (messageCase_ == 13) { - if (mixedAudioBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = mixedAudioBuilder_.build(); - } + if (messageCase_ == 11 && endInteractionBuilder_ != null) { + result.message_ = endInteractionBuilder_.build(); } - if (messageCase_ == 18) { - if (telephonyTransferCallBuilder_ == null) { - result.message_ = message_; - } else { - result.message_ = telephonyTransferCallBuilder_.build(); - } + if (messageCase_ == 12 && playAudioBuilder_ != null) { + result.message_ = playAudioBuilder_.build(); + } + if (messageCase_ == 13 && mixedAudioBuilder_ != null) { + result.message_ = mixedAudioBuilder_.build(); + } + if (messageCase_ == 18 && telephonyTransferCallBuilder_ != null) { + result.message_ = telephonyTransferCallBuilder_.build(); } - result.channel_ = channel_; - result.messageCase_ = messageCase_; - onBuilt(); - return result; } @java.lang.Override @@ -9178,6 +9263,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage return this; if (!other.getChannel().isEmpty()) { channel_ = other.channel_; + bitField0_ |= 0x00000200; onChanged(); } switch (other.getMessageCase()) { @@ -9317,7 +9403,7 @@ public Builder mergeFrom( case 154: { channel_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000200; break; } // case 154 default: @@ -9351,6 +9437,8 @@ public Builder clearMessage() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text, com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text.Builder, @@ -9560,7 +9648,6 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.TextOrBuilder getT } messageCase_ = 1; onChanged(); - ; return textBuilder_; } @@ -9765,7 +9852,6 @@ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { } messageCase_ = 2; onChanged(); - ; return payloadBuilder_; } @@ -10011,7 +10097,6 @@ public Builder clearConversationSuccess() { } messageCase_ = 9; onChanged(); - ; return conversationSuccessBuilder_; } @@ -10262,7 +10347,6 @@ public Builder clearOutputAudioText() { } messageCase_ = 8; onChanged(); - ; return outputAudioTextBuilder_; } @@ -10504,7 +10588,6 @@ public Builder clearLiveAgentHandoff() { } messageCase_ = 10; onChanged(); - ; return liveAgentHandoffBuilder_; } @@ -10782,7 +10865,6 @@ public Builder clearEndInteraction() { } messageCase_ = 11; onChanged(); - ; return endInteractionBuilder_; } @@ -11038,7 +11120,6 @@ public Builder clearPlayAudio() { } messageCase_ = 12; onChanged(); - ; return playAudioBuilder_; } @@ -11313,7 +11394,6 @@ public Builder clearMixedAudio() { } messageCase_ = 13; onChanged(); - ; return mixedAudioBuilder_; } @@ -11570,7 +11650,6 @@ public Builder clearTelephonyTransferCall() { } messageCase_ = 18; onChanged(); - ; return telephonyTransferCallBuilder_; } @@ -11644,8 +11723,8 @@ public Builder setChannel(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - channel_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -11664,8 +11743,8 @@ public Builder setChannel(java.lang.String value) { * @return This builder for chaining. */ public Builder clearChannel() { - channel_ = getDefaultInstance().getChannel(); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -11689,8 +11768,8 @@ public Builder setChannelBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - channel_ = value; + bitField0_ |= 0x00000200; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RestoreAgentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RestoreAgentRequest.java index 0888928f3a60..9e4680f42f2c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RestoreAgentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RestoreAgentRequest.java @@ -282,7 +282,9 @@ public AgentCase getAgentCase() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -463,7 +465,7 @@ public com.google.protobuf.ByteString getAgentContent() { } public static final int RESTORE_OPTION_FIELD_NUMBER = 5; - private int restoreOption_; + private int restoreOption_ = 0; /** * * @@ -495,9 +497,8 @@ public int getRestoreOptionValue() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption getRestoreOption() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption result = - com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption.forNumber( restoreOption_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption.UNRECOGNIZED @@ -755,10 +756,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - restoreOption_ = 0; - agentCase_ = 0; agent_ = null; return this; @@ -788,19 +788,30 @@ public com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest(this); - result.name_ = name_; - if (agentCase_ == 2) { - result.agent_ = agent_; - } - if (agentCase_ == 3) { - result.agent_ = agent_; + if (bitField0_ != 0) { + buildPartial0(result); } - result.restoreOption_ = restoreOption_; - result.agentCase_ = agentCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.restoreOption_ = restoreOption_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest result) { + result.agentCase_ = agentCase_; + result.agent_ = this.agent_; + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -849,6 +860,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequ return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.restoreOption_ != 0) { @@ -901,7 +913,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -920,7 +932,7 @@ public Builder mergeFrom( case 40: { restoreOption_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 40 default: @@ -954,6 +966,8 @@ public Builder clearAgent() { return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -1024,8 +1038,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1044,8 +1058,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1069,8 +1083,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1356,8 +1370,8 @@ public int getRestoreOptionValue() { * @return This builder for chaining. */ public Builder setRestoreOptionValue(int value) { - restoreOption_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1377,9 +1391,8 @@ public Builder setRestoreOptionValue(int value) { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption getRestoreOption() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption result = - com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption.forNumber( restoreOption_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.RestoreAgentRequest.RestoreOption.UNRECOGNIZED @@ -1404,7 +1417,7 @@ public Builder setRestoreOption( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; restoreOption_ = value.getNumber(); onChanged(); return this; @@ -1423,7 +1436,7 @@ public Builder setRestoreOption( * @return This builder for chaining. */ public Builder clearRestoreOption() { - + bitField0_ = (bitField0_ & ~0x00000008); restoreOption_ = 0; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RolloutConfig.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RolloutConfig.java index 2348db987dac..124459aaf7b4 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RolloutConfig.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RolloutConfig.java @@ -204,7 +204,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -253,7 +255,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int TRAFFIC_PERCENT_FIELD_NUMBER = 2; - private int trafficPercent_; + private int trafficPercent_ = 0; /** * * @@ -322,7 +324,9 @@ public com.google.protobuf.Duration getMinDuration() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getMinDurationOrBuilder() { - return getMinDuration(); + return minDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : minDuration_; } private byte memoizedIsInitialized = -1; @@ -550,14 +554,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; displayName_ = ""; - trafficPercent_ = 0; - - if (minDurationBuilder_ == null) { - minDuration_ = null; - } else { - minDuration_ = null; + minDuration_ = null; + if (minDurationBuilder_ != null) { + minDurationBuilder_.dispose(); minDurationBuilder_ = null; } return this; @@ -589,17 +591,28 @@ public com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep build() public com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep result = new com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep(this); - result.displayName_ = displayName_; - result.trafficPercent_ = trafficPercent_; - if (minDurationBuilder_ == null) { - result.minDuration_ = minDuration_; - } else { - result.minDuration_ = minDurationBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.trafficPercent_ = trafficPercent_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.minDuration_ = + minDurationBuilder_ == null ? minDuration_ : minDurationBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -653,6 +666,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getTrafficPercent() != 0) { @@ -690,19 +704,19 @@ public Builder mergeFrom( case 10: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { trafficPercent_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage(getMinDurationFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -722,6 +736,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object displayName_ = ""; /** * @@ -783,8 +799,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -800,8 +816,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -822,8 +838,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -861,6 +877,7 @@ public int getTrafficPercent() { public Builder setTrafficPercent(int value) { trafficPercent_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -877,7 +894,7 @@ public Builder setTrafficPercent(int value) { * @return This builder for chaining. */ public Builder clearTrafficPercent() { - + bitField0_ = (bitField0_ & ~0x00000002); trafficPercent_ = 0; onChanged(); return this; @@ -903,7 +920,7 @@ public Builder clearTrafficPercent() { * @return Whether the minDuration field is set. */ public boolean hasMinDuration() { - return minDurationBuilder_ != null || minDuration_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -944,11 +961,11 @@ public Builder setMinDuration(com.google.protobuf.Duration value) { throw new NullPointerException(); } minDuration_ = value; - onChanged(); } else { minDurationBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -965,11 +982,11 @@ public Builder setMinDuration(com.google.protobuf.Duration value) { public Builder setMinDuration(com.google.protobuf.Duration.Builder builderForValue) { if (minDurationBuilder_ == null) { minDuration_ = builderForValue.build(); - onChanged(); } else { minDurationBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -985,19 +1002,18 @@ public Builder setMinDuration(com.google.protobuf.Duration.Builder builderForVal */ public Builder mergeMinDuration(com.google.protobuf.Duration value) { if (minDurationBuilder_ == null) { - if (minDuration_ != null) { - minDuration_ = - com.google.protobuf.Duration.newBuilder(minDuration_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && minDuration_ != null + && minDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMinDurationBuilder().mergeFrom(value); } else { minDuration_ = value; } - onChanged(); } else { minDurationBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1012,14 +1028,13 @@ public Builder mergeMinDuration(com.google.protobuf.Duration value) { * .google.protobuf.Duration min_duration = 3; */ public Builder clearMinDuration() { - if (minDurationBuilder_ == null) { - minDuration_ = null; - onChanged(); - } else { - minDuration_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + minDuration_ = null; + if (minDurationBuilder_ != null) { + minDurationBuilder_.dispose(); minDurationBuilder_ = null; } - + onChanged(); return this; } /** @@ -1034,7 +1049,7 @@ public Builder clearMinDuration() { * .google.protobuf.Duration min_duration = 3; */ public com.google.protobuf.Duration.Builder getMinDurationBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getMinDurationFieldBuilder().getBuilder(); } @@ -1154,6 +1169,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int ROLLOUT_STEPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List rolloutSteps_; /** @@ -1238,7 +1255,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig.RolloutStep getRollo } public static final int ROLLOUT_CONDITION_FIELD_NUMBER = 2; - private volatile java.lang.Object rolloutCondition_; + + @SuppressWarnings("serial") + private volatile java.lang.Object rolloutCondition_ = ""; /** * * @@ -1295,7 +1314,9 @@ public com.google.protobuf.ByteString getRolloutConditionBytes() { } public static final int FAILURE_CONDITION_FIELD_NUMBER = 3; - private volatile java.lang.Object failureCondition_; + + @SuppressWarnings("serial") + private volatile java.lang.Object failureCondition_ = ""; /** * * @@ -1566,6 +1587,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (rolloutStepsBuilder_ == null) { rolloutSteps_ = java.util.Collections.emptyList(); } else { @@ -1574,9 +1596,7 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); rolloutCondition_ = ""; - failureCondition_ = ""; - return this; } @@ -1604,7 +1624,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig build() { public com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig result = new com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig result) { if (rolloutStepsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { rolloutSteps_ = java.util.Collections.unmodifiableList(rolloutSteps_); @@ -1614,10 +1643,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig buildPartial() { } else { result.rolloutSteps_ = rolloutStepsBuilder_.build(); } - result.rolloutCondition_ = rolloutCondition_; - result.failureCondition_ = failureCondition_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rolloutCondition_ = rolloutCondition_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.failureCondition_ = failureCondition_; + } } @java.lang.Override @@ -1695,10 +1730,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.RolloutConfig ot } if (!other.getRolloutCondition().isEmpty()) { rolloutCondition_ = other.rolloutCondition_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getFailureCondition().isEmpty()) { failureCondition_ = other.failureCondition_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1744,13 +1781,13 @@ public Builder mergeFrom( case 18: { rolloutCondition_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { failureCondition_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -2270,8 +2307,8 @@ public Builder setRolloutCondition(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - rolloutCondition_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2291,8 +2328,8 @@ public Builder setRolloutCondition(java.lang.String value) { * @return This builder for chaining. */ public Builder clearRolloutCondition() { - rolloutCondition_ = getDefaultInstance().getRolloutCondition(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2317,8 +2354,8 @@ public Builder setRolloutConditionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - rolloutCondition_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2393,8 +2430,8 @@ public Builder setFailureCondition(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - failureCondition_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2413,8 +2450,8 @@ public Builder setFailureCondition(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFailureCondition() { - failureCondition_ = getDefaultInstance().getFailureCondition(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -2438,8 +2475,8 @@ public Builder setFailureConditionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - failureCondition_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RolloutState.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RolloutState.java index dd6a3f5bf3ae..6c0c808f5c04 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RolloutState.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RolloutState.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int STEP_FIELD_NUMBER = 1; - private volatile java.lang.Object step_; + + @SuppressWarnings("serial") + private volatile java.lang.Object step_ = ""; /** * * @@ -117,7 +119,7 @@ public com.google.protobuf.ByteString getStepBytes() { } public static final int STEP_INDEX_FIELD_NUMBER = 3; - private int stepIndex_; + private int stepIndex_ = 0; /** * * @@ -177,7 +179,7 @@ public com.google.protobuf.Timestamp getStartTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { - return getStartTime(); + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } private byte memoizedIsInitialized = -1; @@ -400,14 +402,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; step_ = ""; - stepIndex_ = 0; - - if (startTimeBuilder_ == null) { - startTime_ = null; - } else { - startTime_ = null; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } return this; @@ -437,17 +437,26 @@ public com.google.cloud.dialogflow.cx.v3beta1.RolloutState build() { public com.google.cloud.dialogflow.cx.v3beta1.RolloutState buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.RolloutState result = new com.google.cloud.dialogflow.cx.v3beta1.RolloutState(this); - result.step_ = step_; - result.stepIndex_ = stepIndex_; - if (startTimeBuilder_ == null) { - result.startTime_ = startTime_; - } else { - result.startTime_ = startTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.RolloutState result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.step_ = step_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.stepIndex_ = stepIndex_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -496,6 +505,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.RolloutState oth return this; if (!other.getStep().isEmpty()) { step_ = other.step_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getStepIndex() != 0) { @@ -533,19 +543,19 @@ public Builder mergeFrom( case 10: { step_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 18 case 24: { stepIndex_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 24 default: @@ -565,6 +575,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object step_ = ""; /** * @@ -626,8 +638,8 @@ public Builder setStep(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - step_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -643,8 +655,8 @@ public Builder setStep(java.lang.String value) { * @return This builder for chaining. */ public Builder clearStep() { - step_ = getDefaultInstance().getStep(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -665,8 +677,8 @@ public Builder setStepBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - step_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -702,6 +714,7 @@ public int getStepIndex() { public Builder setStepIndex(int value) { stepIndex_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -717,7 +730,7 @@ public Builder setStepIndex(int value) { * @return This builder for chaining. */ public Builder clearStepIndex() { - + bitField0_ = (bitField0_ & ~0x00000002); stepIndex_ = 0; onChanged(); return this; @@ -741,7 +754,7 @@ public Builder clearStepIndex() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return startTimeBuilder_ != null || startTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -776,11 +789,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } startTime_ = value; - onChanged(); } else { startTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -795,11 +808,11 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); - onChanged(); } else { startTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -813,17 +826,18 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (startTime_ != null) { - startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); } else { startTime_ = value; } - onChanged(); } else { startTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -836,14 +850,13 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp start_time = 2; */ public Builder clearStartTime() { - if (startTimeBuilder_ == null) { - startTime_ = null; - onChanged(); - } else { - startTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); startTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -856,7 +869,7 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 2; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunContinuousTestMetadata.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunContinuousTestMetadata.java index c18f127e0f77..dde919e064b5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunContinuousTestMetadata.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunContinuousTestMetadata.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ERRORS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List errors_; /** * @@ -340,6 +342,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (errorsBuilder_ == null) { errors_ = java.util.Collections.emptyList(); } else { @@ -375,7 +378,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata build() public com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata result = new com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata result) { if (errorsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { errors_ = java.util.Collections.unmodifiableList(errors_); @@ -385,8 +397,11 @@ public com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata buildPar } else { result.errors_ = errorsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunContinuousTestRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunContinuousTestRequest.java index 0e814a774122..56b7170147a9 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunContinuousTestRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunContinuousTestRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENVIRONMENT_FIELD_NUMBER = 1; - private volatile java.lang.Object environment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object environment_ = ""; /** * * @@ -322,8 +324,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; environment_ = ""; - return this; } @@ -352,11 +354,21 @@ public com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest result = new com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest(this); - result.environment_ = environment_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.environment_ = environment_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -407,6 +419,7 @@ public Builder mergeFrom( return this; if (!other.getEnvironment().isEmpty()) { environment_ = other.environment_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -438,7 +451,7 @@ public Builder mergeFrom( case 10: { environment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -458,6 +471,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object environment_ = ""; /** * @@ -528,8 +543,8 @@ public Builder setEnvironment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - environment_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -548,8 +563,8 @@ public Builder setEnvironment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEnvironment() { - environment_ = getDefaultInstance().getEnvironment(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -573,8 +588,8 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - environment_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunContinuousTestResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunContinuousTestResponse.java index 1907cac5d079..1c16c966bf62 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunContinuousTestResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunContinuousTestResponse.java @@ -115,7 +115,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult getContinuous @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResultOrBuilder getContinuousTestResultOrBuilder() { - return getContinuousTestResult(); + return continuousTestResult_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.getDefaultInstance() + : continuousTestResult_; } private byte memoizedIsInitialized = -1; @@ -323,10 +325,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (continuousTestResultBuilder_ == null) { - continuousTestResult_ = null; - } else { - continuousTestResult_ = null; + bitField0_ = 0; + continuousTestResult_ = null; + if (continuousTestResultBuilder_ != null) { + continuousTestResultBuilder_.dispose(); continuousTestResultBuilder_ = null; } return this; @@ -357,15 +359,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse build() public com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse result = new com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse(this); - if (continuousTestResultBuilder_ == null) { - result.continuousTestResult_ = continuousTestResult_; - } else { - result.continuousTestResult_ = continuousTestResultBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.RunContinuousTestResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.continuousTestResult_ = + continuousTestResultBuilder_ == null + ? continuousTestResult_ + : continuousTestResultBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -447,7 +458,7 @@ public Builder mergeFrom( { input.readMessage( getContinuousTestResultFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -467,6 +478,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult continuousTestResult_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult, @@ -486,7 +499,7 @@ public Builder mergeFrom( * @return Whether the continuousTestResult field is set. */ public boolean hasContinuousTestResult() { - return continuousTestResultBuilder_ != null || continuousTestResult_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -526,11 +539,11 @@ public Builder setContinuousTestResult( throw new NullPointerException(); } continuousTestResult_ = value; - onChanged(); } else { continuousTestResultBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -547,11 +560,11 @@ public Builder setContinuousTestResult( com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.Builder builderForValue) { if (continuousTestResultBuilder_ == null) { continuousTestResult_ = builderForValue.build(); - onChanged(); } else { continuousTestResultBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -567,20 +580,20 @@ public Builder setContinuousTestResult( public Builder mergeContinuousTestResult( com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult value) { if (continuousTestResultBuilder_ == null) { - if (continuousTestResult_ != null) { - continuousTestResult_ = - com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.newBuilder( - continuousTestResult_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && continuousTestResult_ != null + && continuousTestResult_ + != com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult + .getDefaultInstance()) { + getContinuousTestResultBuilder().mergeFrom(value); } else { continuousTestResult_ = value; } - onChanged(); } else { continuousTestResultBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -594,14 +607,13 @@ public Builder mergeContinuousTestResult( * */ public Builder clearContinuousTestResult() { - if (continuousTestResultBuilder_ == null) { - continuousTestResult_ = null; - onChanged(); - } else { - continuousTestResult_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + continuousTestResult_ = null; + if (continuousTestResultBuilder_ != null) { + continuousTestResultBuilder_.dispose(); continuousTestResultBuilder_ = null; } - + onChanged(); return this; } /** @@ -616,7 +628,7 @@ public Builder clearContinuousTestResult() { */ public com.google.cloud.dialogflow.cx.v3beta1.ContinuousTestResult.Builder getContinuousTestResultBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getContinuousTestResultFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunTestCaseRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunTestCaseRequest.java index 869e142ea298..5504633e65c1 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunTestCaseRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunTestCaseRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -125,7 +127,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int ENVIRONMENT_FIELD_NUMBER = 2; - private volatile java.lang.Object environment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object environment_ = ""; /** * * @@ -389,10 +393,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - environment_ = ""; - return this; } @@ -420,12 +423,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest result = new com.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest(this); - result.name_ = name_; - result.environment_ = environment_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.RunTestCaseRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.environment_ = environment_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -474,10 +488,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.RunTestCaseReque return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getEnvironment().isEmpty()) { environment_ = other.environment_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -509,13 +525,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { environment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -535,6 +551,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -605,8 +623,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -625,8 +643,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -650,8 +668,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -729,8 +747,8 @@ public Builder setEnvironment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - environment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -750,8 +768,8 @@ public Builder setEnvironment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEnvironment() { - environment_ = getDefaultInstance().getEnvironment(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -776,8 +794,8 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - environment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunTestCaseResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunTestCaseResponse.java index 1146bd845baf..34ea95a1348f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunTestCaseResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/RunTestCaseResponse.java @@ -111,7 +111,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult getResult() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.TestCaseResultOrBuilder getResultOrBuilder() { - return getResult(); + return result_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.getDefaultInstance() + : result_; } private byte memoizedIsInitialized = -1; @@ -318,10 +320,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (resultBuilder_ == null) { - result_ = null; - } else { - result_ = null; + bitField0_ = 0; + result_ = null; + if (resultBuilder_ != null) { + resultBuilder_.dispose(); resultBuilder_ = null; } return this; @@ -351,15 +353,20 @@ public com.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse result = new com.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse(this); - if (resultBuilder_ == null) { - result.result_ = result_; - } else { - result.result_ = resultBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.RunTestCaseResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.result_ = resultBuilder_ == null ? result_ : resultBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -438,7 +445,7 @@ public Builder mergeFrom( case 18: { input.readMessage(getResultFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 18 default: @@ -458,6 +465,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult result_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult, @@ -476,7 +485,7 @@ public Builder mergeFrom( * @return Whether the result field is set. */ public boolean hasResult() { - return resultBuilder_ != null || result_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -513,11 +522,11 @@ public Builder setResult(com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult v throw new NullPointerException(); } result_ = value; - onChanged(); } else { resultBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -533,11 +542,11 @@ public Builder setResult( com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.Builder builderForValue) { if (resultBuilder_ == null) { result_ = builderForValue.build(); - onChanged(); } else { resultBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -551,19 +560,19 @@ public Builder setResult( */ public Builder mergeResult(com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult value) { if (resultBuilder_ == null) { - if (result_ != null) { - result_ = - com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.newBuilder(result_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && result_ != null + && result_ + != com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.getDefaultInstance()) { + getResultBuilder().mergeFrom(value); } else { result_ = value; } - onChanged(); } else { resultBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -576,14 +585,13 @@ public Builder mergeResult(com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult * .google.cloud.dialogflow.cx.v3beta1.TestCaseResult result = 2; */ public Builder clearResult() { - if (resultBuilder_ == null) { - result_ = null; - onChanged(); - } else { - result_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + result_ = null; + if (resultBuilder_ != null) { + resultBuilder_.dispose(); resultBuilder_ = null; } - + onChanged(); return this; } /** @@ -596,7 +604,7 @@ public Builder clearResult() { * .google.cloud.dialogflow.cx.v3beta1.TestCaseResult result = 2; */ public com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.Builder getResultBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getResultFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettings.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettings.java index 8f5ace9f20b0..c287745a2419 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettings.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettings.java @@ -840,7 +840,9 @@ private AudioFormat(int value) { } public static final int GCS_BUCKET_FIELD_NUMBER = 1; - private volatile java.lang.Object gcsBucket_; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsBucket_ = ""; /** * * @@ -897,7 +899,9 @@ public com.google.protobuf.ByteString getGcsBucketBytes() { } public static final int AUDIO_EXPORT_PATTERN_FIELD_NUMBER = 2; - private volatile java.lang.Object audioExportPattern_; + + @SuppressWarnings("serial") + private volatile java.lang.Object audioExportPattern_ = ""; /** * * @@ -946,7 +950,7 @@ public com.google.protobuf.ByteString getAudioExportPatternBytes() { } public static final int ENABLE_AUDIO_REDACTION_FIELD_NUMBER = 3; - private boolean enableAudioRedaction_; + private boolean enableAudioRedaction_ = false; /** * * @@ -964,7 +968,7 @@ public boolean getEnableAudioRedaction() { } public static final int AUDIO_FORMAT_FIELD_NUMBER = 4; - private int audioFormat_; + private int audioFormat_ = 0; /** * * @@ -1000,11 +1004,10 @@ public int getAudioFormatValue() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings.AudioFormat getAudioFormat() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings.AudioFormat result = com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings - .AudioFormat.valueOf(audioFormat_); + .AudioFormat.forNumber(audioFormat_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings.AudioFormat .UNRECOGNIZED @@ -1253,14 +1256,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; gcsBucket_ = ""; - audioExportPattern_ = ""; - enableAudioRedaction_ = false; - audioFormat_ = 0; - return this; } @@ -1292,14 +1292,30 @@ public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettin buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings result = new com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings(this); - result.gcsBucket_ = gcsBucket_; - result.audioExportPattern_ = audioExportPattern_; - result.enableAudioRedaction_ = enableAudioRedaction_; - result.audioFormat_ = audioFormat_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.gcsBucket_ = gcsBucket_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.audioExportPattern_ = audioExportPattern_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableAudioRedaction_ = enableAudioRedaction_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.audioFormat_ = audioFormat_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1355,10 +1371,12 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getGcsBucket().isEmpty()) { gcsBucket_ = other.gcsBucket_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getAudioExportPattern().isEmpty()) { audioExportPattern_ = other.audioExportPattern_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getEnableAudioRedaction() != false) { @@ -1396,25 +1414,25 @@ public Builder mergeFrom( case 10: { gcsBucket_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { audioExportPattern_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { enableAudioRedaction_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 case 32: { audioFormat_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 default: @@ -1434,6 +1452,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object gcsBucket_ = ""; /** * @@ -1507,8 +1527,8 @@ public Builder setGcsBucket(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - gcsBucket_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1528,8 +1548,8 @@ public Builder setGcsBucket(java.lang.String value) { * @return This builder for chaining. */ public Builder clearGcsBucket() { - gcsBucket_ = getDefaultInstance().getGcsBucket(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1554,8 +1574,8 @@ public Builder setGcsBucketBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - gcsBucket_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1621,8 +1641,8 @@ public Builder setAudioExportPattern(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - audioExportPattern_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1638,8 +1658,8 @@ public Builder setAudioExportPattern(java.lang.String value) { * @return This builder for chaining. */ public Builder clearAudioExportPattern() { - audioExportPattern_ = getDefaultInstance().getAudioExportPattern(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1660,8 +1680,8 @@ public Builder setAudioExportPatternBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - audioExportPattern_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1697,6 +1717,7 @@ public boolean getEnableAudioRedaction() { public Builder setEnableAudioRedaction(boolean value) { enableAudioRedaction_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1712,7 +1733,7 @@ public Builder setEnableAudioRedaction(boolean value) { * @return This builder for chaining. */ public Builder clearEnableAudioRedaction() { - + bitField0_ = (bitField0_ & ~0x00000004); enableAudioRedaction_ = false; onChanged(); return this; @@ -1753,8 +1774,8 @@ public int getAudioFormatValue() { * @return This builder for chaining. */ public Builder setAudioFormatValue(int value) { - audioFormat_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1775,11 +1796,10 @@ public Builder setAudioFormatValue(int value) { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings.AudioFormat getAudioFormat() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings.AudioFormat result = com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings - .AudioFormat.valueOf(audioFormat_); + .AudioFormat.forNumber(audioFormat_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings .AudioFormat.UNRECOGNIZED @@ -1806,7 +1826,7 @@ public Builder setAudioFormat( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; audioFormat_ = value.getNumber(); onChanged(); return this; @@ -1826,7 +1846,7 @@ public Builder setAudioFormat( * @return This builder for chaining. */ public Builder clearAudioFormat() { - + bitField0_ = (bitField0_ & ~0x00000008); audioFormat_ = 0; onChanged(); return this; @@ -1970,7 +1990,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENABLE_INSIGHTS_EXPORT_FIELD_NUMBER = 1; - private boolean enableInsightsExport_; + private boolean enableInsightsExport_ = false; /** * * @@ -2201,8 +2221,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; enableInsightsExport_ = false; - return this; } @@ -2236,11 +2256,21 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings result = new com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings( this); - result.enableInsightsExport_ = enableInsightsExport_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableInsightsExport_ = enableInsightsExport_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2327,7 +2357,7 @@ public Builder mergeFrom( case 8: { enableInsightsExport_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -2347,6 +2377,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean enableInsightsExport_; /** * @@ -2380,6 +2412,7 @@ public boolean getEnableInsightsExport() { public Builder setEnableInsightsExport(boolean value) { enableInsightsExport_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2396,7 +2429,7 @@ public Builder setEnableInsightsExport(boolean value) { * @return This builder for chaining. */ public Builder clearEnableInsightsExport() { - + bitField0_ = (bitField0_ & ~0x00000001); enableInsightsExport_ = false; onChanged(); return this; @@ -2516,7 +2549,9 @@ public DataRetentionCase getDataRetentionCase() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -2577,7 +2612,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -2628,7 +2665,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int REDACTION_STRATEGY_FIELD_NUMBER = 3; - private int redactionStrategy_; + private int redactionStrategy_ = 0; /** * * @@ -2662,9 +2699,8 @@ public int getRedactionStrategyValue() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy getRedactionStrategy() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy result = - com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy.forNumber( redactionStrategy_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy.UNRECOGNIZED @@ -2672,7 +2708,7 @@ public int getRedactionStrategyValue() { } public static final int REDACTION_SCOPE_FIELD_NUMBER = 4; - private int redactionScope_; + private int redactionScope_ = 0; /** * * @@ -2708,9 +2744,8 @@ public int getRedactionScopeValue() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope getRedactionScope() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope result = - com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope.forNumber( redactionScope_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope.UNRECOGNIZED @@ -2718,7 +2753,9 @@ public int getRedactionScopeValue() { } public static final int INSPECT_TEMPLATE_FIELD_NUMBER = 9; - private volatile java.lang.Object inspectTemplate_; + + @SuppressWarnings("serial") + private volatile java.lang.Object inspectTemplate_ = ""; /** * * @@ -2791,7 +2828,9 @@ public com.google.protobuf.ByteString getInspectTemplateBytes() { } public static final int DEIDENTIFY_TEMPLATE_FIELD_NUMBER = 17; - private volatile java.lang.Object deidentifyTemplate_; + + @SuppressWarnings("serial") + private volatile java.lang.Object deidentifyTemplate_ = ""; /** * * @@ -2911,7 +2950,10 @@ public int getRetentionWindowDays() { } public static final int PURGE_DATA_TYPES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") private java.util.List purgeDataTypes_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.PurgeDataType> purgeDataTypes_converter_ = @@ -2920,9 +2962,8 @@ public int getRetentionWindowDays() { com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.PurgeDataType>() { public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.PurgeDataType convert( java.lang.Integer from) { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.PurgeDataType result = - com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.PurgeDataType.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.PurgeDataType.forNumber( from); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.PurgeDataType @@ -3118,7 +3159,10 @@ public boolean hasAudioExportSettings() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettingsOrBuilder getAudioExportSettingsOrBuilder() { - return getAudioExportSettings(); + return audioExportSettings_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings + .getDefaultInstance() + : audioExportSettings_; } public static final int INSIGHTS_EXPORT_SETTINGS_FIELD_NUMBER = 13; @@ -3191,7 +3235,10 @@ public boolean hasInsightsExportSettings() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettingsOrBuilder getInsightsExportSettingsOrBuilder() { - return getInsightsExportSettings(); + return insightsExportSettings_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings + .getDefaultInstance() + : insightsExportSettings_; } private byte memoizedIsInitialized = -1; @@ -3531,30 +3578,23 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - redactionStrategy_ = 0; - redactionScope_ = 0; - inspectTemplate_ = ""; - deidentifyTemplate_ = ""; - purgeDataTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - if (audioExportSettingsBuilder_ == null) { - audioExportSettings_ = null; - } else { - audioExportSettings_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + audioExportSettings_ = null; + if (audioExportSettingsBuilder_ != null) { + audioExportSettingsBuilder_.dispose(); audioExportSettingsBuilder_ = null; } - if (insightsExportSettingsBuilder_ == null) { - insightsExportSettings_ = null; - } else { - insightsExportSettings_ = null; + insightsExportSettings_ = null; + if (insightsExportSettingsBuilder_ != null) { + insightsExportSettingsBuilder_.dispose(); insightsExportSettingsBuilder_ = null; } dataRetentionCase_ = 0; @@ -3586,34 +3626,62 @@ public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings build() { public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings result = new com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; - result.redactionStrategy_ = redactionStrategy_; - result.redactionScope_ = redactionScope_; - result.inspectTemplate_ = inspectTemplate_; - result.deidentifyTemplate_ = deidentifyTemplate_; - if (dataRetentionCase_ == 6) { - result.dataRetention_ = dataRetention_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings result) { + if (((bitField0_ & 0x00000080) != 0)) { purgeDataTypes_ = java.util.Collections.unmodifiableList(purgeDataTypes_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); } result.purgeDataTypes_ = purgeDataTypes_; - if (audioExportSettingsBuilder_ == null) { - result.audioExportSettings_ = audioExportSettings_; - } else { - result.audioExportSettings_ = audioExportSettingsBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (insightsExportSettingsBuilder_ == null) { - result.insightsExportSettings_ = insightsExportSettings_; - } else { - result.insightsExportSettings_ = insightsExportSettingsBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.redactionStrategy_ = redactionStrategy_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.redactionScope_ = redactionScope_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.inspectTemplate_ = inspectTemplate_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.deidentifyTemplate_ = deidentifyTemplate_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.audioExportSettings_ = + audioExportSettingsBuilder_ == null + ? audioExportSettings_ + : audioExportSettingsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.insightsExportSettings_ = + insightsExportSettingsBuilder_ == null + ? insightsExportSettings_ + : insightsExportSettingsBuilder_.build(); + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings result) { result.dataRetentionCase_ = dataRetentionCase_; - onBuilt(); - return result; + result.dataRetention_ = this.dataRetention_; } @java.lang.Override @@ -3664,10 +3732,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.redactionStrategy_ != 0) { @@ -3678,16 +3748,18 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings } if (!other.getInspectTemplate().isEmpty()) { inspectTemplate_ = other.inspectTemplate_; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getDeidentifyTemplate().isEmpty()) { deidentifyTemplate_ = other.deidentifyTemplate_; + bitField0_ |= 0x00000020; onChanged(); } if (!other.purgeDataTypes_.isEmpty()) { if (purgeDataTypes_.isEmpty()) { purgeDataTypes_ = other.purgeDataTypes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensurePurgeDataTypesIsMutable(); purgeDataTypes_.addAll(other.purgeDataTypes_); @@ -3740,25 +3812,25 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { redactionStrategy_ = input.readEnum(); - + bitField0_ |= 0x00000004; break; } // case 24 case 32: { redactionScope_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 case 48: @@ -3789,27 +3861,27 @@ public Builder mergeFrom( case 74: { inspectTemplate_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 74 case 98: { input.readMessage( getAudioExportSettingsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 98 case 106: { input.readMessage( getInsightsExportSettingsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 106 case 138: { deidentifyTemplate_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 138 default: @@ -3924,8 +3996,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3947,8 +4019,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -3975,8 +4047,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4045,8 +4117,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4063,8 +4135,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -4086,8 +4158,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4125,8 +4197,8 @@ public int getRedactionStrategyValue() { * @return This builder for chaining. */ public Builder setRedactionStrategyValue(int value) { - redactionStrategy_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4146,9 +4218,8 @@ public Builder setRedactionStrategyValue(int value) { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy getRedactionStrategy() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy result = - com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy.forNumber( redactionStrategy_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionStrategy.UNRECOGNIZED @@ -4173,7 +4244,7 @@ public Builder setRedactionStrategy( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000004; redactionStrategy_ = value.getNumber(); onChanged(); return this; @@ -4192,7 +4263,7 @@ public Builder setRedactionStrategy( * @return This builder for chaining. */ public Builder clearRedactionStrategy() { - + bitField0_ = (bitField0_ & ~0x00000004); redactionStrategy_ = 0; onChanged(); return this; @@ -4235,8 +4306,8 @@ public int getRedactionScopeValue() { * @return This builder for chaining. */ public Builder setRedactionScopeValue(int value) { - redactionScope_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -4258,9 +4329,8 @@ public Builder setRedactionScopeValue(int value) { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope getRedactionScope() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope result = - com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope.forNumber( redactionScope_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.RedactionScope.UNRECOGNIZED @@ -4287,7 +4357,7 @@ public Builder setRedactionScope( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; redactionScope_ = value.getNumber(); onChanged(); return this; @@ -4308,7 +4378,7 @@ public Builder setRedactionScope( * @return This builder for chaining. */ public Builder clearRedactionScope() { - + bitField0_ = (bitField0_ & ~0x00000008); redactionScope_ = 0; onChanged(); return this; @@ -4411,8 +4481,8 @@ public Builder setInspectTemplate(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - inspectTemplate_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -4440,8 +4510,8 @@ public Builder setInspectTemplate(java.lang.String value) { * @return This builder for chaining. */ public Builder clearInspectTemplate() { - inspectTemplate_ = getDefaultInstance().getInspectTemplate(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -4474,8 +4544,8 @@ public Builder setInspectTemplateBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - inspectTemplate_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -4577,8 +4647,8 @@ public Builder setDeidentifyTemplate(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - deidentifyTemplate_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4606,8 +4676,8 @@ public Builder setDeidentifyTemplate(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDeidentifyTemplate() { - deidentifyTemplate_ = getDefaultInstance().getDeidentifyTemplate(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -4640,8 +4710,8 @@ public Builder setDeidentifyTemplateBytes(com.google.protobuf.ByteString value) throw new NullPointerException(); } checkByteStringIsUtf8(value); - deidentifyTemplate_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4708,6 +4778,7 @@ public int getRetentionWindowDays() { * @return This builder for chaining. */ public Builder setRetentionWindowDays(int value) { + dataRetentionCase_ = 6; dataRetention_ = value; onChanged(); @@ -4742,9 +4813,9 @@ public Builder clearRetentionWindowDays() { private java.util.List purgeDataTypes_ = java.util.Collections.emptyList(); private void ensurePurgeDataTypesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { purgeDataTypes_ = new java.util.ArrayList(purgeDataTypes_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000080; } } /** @@ -4889,7 +4960,7 @@ public Builder addAllPurgeDataTypes( */ public Builder clearPurgeDataTypes() { purgeDataTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -5024,7 +5095,7 @@ public Builder addAllPurgeDataTypesValue(java.lang.Iterable v * @return Whether the audioExportSettings field is set. */ public boolean hasAudioExportSettings() { - return audioExportSettingsBuilder_ != null || audioExportSettings_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -5094,11 +5165,11 @@ public Builder setAudioExportSettings( throw new NullPointerException(); } audioExportSettings_ = value; - onChanged(); } else { audioExportSettingsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -5130,11 +5201,11 @@ public Builder setAudioExportSettings( builderForValue) { if (audioExportSettingsBuilder_ == null) { audioExportSettings_ = builderForValue.build(); - onChanged(); } else { audioExportSettingsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -5164,20 +5235,20 @@ public Builder setAudioExportSettings( public Builder mergeAudioExportSettings( com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings value) { if (audioExportSettingsBuilder_ == null) { - if (audioExportSettings_ != null) { - audioExportSettings_ = - com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings - .newBuilder(audioExportSettings_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && audioExportSettings_ != null + && audioExportSettings_ + != com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings + .getDefaultInstance()) { + getAudioExportSettingsBuilder().mergeFrom(value); } else { audioExportSettings_ = value; } - onChanged(); } else { audioExportSettingsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -5205,14 +5276,13 @@ public Builder mergeAudioExportSettings( * */ public Builder clearAudioExportSettings() { - if (audioExportSettingsBuilder_ == null) { - audioExportSettings_ = null; - onChanged(); - } else { - audioExportSettings_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + audioExportSettings_ = null; + if (audioExportSettingsBuilder_ != null) { + audioExportSettingsBuilder_.dispose(); audioExportSettingsBuilder_ = null; } - + onChanged(); return this; } /** @@ -5241,7 +5311,7 @@ public Builder clearAudioExportSettings() { */ public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.AudioExportSettings.Builder getAudioExportSettingsBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getAudioExportSettingsFieldBuilder().getBuilder(); } @@ -5348,7 +5418,7 @@ public Builder clearAudioExportSettings() { * @return Whether the insightsExportSettings field is set. */ public boolean hasInsightsExportSettings() { - return insightsExportSettingsBuilder_ != null || insightsExportSettings_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -5402,11 +5472,11 @@ public Builder setInsightsExportSettings( throw new NullPointerException(); } insightsExportSettings_ = value; - onChanged(); } else { insightsExportSettingsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -5430,11 +5500,11 @@ public Builder setInsightsExportSettings( builderForValue) { if (insightsExportSettingsBuilder_ == null) { insightsExportSettings_ = builderForValue.build(); - onChanged(); } else { insightsExportSettingsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -5456,20 +5526,20 @@ public Builder setInsightsExportSettings( public Builder mergeInsightsExportSettings( com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings value) { if (insightsExportSettingsBuilder_ == null) { - if (insightsExportSettings_ != null) { - insightsExportSettings_ = - com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings - .newBuilder(insightsExportSettings_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && insightsExportSettings_ != null + && insightsExportSettings_ + != com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings + .getDefaultInstance()) { + getInsightsExportSettingsBuilder().mergeFrom(value); } else { insightsExportSettings_ = value; } - onChanged(); } else { insightsExportSettingsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -5489,14 +5559,13 @@ public Builder mergeInsightsExportSettings( * */ public Builder clearInsightsExportSettings() { - if (insightsExportSettingsBuilder_ == null) { - insightsExportSettings_ = null; - onChanged(); - } else { - insightsExportSettings_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + insightsExportSettings_ = null; + if (insightsExportSettingsBuilder_ != null) { + insightsExportSettingsBuilder_.dispose(); insightsExportSettingsBuilder_ = null; } - + onChanged(); return this; } /** @@ -5517,7 +5586,7 @@ public Builder clearInsightsExportSettings() { */ public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.InsightsExportSettings.Builder getInsightsExportSettingsBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getInsightsExportSettingsFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SentimentAnalysisResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SentimentAnalysisResult.java index f293f965eb03..2b5ebf895a02 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SentimentAnalysisResult.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SentimentAnalysisResult.java @@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SCORE_FIELD_NUMBER = 1; - private float score_; + private float score_ = 0F; /** * * @@ -87,7 +87,7 @@ public float getScore() { } public static final int MAGNITUDE_FIELD_NUMBER = 2; - private float magnitude_; + private float magnitude_ = 0F; /** * * @@ -316,10 +316,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; score_ = 0F; - magnitude_ = 0F; - return this; } @@ -348,12 +347,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult build() { public com.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult result = new com.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult(this); - result.score_ = score_; - result.magnitude_ = magnitude_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.SentimentAnalysisResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.score_ = score_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.magnitude_ = magnitude_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -436,13 +447,13 @@ public Builder mergeFrom( case 13: { score_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 case 21: { magnitude_ = input.readFloat(); - + bitField0_ |= 0x00000002; break; } // case 21 default: @@ -462,6 +473,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float score_; /** * @@ -495,6 +508,7 @@ public float getScore() { public Builder setScore(float value) { score_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -511,7 +525,7 @@ public Builder setScore(float value) { * @return This builder for chaining. */ public Builder clearScore() { - + bitField0_ = (bitField0_ & ~0x00000001); score_ = 0F; onChanged(); return this; @@ -550,6 +564,7 @@ public float getMagnitude() { public Builder setMagnitude(float value) { magnitude_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -566,7 +581,7 @@ public Builder setMagnitude(float value) { * @return This builder for chaining. */ public Builder clearMagnitude() { - + bitField0_ = (bitField0_ & ~0x00000002); magnitude_ = 0F; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityType.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityType.java index 8bbf71576541..f3caadae1a1e 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityType.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityType.java @@ -259,7 +259,9 @@ private EntityOverrideMode(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -320,7 +322,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int ENTITY_OVERRIDE_MODE_FIELD_NUMBER = 3; - private int entityOverrideMode_; + private int entityOverrideMode_ = 0; /** * * @@ -356,9 +358,8 @@ public int getEntityOverrideModeValue() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode getEntityOverrideMode() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode result = - com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode.forNumber( entityOverrideMode_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode.UNRECOGNIZED @@ -366,6 +367,8 @@ public int getEntityOverrideModeValue() { } public static final int ENTITIES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") private java.util.List entities_; /** * @@ -684,17 +687,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - entityOverrideMode_ = 0; - if (entitiesBuilder_ == null) { entities_ = java.util.Collections.emptyList(); } else { entities_ = null; entitiesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -722,20 +724,35 @@ public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType build() { public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType result = new com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.entityOverrideMode_ = entityOverrideMode_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType result) { if (entitiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { entities_ = java.util.Collections.unmodifiableList(entities_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.entities_ = entities_; } else { result.entities_ = entitiesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.entityOverrideMode_ = entityOverrideMode_; + } } @java.lang.Override @@ -786,6 +803,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTyp return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.entityOverrideMode_ != 0) { @@ -795,7 +813,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTyp if (!other.entities_.isEmpty()) { if (entities_.isEmpty()) { entities_ = other.entities_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureEntitiesIsMutable(); entities_.addAll(other.entities_); @@ -808,7 +826,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTyp entitiesBuilder_.dispose(); entitiesBuilder_ = null; entities_ = other.entities_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); entitiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntitiesFieldBuilder() @@ -847,13 +865,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 24: { entityOverrideMode_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 24 case 34: @@ -968,8 +986,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -991,8 +1009,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1019,8 +1037,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1060,8 +1078,8 @@ public int getEntityOverrideModeValue() { * @return This builder for chaining. */ public Builder setEntityOverrideModeValue(int value) { - entityOverrideMode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1082,9 +1100,8 @@ public Builder setEntityOverrideModeValue(int value) { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode getEntityOverrideMode() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode result = - com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode.forNumber( entityOverrideMode_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.EntityOverrideMode.UNRECOGNIZED @@ -1110,7 +1127,7 @@ public Builder setEntityOverrideMode( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; entityOverrideMode_ = value.getNumber(); onChanged(); return this; @@ -1130,7 +1147,7 @@ public Builder setEntityOverrideMode( * @return This builder for chaining. */ public Builder clearEntityOverrideMode() { - + bitField0_ = (bitField0_ & ~0x00000002); entityOverrideMode_ = 0; onChanged(); return this; @@ -1140,11 +1157,11 @@ public Builder clearEntityOverrideMode() { java.util.Collections.emptyList(); private void ensureEntitiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { entities_ = new java.util.ArrayList( entities_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -1399,7 +1416,7 @@ public Builder addAllEntities( public Builder clearEntities() { if (entitiesBuilder_ == null) { entities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { entitiesBuilder_.clear(); @@ -1548,7 +1565,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.Builder addEntit com.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity, com.google.cloud.dialogflow.cx.v3beta1.EntityType.Entity.Builder, com.google.cloud.dialogflow.cx.v3beta1.EntityType.EntityOrBuilder>( - entities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entities_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); entities_ = null; } return entitiesBuilder_; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionInfo.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionInfo.java index d57fca623e40..ccf17e442b80 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionInfo.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionInfo.java @@ -79,7 +79,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int SESSION_FIELD_NUMBER = 1; - private volatile java.lang.Object session_; + + @SuppressWarnings("serial") + private volatile java.lang.Object session_ = ""; /** * * @@ -162,6 +164,7 @@ private static final class ParametersDefaultEntryHolder { com.google.protobuf.Value.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField parameters_; private com.google.protobuf.MapField @@ -247,8 +250,10 @@ public java.util.Map getParametersM * map<string, .google.protobuf.Value> parameters = 2; */ @java.lang.Override - public com.google.protobuf.Value getParametersOrDefault( - java.lang.String key, com.google.protobuf.Value defaultValue) { + public /* nullable */ com.google.protobuf.Value getParametersOrDefault( + java.lang.String key, + /* nullable */ + com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -521,8 +526,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; session_ = ""; - internalGetMutableParameters().clear(); return this; } @@ -551,14 +556,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.SessionInfo build() { public com.google.cloud.dialogflow.cx.v3beta1.SessionInfo buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.SessionInfo result = new com.google.cloud.dialogflow.cx.v3beta1.SessionInfo(this); - int from_bitField0_ = bitField0_; - result.session_ = session_; - result.parameters_ = internalGetParameters(); - result.parameters_.makeImmutable(); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.SessionInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.session_ = session_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parameters_ = internalGetParameters(); + result.parameters_.makeImmutable(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -607,9 +622,11 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.SessionInfo othe return this; if (!other.getSession().isEmpty()) { session_ = other.session_; + bitField0_ |= 0x00000001; onChanged(); } internalGetMutableParameters().mergeFrom(other.internalGetParameters()); + bitField0_ |= 0x00000002; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -639,7 +656,7 @@ public Builder mergeFrom( case 10: { session_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -652,6 +669,7 @@ public Builder mergeFrom( internalGetMutableParameters() .getMutableMap() .put(parameters__.getKey(), parameters__.getValue()); + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -764,8 +782,8 @@ public Builder setSession(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - session_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -791,8 +809,8 @@ public Builder setSession(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSession() { - session_ = getDefaultInstance().getSession(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -823,8 +841,8 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - session_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -842,8 +860,6 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.MapField internalGetMutableParameters() { - onChanged(); - ; if (parameters_ == null) { parameters_ = com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry); @@ -851,6 +867,8 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) { if (!parameters_.isMutable()) { parameters_ = parameters_.copy(); } + bitField0_ |= 0x00000002; + onChanged(); return parameters_; } @@ -929,8 +947,10 @@ public java.util.Map getParametersM * map<string, .google.protobuf.Value> parameters = 2; */ @java.lang.Override - public com.google.protobuf.Value getParametersOrDefault( - java.lang.String key, com.google.protobuf.Value defaultValue) { + public /* nullable */ com.google.protobuf.Value getParametersOrDefault( + java.lang.String key, + /* nullable */ + com.google.protobuf.Value defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -970,6 +990,7 @@ public com.google.protobuf.Value getParametersOrThrow(java.lang.String key) { } public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000002); internalGetMutableParameters().getMutableMap().clear(); return this; } @@ -1001,6 +1022,7 @@ public Builder removeParameters(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableParameters() { + bitField0_ |= 0x00000002; return internalGetMutableParameters().getMutableMap(); } /** @@ -1028,8 +1050,8 @@ public Builder putParameters(java.lang.String key, com.google.protobuf.Value val if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableParameters().getMutableMap().put(key, value); + bitField0_ |= 0x00000002; return this; } /** @@ -1053,6 +1075,7 @@ public Builder putParameters(java.lang.String key, com.google.protobuf.Value val public Builder putAllParameters( java.util.Map values) { internalGetMutableParameters().getMutableMap().putAll(values); + bitField0_ |= 0x00000002; return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionInfoOrBuilder.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionInfoOrBuilder.java index 4e4d0e5c7d60..87674342cbd1 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionInfoOrBuilder.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionInfoOrBuilder.java @@ -146,7 +146,6 @@ public interface SessionInfoOrBuilder * * map<string, .google.protobuf.Value> parameters = 2; */ - /* nullable */ com.google.protobuf.Value getParametersOrDefault( java.lang.String key, diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SpeechToTextSettings.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SpeechToTextSettings.java index 8e628e2f6615..b800f5dc0cc2 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SpeechToTextSettings.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SpeechToTextSettings.java @@ -66,7 +66,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ENABLE_SPEECH_ADAPTATION_FIELD_NUMBER = 1; - private boolean enableSpeechAdaptation_; + private boolean enableSpeechAdaptation_ = false; /** * * @@ -281,8 +281,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; enableSpeechAdaptation_ = false; - return this; } @@ -310,11 +310,20 @@ public com.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings build() { public com.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings result = new com.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings(this); - result.enableSpeechAdaptation_ = enableSpeechAdaptation_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.SpeechToTextSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableSpeechAdaptation_ = enableSpeechAdaptation_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -393,7 +402,7 @@ public Builder mergeFrom( case 8: { enableSpeechAdaptation_ = input.readBool(); - + bitField0_ |= 0x00000001; break; } // case 8 default: @@ -413,6 +422,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private boolean enableSpeechAdaptation_; /** * @@ -444,6 +455,7 @@ public boolean getEnableSpeechAdaptation() { public Builder setEnableSpeechAdaptation(boolean value) { enableSpeechAdaptation_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -459,7 +471,7 @@ public Builder setEnableSpeechAdaptation(boolean value) { * @return This builder for chaining. */ public Builder clearEnableSpeechAdaptation() { - + bitField0_ = (bitField0_ & ~0x00000001); enableSpeechAdaptation_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SpeechWordInfo.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SpeechWordInfo.java index 7db3374abe88..0853995b79af 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SpeechWordInfo.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SpeechWordInfo.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int WORD_FIELD_NUMBER = 3; - private volatile java.lang.Object word_; + + @SuppressWarnings("serial") + private volatile java.lang.Object word_ = ""; /** * * @@ -165,7 +167,7 @@ public com.google.protobuf.Duration getStartOffset() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() { - return getStartOffset(); + return startOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startOffset_; } public static final int END_OFFSET_FIELD_NUMBER = 2; @@ -217,11 +219,11 @@ public com.google.protobuf.Duration getEndOffset() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getEndOffsetOrBuilder() { - return getEndOffset(); + return endOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endOffset_; } public static final int CONFIDENCE_FIELD_NUMBER = 4; - private float confidence_; + private float confidence_ = 0F; /** * * @@ -479,22 +481,19 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; word_ = ""; - - if (startOffsetBuilder_ == null) { - startOffset_ = null; - } else { - startOffset_ = null; + startOffset_ = null; + if (startOffsetBuilder_ != null) { + startOffsetBuilder_.dispose(); startOffsetBuilder_ = null; } - if (endOffsetBuilder_ == null) { - endOffset_ = null; - } else { - endOffset_ = null; + endOffset_ = null; + if (endOffsetBuilder_ != null) { + endOffsetBuilder_.dispose(); endOffsetBuilder_ = null; } confidence_ = 0F; - return this; } @@ -522,22 +521,30 @@ public com.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo build() { public com.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo result = new com.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo(this); - result.word_ = word_; - if (startOffsetBuilder_ == null) { - result.startOffset_ = startOffset_; - } else { - result.startOffset_ = startOffsetBuilder_.build(); - } - if (endOffsetBuilder_ == null) { - result.endOffset_ = endOffset_; - } else { - result.endOffset_ = endOffsetBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.confidence_ = confidence_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.word_ = word_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.startOffset_ = + startOffsetBuilder_ == null ? startOffset_ : startOffsetBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endOffset_ = endOffsetBuilder_ == null ? endOffset_ : endOffsetBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.confidence_ = confidence_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -586,6 +593,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo o return this; if (!other.getWord().isEmpty()) { word_ = other.word_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasStartOffset()) { @@ -626,25 +634,25 @@ public Builder mergeFrom( case 10: { input.readMessage(getStartOffsetFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 10 case 18: { input.readMessage(getEndOffsetFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 18 case 26: { word_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 26 case 37: { confidence_ = input.readFloat(); - + bitField0_ |= 0x00000008; break; } // case 37 default: @@ -664,6 +672,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object word_ = ""; /** * @@ -725,8 +735,8 @@ public Builder setWord(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - word_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -742,8 +752,8 @@ public Builder setWord(java.lang.String value) { * @return This builder for chaining. */ public Builder clearWord() { - word_ = getDefaultInstance().getWord(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -764,8 +774,8 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - word_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -790,7 +800,7 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) { * @return Whether the startOffset field is set. */ public boolean hasStartOffset() { - return startOffsetBuilder_ != null || startOffset_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -831,11 +841,11 @@ public Builder setStartOffset(com.google.protobuf.Duration value) { throw new NullPointerException(); } startOffset_ = value; - onChanged(); } else { startOffsetBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -852,11 +862,11 @@ public Builder setStartOffset(com.google.protobuf.Duration value) { public Builder setStartOffset(com.google.protobuf.Duration.Builder builderForValue) { if (startOffsetBuilder_ == null) { startOffset_ = builderForValue.build(); - onChanged(); } else { startOffsetBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -872,17 +882,18 @@ public Builder setStartOffset(com.google.protobuf.Duration.Builder builderForVal */ public Builder mergeStartOffset(com.google.protobuf.Duration value) { if (startOffsetBuilder_ == null) { - if (startOffset_ != null) { - startOffset_ = - com.google.protobuf.Duration.newBuilder(startOffset_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && startOffset_ != null + && startOffset_ != com.google.protobuf.Duration.getDefaultInstance()) { + getStartOffsetBuilder().mergeFrom(value); } else { startOffset_ = value; } - onChanged(); } else { startOffsetBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -897,14 +908,13 @@ public Builder mergeStartOffset(com.google.protobuf.Duration value) { * .google.protobuf.Duration start_offset = 1; */ public Builder clearStartOffset() { - if (startOffsetBuilder_ == null) { - startOffset_ = null; - onChanged(); - } else { - startOffset_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + startOffset_ = null; + if (startOffsetBuilder_ != null) { + startOffsetBuilder_.dispose(); startOffsetBuilder_ = null; } - + onChanged(); return this; } /** @@ -919,7 +929,7 @@ public Builder clearStartOffset() { * .google.protobuf.Duration start_offset = 1; */ public com.google.protobuf.Duration.Builder getStartOffsetBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getStartOffsetFieldBuilder().getBuilder(); } @@ -991,7 +1001,7 @@ public com.google.protobuf.DurationOrBuilder getStartOffsetOrBuilder() { * @return Whether the endOffset field is set. */ public boolean hasEndOffset() { - return endOffsetBuilder_ != null || endOffset_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1030,11 +1040,11 @@ public Builder setEndOffset(com.google.protobuf.Duration value) { throw new NullPointerException(); } endOffset_ = value; - onChanged(); } else { endOffsetBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1051,11 +1061,11 @@ public Builder setEndOffset(com.google.protobuf.Duration value) { public Builder setEndOffset(com.google.protobuf.Duration.Builder builderForValue) { if (endOffsetBuilder_ == null) { endOffset_ = builderForValue.build(); - onChanged(); } else { endOffsetBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1071,17 +1081,18 @@ public Builder setEndOffset(com.google.protobuf.Duration.Builder builderForValue */ public Builder mergeEndOffset(com.google.protobuf.Duration value) { if (endOffsetBuilder_ == null) { - if (endOffset_ != null) { - endOffset_ = - com.google.protobuf.Duration.newBuilder(endOffset_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && endOffset_ != null + && endOffset_ != com.google.protobuf.Duration.getDefaultInstance()) { + getEndOffsetBuilder().mergeFrom(value); } else { endOffset_ = value; } - onChanged(); } else { endOffsetBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1096,14 +1107,13 @@ public Builder mergeEndOffset(com.google.protobuf.Duration value) { * .google.protobuf.Duration end_offset = 2; */ public Builder clearEndOffset() { - if (endOffsetBuilder_ == null) { - endOffset_ = null; - onChanged(); - } else { - endOffset_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + endOffset_ = null; + if (endOffsetBuilder_ != null) { + endOffsetBuilder_.dispose(); endOffsetBuilder_ = null; } - + onChanged(); return this; } /** @@ -1118,7 +1128,7 @@ public Builder clearEndOffset() { * .google.protobuf.Duration end_offset = 2; */ public com.google.protobuf.Duration.Builder getEndOffsetBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getEndOffsetFieldBuilder().getBuilder(); } @@ -1209,6 +1219,7 @@ public float getConfidence() { public Builder setConfidence(float value) { confidence_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1229,7 +1240,7 @@ public Builder setConfidence(float value) { * @return This builder for chaining. */ public Builder clearConfidence() { - + bitField0_ = (bitField0_ & ~0x00000008); confidence_ = 0F; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StartExperimentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StartExperimentRequest.java index 25f68d639fc2..dbce562df72a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StartExperimentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StartExperimentRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.StartExperimentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -408,6 +420,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.StartExperimentR return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -439,7 +452,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +472,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -532,8 +547,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -553,8 +568,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -579,8 +594,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StopExperimentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StopExperimentRequest.java index fbe70973ede7..cf4b9a8a653c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StopExperimentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StopExperimentRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -354,11 +356,21 @@ public com.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.StopExperimentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -408,6 +420,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.StopExperimentRe return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -439,7 +452,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -459,6 +472,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -532,8 +547,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -553,8 +568,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -579,8 +594,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentRequest.java index 2f63af27f591..87a86c5720da 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentRequest.java @@ -94,7 +94,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SESSION_FIELD_NUMBER = 1; - private volatile java.lang.Object session_; + + @SuppressWarnings("serial") + private volatile java.lang.Object session_ = ""; /** * * @@ -215,7 +217,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.QueryParameters getQueryParams() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.QueryParametersOrBuilder getQueryParamsOrBuilder() { - return getQueryParams(); + return queryParams_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.getDefaultInstance() + : queryParams_; } public static final int QUERY_INPUT_FIELD_NUMBER = 3; @@ -269,7 +273,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.QueryInput getQueryInput() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.QueryInputOrBuilder getQueryInputOrBuilder() { - return getQueryInput(); + return queryInput_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.QueryInput.getDefaultInstance() + : queryInput_; } public static final int OUTPUT_AUDIO_CONFIG_FIELD_NUMBER = 4; @@ -318,11 +324,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig getOutputAudioCo @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() { - return getOutputAudioConfig(); + return outputAudioConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.getDefaultInstance() + : outputAudioConfig_; } public static final int ENABLE_PARTIAL_RESPONSE_FIELD_NUMBER = 5; - private boolean enablePartialResponse_; + private boolean enablePartialResponse_ = false; /** * * @@ -619,28 +627,24 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; session_ = ""; - - if (queryParamsBuilder_ == null) { - queryParams_ = null; - } else { - queryParams_ = null; + queryParams_ = null; + if (queryParamsBuilder_ != null) { + queryParamsBuilder_.dispose(); queryParamsBuilder_ = null; } - if (queryInputBuilder_ == null) { - queryInput_ = null; - } else { - queryInput_ = null; + queryInput_ = null; + if (queryInputBuilder_ != null) { + queryInputBuilder_.dispose(); queryInputBuilder_ = null; } - if (outputAudioConfigBuilder_ == null) { - outputAudioConfig_ = null; - } else { - outputAudioConfig_ = null; + outputAudioConfig_ = null; + if (outputAudioConfigBuilder_ != null) { + outputAudioConfigBuilder_.dispose(); outputAudioConfigBuilder_ = null; } enablePartialResponse_ = false; - return this; } @@ -670,27 +674,37 @@ public com.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest build public com.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest(this); - result.session_ = session_; - if (queryParamsBuilder_ == null) { - result.queryParams_ = queryParams_; - } else { - result.queryParams_ = queryParamsBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (queryInputBuilder_ == null) { - result.queryInput_ = queryInput_; - } else { - result.queryInput_ = queryInputBuilder_.build(); - } - if (outputAudioConfigBuilder_ == null) { - result.outputAudioConfig_ = outputAudioConfig_; - } else { - result.outputAudioConfig_ = outputAudioConfigBuilder_.build(); - } - result.enablePartialResponse_ = enablePartialResponse_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.session_ = session_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queryParams_ = + queryParamsBuilder_ == null ? queryParams_ : queryParamsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.queryInput_ = queryInputBuilder_ == null ? queryInput_ : queryInputBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.outputAudioConfig_ = + outputAudioConfigBuilder_ == null + ? outputAudioConfig_ + : outputAudioConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.enablePartialResponse_ = enablePartialResponse_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -742,6 +756,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getSession().isEmpty()) { session_ = other.session_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasQueryParams()) { @@ -785,32 +800,32 @@ public Builder mergeFrom( case 10: { session_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getQueryParamsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getQueryInputFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getOutputAudioConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 40: { enablePartialResponse_ = input.readBool(); - + bitField0_ |= 0x00000010; break; } // case 40 default: @@ -830,6 +845,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object session_ = ""; /** * @@ -933,8 +950,8 @@ public Builder setSession(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - session_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -964,8 +981,8 @@ public Builder setSession(java.lang.String value) { * @return This builder for chaining. */ public Builder clearSession() { - session_ = getDefaultInstance().getSession(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1000,8 +1017,8 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - session_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1024,7 +1041,7 @@ public Builder setSessionBytes(com.google.protobuf.ByteString value) { * @return Whether the queryParams field is set. */ public boolean hasQueryParams() { - return queryParamsBuilder_ != null || queryParams_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1061,11 +1078,11 @@ public Builder setQueryParams(com.google.cloud.dialogflow.cx.v3beta1.QueryParame throw new NullPointerException(); } queryParams_ = value; - onChanged(); } else { queryParamsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1081,11 +1098,11 @@ public Builder setQueryParams( com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.Builder builderForValue) { if (queryParamsBuilder_ == null) { queryParams_ = builderForValue.build(); - onChanged(); } else { queryParamsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1099,19 +1116,19 @@ public Builder setQueryParams( */ public Builder mergeQueryParams(com.google.cloud.dialogflow.cx.v3beta1.QueryParameters value) { if (queryParamsBuilder_ == null) { - if (queryParams_ != null) { - queryParams_ = - com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.newBuilder(queryParams_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && queryParams_ != null + && queryParams_ + != com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.getDefaultInstance()) { + getQueryParamsBuilder().mergeFrom(value); } else { queryParams_ = value; } - onChanged(); } else { queryParamsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1124,14 +1141,13 @@ public Builder mergeQueryParams(com.google.cloud.dialogflow.cx.v3beta1.QueryPara * .google.cloud.dialogflow.cx.v3beta1.QueryParameters query_params = 2; */ public Builder clearQueryParams() { - if (queryParamsBuilder_ == null) { - queryParams_ = null; - onChanged(); - } else { - queryParams_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + queryParams_ = null; + if (queryParamsBuilder_ != null) { + queryParamsBuilder_.dispose(); queryParamsBuilder_ = null; } - + onChanged(); return this; } /** @@ -1144,7 +1160,7 @@ public Builder clearQueryParams() { * .google.cloud.dialogflow.cx.v3beta1.QueryParameters query_params = 2; */ public com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.Builder getQueryParamsBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getQueryParamsFieldBuilder().getBuilder(); } @@ -1213,7 +1229,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.QueryParameters.Builder getQueryPa * @return Whether the queryInput field is set. */ public boolean hasQueryInput() { - return queryInputBuilder_ != null || queryInput_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1254,11 +1270,11 @@ public Builder setQueryInput(com.google.cloud.dialogflow.cx.v3beta1.QueryInput v throw new NullPointerException(); } queryInput_ = value; - onChanged(); } else { queryInputBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1276,11 +1292,11 @@ public Builder setQueryInput( com.google.cloud.dialogflow.cx.v3beta1.QueryInput.Builder builderForValue) { if (queryInputBuilder_ == null) { queryInput_ = builderForValue.build(); - onChanged(); } else { queryInputBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1296,19 +1312,19 @@ public Builder setQueryInput( */ public Builder mergeQueryInput(com.google.cloud.dialogflow.cx.v3beta1.QueryInput value) { if (queryInputBuilder_ == null) { - if (queryInput_ != null) { - queryInput_ = - com.google.cloud.dialogflow.cx.v3beta1.QueryInput.newBuilder(queryInput_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && queryInput_ != null + && queryInput_ + != com.google.cloud.dialogflow.cx.v3beta1.QueryInput.getDefaultInstance()) { + getQueryInputBuilder().mergeFrom(value); } else { queryInput_ = value; } - onChanged(); } else { queryInputBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1323,14 +1339,13 @@ public Builder mergeQueryInput(com.google.cloud.dialogflow.cx.v3beta1.QueryInput * */ public Builder clearQueryInput() { - if (queryInputBuilder_ == null) { - queryInput_ = null; - onChanged(); - } else { - queryInput_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + queryInput_ = null; + if (queryInputBuilder_ != null) { + queryInputBuilder_.dispose(); queryInputBuilder_ = null; } - + onChanged(); return this; } /** @@ -1345,7 +1360,7 @@ public Builder clearQueryInput() { * */ public com.google.cloud.dialogflow.cx.v3beta1.QueryInput.Builder getQueryInputBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getQueryInputFieldBuilder().getBuilder(); } @@ -1415,7 +1430,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.QueryInputOrBuilder getQueryInputO * @return Whether the outputAudioConfig field is set. */ public boolean hasOutputAudioConfig() { - return outputAudioConfigBuilder_ != null || outputAudioConfig_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1453,11 +1468,11 @@ public Builder setOutputAudioConfig( throw new NullPointerException(); } outputAudioConfig_ = value; - onChanged(); } else { outputAudioConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1473,11 +1488,11 @@ public Builder setOutputAudioConfig( com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.Builder builderForValue) { if (outputAudioConfigBuilder_ == null) { outputAudioConfig_ = builderForValue.build(); - onChanged(); } else { outputAudioConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1492,20 +1507,19 @@ public Builder setOutputAudioConfig( public Builder mergeOutputAudioConfig( com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig value) { if (outputAudioConfigBuilder_ == null) { - if (outputAudioConfig_ != null) { - outputAudioConfig_ = - com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.newBuilder( - outputAudioConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && outputAudioConfig_ != null + && outputAudioConfig_ + != com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.getDefaultInstance()) { + getOutputAudioConfigBuilder().mergeFrom(value); } else { outputAudioConfig_ = value; } - onChanged(); } else { outputAudioConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1518,14 +1532,13 @@ public Builder mergeOutputAudioConfig( * .google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig output_audio_config = 4; */ public Builder clearOutputAudioConfig() { - if (outputAudioConfigBuilder_ == null) { - outputAudioConfig_ = null; - onChanged(); - } else { - outputAudioConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + outputAudioConfig_ = null; + if (outputAudioConfigBuilder_ != null) { + outputAudioConfigBuilder_.dispose(); outputAudioConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1539,7 +1552,7 @@ public Builder clearOutputAudioConfig() { */ public com.google.cloud.dialogflow.cx.v3beta1.OutputAudioConfig.Builder getOutputAudioConfigBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getOutputAudioConfigFieldBuilder().getBuilder(); } @@ -1625,6 +1638,7 @@ public boolean getEnablePartialResponse() { public Builder setEnablePartialResponse(boolean value) { enablePartialResponse_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1643,7 +1657,7 @@ public Builder setEnablePartialResponse(boolean value) { * @return This builder for chaining. */ public Builder clearEnablePartialResponse() { - + bitField0_ = (bitField0_ & ~0x00000010); enablePartialResponse_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentResponse.java index b7956b34d450..b24ecf0dc4ef 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingDetectIntentResponse.java @@ -498,6 +498,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (recognitionResultBuilder_ != null) { recognitionResultBuilder_.clear(); } @@ -535,25 +536,31 @@ public com.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse buil public com.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse result = new com.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse(this); - if (responseCase_ == 1) { - if (recognitionResultBuilder_ == null) { - result.response_ = response_; - } else { - result.response_ = recognitionResultBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (responseCase_ == 2) { - if (detectIntentResponseBuilder_ == null) { - result.response_ = response_; - } else { - result.response_ = detectIntentResponseBuilder_.build(); - } - } - result.responseCase_ = responseCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse result) { + result.responseCase_ = responseCase_; + result.response_ = this.response_; + if (responseCase_ == 1 && recognitionResultBuilder_ != null) { + result.response_ = recognitionResultBuilder_.build(); + } + if (responseCase_ == 2 && detectIntentResponseBuilder_ != null) { + result.response_ = detectIntentResponseBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -690,6 +697,8 @@ public Builder clearResponse() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult, com.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.Builder, @@ -917,7 +926,6 @@ public Builder clearRecognitionResult() { } responseCase_ = 1; onChanged(); - ; return recognitionResultBuilder_; } @@ -1143,7 +1151,6 @@ public Builder clearDetectIntentResponse() { } responseCase_ = 2; onChanged(); - ; return detectIntentResponseBuilder_; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingRecognitionResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingRecognitionResult.java index 579175b40e53..088a77fd60a3 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingRecognitionResult.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/StreamingRecognitionResult.java @@ -274,7 +274,7 @@ private MessageType(int value) { } public static final int MESSAGE_TYPE_FIELD_NUMBER = 1; - private int messageType_; + private int messageType_ = 0; /** * * @@ -308,9 +308,8 @@ public int getMessageTypeValue() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType getMessageType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType result = - com.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType.forNumber( messageType_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType.UNRECOGNIZED @@ -318,7 +317,9 @@ public int getMessageTypeValue() { } public static final int TRANSCRIPT_FIELD_NUMBER = 2; - private volatile java.lang.Object transcript_; + + @SuppressWarnings("serial") + private volatile java.lang.Object transcript_ = ""; /** * * @@ -369,7 +370,7 @@ public com.google.protobuf.ByteString getTranscriptBytes() { } public static final int IS_FINAL_FIELD_NUMBER = 3; - private boolean isFinal_; + private boolean isFinal_ = false; /** * * @@ -390,7 +391,7 @@ public boolean getIsFinal() { } public static final int CONFIDENCE_FIELD_NUMBER = 4; - private float confidence_; + private float confidence_ = 0F; /** * * @@ -413,7 +414,7 @@ public float getConfidence() { } public static final int STABILITY_FIELD_NUMBER = 6; - private float stability_; + private float stability_ = 0F; /** * * @@ -437,6 +438,8 @@ public float getStability() { } public static final int SPEECH_WORD_INFO_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") private java.util.List speechWordInfo_; /** * @@ -573,11 +576,15 @@ public com.google.protobuf.Duration getSpeechEndOffset() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getSpeechEndOffsetOrBuilder() { - return getSpeechEndOffset(); + return speechEndOffset_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : speechEndOffset_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 10; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -933,31 +940,25 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; messageType_ = 0; - transcript_ = ""; - isFinal_ = false; - confidence_ = 0F; - stability_ = 0F; - if (speechWordInfoBuilder_ == null) { speechWordInfo_ = java.util.Collections.emptyList(); } else { speechWordInfo_ = null; speechWordInfoBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (speechEndOffsetBuilder_ == null) { - speechEndOffset_ = null; - } else { - speechEndOffset_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + speechEndOffset_ = null; + if (speechEndOffsetBuilder_ != null) { + speechEndOffsetBuilder_.dispose(); speechEndOffsetBuilder_ = null; } languageCode_ = ""; - return this; } @@ -986,29 +987,52 @@ public com.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult build() public com.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult result = new com.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult(this); - int from_bitField0_ = bitField0_; - result.messageType_ = messageType_; - result.transcript_ = transcript_; - result.isFinal_ = isFinal_; - result.confidence_ = confidence_; - result.stability_ = stability_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult result) { if (speechWordInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { speechWordInfo_ = java.util.Collections.unmodifiableList(speechWordInfo_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); } result.speechWordInfo_ = speechWordInfo_; } else { result.speechWordInfo_ = speechWordInfoBuilder_.build(); } - if (speechEndOffsetBuilder_ == null) { - result.speechEndOffset_ = speechEndOffset_; - } else { - result.speechEndOffset_ = speechEndOffsetBuilder_.build(); + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.messageType_ = messageType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.transcript_ = transcript_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isFinal_ = isFinal_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.confidence_ = confidence_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.stability_ = stability_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.speechEndOffset_ = + speechEndOffsetBuilder_ == null ? speechEndOffset_ : speechEndOffsetBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.languageCode_ = languageCode_; } - result.languageCode_ = languageCode_; - onBuilt(); - return result; } @java.lang.Override @@ -1064,6 +1088,7 @@ public Builder mergeFrom( } if (!other.getTranscript().isEmpty()) { transcript_ = other.transcript_; + bitField0_ |= 0x00000002; onChanged(); } if (other.getIsFinal() != false) { @@ -1079,7 +1104,7 @@ public Builder mergeFrom( if (!other.speechWordInfo_.isEmpty()) { if (speechWordInfo_.isEmpty()) { speechWordInfo_ = other.speechWordInfo_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureSpeechWordInfoIsMutable(); speechWordInfo_.addAll(other.speechWordInfo_); @@ -1092,7 +1117,7 @@ public Builder mergeFrom( speechWordInfoBuilder_.dispose(); speechWordInfoBuilder_ = null; speechWordInfo_ = other.speechWordInfo_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); speechWordInfoBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSpeechWordInfoFieldBuilder() @@ -1107,6 +1132,7 @@ public Builder mergeFrom( } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000080; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1138,31 +1164,31 @@ public Builder mergeFrom( case 8: { messageType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { transcript_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 24: { isFinal_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 case 37: { confidence_ = input.readFloat(); - + bitField0_ |= 0x00000008; break; } // case 37 case 53: { stability_ = input.readFloat(); - + bitField0_ |= 0x00000010; break; } // case 53 case 58: @@ -1182,13 +1208,13 @@ public Builder mergeFrom( case 66: { input.readMessage(getSpeechEndOffsetFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 66 case 82: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000080; break; } // case 82 default: @@ -1243,8 +1269,8 @@ public int getMessageTypeValue() { * @return This builder for chaining. */ public Builder setMessageTypeValue(int value) { - messageType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1264,9 +1290,8 @@ public Builder setMessageTypeValue(int value) { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType getMessageType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType result = - com.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType.forNumber( messageType_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType @@ -1292,7 +1317,7 @@ public Builder setMessageType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; messageType_ = value.getNumber(); onChanged(); return this; @@ -1311,7 +1336,7 @@ public Builder setMessageType( * @return This builder for chaining. */ public Builder clearMessageType() { - + bitField0_ = (bitField0_ & ~0x00000001); messageType_ = 0; onChanged(); return this; @@ -1381,8 +1406,8 @@ public Builder setTranscript(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - transcript_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1399,8 +1424,8 @@ public Builder setTranscript(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTranscript() { - transcript_ = getDefaultInstance().getTranscript(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1422,8 +1447,8 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - transcript_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1465,6 +1490,7 @@ public boolean getIsFinal() { public Builder setIsFinal(boolean value) { isFinal_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1483,7 +1509,7 @@ public Builder setIsFinal(boolean value) { * @return This builder for chaining. */ public Builder clearIsFinal() { - + bitField0_ = (bitField0_ & ~0x00000004); isFinal_ = false; onChanged(); return this; @@ -1530,6 +1556,7 @@ public float getConfidence() { public Builder setConfidence(float value) { confidence_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1550,7 +1577,7 @@ public Builder setConfidence(float value) { * @return This builder for chaining. */ public Builder clearConfidence() { - + bitField0_ = (bitField0_ & ~0x00000008); confidence_ = 0F; onChanged(); return this; @@ -1599,6 +1626,7 @@ public float getStability() { public Builder setStability(float value) { stability_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1620,7 +1648,7 @@ public Builder setStability(float value) { * @return This builder for chaining. */ public Builder clearStability() { - + bitField0_ = (bitField0_ & ~0x00000010); stability_ = 0F; onChanged(); return this; @@ -1630,11 +1658,11 @@ public Builder clearStability() { java.util.Collections.emptyList(); private void ensureSpeechWordInfoIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { speechWordInfo_ = new java.util.ArrayList( speechWordInfo_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000020; } } @@ -1898,7 +1926,7 @@ public Builder addAllSpeechWordInfo( public Builder clearSpeechWordInfo() { if (speechWordInfoBuilder_ == null) { speechWordInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { speechWordInfoBuilder_.clear(); @@ -2054,7 +2082,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.Builder addSpeechWo com.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.Builder, com.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfoOrBuilder>( speechWordInfo_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); speechWordInfo_ = null; @@ -2082,7 +2110,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.SpeechWordInfo.Builder addSpeechWo * @return Whether the speechEndOffset field is set. */ public boolean hasSpeechEndOffset() { - return speechEndOffsetBuilder_ != null || speechEndOffset_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2123,11 +2151,11 @@ public Builder setSpeechEndOffset(com.google.protobuf.Duration value) { throw new NullPointerException(); } speechEndOffset_ = value; - onChanged(); } else { speechEndOffsetBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2144,11 +2172,11 @@ public Builder setSpeechEndOffset(com.google.protobuf.Duration value) { public Builder setSpeechEndOffset(com.google.protobuf.Duration.Builder builderForValue) { if (speechEndOffsetBuilder_ == null) { speechEndOffset_ = builderForValue.build(); - onChanged(); } else { speechEndOffsetBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2164,19 +2192,18 @@ public Builder setSpeechEndOffset(com.google.protobuf.Duration.Builder builderFo */ public Builder mergeSpeechEndOffset(com.google.protobuf.Duration value) { if (speechEndOffsetBuilder_ == null) { - if (speechEndOffset_ != null) { - speechEndOffset_ = - com.google.protobuf.Duration.newBuilder(speechEndOffset_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && speechEndOffset_ != null + && speechEndOffset_ != com.google.protobuf.Duration.getDefaultInstance()) { + getSpeechEndOffsetBuilder().mergeFrom(value); } else { speechEndOffset_ = value; } - onChanged(); } else { speechEndOffsetBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2191,14 +2218,13 @@ public Builder mergeSpeechEndOffset(com.google.protobuf.Duration value) { * .google.protobuf.Duration speech_end_offset = 8; */ public Builder clearSpeechEndOffset() { - if (speechEndOffsetBuilder_ == null) { - speechEndOffset_ = null; - onChanged(); - } else { - speechEndOffset_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + speechEndOffset_ = null; + if (speechEndOffsetBuilder_ != null) { + speechEndOffsetBuilder_.dispose(); speechEndOffsetBuilder_ = null; } - + onChanged(); return this; } /** @@ -2213,7 +2239,7 @@ public Builder clearSpeechEndOffset() { * .google.protobuf.Duration speech_end_offset = 8; */ public com.google.protobuf.Duration.Builder getSpeechEndOffsetBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getSpeechEndOffsetFieldBuilder().getBuilder(); } @@ -2326,8 +2352,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2343,8 +2369,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -2365,8 +2391,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000080; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SynthesizeSpeechConfig.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SynthesizeSpeechConfig.java index 6dedf024dbfb..2f56e6726498 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SynthesizeSpeechConfig.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SynthesizeSpeechConfig.java @@ -68,7 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SPEAKING_RATE_FIELD_NUMBER = 1; - private double speakingRate_; + private double speakingRate_ = 0D; /** * * @@ -89,7 +89,7 @@ public double getSpeakingRate() { } public static final int PITCH_FIELD_NUMBER = 2; - private double pitch_; + private double pitch_ = 0D; /** * * @@ -109,7 +109,7 @@ public double getPitch() { } public static final int VOLUME_GAIN_DB_FIELD_NUMBER = 3; - private double volumeGainDb_; + private double volumeGainDb_ = 0D; /** * * @@ -134,6 +134,8 @@ public double getVolumeGainDb() { } public static final int EFFECTS_PROFILE_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList effectsProfileId_; /** * @@ -247,7 +249,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams getVoice() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParamsOrBuilder getVoiceOrBuilder() { - return getVoice(); + return voice_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.getDefaultInstance() + : voice_; } private byte memoizedIsInitialized = -1; @@ -507,18 +511,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; speakingRate_ = 0D; - pitch_ = 0D; - volumeGainDb_ = 0D; - effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - if (voiceBuilder_ == null) { - voice_ = null; - } else { - voice_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + voice_ = null; + if (voiceBuilder_ != null) { + voiceBuilder_.dispose(); voiceBuilder_ = null; } return this; @@ -549,22 +550,38 @@ public com.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig build() { public com.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig result = new com.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig(this); - int from_bitField0_ = bitField0_; - result.speakingRate_ = speakingRate_; - result.pitch_ = pitch_; - result.volumeGainDb_ = volumeGainDb_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig result) { + if (((bitField0_ & 0x00000008) != 0)) { effectsProfileId_ = effectsProfileId_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } result.effectsProfileId_ = effectsProfileId_; - if (voiceBuilder_ == null) { - result.voice_ = voice_; - } else { - result.voice_ = voiceBuilder_.build(); + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeechConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.speakingRate_ = speakingRate_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pitch_ = pitch_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.volumeGainDb_ = volumeGainDb_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.voice_ = voiceBuilder_ == null ? voice_ : voiceBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -626,7 +643,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.SynthesizeSpeech if (!other.effectsProfileId_.isEmpty()) { if (effectsProfileId_.isEmpty()) { effectsProfileId_ = other.effectsProfileId_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureEffectsProfileIdIsMutable(); effectsProfileId_.addAll(other.effectsProfileId_); @@ -665,25 +682,25 @@ public Builder mergeFrom( case 9: { speakingRate_ = input.readDouble(); - + bitField0_ |= 0x00000001; break; } // case 9 case 17: { pitch_ = input.readDouble(); - + bitField0_ |= 0x00000002; break; } // case 17 case 25: { volumeGainDb_ = input.readDouble(); - + bitField0_ |= 0x00000004; break; } // case 25 case 34: { input.readMessage(getVoiceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 34 case 42: @@ -749,6 +766,7 @@ public double getSpeakingRate() { public Builder setSpeakingRate(double value) { speakingRate_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -767,7 +785,7 @@ public Builder setSpeakingRate(double value) { * @return This builder for chaining. */ public Builder clearSpeakingRate() { - + bitField0_ = (bitField0_ & ~0x00000001); speakingRate_ = 0D; onChanged(); return this; @@ -808,6 +826,7 @@ public double getPitch() { public Builder setPitch(double value) { pitch_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -825,7 +844,7 @@ public Builder setPitch(double value) { * @return This builder for chaining. */ public Builder clearPitch() { - + bitField0_ = (bitField0_ & ~0x00000002); pitch_ = 0D; onChanged(); return this; @@ -876,6 +895,7 @@ public double getVolumeGainDb() { public Builder setVolumeGainDb(double value) { volumeGainDb_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -898,7 +918,7 @@ public Builder setVolumeGainDb(double value) { * @return This builder for chaining. */ public Builder clearVolumeGainDb() { - + bitField0_ = (bitField0_ & ~0x00000004); volumeGainDb_ = 0D; onChanged(); return this; @@ -908,9 +928,9 @@ public Builder clearVolumeGainDb() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureEffectsProfileIdIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { effectsProfileId_ = new com.google.protobuf.LazyStringArrayList(effectsProfileId_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000008; } } /** @@ -1061,7 +1081,7 @@ public Builder addAllEffectsProfileId(java.lang.Iterable value */ public Builder clearEffectsProfileId() { effectsProfileId_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1108,7 +1128,7 @@ public Builder addEffectsProfileIdBytes(com.google.protobuf.ByteString value) { * @return Whether the voice field is set. */ public boolean hasVoice() { - return voiceBuilder_ != null || voice_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1145,11 +1165,11 @@ public Builder setVoice(com.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionPar throw new NullPointerException(); } voice_ = value; - onChanged(); } else { voiceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1165,11 +1185,11 @@ public Builder setVoice( com.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.Builder builderForValue) { if (voiceBuilder_ == null) { voice_ = builderForValue.build(); - onChanged(); } else { voiceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1183,19 +1203,20 @@ public Builder setVoice( */ public Builder mergeVoice(com.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams value) { if (voiceBuilder_ == null) { - if (voice_ != null) { - voice_ = - com.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.newBuilder(voice_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && voice_ != null + && voice_ + != com.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams + .getDefaultInstance()) { + getVoiceBuilder().mergeFrom(value); } else { voice_ = value; } - onChanged(); } else { voiceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1208,14 +1229,13 @@ public Builder mergeVoice(com.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionP * .google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams voice = 4; */ public Builder clearVoice() { - if (voiceBuilder_ == null) { - voice_ = null; - onChanged(); - } else { - voice_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + voice_ = null; + if (voiceBuilder_ != null) { + voiceBuilder_.dispose(); voiceBuilder_ = null; } - + onChanged(); return this; } /** @@ -1228,7 +1248,7 @@ public Builder clearVoice() { * .google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams voice = 4; */ public com.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams.Builder getVoiceBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getVoiceFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCase.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCase.java index 53cc7dea2e72..6d1a3a1e78a7 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCase.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCase.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -129,6 +131,8 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int TAGS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList tags_; /** * @@ -198,7 +202,9 @@ public com.google.protobuf.ByteString getTagsBytes(int index) { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -249,7 +255,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int NOTES_FIELD_NUMBER = 4; - private volatile java.lang.Object notes_; + + @SuppressWarnings("serial") + private volatile java.lang.Object notes_ = ""; /** * * @@ -342,10 +350,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestConfig getTestConfig() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.TestConfigOrBuilder getTestConfigOrBuilder() { - return getTestConfig(); + return testConfig_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.TestConfig.getDefaultInstance() + : testConfig_; } public static final int TEST_CASE_CONVERSATION_TURNS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private java.util.List testCaseConversationTurns_; /** @@ -489,7 +501,9 @@ public com.google.protobuf.Timestamp getCreationTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { - return getCreationTime(); + return creationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : creationTime_; } public static final int LAST_TEST_RESULT_FIELD_NUMBER = 12; @@ -538,7 +552,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult getLastTestResult() @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.TestCaseResultOrBuilder getLastTestResultOrBuilder() { - return getLastTestResult(); + return lastTestResult_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.getDefaultInstance() + : lastTestResult_; } private byte memoizedIsInitialized = -1; @@ -828,18 +844,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); displayName_ = ""; - notes_ = ""; - - if (testConfigBuilder_ == null) { - testConfig_ = null; - } else { - testConfig_ = null; + testConfig_ = null; + if (testConfigBuilder_ != null) { + testConfigBuilder_.dispose(); testConfigBuilder_ = null; } if (testCaseConversationTurnsBuilder_ == null) { @@ -848,17 +861,15 @@ public Builder clear() { testCaseConversationTurns_ = null; testCaseConversationTurnsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); - if (creationTimeBuilder_ == null) { - creationTime_ = null; - } else { - creationTime_ = null; + bitField0_ = (bitField0_ & ~0x00000020); + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); creationTimeBuilder_ = null; } - if (lastTestResultBuilder_ == null) { - lastTestResult_ = null; - } else { - lastTestResult_ = null; + lastTestResult_ = null; + if (lastTestResultBuilder_ != null) { + lastTestResultBuilder_.dispose(); lastTestResultBuilder_ = null; } return this; @@ -888,42 +899,55 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestCase build() { public com.google.cloud.dialogflow.cx.v3beta1.TestCase buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.TestCase result = new com.google.cloud.dialogflow.cx.v3beta1.TestCase(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.TestCase result) { + if (((bitField0_ & 0x00000002) != 0)) { tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.tags_ = tags_; - result.displayName_ = displayName_; - result.notes_ = notes_; - if (testConfigBuilder_ == null) { - result.testConfig_ = testConfig_; - } else { - result.testConfig_ = testConfigBuilder_.build(); - } if (testCaseConversationTurnsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { testCaseConversationTurns_ = java.util.Collections.unmodifiableList(testCaseConversationTurns_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } result.testCaseConversationTurns_ = testCaseConversationTurns_; } else { result.testCaseConversationTurns_ = testCaseConversationTurnsBuilder_.build(); } - if (creationTimeBuilder_ == null) { - result.creationTime_ = creationTime_; - } else { - result.creationTime_ = creationTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.TestCase result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (lastTestResultBuilder_ == null) { - result.lastTestResult_ = lastTestResult_; - } else { - result.lastTestResult_ = lastTestResultBuilder_.build(); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.notes_ = notes_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.testConfig_ = testConfigBuilder_ == null ? testConfig_ : testConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.creationTime_ = + creationTimeBuilder_ == null ? creationTime_ : creationTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.lastTestResult_ = + lastTestResultBuilder_ == null ? lastTestResult_ : lastTestResultBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -974,12 +998,13 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.TestCase other) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); @@ -988,10 +1013,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.TestCase other) } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getNotes().isEmpty()) { notes_ = other.notes_; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasTestConfig()) { @@ -1001,7 +1028,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.TestCase other) if (!other.testCaseConversationTurns_.isEmpty()) { if (testCaseConversationTurns_.isEmpty()) { testCaseConversationTurns_ = other.testCaseConversationTurns_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); } else { ensureTestCaseConversationTurnsIsMutable(); testCaseConversationTurns_.addAll(other.testCaseConversationTurns_); @@ -1014,7 +1041,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.TestCase other) testCaseConversationTurnsBuilder_.dispose(); testCaseConversationTurnsBuilder_ = null; testCaseConversationTurns_ = other.testCaseConversationTurns_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); testCaseConversationTurnsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTestCaseConversationTurnsFieldBuilder() @@ -1059,7 +1086,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -1072,13 +1099,13 @@ public Builder mergeFrom( case 26: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { notes_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: @@ -1098,19 +1125,19 @@ public Builder mergeFrom( case 82: { input.readMessage(getCreationTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 82 case 98: { input.readMessage(getLastTestResultFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 98 case 106: { input.readMessage(getTestConfigFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 106 default: @@ -1205,8 +1232,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1226,8 +1253,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1252,8 +1279,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1262,9 +1289,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -1415,7 +1442,7 @@ public Builder addAllTags(java.lang.Iterable values) { */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1508,8 +1535,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1526,8 +1553,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1549,8 +1576,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1616,8 +1643,8 @@ public Builder setNotes(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - notes_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1633,8 +1660,8 @@ public Builder setNotes(java.lang.String value) { * @return This builder for chaining. */ public Builder clearNotes() { - notes_ = getDefaultInstance().getNotes(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1655,8 +1682,8 @@ public Builder setNotesBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - notes_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1679,7 +1706,7 @@ public Builder setNotesBytes(com.google.protobuf.ByteString value) { * @return Whether the testConfig field is set. */ public boolean hasTestConfig() { - return testConfigBuilder_ != null || testConfig_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1716,11 +1743,11 @@ public Builder setTestConfig(com.google.cloud.dialogflow.cx.v3beta1.TestConfig v throw new NullPointerException(); } testConfig_ = value; - onChanged(); } else { testConfigBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1736,11 +1763,11 @@ public Builder setTestConfig( com.google.cloud.dialogflow.cx.v3beta1.TestConfig.Builder builderForValue) { if (testConfigBuilder_ == null) { testConfig_ = builderForValue.build(); - onChanged(); } else { testConfigBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1754,19 +1781,19 @@ public Builder setTestConfig( */ public Builder mergeTestConfig(com.google.cloud.dialogflow.cx.v3beta1.TestConfig value) { if (testConfigBuilder_ == null) { - if (testConfig_ != null) { - testConfig_ = - com.google.cloud.dialogflow.cx.v3beta1.TestConfig.newBuilder(testConfig_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && testConfig_ != null + && testConfig_ + != com.google.cloud.dialogflow.cx.v3beta1.TestConfig.getDefaultInstance()) { + getTestConfigBuilder().mergeFrom(value); } else { testConfig_ = value; } - onChanged(); } else { testConfigBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1779,14 +1806,13 @@ public Builder mergeTestConfig(com.google.cloud.dialogflow.cx.v3beta1.TestConfig * .google.cloud.dialogflow.cx.v3beta1.TestConfig test_config = 13; */ public Builder clearTestConfig() { - if (testConfigBuilder_ == null) { - testConfig_ = null; - onChanged(); - } else { - testConfig_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + testConfig_ = null; + if (testConfigBuilder_ != null) { + testConfigBuilder_.dispose(); testConfigBuilder_ = null; } - + onChanged(); return this; } /** @@ -1799,7 +1825,7 @@ public Builder clearTestConfig() { * .google.cloud.dialogflow.cx.v3beta1.TestConfig test_config = 13; */ public com.google.cloud.dialogflow.cx.v3beta1.TestConfig.Builder getTestConfigBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getTestConfigFieldBuilder().getBuilder(); } @@ -1851,11 +1877,11 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestConfigOrBuilder getTestConfigO testCaseConversationTurns_ = java.util.Collections.emptyList(); private void ensureTestCaseConversationTurnsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000020) != 0)) { testCaseConversationTurns_ = new java.util.ArrayList( testCaseConversationTurns_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000020; } } @@ -2123,7 +2149,7 @@ public Builder addAllTestCaseConversationTurns( public Builder clearTestCaseConversationTurns() { if (testCaseConversationTurnsBuilder_ == null) { testCaseConversationTurns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { testCaseConversationTurnsBuilder_.clear(); @@ -2280,7 +2306,7 @@ public Builder removeTestCaseConversationTurns(int index) { com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.Builder, com.google.cloud.dialogflow.cx.v3beta1.ConversationTurnOrBuilder>( testCaseConversationTurns_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); testCaseConversationTurns_ = null; @@ -2308,7 +2334,7 @@ public Builder removeTestCaseConversationTurns(int index) { * @return Whether the creationTime field is set. */ public boolean hasCreationTime() { - return creationTimeBuilder_ != null || creationTime_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -2349,11 +2375,11 @@ public Builder setCreationTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } creationTime_ = value; - onChanged(); } else { creationTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2370,11 +2396,11 @@ public Builder setCreationTime(com.google.protobuf.Timestamp value) { public Builder setCreationTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (creationTimeBuilder_ == null) { creationTime_ = builderForValue.build(); - onChanged(); } else { creationTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2390,19 +2416,18 @@ public Builder setCreationTime(com.google.protobuf.Timestamp.Builder builderForV */ public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { if (creationTimeBuilder_ == null) { - if (creationTime_ != null) { - creationTime_ = - com.google.protobuf.Timestamp.newBuilder(creationTime_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && creationTime_ != null + && creationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreationTimeBuilder().mergeFrom(value); } else { creationTime_ = value; } - onChanged(); } else { creationTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -2417,14 +2442,13 @@ public Builder mergeCreationTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreationTime() { - if (creationTimeBuilder_ == null) { - creationTime_ = null; - onChanged(); - } else { - creationTime_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + creationTime_ = null; + if (creationTimeBuilder_ != null) { + creationTimeBuilder_.dispose(); creationTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -2439,7 +2463,7 @@ public Builder clearCreationTime() { * */ public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getCreationTimeFieldBuilder().getBuilder(); } @@ -2509,7 +2533,7 @@ public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() { * @return Whether the lastTestResult field is set. */ public boolean hasLastTestResult() { - return lastTestResultBuilder_ != null || lastTestResult_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -2546,11 +2570,11 @@ public Builder setLastTestResult(com.google.cloud.dialogflow.cx.v3beta1.TestCase throw new NullPointerException(); } lastTestResult_ = value; - onChanged(); } else { lastTestResultBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2566,11 +2590,11 @@ public Builder setLastTestResult( com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.Builder builderForValue) { if (lastTestResultBuilder_ == null) { lastTestResult_ = builderForValue.build(); - onChanged(); } else { lastTestResultBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2585,19 +2609,19 @@ public Builder setLastTestResult( public Builder mergeLastTestResult( com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult value) { if (lastTestResultBuilder_ == null) { - if (lastTestResult_ != null) { - lastTestResult_ = - com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.newBuilder(lastTestResult_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && lastTestResult_ != null + && lastTestResult_ + != com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.getDefaultInstance()) { + getLastTestResultBuilder().mergeFrom(value); } else { lastTestResult_ = value; } - onChanged(); } else { lastTestResultBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -2610,14 +2634,13 @@ public Builder mergeLastTestResult( * .google.cloud.dialogflow.cx.v3beta1.TestCaseResult last_test_result = 12; */ public Builder clearLastTestResult() { - if (lastTestResultBuilder_ == null) { - lastTestResult_ = null; - onChanged(); - } else { - lastTestResult_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + lastTestResult_ = null; + if (lastTestResultBuilder_ != null) { + lastTestResultBuilder_.dispose(); lastTestResultBuilder_ = null; } - + onChanged(); return this; } /** @@ -2631,7 +2654,7 @@ public Builder clearLastTestResult() { */ public com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.Builder getLastTestResultBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getLastTestResultFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseError.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseError.java index c6d13817051a..56529717e39d 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseError.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseError.java @@ -110,7 +110,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestCase getTestCase() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.TestCaseOrBuilder getTestCaseOrBuilder() { - return getTestCase(); + return testCase_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.TestCase.getDefaultInstance() + : testCase_; } public static final int STATUS_FIELD_NUMBER = 2; @@ -156,7 +158,7 @@ public com.google.rpc.Status getStatus() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - return getStatus(); + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } private byte memoizedIsInitialized = -1; @@ -375,16 +377,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (testCaseBuilder_ == null) { - testCase_ = null; - } else { - testCase_ = null; + bitField0_ = 0; + testCase_ = null; + if (testCaseBuilder_ != null) { + testCaseBuilder_.dispose(); testCaseBuilder_ = null; } - if (statusBuilder_ == null) { - status_ = null; - } else { - status_ = null; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); statusBuilder_ = null; } return this; @@ -414,20 +415,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestCaseError build() { public com.google.cloud.dialogflow.cx.v3beta1.TestCaseError buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.TestCaseError result = new com.google.cloud.dialogflow.cx.v3beta1.TestCaseError(this); - if (testCaseBuilder_ == null) { - result.testCase_ = testCase_; - } else { - result.testCase_ = testCaseBuilder_.build(); - } - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.TestCaseError result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.testCase_ = testCaseBuilder_ == null ? testCase_ : testCaseBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -509,13 +513,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getTestCaseFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -535,6 +539,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.TestCase testCase_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.TestCase, @@ -553,7 +559,7 @@ public Builder mergeFrom( * @return Whether the testCase field is set. */ public boolean hasTestCase() { - return testCaseBuilder_ != null || testCase_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -590,11 +596,11 @@ public Builder setTestCase(com.google.cloud.dialogflow.cx.v3beta1.TestCase value throw new NullPointerException(); } testCase_ = value; - onChanged(); } else { testCaseBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -610,11 +616,11 @@ public Builder setTestCase( com.google.cloud.dialogflow.cx.v3beta1.TestCase.Builder builderForValue) { if (testCaseBuilder_ == null) { testCase_ = builderForValue.build(); - onChanged(); } else { testCaseBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -628,19 +634,18 @@ public Builder setTestCase( */ public Builder mergeTestCase(com.google.cloud.dialogflow.cx.v3beta1.TestCase value) { if (testCaseBuilder_ == null) { - if (testCase_ != null) { - testCase_ = - com.google.cloud.dialogflow.cx.v3beta1.TestCase.newBuilder(testCase_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && testCase_ != null + && testCase_ != com.google.cloud.dialogflow.cx.v3beta1.TestCase.getDefaultInstance()) { + getTestCaseBuilder().mergeFrom(value); } else { testCase_ = value; } - onChanged(); } else { testCaseBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -653,14 +658,13 @@ public Builder mergeTestCase(com.google.cloud.dialogflow.cx.v3beta1.TestCase val * .google.cloud.dialogflow.cx.v3beta1.TestCase test_case = 1; */ public Builder clearTestCase() { - if (testCaseBuilder_ == null) { - testCase_ = null; - onChanged(); - } else { - testCase_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + testCase_ = null; + if (testCaseBuilder_ != null) { + testCaseBuilder_.dispose(); testCaseBuilder_ = null; } - + onChanged(); return this; } /** @@ -673,7 +677,7 @@ public Builder clearTestCase() { * .google.cloud.dialogflow.cx.v3beta1.TestCase test_case = 1; */ public com.google.cloud.dialogflow.cx.v3beta1.TestCase.Builder getTestCaseBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getTestCaseFieldBuilder().getBuilder(); } @@ -737,7 +741,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestCaseOrBuilder getTestCaseOrBui * @return Whether the status field is set. */ public boolean hasStatus() { - return statusBuilder_ != null || status_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -772,11 +776,11 @@ public Builder setStatus(com.google.rpc.Status value) { throw new NullPointerException(); } status_ = value; - onChanged(); } else { statusBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -791,11 +795,11 @@ public Builder setStatus(com.google.rpc.Status value) { public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); - onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -809,16 +813,18 @@ 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(); + if (((bitField0_ & 0x00000002) != 0) + && status_ != null + && status_ != com.google.rpc.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); } else { status_ = value; } - onChanged(); } else { statusBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -831,14 +837,13 @@ public Builder mergeStatus(com.google.rpc.Status value) { * .google.rpc.Status status = 2; */ public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; - onChanged(); - } else { - status_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); statusBuilder_ = null; } - + onChanged(); return this; } /** @@ -851,7 +856,7 @@ public Builder clearStatus() { * .google.rpc.Status status = 2; */ public com.google.rpc.Status.Builder getStatusBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getStatusFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseResult.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseResult.java index 1348a52f8461..573e731d3758 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseResult.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCaseResult.java @@ -71,7 +71,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -124,7 +126,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int ENVIRONMENT_FIELD_NUMBER = 2; - private volatile java.lang.Object environment_; + + @SuppressWarnings("serial") + private volatile java.lang.Object environment_ = ""; /** * * @@ -175,6 +179,8 @@ public com.google.protobuf.ByteString getEnvironmentBytes() { } public static final int CONVERSATION_TURNS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") private java.util.List conversationTurns_; /** @@ -257,7 +263,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn getConversationTu } public static final int TEST_RESULT_FIELD_NUMBER = 4; - private int testResult_; + private int testResult_ = 0; /** * * @@ -286,9 +292,8 @@ public int getTestResultValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.TestResult getTestResult() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.TestResult result = - com.google.cloud.dialogflow.cx.v3beta1.TestResult.valueOf(testResult_); + com.google.cloud.dialogflow.cx.v3beta1.TestResult.forNumber(testResult_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.TestResult.UNRECOGNIZED : result; } @@ -335,7 +340,7 @@ public com.google.protobuf.Timestamp getTestTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTestTimeOrBuilder() { - return getTestTime(); + return testTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : testTime_; } private byte memoizedIsInitialized = -1; @@ -582,23 +587,20 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - environment_ = ""; - if (conversationTurnsBuilder_ == null) { conversationTurns_ = java.util.Collections.emptyList(); } else { conversationTurns_ = null; conversationTurnsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); testResult_ = 0; - - if (testTimeBuilder_ == null) { - testTime_ = null; - } else { - testTime_ = null; + testTime_ = null; + if (testTimeBuilder_ != null) { + testTimeBuilder_.dispose(); testTimeBuilder_ = null; } return this; @@ -628,26 +630,41 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult build() { public com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult result = new com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.environment_ = environment_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult result) { if (conversationTurnsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { conversationTurns_ = java.util.Collections.unmodifiableList(conversationTurns_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.conversationTurns_ = conversationTurns_; } else { result.conversationTurns_ = conversationTurnsBuilder_.build(); } - result.testResult_ = testResult_; - if (testTimeBuilder_ == null) { - result.testTime_ = testTime_; - } else { - result.testTime_ = testTimeBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.environment_ = environment_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.testResult_ = testResult_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.testTime_ = testTimeBuilder_ == null ? testTime_ : testTimeBuilder_.build(); } - onBuilt(); - return result; } @java.lang.Override @@ -698,17 +715,19 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult o return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getEnvironment().isEmpty()) { environment_ = other.environment_; + bitField0_ |= 0x00000002; onChanged(); } if (conversationTurnsBuilder_ == null) { if (!other.conversationTurns_.isEmpty()) { if (conversationTurns_.isEmpty()) { conversationTurns_ = other.conversationTurns_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureConversationTurnsIsMutable(); conversationTurns_.addAll(other.conversationTurns_); @@ -721,7 +740,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult o conversationTurnsBuilder_.dispose(); conversationTurnsBuilder_ = null; conversationTurns_ = other.conversationTurns_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); conversationTurnsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getConversationTurnsFieldBuilder() @@ -766,13 +785,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { environment_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: @@ -792,13 +811,13 @@ public Builder mergeFrom( case 32: { testResult_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 32 case 42: { input.readMessage(getTestTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 default: @@ -887,8 +906,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -906,8 +925,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -930,8 +949,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1000,8 +1019,8 @@ public Builder setEnvironment(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - environment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1018,8 +1037,8 @@ public Builder setEnvironment(java.lang.String value) { * @return This builder for chaining. */ public Builder clearEnvironment() { - environment_ = getDefaultInstance().getEnvironment(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1041,8 +1060,8 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - environment_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1051,11 +1070,11 @@ public Builder setEnvironmentBytes(com.google.protobuf.ByteString value) { conversationTurns_ = java.util.Collections.emptyList(); private void ensureConversationTurnsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { conversationTurns_ = new java.util.ArrayList( conversationTurns_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -1300,7 +1319,7 @@ public Builder addAllConversationTurns( public Builder clearConversationTurns() { if (conversationTurnsBuilder_ == null) { conversationTurns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { conversationTurnsBuilder_.clear(); @@ -1443,7 +1462,7 @@ public Builder removeConversationTurns(int index) { com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.Builder, com.google.cloud.dialogflow.cx.v3beta1.ConversationTurnOrBuilder>( conversationTurns_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); conversationTurns_ = null; @@ -1480,8 +1499,8 @@ public int getTestResultValue() { * @return This builder for chaining. */ public Builder setTestResultValue(int value) { - testResult_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1498,9 +1517,8 @@ public Builder setTestResultValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.TestResult getTestResult() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.TestResult result = - com.google.cloud.dialogflow.cx.v3beta1.TestResult.valueOf(testResult_); + com.google.cloud.dialogflow.cx.v3beta1.TestResult.forNumber(testResult_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.TestResult.UNRECOGNIZED : result; @@ -1521,7 +1539,7 @@ public Builder setTestResult(com.google.cloud.dialogflow.cx.v3beta1.TestResult v if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; testResult_ = value.getNumber(); onChanged(); return this; @@ -1538,7 +1556,7 @@ public Builder setTestResult(com.google.cloud.dialogflow.cx.v3beta1.TestResult v * @return This builder for chaining. */ public Builder clearTestResult() { - + bitField0_ = (bitField0_ & ~0x00000008); testResult_ = 0; onChanged(); return this; @@ -1562,7 +1580,7 @@ public Builder clearTestResult() { * @return Whether the testTime field is set. */ public boolean hasTestTime() { - return testTimeBuilder_ != null || testTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1597,11 +1615,11 @@ public Builder setTestTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } testTime_ = value; - onChanged(); } else { testTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1616,11 +1634,11 @@ public Builder setTestTime(com.google.protobuf.Timestamp value) { public Builder setTestTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (testTimeBuilder_ == null) { testTime_ = builderForValue.build(); - onChanged(); } else { testTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1634,17 +1652,18 @@ public Builder setTestTime(com.google.protobuf.Timestamp.Builder builderForValue */ public Builder mergeTestTime(com.google.protobuf.Timestamp value) { if (testTimeBuilder_ == null) { - if (testTime_ != null) { - testTime_ = - com.google.protobuf.Timestamp.newBuilder(testTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && testTime_ != null + && testTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getTestTimeBuilder().mergeFrom(value); } else { testTime_ = value; } - onChanged(); } else { testTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1657,14 +1676,13 @@ public Builder mergeTestTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp test_time = 5; */ public Builder clearTestTime() { - if (testTimeBuilder_ == null) { - testTime_ = null; - onChanged(); - } else { - testTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + testTime_ = null; + if (testTimeBuilder_ != null) { + testTimeBuilder_.dispose(); testTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1677,7 +1695,7 @@ public Builder clearTestTime() { * .google.protobuf.Timestamp test_time = 5; */ public com.google.protobuf.Timestamp.Builder getTestTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getTestTimeFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestConfig.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestConfig.java index 9b6bf57d7751..b7bbf029f0e0 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestConfig.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestConfig.java @@ -70,6 +70,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TRACKING_PARAMETERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList trackingParameters_; /** * @@ -131,7 +133,9 @@ public com.google.protobuf.ByteString getTrackingParametersBytes(int index) { } public static final int FLOW_FIELD_NUMBER = 2; - private volatile java.lang.Object flow_; + + @SuppressWarnings("serial") + private volatile java.lang.Object flow_ = ""; /** * * @@ -192,7 +196,9 @@ public com.google.protobuf.ByteString getFlowBytes() { } public static final int PAGE_FIELD_NUMBER = 3; - private volatile java.lang.Object page_; + + @SuppressWarnings("serial") + private volatile java.lang.Object page_ = ""; /** * * @@ -474,12 +480,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; trackingParameters_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); flow_ = ""; - page_ = ""; - return this; } @@ -507,16 +512,31 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestConfig build() { public com.google.cloud.dialogflow.cx.v3beta1.TestConfig buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.TestConfig result = new com.google.cloud.dialogflow.cx.v3beta1.TestConfig(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.TestConfig result) { if (((bitField0_ & 0x00000001) != 0)) { trackingParameters_ = trackingParameters_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.trackingParameters_ = trackingParameters_; - result.flow_ = flow_; - result.page_ = page_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.TestConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.flow_ = flow_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.page_ = page_; + } } @java.lang.Override @@ -577,10 +597,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.TestConfig other } if (!other.getFlow().isEmpty()) { flow_ = other.flow_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getPage().isEmpty()) { page_ = other.page_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -619,13 +641,13 @@ public Builder mergeFrom( case 18: { flow_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { page_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -894,8 +916,8 @@ public Builder setFlow(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - flow_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -917,8 +939,8 @@ public Builder setFlow(java.lang.String value) { * @return This builder for chaining. */ public Builder clearFlow() { - flow_ = getDefaultInstance().getFlow(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -945,8 +967,8 @@ public Builder setFlowBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - flow_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1030,8 +1052,8 @@ public Builder setPage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - page_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1053,8 +1075,8 @@ public Builder setPage(java.lang.String value) { * @return This builder for chaining. */ public Builder clearPage() { - page_ = getDefaultInstance().getPage(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1081,8 +1103,8 @@ public Builder setPageBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - page_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestError.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestError.java index 98a777a16170..790f5215c820 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestError.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestError.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TEST_CASE_FIELD_NUMBER = 1; - private volatile java.lang.Object testCase_; + + @SuppressWarnings("serial") + private volatile java.lang.Object testCase_ = ""; /** * * @@ -159,7 +161,7 @@ public com.google.rpc.Status getStatus() { */ @java.lang.Override public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { - return getStatus(); + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } public static final int TEST_TIME_FIELD_NUMBER = 3; @@ -205,7 +207,7 @@ public com.google.protobuf.Timestamp getTestTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTestTimeOrBuilder() { - return getTestTime(); + return testTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : testTime_; } private byte memoizedIsInitialized = -1; @@ -433,18 +435,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; testCase_ = ""; - - if (statusBuilder_ == null) { - status_ = null; - } else { - status_ = null; + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); statusBuilder_ = null; } - if (testTimeBuilder_ == null) { - testTime_ = null; - } else { - testTime_ = null; + testTime_ = null; + if (testTimeBuilder_ != null) { + testTimeBuilder_.dispose(); testTimeBuilder_ = null; } return this; @@ -474,21 +474,26 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestError build() { public com.google.cloud.dialogflow.cx.v3beta1.TestError buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.TestError result = new com.google.cloud.dialogflow.cx.v3beta1.TestError(this); - result.testCase_ = testCase_; - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); - } - if (testTimeBuilder_ == null) { - result.testTime_ = testTime_; - } else { - result.testTime_ = testTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.TestError result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.testCase_ = testCase_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.testTime_ = testTimeBuilder_ == null ? testTime_ : testTimeBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -537,6 +542,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.TestError other) return this; if (!other.getTestCase().isEmpty()) { testCase_ = other.testCase_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasStatus()) { @@ -574,19 +580,19 @@ public Builder mergeFrom( case 10: { testCase_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getStatusFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getTestTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -606,6 +612,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object testCase_ = ""; /** * @@ -667,8 +675,8 @@ public Builder setTestCase(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - testCase_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -684,8 +692,8 @@ public Builder setTestCase(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTestCase() { - testCase_ = getDefaultInstance().getTestCase(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -706,8 +714,8 @@ public Builder setTestCaseBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - testCase_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -728,7 +736,7 @@ public Builder setTestCaseBytes(com.google.protobuf.ByteString value) { * @return Whether the status field is set. */ public boolean hasStatus() { - return statusBuilder_ != null || status_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -763,11 +771,11 @@ public Builder setStatus(com.google.rpc.Status value) { throw new NullPointerException(); } status_ = value; - onChanged(); } else { statusBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -782,11 +790,11 @@ public Builder setStatus(com.google.rpc.Status value) { public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); - onChanged(); } else { statusBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -800,16 +808,18 @@ 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(); + if (((bitField0_ & 0x00000002) != 0) + && status_ != null + && status_ != com.google.rpc.Status.getDefaultInstance()) { + getStatusBuilder().mergeFrom(value); } else { status_ = value; } - onChanged(); } else { statusBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -822,14 +832,13 @@ public Builder mergeStatus(com.google.rpc.Status value) { * .google.rpc.Status status = 2; */ public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; - onChanged(); - } else { - status_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + status_ = null; + if (statusBuilder_ != null) { + statusBuilder_.dispose(); statusBuilder_ = null; } - + onChanged(); return this; } /** @@ -842,7 +851,7 @@ public Builder clearStatus() { * .google.rpc.Status status = 2; */ public com.google.rpc.Status.Builder getStatusBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getStatusFieldBuilder().getBuilder(); } @@ -903,7 +912,7 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * @return Whether the testTime field is set. */ public boolean hasTestTime() { - return testTimeBuilder_ != null || testTime_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -938,11 +947,11 @@ public Builder setTestTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } testTime_ = value; - onChanged(); } else { testTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -957,11 +966,11 @@ public Builder setTestTime(com.google.protobuf.Timestamp value) { public Builder setTestTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (testTimeBuilder_ == null) { testTime_ = builderForValue.build(); - onChanged(); } else { testTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -975,17 +984,18 @@ public Builder setTestTime(com.google.protobuf.Timestamp.Builder builderForValue */ public Builder mergeTestTime(com.google.protobuf.Timestamp value) { if (testTimeBuilder_ == null) { - if (testTime_ != null) { - testTime_ = - com.google.protobuf.Timestamp.newBuilder(testTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && testTime_ != null + && testTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getTestTimeBuilder().mergeFrom(value); } else { testTime_ = value; } - onChanged(); } else { testTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -998,14 +1008,13 @@ public Builder mergeTestTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp test_time = 3; */ public Builder clearTestTime() { - if (testTimeBuilder_ == null) { - testTime_ = null; - onChanged(); - } else { - testTime_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + testTime_ = null; + if (testTimeBuilder_ != null) { + testTimeBuilder_.dispose(); testTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1018,7 +1027,7 @@ public Builder clearTestTime() { * .google.protobuf.Timestamp test_time = 3; */ public com.google.protobuf.Timestamp.Builder getTestTimeBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getTestTimeFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestRunDifference.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestRunDifference.java index f9528d790eb5..6c8364d19a77 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestRunDifference.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestRunDifference.java @@ -272,7 +272,7 @@ private DiffType(int value) { } public static final int TYPE_FIELD_NUMBER = 1; - private int type_; + private int type_ = 0; /** * * @@ -301,16 +301,17 @@ public int getTypeValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType getType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType result = - com.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType.valueOf(type_); + com.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType.forNumber(type_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 2; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -569,10 +570,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; type_ = 0; - description_ = ""; - return this; } @@ -600,12 +600,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestRunDifference build() { public com.google.cloud.dialogflow.cx.v3beta1.TestRunDifference buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.TestRunDifference result = new com.google.cloud.dialogflow.cx.v3beta1.TestRunDifference(this); - result.type_ = type_; - result.description_ = description_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.TestRunDifference result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -657,6 +668,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.TestRunDifferenc } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -688,13 +700,13 @@ public Builder mergeFrom( case 8: { type_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -714,6 +726,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private int type_ = 0; /** * @@ -743,8 +757,8 @@ public int getTypeValue() { * @return This builder for chaining. */ public Builder setTypeValue(int value) { - type_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -761,9 +775,8 @@ public Builder setTypeValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType getType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType result = - com.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType.valueOf(type_); + com.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType.forNumber(type_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.TestRunDifference.DiffType.UNRECOGNIZED : result; @@ -785,7 +798,7 @@ public Builder setType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; @@ -802,7 +815,7 @@ public Builder setType( * @return This builder for chaining. */ public Builder clearType() { - + bitField0_ = (bitField0_ & ~0x00000001); type_ = 0; onChanged(); return this; @@ -869,8 +882,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -886,8 +899,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -908,8 +921,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TextInput.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TextInput.java index 9c27707116b9..d19c63973e3f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TextInput.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TextInput.java @@ -68,7 +68,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TEXT_FIELD_NUMBER = 1; - private volatile java.lang.Object text_; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; /** * * @@ -315,8 +317,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; text_ = ""; - return this; } @@ -344,11 +346,20 @@ public com.google.cloud.dialogflow.cx.v3beta1.TextInput build() { public com.google.cloud.dialogflow.cx.v3beta1.TextInput buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.TextInput result = new com.google.cloud.dialogflow.cx.v3beta1.TextInput(this); - result.text_ = text_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.TextInput result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.text_ = text_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -397,6 +408,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.TextInput other) return this; if (!other.getText().isEmpty()) { text_ = other.text_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -428,7 +440,7 @@ public Builder mergeFrom( case 10: { text_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -448,6 +460,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object text_ = ""; /** * @@ -512,8 +526,8 @@ public Builder setText(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - text_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -530,8 +544,8 @@ public Builder setText(java.lang.String value) { * @return This builder for chaining. */ public Builder clearText() { - text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -553,8 +567,8 @@ public Builder setTextBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - text_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TrainFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TrainFlowRequest.java index 9ad26e33a2dd..cd2affc529c4 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TrainFlowRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TrainFlowRequest.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -324,8 +326,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - return this; } @@ -353,11 +355,20 @@ public com.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest result = new com.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest(this); - result.name_ = name_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -406,6 +417,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.TrainFlowRequest return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -437,7 +449,7 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -457,6 +469,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -530,8 +544,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -551,8 +565,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -577,8 +591,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionCoverage.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionCoverage.java index 9455941b34f6..8c9b93a20cab 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionCoverage.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionCoverage.java @@ -607,6 +607,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (pageBuilder_ != null) { pageBuilder_.clear(); } @@ -646,25 +647,31 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode result = new com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode(this); - if (kindCase_ == 1) { - if (pageBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = pageBuilder_.build(); - } - } - if (kindCase_ == 2) { - if (flowBuilder_ == null) { - result.kind_ = kind_; - } else { - result.kind_ = flowBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - result.kindCase_ = kindCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode result) { + result.kindCase_ = kindCase_; + result.kind_ = this.kind_; + if (kindCase_ == 1 && pageBuilder_ != null) { + result.kind_ = pageBuilder_.build(); + } + if (kindCase_ == 2 && flowBuilder_ != null) { + result.kind_ = flowBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -802,6 +809,8 @@ public Builder clearKind() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Page, com.google.cloud.dialogflow.cx.v3beta1.Page.Builder, @@ -1025,7 +1034,6 @@ public com.google.cloud.dialogflow.cx.v3beta1.PageOrBuilder getPageOrBuilder() { } kindCase_ = 1; onChanged(); - ; return pageBuilder_; } @@ -1252,7 +1260,6 @@ public com.google.cloud.dialogflow.cx.v3beta1.FlowOrBuilder getFlowOrBuilder() { } kindCase_ = 2; onChanged(); - ; return flowBuilder_; } @@ -1651,11 +1658,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNodeOrBuilder getSourceOrBuilder() { - return getSource(); + return source_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + .getDefaultInstance() + : source_; } public static final int INDEX_FIELD_NUMBER = 4; - private int index_; + private int index_ = 0; /** * * @@ -1722,11 +1732,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNodeOrBuilder getTargetOrBuilder() { - return getTarget(); + return target_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + .getDefaultInstance() + : target_; } public static final int COVERED_FIELD_NUMBER = 3; - private boolean covered_; + private boolean covered_ = false; /** * * @@ -2125,22 +2138,19 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (sourceBuilder_ == null) { - source_ = null; - } else { - source_ = null; + bitField0_ = 0; + source_ = null; + if (sourceBuilder_ != null) { + sourceBuilder_.dispose(); sourceBuilder_ = null; } index_ = 0; - - if (targetBuilder_ == null) { - target_ = null; - } else { - target_ = null; + target_ = null; + if (targetBuilder_ != null) { + targetBuilder_.dispose(); targetBuilder_ = null; } covered_ = false; - if (transitionRouteBuilder_ != null) { transitionRouteBuilder_.clear(); } @@ -2179,35 +2189,41 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition buil public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition result = new com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition(this); - if (sourceBuilder_ == null) { - result.source_ = source_; - } else { - result.source_ = sourceBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.index_ = index_; - if (targetBuilder_ == null) { - result.target_ = target_; - } else { - result.target_ = targetBuilder_.build(); + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.source_ = sourceBuilder_ == null ? source_ : sourceBuilder_.build(); } - result.covered_ = covered_; - if (detailCase_ == 5) { - if (transitionRouteBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = transitionRouteBuilder_.build(); - } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.index_ = index_; } - if (detailCase_ == 6) { - if (eventHandlerBuilder_ == null) { - result.detail_ = detail_; - } else { - result.detail_ = eventHandlerBuilder_.build(); - } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.target_ = targetBuilder_ == null ? target_ : targetBuilder_.build(); } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.covered_ = covered_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition result) { result.detailCase_ = detailCase_; - onBuilt(); - return result; + result.detail_ = this.detail_; + if (detailCase_ == 5 && transitionRouteBuilder_ != null) { + result.detail_ = transitionRouteBuilder_.build(); + } + if (detailCase_ == 6 && eventHandlerBuilder_ != null) { + result.detail_ = eventHandlerBuilder_.build(); + } } @java.lang.Override @@ -2318,25 +2334,25 @@ public Builder mergeFrom( case 10: { input.readMessage(getSourceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getTargetFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 18 case 24: { covered_ = input.readBool(); - + bitField0_ |= 0x00000008; break; } // case 24 case 32: { index_ = input.readInt32(); - + bitField0_ |= 0x00000002; break; } // case 32 case 42: @@ -2383,6 +2399,8 @@ public Builder clearDetail() { return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode source_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode, @@ -2402,7 +2420,7 @@ public Builder clearDetail() { * @return Whether the source field is set. */ public boolean hasSource() { - return sourceBuilder_ != null || source_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -2443,11 +2461,11 @@ public Builder setSource( throw new NullPointerException(); } source_ = value; - onChanged(); } else { sourceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2465,11 +2483,11 @@ public Builder setSource( builderForValue) { if (sourceBuilder_ == null) { source_ = builderForValue.build(); - onChanged(); } else { sourceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2485,20 +2503,20 @@ public Builder setSource( public Builder mergeSource( com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode value) { if (sourceBuilder_ == null) { - if (source_ != null) { - source_ = - com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.newBuilder( - source_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && source_ != null + && source_ + != com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + .getDefaultInstance()) { + getSourceBuilder().mergeFrom(value); } else { source_ = value; } - onChanged(); } else { sourceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2512,14 +2530,13 @@ public Builder mergeSource( * */ public Builder clearSource() { - if (sourceBuilder_ == null) { - source_ = null; - onChanged(); - } else { - source_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + source_ = null; + if (sourceBuilder_ != null) { + sourceBuilder_.dispose(); sourceBuilder_ = null; } - + onChanged(); return this; } /** @@ -2534,7 +2551,7 @@ public Builder clearSource() { */ public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.Builder getSourceBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getSourceFieldBuilder().getBuilder(); } @@ -2617,6 +2634,7 @@ public int getIndex() { public Builder setIndex(int value) { index_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2632,7 +2650,7 @@ public Builder setIndex(int value) { * @return This builder for chaining. */ public Builder clearIndex() { - + bitField0_ = (bitField0_ & ~0x00000002); index_ = 0; onChanged(); return this; @@ -2657,7 +2675,7 @@ public Builder clearIndex() { * @return Whether the target field is set. */ public boolean hasTarget() { - return targetBuilder_ != null || target_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -2698,11 +2716,11 @@ public Builder setTarget( throw new NullPointerException(); } target_ = value; - onChanged(); } else { targetBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2720,11 +2738,11 @@ public Builder setTarget( builderForValue) { if (targetBuilder_ == null) { target_ = builderForValue.build(); - onChanged(); } else { targetBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2740,20 +2758,20 @@ public Builder setTarget( public Builder mergeTarget( com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode value) { if (targetBuilder_ == null) { - if (target_ != null) { - target_ = - com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.newBuilder( - target_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && target_ != null + && target_ + != com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode + .getDefaultInstance()) { + getTargetBuilder().mergeFrom(value); } else { target_ = value; } - onChanged(); } else { targetBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2767,14 +2785,13 @@ public Builder mergeTarget( * */ public Builder clearTarget() { - if (targetBuilder_ == null) { - target_ = null; - onChanged(); - } else { - target_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + target_ = null; + if (targetBuilder_ != null) { + targetBuilder_.dispose(); targetBuilder_ = null; } - + onChanged(); return this; } /** @@ -2789,7 +2806,7 @@ public Builder clearTarget() { */ public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.TransitionNode.Builder getTargetBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getTargetFieldBuilder().getBuilder(); } @@ -2874,6 +2891,7 @@ public boolean getCovered() { public Builder setCovered(boolean value) { covered_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2890,7 +2908,7 @@ public Builder setCovered(boolean value) { * @return This builder for chaining. */ public Builder clearCovered() { - + bitField0_ = (bitField0_ & ~0x00000008); covered_ = false; onChanged(); return this; @@ -3107,7 +3125,6 @@ public Builder clearTransitionRoute() { } detailCase_ = 5; onChanged(); - ; return transitionRouteBuilder_; } @@ -3319,7 +3336,6 @@ public com.google.cloud.dialogflow.cx.v3beta1.EventHandler.Builder getEventHandl } detailCase_ = 6; onChanged(); - ; return eventHandlerBuilder_; } @@ -3391,6 +3407,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int TRANSITIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List transitions_; /** @@ -3475,7 +3493,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage.Transition getT } public static final int COVERAGE_SCORE_FIELD_NUMBER = 2; - private float coverageScore_; + private float coverageScore_ = 0F; /** * * @@ -3704,6 +3722,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (transitionsBuilder_ == null) { transitions_ = java.util.Collections.emptyList(); } else { @@ -3712,7 +3731,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); coverageScore_ = 0F; - return this; } @@ -3740,7 +3758,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage build() { public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage result = new com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage result) { if (transitionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { transitions_ = java.util.Collections.unmodifiableList(transitions_); @@ -3750,9 +3777,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage buildPartial() } else { result.transitions_ = transitionsBuilder_.build(); } - result.coverageScore_ = coverageScore_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.TransitionCoverage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.coverageScore_ = coverageScore_; + } } @java.lang.Override @@ -3875,7 +3906,7 @@ public Builder mergeFrom( case 21: { coverageScore_ = input.readFloat(); - + bitField0_ |= 0x00000002; break; } // case 21 default: @@ -4339,6 +4370,7 @@ public float getCoverageScore() { public Builder setCoverageScore(float value) { coverageScore_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4354,7 +4386,7 @@ public Builder setCoverageScore(float value) { * @return This builder for chaining. */ public Builder clearCoverageScore() { - + bitField0_ = (bitField0_ & ~0x00000002); coverageScore_ = 0F; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRoute.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRoute.java index d03018008262..f2e774f5e0c6 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRoute.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRoute.java @@ -131,7 +131,9 @@ public TargetCase getTargetCase() { } public static final int NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -180,7 +182,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int INTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object intent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object intent_ = ""; /** * * @@ -245,7 +249,9 @@ public com.google.protobuf.ByteString getIntentBytes() { } public static final int CONDITION_FIELD_NUMBER = 2; - private volatile java.lang.Object condition_; + + @SuppressWarnings("serial") + private volatile java.lang.Object condition_ = ""; /** * * @@ -359,7 +365,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment getTriggerFulfillment( @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.FulfillmentOrBuilder getTriggerFulfillmentOrBuilder() { - return getTriggerFulfillment(); + return triggerFulfillment_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.getDefaultInstance() + : triggerFulfillment_; } public static final int TARGET_PAGE_FIELD_NUMBER = 4; @@ -793,16 +801,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - intent_ = ""; - condition_ = ""; - - if (triggerFulfillmentBuilder_ == null) { - triggerFulfillment_ = null; - } else { - triggerFulfillment_ = null; + triggerFulfillment_ = null; + if (triggerFulfillmentBuilder_ != null) { + triggerFulfillmentBuilder_.dispose(); triggerFulfillmentBuilder_ = null; } targetCase_ = 0; @@ -834,23 +839,36 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute build() { public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute result = new com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute(this); - result.name_ = name_; - result.intent_ = intent_; - result.condition_ = condition_; - if (triggerFulfillmentBuilder_ == null) { - result.triggerFulfillment_ = triggerFulfillment_; - } else { - result.triggerFulfillment_ = triggerFulfillmentBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (targetCase_ == 4) { - result.target_ = target_; + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (targetCase_ == 5) { - result.target_ = target_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.intent_ = intent_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.condition_ = condition_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.triggerFulfillment_ = + triggerFulfillmentBuilder_ == null + ? triggerFulfillment_ + : triggerFulfillmentBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute result) { result.targetCase_ = targetCase_; - onBuilt(); - return result; + result.target_ = this.target_; } @java.lang.Override @@ -901,14 +919,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getIntent().isEmpty()) { intent_ = other.intent_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getCondition().isEmpty()) { condition_ = other.condition_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasTriggerFulfillment()) { @@ -963,20 +984,20 @@ public Builder mergeFrom( case 10: { intent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 10 case 18: { condition_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 18 case 26: { input.readMessage( getTriggerFulfillmentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 26 case 34: @@ -996,7 +1017,7 @@ public Builder mergeFrom( case 50: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 50 default: @@ -1030,6 +1051,8 @@ public Builder clearTarget() { return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -1091,8 +1114,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1108,8 +1131,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1130,8 +1153,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1221,8 +1244,8 @@ public Builder setIntent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - intent_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1246,8 +1269,8 @@ public Builder setIntent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearIntent() { - intent_ = getDefaultInstance().getIntent(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1276,8 +1299,8 @@ public Builder setIntentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - intent_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1364,8 +1387,8 @@ public Builder setCondition(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - condition_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1388,8 +1411,8 @@ public Builder setCondition(java.lang.String value) { * @return This builder for chaining. */ public Builder clearCondition() { - condition_ = getDefaultInstance().getCondition(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1417,8 +1440,8 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - condition_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1443,7 +1466,7 @@ public Builder setConditionBytes(com.google.protobuf.ByteString value) { * @return Whether the triggerFulfillment field is set. */ public boolean hasTriggerFulfillment() { - return triggerFulfillmentBuilder_ != null || triggerFulfillment_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1484,11 +1507,11 @@ public Builder setTriggerFulfillment(com.google.cloud.dialogflow.cx.v3beta1.Fulf throw new NullPointerException(); } triggerFulfillment_ = value; - onChanged(); } else { triggerFulfillmentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1506,11 +1529,11 @@ public Builder setTriggerFulfillment( com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.Builder builderForValue) { if (triggerFulfillmentBuilder_ == null) { triggerFulfillment_ = builderForValue.build(); - onChanged(); } else { triggerFulfillmentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1527,19 +1550,19 @@ public Builder setTriggerFulfillment( public Builder mergeTriggerFulfillment( com.google.cloud.dialogflow.cx.v3beta1.Fulfillment value) { if (triggerFulfillmentBuilder_ == null) { - if (triggerFulfillment_ != null) { - triggerFulfillment_ = - com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.newBuilder(triggerFulfillment_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && triggerFulfillment_ != null + && triggerFulfillment_ + != com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.getDefaultInstance()) { + getTriggerFulfillmentBuilder().mergeFrom(value); } else { triggerFulfillment_ = value; } - onChanged(); } else { triggerFulfillmentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1554,14 +1577,13 @@ public Builder mergeTriggerFulfillment( * .google.cloud.dialogflow.cx.v3beta1.Fulfillment trigger_fulfillment = 3; */ public Builder clearTriggerFulfillment() { - if (triggerFulfillmentBuilder_ == null) { - triggerFulfillment_ = null; - onChanged(); - } else { - triggerFulfillment_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + triggerFulfillment_ = null; + if (triggerFulfillmentBuilder_ != null) { + triggerFulfillmentBuilder_.dispose(); triggerFulfillmentBuilder_ = null; } - + onChanged(); return this; } /** @@ -1577,7 +1599,7 @@ public Builder clearTriggerFulfillment() { */ public com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.Builder getTriggerFulfillmentBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getTriggerFulfillmentFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroup.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroup.java index 7a3370cd2938..f77b8e6fb1c5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroup.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroup.java @@ -72,7 +72,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -129,7 +131,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -180,6 +184,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int TRANSITION_ROUTES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private java.util.List transitionRoutes_; /** * @@ -480,17 +486,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - if (transitionRoutesBuilder_ == null) { transitionRoutes_ = java.util.Collections.emptyList(); } else { transitionRoutes_ = null; transitionRoutesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -518,20 +523,35 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup build() { public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup result = new com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.displayName_ = displayName_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup result) { if (transitionRoutesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { transitionRoutes_ = java.util.Collections.unmodifiableList(transitionRoutes_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } result.transitionRoutes_ = transitionRoutes_; } else { result.transitionRoutes_ = transitionRoutesBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } } @java.lang.Override @@ -582,17 +602,19 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteG return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (transitionRoutesBuilder_ == null) { if (!other.transitionRoutes_.isEmpty()) { if (transitionRoutes_.isEmpty()) { transitionRoutes_ = other.transitionRoutes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureTransitionRoutesIsMutable(); transitionRoutes_.addAll(other.transitionRoutes_); @@ -605,7 +627,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteG transitionRoutesBuilder_.dispose(); transitionRoutesBuilder_ = null; transitionRoutes_ = other.transitionRoutes_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); transitionRoutesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransitionRoutesFieldBuilder() @@ -644,13 +666,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 42: @@ -759,8 +781,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -780,8 +802,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -806,8 +828,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -876,8 +898,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -894,8 +916,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -917,8 +939,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -927,11 +949,11 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { transitionRoutes_ = java.util.Collections.emptyList(); private void ensureTransitionRoutesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { transitionRoutes_ = new java.util.ArrayList( transitionRoutes_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; } } @@ -1174,7 +1196,7 @@ public Builder addAllTransitionRoutes( public Builder clearTransitionRoutes() { if (transitionRoutesBuilder_ == null) { transitionRoutes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { transitionRoutesBuilder_.clear(); @@ -1316,7 +1338,7 @@ public Builder removeTransitionRoutes(int index) { com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder, com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder>( transitionRoutes_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); transitionRoutes_ = null; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupCoverage.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupCoverage.java index b48676fce401..ad1c3d53a6f5 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupCoverage.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupCoverage.java @@ -392,11 +392,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute getTransitionRoute @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteOrBuilder getTransitionRouteOrBuilder() { - return getTransitionRoute(); + return transitionRoute_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.getDefaultInstance() + : transitionRoute_; } public static final int COVERED_FIELD_NUMBER = 2; - private boolean covered_; + private boolean covered_ = false; /** * * @@ -660,14 +662,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (transitionRouteBuilder_ == null) { - transitionRoute_ = null; - } else { - transitionRoute_ = null; + bitField0_ = 0; + transitionRoute_ = null; + if (transitionRouteBuilder_ != null) { + transitionRouteBuilder_.dispose(); transitionRouteBuilder_ = null; } covered_ = false; - return this; } @@ -705,16 +706,28 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage .Transition(this); - if (transitionRouteBuilder_ == null) { - result.transitionRoute_ = transitionRoute_; - } else { - result.transitionRoute_ = transitionRouteBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.covered_ = covered_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.transitionRoute_ = + transitionRouteBuilder_ == null + ? transitionRoute_ + : transitionRouteBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.covered_ = covered_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -808,13 +821,13 @@ public Builder mergeFrom( { input.readMessage( getTransitionRouteFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { covered_ = input.readBool(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -834,6 +847,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute transitionRoute_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute, @@ -852,7 +867,7 @@ public Builder mergeFrom( * @return Whether the transitionRoute field is set. */ public boolean hasTransitionRoute() { - return transitionRouteBuilder_ != null || transitionRoute_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -890,11 +905,11 @@ public Builder setTransitionRoute( throw new NullPointerException(); } transitionRoute_ = value; - onChanged(); } else { transitionRouteBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -910,11 +925,11 @@ public Builder setTransitionRoute( com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder builderForValue) { if (transitionRouteBuilder_ == null) { transitionRoute_ = builderForValue.build(); - onChanged(); } else { transitionRouteBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -929,20 +944,20 @@ public Builder setTransitionRoute( public Builder mergeTransitionRoute( com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute value) { if (transitionRouteBuilder_ == null) { - if (transitionRoute_ != null) { - transitionRoute_ = - com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.newBuilder( - transitionRoute_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && transitionRoute_ != null + && transitionRoute_ + != com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute + .getDefaultInstance()) { + getTransitionRouteBuilder().mergeFrom(value); } else { transitionRoute_ = value; } - onChanged(); } else { transitionRouteBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -955,14 +970,13 @@ public Builder mergeTransitionRoute( * .google.cloud.dialogflow.cx.v3beta1.TransitionRoute transition_route = 1; */ public Builder clearTransitionRoute() { - if (transitionRouteBuilder_ == null) { - transitionRoute_ = null; - onChanged(); - } else { - transitionRoute_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + transitionRoute_ = null; + if (transitionRouteBuilder_ != null) { + transitionRouteBuilder_.dispose(); transitionRouteBuilder_ = null; } - + onChanged(); return this; } /** @@ -976,7 +990,7 @@ public Builder clearTransitionRoute() { */ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRoute.Builder getTransitionRouteBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getTransitionRouteFieldBuilder().getBuilder(); } @@ -1058,6 +1072,7 @@ public boolean getCovered() { public Builder setCovered(boolean value) { covered_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1074,7 +1089,7 @@ public Builder setCovered(boolean value) { * @return This builder for chaining. */ public Builder clearCovered() { - + bitField0_ = (bitField0_ & ~0x00000002); covered_ = false; onChanged(); return this; @@ -1197,10 +1212,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup getRouteGroup @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupOrBuilder getRouteGroupOrBuilder() { - return getRouteGroup(); + return routeGroup_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.getDefaultInstance() + : routeGroup_; } public static final int TRANSITIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage.Transition> transitions_; @@ -1290,7 +1309,7 @@ public int getTransitionsCount() { } public static final int COVERAGE_SCORE_FIELD_NUMBER = 3; - private float coverageScore_; + private float coverageScore_ = 0F; /** * * @@ -1545,10 +1564,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (routeGroupBuilder_ == null) { - routeGroup_ = null; - } else { - routeGroup_ = null; + bitField0_ = 0; + routeGroup_ = null; + if (routeGroupBuilder_ != null) { + routeGroupBuilder_.dispose(); routeGroupBuilder_ = null; } if (transitionsBuilder_ == null) { @@ -1557,9 +1576,8 @@ public Builder clear() { transitions_ = null; transitionsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); coverageScore_ = 0F; - return this; } @@ -1591,24 +1609,37 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Cover buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage result = new com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage(this); - int from_bitField0_ = bitField0_; - if (routeGroupBuilder_ == null) { - result.routeGroup_ = routeGroup_; - } else { - result.routeGroup_ = routeGroupBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage result) { if (transitionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { transitions_ = java.util.Collections.unmodifiableList(transitions_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.transitions_ = transitions_; } else { result.transitions_ = transitionsBuilder_.build(); } - result.coverageScore_ = coverageScore_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.routeGroup_ = + routeGroupBuilder_ == null ? routeGroup_ : routeGroupBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.coverageScore_ = coverageScore_; + } } @java.lang.Override @@ -1671,7 +1702,7 @@ public Builder mergeFrom( if (!other.transitions_.isEmpty()) { if (transitions_.isEmpty()) { transitions_ = other.transitions_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureTransitionsIsMutable(); transitions_.addAll(other.transitions_); @@ -1684,7 +1715,7 @@ public Builder mergeFrom( transitionsBuilder_.dispose(); transitionsBuilder_ = null; transitions_ = other.transitions_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); transitionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTransitionsFieldBuilder() @@ -1726,7 +1757,7 @@ public Builder mergeFrom( case 10: { input.readMessage(getRouteGroupFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -1749,7 +1780,7 @@ public Builder mergeFrom( case 29: { coverageScore_ = input.readFloat(); - + bitField0_ |= 0x00000004; break; } // case 29 default: @@ -1789,7 +1820,7 @@ public Builder mergeFrom( * @return Whether the routeGroup field is set. */ public boolean hasRouteGroup() { - return routeGroupBuilder_ != null || routeGroup_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -1827,11 +1858,11 @@ public Builder setRouteGroup( throw new NullPointerException(); } routeGroup_ = value; - onChanged(); } else { routeGroupBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1847,11 +1878,11 @@ public Builder setRouteGroup( com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.Builder builderForValue) { if (routeGroupBuilder_ == null) { routeGroup_ = builderForValue.build(); - onChanged(); } else { routeGroupBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1866,19 +1897,20 @@ public Builder setRouteGroup( public Builder mergeRouteGroup( com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup value) { if (routeGroupBuilder_ == null) { - if (routeGroup_ != null) { - routeGroup_ = - com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.newBuilder(routeGroup_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && routeGroup_ != null + && routeGroup_ + != com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + .getDefaultInstance()) { + getRouteGroupBuilder().mergeFrom(value); } else { routeGroup_ = value; } - onChanged(); } else { routeGroupBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -1891,14 +1923,13 @@ public Builder mergeRouteGroup( * .google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup route_group = 1; */ public Builder clearRouteGroup() { - if (routeGroupBuilder_ == null) { - routeGroup_ = null; - onChanged(); - } else { - routeGroup_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + routeGroup_ = null; + if (routeGroupBuilder_ != null) { + routeGroupBuilder_.dispose(); routeGroupBuilder_ = null; } - + onChanged(); return this; } /** @@ -1912,7 +1943,7 @@ public Builder clearRouteGroup() { */ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.Builder getRouteGroupBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getRouteGroupFieldBuilder().getBuilder(); } @@ -1967,12 +1998,12 @@ public Builder clearRouteGroup() { transitions_ = java.util.Collections.emptyList(); private void ensureTransitionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { transitions_ = new java.util.ArrayList< com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage .Transition>(transitions_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } @@ -2237,7 +2268,7 @@ public Builder addAllTransitions( public Builder clearTransitions() { if (transitionsBuilder_ == null) { transitions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { transitionsBuilder_.clear(); @@ -2398,7 +2429,7 @@ public Builder removeTransitions(int index) { com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage .TransitionOrBuilder>( transitions_, - ((bitField0_ & 0x00000001) != 0), + ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); transitions_ = null; @@ -2439,6 +2470,7 @@ public float getCoverageScore() { public Builder setCoverageScore(float value) { coverageScore_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -2455,7 +2487,7 @@ public Builder setCoverageScore(float value) { * @return This builder for chaining. */ public Builder clearCoverageScore() { - + bitField0_ = (bitField0_ & ~0x00000004); coverageScore_ = 0F; onChanged(); return this; @@ -2531,6 +2563,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int COVERAGES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List< com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Coverage> coverages_; @@ -2618,7 +2652,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage.Cover } public static final int COVERAGE_SCORE_FIELD_NUMBER = 2; - private float coverageScore_; + private float coverageScore_ = 0F; /** * * @@ -2850,6 +2884,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (coveragesBuilder_ == null) { coverages_ = java.util.Collections.emptyList(); } else { @@ -2858,7 +2893,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); coverageScore_ = 0F; - return this; } @@ -2888,7 +2922,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage build public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage result = new com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage result) { if (coveragesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { coverages_ = java.util.Collections.unmodifiableList(coverages_); @@ -2898,9 +2941,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage build } else { result.coverages_ = coveragesBuilder_.build(); } - result.coverageScore_ = coverageScore_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupCoverage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.coverageScore_ = coverageScore_; + } } @java.lang.Override @@ -3026,7 +3074,7 @@ public Builder mergeFrom( case 21: { coverageScore_ = input.readFloat(); - + bitField0_ |= 0x00000002; break; } // case 21 default: @@ -3502,6 +3550,7 @@ public float getCoverageScore() { public Builder setCoverageScore(float value) { coverageScore_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3518,7 +3567,7 @@ public Builder setCoverageScore(float value) { * @return This builder for chaining. */ public Builder clearCoverageScore() { - + bitField0_ = (bitField0_ & ~0x00000002); coverageScore_ = 0F; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateAgentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateAgentRequest.java index 41b1262deaa5..2a7dc2d4dca1 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateAgentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateAgentRequest.java @@ -117,7 +117,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Agent getAgent() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.AgentOrBuilder getAgentOrBuilder() { - return getAgent(); + return agent_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Agent.getDefaultInstance() + : agent_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -166,7 +168,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -387,16 +389,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (agentBuilder_ == null) { - agent_ = null; - } else { - agent_ = null; + bitField0_ = 0; + agent_ = null; + if (agentBuilder_ != null) { + agentBuilder_.dispose(); agentBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -426,20 +427,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest(this); - if (agentBuilder_ == null) { - result.agent_ = agent_; - } else { - result.agent_ = agentBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.UpdateAgentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agent_ = agentBuilder_ == null ? agent_ : agentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -521,13 +525,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getAgentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -547,6 +551,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.Agent agent_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Agent, @@ -567,7 +573,7 @@ public Builder mergeFrom( * @return Whether the agent field is set. */ public boolean hasAgent() { - return agentBuilder_ != null || agent_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -608,11 +614,11 @@ public Builder setAgent(com.google.cloud.dialogflow.cx.v3beta1.Agent value) { throw new NullPointerException(); } agent_ = value; - onChanged(); } else { agentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -629,11 +635,11 @@ public Builder setAgent(com.google.cloud.dialogflow.cx.v3beta1.Agent value) { public Builder setAgent(com.google.cloud.dialogflow.cx.v3beta1.Agent.Builder builderForValue) { if (agentBuilder_ == null) { agent_ = builderForValue.build(); - onChanged(); } else { agentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -649,19 +655,18 @@ public Builder setAgent(com.google.cloud.dialogflow.cx.v3beta1.Agent.Builder bui */ public Builder mergeAgent(com.google.cloud.dialogflow.cx.v3beta1.Agent value) { if (agentBuilder_ == null) { - if (agent_ != null) { - agent_ = - com.google.cloud.dialogflow.cx.v3beta1.Agent.newBuilder(agent_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && agent_ != null + && agent_ != com.google.cloud.dialogflow.cx.v3beta1.Agent.getDefaultInstance()) { + getAgentBuilder().mergeFrom(value); } else { agent_ = value; } - onChanged(); } else { agentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -676,14 +681,13 @@ public Builder mergeAgent(com.google.cloud.dialogflow.cx.v3beta1.Agent value) { * */ public Builder clearAgent() { - if (agentBuilder_ == null) { - agent_ = null; - onChanged(); - } else { - agent_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + agent_ = null; + if (agentBuilder_ != null) { + agentBuilder_.dispose(); agentBuilder_ = null; } - + onChanged(); return this; } /** @@ -698,7 +702,7 @@ public Builder clearAgent() { * */ public com.google.cloud.dialogflow.cx.v3beta1.Agent.Builder getAgentBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getAgentFieldBuilder().getBuilder(); } @@ -769,7 +773,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.AgentOrBuilder getAgentOrBuilder() * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -808,11 +812,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -828,11 +832,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -847,17 +851,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -871,14 +876,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -892,7 +896,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateEntityTypeRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateEntityTypeRequest.java index 0f57b7032feb..6c97c92841c9 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateEntityTypeRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateEntityTypeRequest.java @@ -119,11 +119,15 @@ public com.google.cloud.dialogflow.cx.v3beta1.EntityType getEntityType() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.EntityTypeOrBuilder getEntityTypeOrBuilder() { - return getEntityType(); + return entityType_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.EntityType.getDefaultInstance() + : entityType_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -230,7 +234,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -460,18 +464,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (entityTypeBuilder_ == null) { - entityType_ = null; - } else { - entityType_ = null; + bitField0_ = 0; + entityType_ = null; + if (entityTypeBuilder_ != null) { + entityTypeBuilder_.dispose(); entityTypeBuilder_ = null; } languageCode_ = ""; - - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -502,21 +504,27 @@ public com.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest result = new com.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest(this); - if (entityTypeBuilder_ == null) { - result.entityType_ = entityType_; - } else { - result.entityType_ = entityTypeBuilder_.build(); - } - result.languageCode_ = languageCode_; - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.UpdateEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entityType_ = entityTypeBuilder_ == null ? entityType_ : entityTypeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -569,6 +577,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.UpdateEntityType } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasUpdateMask()) { @@ -603,19 +612,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getEntityTypeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -635,6 +644,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.EntityType entityType_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.EntityType, @@ -655,7 +666,7 @@ public Builder mergeFrom( * @return Whether the entityType field is set. */ public boolean hasEntityType() { - return entityTypeBuilder_ != null || entityType_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -696,11 +707,11 @@ public Builder setEntityType(com.google.cloud.dialogflow.cx.v3beta1.EntityType v throw new NullPointerException(); } entityType_ = value; - onChanged(); } else { entityTypeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -718,11 +729,11 @@ public Builder setEntityType( com.google.cloud.dialogflow.cx.v3beta1.EntityType.Builder builderForValue) { if (entityTypeBuilder_ == null) { entityType_ = builderForValue.build(); - onChanged(); } else { entityTypeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -738,19 +749,19 @@ public Builder setEntityType( */ public Builder mergeEntityType(com.google.cloud.dialogflow.cx.v3beta1.EntityType value) { if (entityTypeBuilder_ == null) { - if (entityType_ != null) { - entityType_ = - com.google.cloud.dialogflow.cx.v3beta1.EntityType.newBuilder(entityType_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && entityType_ != null + && entityType_ + != com.google.cloud.dialogflow.cx.v3beta1.EntityType.getDefaultInstance()) { + getEntityTypeBuilder().mergeFrom(value); } else { entityType_ = value; } - onChanged(); } else { entityTypeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -765,14 +776,13 @@ public Builder mergeEntityType(com.google.cloud.dialogflow.cx.v3beta1.EntityType * */ public Builder clearEntityType() { - if (entityTypeBuilder_ == null) { - entityType_ = null; - onChanged(); - } else { - entityType_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + entityType_ = null; + if (entityTypeBuilder_ != null) { + entityTypeBuilder_.dispose(); entityTypeBuilder_ = null; } - + onChanged(); return this; } /** @@ -787,7 +797,7 @@ public Builder clearEntityType() { * */ public com.google.cloud.dialogflow.cx.v3beta1.EntityType.Builder getEntityTypeBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getEntityTypeFieldBuilder().getBuilder(); } @@ -924,8 +934,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -949,8 +959,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -979,8 +989,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1003,7 +1013,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1040,11 +1050,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1059,11 +1069,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1077,17 +1087,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1100,14 +1111,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 3; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1120,7 +1130,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 3; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateEnvironmentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateEnvironmentRequest.java index 37d18e9888fe..70267de49dcf 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateEnvironmentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateEnvironmentRequest.java @@ -117,7 +117,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Environment getEnvironment() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.EnvironmentOrBuilder getEnvironmentOrBuilder() { - return getEnvironment(); + return environment_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Environment.getDefaultInstance() + : environment_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -166,7 +168,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -387,16 +389,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (environmentBuilder_ == null) { - environment_ = null; - } else { - environment_ = null; + bitField0_ = 0; + environment_ = null; + if (environmentBuilder_ != null) { + environmentBuilder_.dispose(); environmentBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -427,20 +428,25 @@ public com.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest(this); - if (environmentBuilder_ == null) { - result.environment_ = environment_; - } else { - result.environment_ = environmentBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.UpdateEnvironmentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.environment_ = + environmentBuilder_ == null ? environment_ : environmentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -524,13 +530,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getEnvironmentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -550,6 +556,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.Environment environment_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Environment, @@ -570,7 +578,7 @@ public Builder mergeFrom( * @return Whether the environment field is set. */ public boolean hasEnvironment() { - return environmentBuilder_ != null || environment_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -611,11 +619,11 @@ public Builder setEnvironment(com.google.cloud.dialogflow.cx.v3beta1.Environment throw new NullPointerException(); } environment_ = value; - onChanged(); } else { environmentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -633,11 +641,11 @@ public Builder setEnvironment( com.google.cloud.dialogflow.cx.v3beta1.Environment.Builder builderForValue) { if (environmentBuilder_ == null) { environment_ = builderForValue.build(); - onChanged(); } else { environmentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -653,19 +661,19 @@ public Builder setEnvironment( */ public Builder mergeEnvironment(com.google.cloud.dialogflow.cx.v3beta1.Environment value) { if (environmentBuilder_ == null) { - if (environment_ != null) { - environment_ = - com.google.cloud.dialogflow.cx.v3beta1.Environment.newBuilder(environment_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && environment_ != null + && environment_ + != com.google.cloud.dialogflow.cx.v3beta1.Environment.getDefaultInstance()) { + getEnvironmentBuilder().mergeFrom(value); } else { environment_ = value; } - onChanged(); } else { environmentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -680,14 +688,13 @@ public Builder mergeEnvironment(com.google.cloud.dialogflow.cx.v3beta1.Environme * */ public Builder clearEnvironment() { - if (environmentBuilder_ == null) { - environment_ = null; - onChanged(); - } else { - environment_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + environment_ = null; + if (environmentBuilder_ != null) { + environmentBuilder_.dispose(); environmentBuilder_ = null; } - + onChanged(); return this; } /** @@ -702,7 +709,7 @@ public Builder clearEnvironment() { * */ public com.google.cloud.dialogflow.cx.v3beta1.Environment.Builder getEnvironmentBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getEnvironmentFieldBuilder().getBuilder(); } @@ -773,7 +780,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.EnvironmentOrBuilder getEnvironmen * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -812,11 +819,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -832,11 +839,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -851,17 +858,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -875,14 +883,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -896,7 +903,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateExperimentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateExperimentRequest.java index 57d7b3663c9f..7bfb5d49bc18 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateExperimentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateExperimentRequest.java @@ -117,7 +117,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Experiment getExperiment() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ExperimentOrBuilder getExperimentOrBuilder() { - return getExperiment(); + return experiment_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Experiment.getDefaultInstance() + : experiment_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -166,7 +168,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -387,16 +389,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (experimentBuilder_ == null) { - experiment_ = null; - } else { - experiment_ = null; + bitField0_ = 0; + experiment_ = null; + if (experimentBuilder_ != null) { + experimentBuilder_.dispose(); experimentBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -427,20 +428,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest(this); - if (experimentBuilder_ == null) { - result.experiment_ = experiment_; - } else { - result.experiment_ = experimentBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.UpdateExperimentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.experiment_ = experimentBuilder_ == null ? experiment_ : experimentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -523,13 +528,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getExperimentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -549,6 +554,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.Experiment experiment_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Experiment, @@ -569,7 +576,7 @@ public Builder mergeFrom( * @return Whether the experiment field is set. */ public boolean hasExperiment() { - return experimentBuilder_ != null || experiment_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -610,11 +617,11 @@ public Builder setExperiment(com.google.cloud.dialogflow.cx.v3beta1.Experiment v throw new NullPointerException(); } experiment_ = value; - onChanged(); } else { experimentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -632,11 +639,11 @@ public Builder setExperiment( com.google.cloud.dialogflow.cx.v3beta1.Experiment.Builder builderForValue) { if (experimentBuilder_ == null) { experiment_ = builderForValue.build(); - onChanged(); } else { experimentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -652,19 +659,19 @@ public Builder setExperiment( */ public Builder mergeExperiment(com.google.cloud.dialogflow.cx.v3beta1.Experiment value) { if (experimentBuilder_ == null) { - if (experiment_ != null) { - experiment_ = - com.google.cloud.dialogflow.cx.v3beta1.Experiment.newBuilder(experiment_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && experiment_ != null + && experiment_ + != com.google.cloud.dialogflow.cx.v3beta1.Experiment.getDefaultInstance()) { + getExperimentBuilder().mergeFrom(value); } else { experiment_ = value; } - onChanged(); } else { experimentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -679,14 +686,13 @@ public Builder mergeExperiment(com.google.cloud.dialogflow.cx.v3beta1.Experiment * */ public Builder clearExperiment() { - if (experimentBuilder_ == null) { - experiment_ = null; - onChanged(); - } else { - experiment_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + experiment_ = null; + if (experimentBuilder_ != null) { + experimentBuilder_.dispose(); experimentBuilder_ = null; } - + onChanged(); return this; } /** @@ -701,7 +707,7 @@ public Builder clearExperiment() { * */ public com.google.cloud.dialogflow.cx.v3beta1.Experiment.Builder getExperimentBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getExperimentFieldBuilder().getBuilder(); } @@ -772,7 +778,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.ExperimentOrBuilder getExperimentO * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -811,11 +817,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -831,11 +837,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -850,17 +856,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -874,14 +881,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -895,7 +901,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateFlowRequest.java index 9dddcf3a77ba..284095cb7f0c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateFlowRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateFlowRequest.java @@ -117,7 +117,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.Flow getFlow() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.FlowOrBuilder getFlowOrBuilder() { - return getFlow(); + return flow_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Flow.getDefaultInstance() : flow_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -166,11 +166,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -463,20 +465,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (flowBuilder_ == null) { - flow_ = null; - } else { - flow_ = null; + bitField0_ = 0; + flow_ = null; + if (flowBuilder_ != null) { + flowBuilder_.dispose(); flowBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } languageCode_ = ""; - return this; } @@ -504,21 +504,26 @@ public com.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest result = new com.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest(this); - if (flowBuilder_ == null) { - result.flow_ = flow_; - } else { - result.flow_ = flowBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.languageCode_ = languageCode_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.UpdateFlowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.flow_ = flowBuilder_ == null ? flow_ : flowBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -573,6 +578,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.UpdateFlowReques } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -604,19 +610,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getFlowFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -636,6 +642,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.Flow flow_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Flow, @@ -656,7 +664,7 @@ public Builder mergeFrom( * @return Whether the flow field is set. */ public boolean hasFlow() { - return flowBuilder_ != null || flow_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -697,11 +705,11 @@ public Builder setFlow(com.google.cloud.dialogflow.cx.v3beta1.Flow value) { throw new NullPointerException(); } flow_ = value; - onChanged(); } else { flowBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -718,11 +726,11 @@ public Builder setFlow(com.google.cloud.dialogflow.cx.v3beta1.Flow value) { public Builder setFlow(com.google.cloud.dialogflow.cx.v3beta1.Flow.Builder builderForValue) { if (flowBuilder_ == null) { flow_ = builderForValue.build(); - onChanged(); } else { flowBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -738,19 +746,18 @@ public Builder setFlow(com.google.cloud.dialogflow.cx.v3beta1.Flow.Builder build */ public Builder mergeFlow(com.google.cloud.dialogflow.cx.v3beta1.Flow value) { if (flowBuilder_ == null) { - if (flow_ != null) { - flow_ = - com.google.cloud.dialogflow.cx.v3beta1.Flow.newBuilder(flow_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && flow_ != null + && flow_ != com.google.cloud.dialogflow.cx.v3beta1.Flow.getDefaultInstance()) { + getFlowBuilder().mergeFrom(value); } else { flow_ = value; } - onChanged(); } else { flowBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -765,14 +772,13 @@ public Builder mergeFlow(com.google.cloud.dialogflow.cx.v3beta1.Flow value) { * */ public Builder clearFlow() { - if (flowBuilder_ == null) { - flow_ = null; - onChanged(); - } else { - flow_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + flow_ = null; + if (flowBuilder_ != null) { + flowBuilder_.dispose(); flowBuilder_ = null; } - + onChanged(); return this; } /** @@ -787,7 +793,7 @@ public Builder clearFlow() { * */ public com.google.cloud.dialogflow.cx.v3beta1.Flow.Builder getFlowBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getFlowFieldBuilder().getBuilder(); } @@ -858,7 +864,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.FlowOrBuilder getFlowOrBuilder() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -897,11 +903,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -917,11 +923,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -936,17 +942,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -960,14 +967,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -981,7 +987,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -1119,8 +1125,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1145,8 +1151,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1176,8 +1182,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateIntentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateIntentRequest.java index 43b2d67aaf4e..a3cc90344cd4 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateIntentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateIntentRequest.java @@ -119,11 +119,15 @@ public com.google.cloud.dialogflow.cx.v3beta1.Intent getIntent() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.IntentOrBuilder getIntentOrBuilder() { - return getIntent(); + return intent_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Intent.getDefaultInstance() + : intent_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -229,7 +233,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -459,18 +463,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (intentBuilder_ == null) { - intent_ = null; - } else { - intent_ = null; + bitField0_ = 0; + intent_ = null; + if (intentBuilder_ != null) { + intentBuilder_.dispose(); intentBuilder_ = null; } languageCode_ = ""; - - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -500,21 +502,26 @@ public com.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest(this); - if (intentBuilder_ == null) { - result.intent_ = intent_; - } else { - result.intent_ = intentBuilder_.build(); - } - result.languageCode_ = languageCode_; - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.intent_ = intentBuilder_ == null ? intent_ : intentBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -566,6 +573,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.UpdateIntentRequ } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasUpdateMask()) { @@ -600,19 +608,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getIntentFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -632,6 +640,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.Intent intent_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Intent, @@ -652,7 +662,7 @@ public Builder mergeFrom( * @return Whether the intent field is set. */ public boolean hasIntent() { - return intentBuilder_ != null || intent_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -693,11 +703,11 @@ public Builder setIntent(com.google.cloud.dialogflow.cx.v3beta1.Intent value) { throw new NullPointerException(); } intent_ = value; - onChanged(); } else { intentBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -715,11 +725,11 @@ public Builder setIntent( com.google.cloud.dialogflow.cx.v3beta1.Intent.Builder builderForValue) { if (intentBuilder_ == null) { intent_ = builderForValue.build(); - onChanged(); } else { intentBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -735,19 +745,18 @@ public Builder setIntent( */ public Builder mergeIntent(com.google.cloud.dialogflow.cx.v3beta1.Intent value) { if (intentBuilder_ == null) { - if (intent_ != null) { - intent_ = - com.google.cloud.dialogflow.cx.v3beta1.Intent.newBuilder(intent_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && intent_ != null + && intent_ != com.google.cloud.dialogflow.cx.v3beta1.Intent.getDefaultInstance()) { + getIntentBuilder().mergeFrom(value); } else { intent_ = value; } - onChanged(); } else { intentBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -762,14 +771,13 @@ public Builder mergeIntent(com.google.cloud.dialogflow.cx.v3beta1.Intent value) * */ public Builder clearIntent() { - if (intentBuilder_ == null) { - intent_ = null; - onChanged(); - } else { - intent_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + intent_ = null; + if (intentBuilder_ != null) { + intentBuilder_.dispose(); intentBuilder_ = null; } - + onChanged(); return this; } /** @@ -784,7 +792,7 @@ public Builder clearIntent() { * */ public com.google.cloud.dialogflow.cx.v3beta1.Intent.Builder getIntentBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getIntentFieldBuilder().getBuilder(); } @@ -915,8 +923,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -938,8 +946,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -966,8 +974,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -991,7 +999,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1030,11 +1038,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1050,11 +1058,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1069,17 +1077,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1093,14 +1102,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 3; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1114,7 +1122,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 3; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdatePageRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdatePageRequest.java index a5d9bb57a6da..00b4ad0b0ffb 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdatePageRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdatePageRequest.java @@ -117,11 +117,13 @@ public com.google.cloud.dialogflow.cx.v3beta1.Page getPage() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.PageOrBuilder getPageOrBuilder() { - return getPage(); + return page_ == null ? com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance() : page_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -249,7 +251,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -479,18 +481,16 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (pageBuilder_ == null) { - page_ = null; - } else { - page_ = null; + bitField0_ = 0; + page_ = null; + if (pageBuilder_ != null) { + pageBuilder_.dispose(); pageBuilder_ = null; } languageCode_ = ""; - - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -520,21 +520,26 @@ public com.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest result = new com.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest(this); - if (pageBuilder_ == null) { - result.page_ = page_; - } else { - result.page_ = pageBuilder_.build(); - } - result.languageCode_ = languageCode_; - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.UpdatePageRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.page_ = pageBuilder_ == null ? page_ : pageBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -586,6 +591,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.UpdatePageReques } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasUpdateMask()) { @@ -620,19 +626,19 @@ public Builder mergeFrom( case 10: { input.readMessage(getPageFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -652,6 +658,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.Page page_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Page, @@ -672,7 +680,7 @@ public Builder mergeFrom( * @return Whether the page field is set. */ public boolean hasPage() { - return pageBuilder_ != null || page_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -713,11 +721,11 @@ public Builder setPage(com.google.cloud.dialogflow.cx.v3beta1.Page value) { throw new NullPointerException(); } page_ = value; - onChanged(); } else { pageBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -734,11 +742,11 @@ public Builder setPage(com.google.cloud.dialogflow.cx.v3beta1.Page value) { public Builder setPage(com.google.cloud.dialogflow.cx.v3beta1.Page.Builder builderForValue) { if (pageBuilder_ == null) { page_ = builderForValue.build(); - onChanged(); } else { pageBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -754,19 +762,18 @@ public Builder setPage(com.google.cloud.dialogflow.cx.v3beta1.Page.Builder build */ public Builder mergePage(com.google.cloud.dialogflow.cx.v3beta1.Page value) { if (pageBuilder_ == null) { - if (page_ != null) { - page_ = - com.google.cloud.dialogflow.cx.v3beta1.Page.newBuilder(page_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && page_ != null + && page_ != com.google.cloud.dialogflow.cx.v3beta1.Page.getDefaultInstance()) { + getPageBuilder().mergeFrom(value); } else { page_ = value; } - onChanged(); } else { pageBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -781,14 +788,13 @@ public Builder mergePage(com.google.cloud.dialogflow.cx.v3beta1.Page value) { * */ public Builder clearPage() { - if (pageBuilder_ == null) { - page_ = null; - onChanged(); - } else { - page_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + page_ = null; + if (pageBuilder_ != null) { + pageBuilder_.dispose(); pageBuilder_ = null; } - + onChanged(); return this; } /** @@ -803,7 +809,7 @@ public Builder clearPage() { * */ public com.google.cloud.dialogflow.cx.v3beta1.Page.Builder getPageBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getPageFieldBuilder().getBuilder(); } @@ -967,8 +973,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1001,8 +1007,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1040,8 +1046,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1065,7 +1071,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -1104,11 +1110,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1124,11 +1130,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1143,17 +1149,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -1167,14 +1174,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 3; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -1188,7 +1194,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 3; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateSecuritySettingsRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateSecuritySettingsRequest.java index f31f9e643b84..638a86ebf950 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateSecuritySettingsRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateSecuritySettingsRequest.java @@ -121,7 +121,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings getSecuritySettin @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettingsOrBuilder getSecuritySettingsOrBuilder() { - return getSecuritySettings(); + return securitySettings_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.getDefaultInstance() + : securitySettings_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -173,7 +175,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -396,16 +398,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (securitySettingsBuilder_ == null) { - securitySettings_ = null; - } else { - securitySettings_ = null; + bitField0_ = 0; + securitySettings_ = null; + if (securitySettingsBuilder_ != null) { + securitySettingsBuilder_.dispose(); securitySettingsBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -437,20 +438,25 @@ public com.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest buil public com.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest result = new com.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest(this); - if (securitySettingsBuilder_ == null) { - result.securitySettings_ = securitySettings_; - } else { - result.securitySettings_ = securitySettingsBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.UpdateSecuritySettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.securitySettings_ = + securitySettingsBuilder_ == null ? securitySettings_ : securitySettingsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -536,13 +542,13 @@ public Builder mergeFrom( { input.readMessage( getSecuritySettingsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -562,6 +568,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings securitySettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings, @@ -583,7 +591,7 @@ public Builder mergeFrom( * @return Whether the securitySettings field is set. */ public boolean hasSecuritySettings() { - return securitySettingsBuilder_ != null || securitySettings_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -627,11 +635,11 @@ public Builder setSecuritySettings( throw new NullPointerException(); } securitySettings_ = value; - onChanged(); } else { securitySettingsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -650,11 +658,11 @@ public Builder setSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.Builder builderForValue) { if (securitySettingsBuilder_ == null) { securitySettings_ = builderForValue.build(); - onChanged(); } else { securitySettingsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -672,19 +680,19 @@ public Builder setSecuritySettings( public Builder mergeSecuritySettings( com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings value) { if (securitySettingsBuilder_ == null) { - if (securitySettings_ != null) { - securitySettings_ = - com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.newBuilder(securitySettings_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && securitySettings_ != null + && securitySettings_ + != com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.getDefaultInstance()) { + getSecuritySettingsBuilder().mergeFrom(value); } else { securitySettings_ = value; } - onChanged(); } else { securitySettingsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -700,14 +708,13 @@ public Builder mergeSecuritySettings( * */ public Builder clearSecuritySettings() { - if (securitySettingsBuilder_ == null) { - securitySettings_ = null; - onChanged(); - } else { - securitySettings_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + securitySettings_ = null; + if (securitySettingsBuilder_ != null) { + securitySettingsBuilder_.dispose(); securitySettingsBuilder_ = null; } - + onChanged(); return this; } /** @@ -724,7 +731,7 @@ public Builder clearSecuritySettings() { */ public com.google.cloud.dialogflow.cx.v3beta1.SecuritySettings.Builder getSecuritySettingsBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getSecuritySettingsFieldBuilder().getBuilder(); } @@ -799,7 +806,7 @@ public Builder clearSecuritySettings() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -840,11 +847,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -861,11 +868,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -881,17 +888,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -906,14 +914,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -928,7 +935,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateSessionEntityTypeRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateSessionEntityTypeRequest.java index bbd00ae1a167..8f034b93b929 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateSessionEntityTypeRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateSessionEntityTypeRequest.java @@ -137,7 +137,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType getSessionEntity @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypeOrBuilder getSessionEntityTypeOrBuilder() { - return getSessionEntityType(); + return sessionEntityType_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.getDefaultInstance() + : sessionEntityType_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -183,7 +185,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -406,16 +408,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (sessionEntityTypeBuilder_ == null) { - sessionEntityType_ = null; - } else { - sessionEntityType_ = null; + bitField0_ = 0; + sessionEntityType_ = null; + if (sessionEntityTypeBuilder_ != null) { + sessionEntityTypeBuilder_.dispose(); sessionEntityTypeBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -447,20 +448,27 @@ public com.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest bui public com.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest result = new com.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest(this); - if (sessionEntityTypeBuilder_ == null) { - result.sessionEntityType_ = sessionEntityType_; - } else { - result.sessionEntityType_ = sessionEntityTypeBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.UpdateSessionEntityTypeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sessionEntityType_ = + sessionEntityTypeBuilder_ == null + ? sessionEntityType_ + : sessionEntityTypeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -546,13 +554,13 @@ public Builder mergeFrom( { input.readMessage( getSessionEntityTypeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -572,6 +580,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType sessionEntityType_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType, @@ -598,7 +608,7 @@ public Builder mergeFrom( * @return Whether the sessionEntityType field is set. */ public boolean hasSessionEntityType() { - return sessionEntityTypeBuilder_ != null || sessionEntityType_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -652,11 +662,11 @@ public Builder setSessionEntityType( throw new NullPointerException(); } sessionEntityType_ = value; - onChanged(); } else { sessionEntityTypeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -680,11 +690,11 @@ public Builder setSessionEntityType( com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.Builder builderForValue) { if (sessionEntityTypeBuilder_ == null) { sessionEntityType_ = builderForValue.build(); - onChanged(); } else { sessionEntityTypeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -707,20 +717,19 @@ public Builder setSessionEntityType( public Builder mergeSessionEntityType( com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType value) { if (sessionEntityTypeBuilder_ == null) { - if (sessionEntityType_ != null) { - sessionEntityType_ = - com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.newBuilder( - sessionEntityType_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && sessionEntityType_ != null + && sessionEntityType_ + != com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.getDefaultInstance()) { + getSessionEntityTypeBuilder().mergeFrom(value); } else { sessionEntityType_ = value; } - onChanged(); } else { sessionEntityTypeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -741,14 +750,13 @@ public Builder mergeSessionEntityType( * */ public Builder clearSessionEntityType() { - if (sessionEntityTypeBuilder_ == null) { - sessionEntityType_ = null; - onChanged(); - } else { - sessionEntityType_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + sessionEntityType_ = null; + if (sessionEntityTypeBuilder_ != null) { + sessionEntityTypeBuilder_.dispose(); sessionEntityTypeBuilder_ = null; } - + onChanged(); return this; } /** @@ -770,7 +778,7 @@ public Builder clearSessionEntityType() { */ public com.google.cloud.dialogflow.cx.v3beta1.SessionEntityType.Builder getSessionEntityTypeBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getSessionEntityTypeFieldBuilder().getBuilder(); } @@ -853,7 +861,7 @@ public Builder clearSessionEntityType() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -890,11 +898,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -909,11 +917,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -927,17 +935,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -950,14 +959,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -970,7 +978,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateTestCaseRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateTestCaseRequest.java index 7a686edda1e7..d4e7e1a3a711 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateTestCaseRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateTestCaseRequest.java @@ -117,7 +117,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestCase getTestCase() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.TestCaseOrBuilder getTestCaseOrBuilder() { - return getTestCase(); + return testCase_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.TestCase.getDefaultInstance() + : testCase_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -178,7 +180,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -399,16 +401,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (testCaseBuilder_ == null) { - testCase_ = null; - } else { - testCase_ = null; + bitField0_ = 0; + testCase_ = null; + if (testCaseBuilder_ != null) { + testCaseBuilder_.dispose(); testCaseBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -439,20 +440,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest result = new com.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest(this); - if (testCaseBuilder_ == null) { - result.testCase_ = testCase_; - } else { - result.testCase_ = testCaseBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.UpdateTestCaseRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.testCase_ = testCaseBuilder_ == null ? testCase_ : testCaseBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -535,13 +540,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getTestCaseFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -561,6 +566,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.TestCase testCase_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.TestCase, @@ -581,7 +588,7 @@ public Builder mergeFrom( * @return Whether the testCase field is set. */ public boolean hasTestCase() { - return testCaseBuilder_ != null || testCase_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -622,11 +629,11 @@ public Builder setTestCase(com.google.cloud.dialogflow.cx.v3beta1.TestCase value throw new NullPointerException(); } testCase_ = value; - onChanged(); } else { testCaseBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -644,11 +651,11 @@ public Builder setTestCase( com.google.cloud.dialogflow.cx.v3beta1.TestCase.Builder builderForValue) { if (testCaseBuilder_ == null) { testCase_ = builderForValue.build(); - onChanged(); } else { testCaseBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -664,19 +671,18 @@ public Builder setTestCase( */ public Builder mergeTestCase(com.google.cloud.dialogflow.cx.v3beta1.TestCase value) { if (testCaseBuilder_ == null) { - if (testCase_ != null) { - testCase_ = - com.google.cloud.dialogflow.cx.v3beta1.TestCase.newBuilder(testCase_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && testCase_ != null + && testCase_ != com.google.cloud.dialogflow.cx.v3beta1.TestCase.getDefaultInstance()) { + getTestCaseBuilder().mergeFrom(value); } else { testCase_ = value; } - onChanged(); } else { testCaseBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -691,14 +697,13 @@ public Builder mergeTestCase(com.google.cloud.dialogflow.cx.v3beta1.TestCase val * */ public Builder clearTestCase() { - if (testCaseBuilder_ == null) { - testCase_ = null; - onChanged(); - } else { - testCase_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + testCase_ = null; + if (testCaseBuilder_ != null) { + testCaseBuilder_.dispose(); testCaseBuilder_ = null; } - + onChanged(); return this; } /** @@ -713,7 +718,7 @@ public Builder clearTestCase() { * */ public com.google.cloud.dialogflow.cx.v3beta1.TestCase.Builder getTestCaseBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getTestCaseFieldBuilder().getBuilder(); } @@ -788,7 +793,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.TestCaseOrBuilder getTestCaseOrBui * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -835,11 +840,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -859,11 +864,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -882,17 +887,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -910,14 +916,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -935,7 +940,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateTransitionRouteGroupRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateTransitionRouteGroupRequest.java index 827f3c9ec62e..7e7d23cc98b4 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateTransitionRouteGroupRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateTransitionRouteGroupRequest.java @@ -121,7 +121,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup getTransition @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupOrBuilder getTransitionRouteGroupOrBuilder() { - return getTransitionRouteGroup(); + return transitionRouteGroup_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.getDefaultInstance() + : transitionRouteGroup_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -167,11 +169,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -467,20 +471,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (transitionRouteGroupBuilder_ == null) { - transitionRouteGroup_ = null; - } else { - transitionRouteGroup_ = null; + bitField0_ = 0; + transitionRouteGroup_ = null; + if (transitionRouteGroupBuilder_ != null) { + transitionRouteGroupBuilder_.dispose(); transitionRouteGroupBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } languageCode_ = ""; - return this; } @@ -511,21 +513,30 @@ public com.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest public com.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest result = new com.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest(this); - if (transitionRouteGroupBuilder_ == null) { - result.transitionRouteGroup_ = transitionRouteGroup_; - } else { - result.transitionRouteGroup_ = transitionRouteGroupBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - result.languageCode_ = languageCode_; onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.UpdateTransitionRouteGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.transitionRouteGroup_ = + transitionRouteGroupBuilder_ == null + ? transitionRouteGroup_ + : transitionRouteGroupBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -584,6 +595,7 @@ public Builder mergeFrom( } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000004; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -616,19 +628,19 @@ public Builder mergeFrom( { input.readMessage( getTransitionRouteGroupFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 default: @@ -648,6 +660,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup transitionRouteGroup_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup, @@ -668,7 +682,7 @@ public Builder mergeFrom( * @return Whether the transitionRouteGroup field is set. */ public boolean hasTransitionRouteGroup() { - return transitionRouteGroupBuilder_ != null || transitionRouteGroup_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -710,11 +724,11 @@ public Builder setTransitionRouteGroup( throw new NullPointerException(); } transitionRouteGroup_ = value; - onChanged(); } else { transitionRouteGroupBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -732,11 +746,11 @@ public Builder setTransitionRouteGroup( com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.Builder builderForValue) { if (transitionRouteGroupBuilder_ == null) { transitionRouteGroup_ = builderForValue.build(); - onChanged(); } else { transitionRouteGroupBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -753,20 +767,20 @@ public Builder setTransitionRouteGroup( public Builder mergeTransitionRouteGroup( com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup value) { if (transitionRouteGroupBuilder_ == null) { - if (transitionRouteGroup_ != null) { - transitionRouteGroup_ = - com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.newBuilder( - transitionRouteGroup_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && transitionRouteGroup_ != null + && transitionRouteGroup_ + != com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup + .getDefaultInstance()) { + getTransitionRouteGroupBuilder().mergeFrom(value); } else { transitionRouteGroup_ = value; } - onChanged(); } else { transitionRouteGroupBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -781,14 +795,13 @@ public Builder mergeTransitionRouteGroup( * */ public Builder clearTransitionRouteGroup() { - if (transitionRouteGroupBuilder_ == null) { - transitionRouteGroup_ = null; - onChanged(); - } else { - transitionRouteGroup_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + transitionRouteGroup_ = null; + if (transitionRouteGroupBuilder_ != null) { + transitionRouteGroupBuilder_.dispose(); transitionRouteGroupBuilder_ = null; } - + onChanged(); return this; } /** @@ -804,7 +817,7 @@ public Builder clearTransitionRouteGroup() { */ public com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroup.Builder getTransitionRouteGroupBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getTransitionRouteGroupFieldBuilder().getBuilder(); } @@ -875,7 +888,7 @@ public Builder clearTransitionRouteGroup() { * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -912,11 +925,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -931,11 +944,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -949,17 +962,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -972,14 +986,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -992,7 +1005,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } @@ -1125,8 +1138,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1150,8 +1163,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1180,8 +1193,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateVersionRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateVersionRequest.java index a8c5018a3dc3..ec5baee83011 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateVersionRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateVersionRequest.java @@ -117,7 +117,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Version getVersion() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.VersionOrBuilder getVersionOrBuilder() { - return getVersion(); + return version_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Version.getDefaultInstance() + : version_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -169,7 +171,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -390,16 +392,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (versionBuilder_ == null) { - version_ = null; - } else { - version_ = null; + bitField0_ = 0; + version_ = null; + if (versionBuilder_ != null) { + versionBuilder_.dispose(); versionBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -429,20 +430,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest result = new com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest(this); - if (versionBuilder_ == null) { - result.version_ = version_; - } else { - result.version_ = versionBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.UpdateVersionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = versionBuilder_ == null ? version_ : versionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -524,13 +528,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getVersionFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -550,6 +554,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.Version version_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Version, @@ -570,7 +576,7 @@ public Builder mergeFrom( * @return Whether the version field is set. */ public boolean hasVersion() { - return versionBuilder_ != null || version_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -611,11 +617,11 @@ public Builder setVersion(com.google.cloud.dialogflow.cx.v3beta1.Version value) throw new NullPointerException(); } version_ = value; - onChanged(); } else { versionBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -633,11 +639,11 @@ public Builder setVersion( com.google.cloud.dialogflow.cx.v3beta1.Version.Builder builderForValue) { if (versionBuilder_ == null) { version_ = builderForValue.build(); - onChanged(); } else { versionBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -653,19 +659,18 @@ public Builder setVersion( */ public Builder mergeVersion(com.google.cloud.dialogflow.cx.v3beta1.Version value) { if (versionBuilder_ == null) { - if (version_ != null) { - version_ = - com.google.cloud.dialogflow.cx.v3beta1.Version.newBuilder(version_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && version_ != null + && version_ != com.google.cloud.dialogflow.cx.v3beta1.Version.getDefaultInstance()) { + getVersionBuilder().mergeFrom(value); } else { version_ = value; } - onChanged(); } else { versionBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -680,14 +685,13 @@ public Builder mergeVersion(com.google.cloud.dialogflow.cx.v3beta1.Version value * */ public Builder clearVersion() { - if (versionBuilder_ == null) { - version_ = null; - onChanged(); - } else { - version_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + version_ = null; + if (versionBuilder_ != null) { + versionBuilder_.dispose(); versionBuilder_ = null; } - + onChanged(); return this; } /** @@ -702,7 +706,7 @@ public Builder clearVersion() { * */ public com.google.cloud.dialogflow.cx.v3beta1.Version.Builder getVersionBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getVersionFieldBuilder().getBuilder(); } @@ -774,7 +778,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.VersionOrBuilder getVersionOrBuild * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -815,11 +819,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -836,11 +840,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -856,17 +860,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -881,14 +886,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -903,7 +907,7 @@ public Builder clearUpdateMask() { * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateWebhookRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateWebhookRequest.java index 01467192e23a..83ee04226ea4 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateWebhookRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/UpdateWebhookRequest.java @@ -117,7 +117,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Webhook getWebhook() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookOrBuilder getWebhookOrBuilder() { - return getWebhook(); + return webhook_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Webhook.getDefaultInstance() + : webhook_; } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -166,7 +168,7 @@ public com.google.protobuf.FieldMask getUpdateMask() { */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } private byte memoizedIsInitialized = -1; @@ -387,16 +389,15 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (webhookBuilder_ == null) { - webhook_ = null; - } else { - webhook_ = null; + bitField0_ = 0; + webhook_ = null; + if (webhookBuilder_ != null) { + webhookBuilder_.dispose(); webhookBuilder_ = null; } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } return this; @@ -426,20 +427,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest result = new com.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest(this); - if (webhookBuilder_ == null) { - result.webhook_ = webhook_; - } else { - result.webhook_ = webhookBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.UpdateWebhookRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.webhook_ = webhookBuilder_ == null ? webhook_ : webhookBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -521,13 +525,13 @@ public Builder mergeFrom( case 10: { input.readMessage(getWebhookFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -547,6 +551,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.Webhook webhook_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.Webhook, @@ -567,7 +573,7 @@ public Builder mergeFrom( * @return Whether the webhook field is set. */ public boolean hasWebhook() { - return webhookBuilder_ != null || webhook_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -608,11 +614,11 @@ public Builder setWebhook(com.google.cloud.dialogflow.cx.v3beta1.Webhook value) throw new NullPointerException(); } webhook_ = value; - onChanged(); } else { webhookBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -630,11 +636,11 @@ public Builder setWebhook( com.google.cloud.dialogflow.cx.v3beta1.Webhook.Builder builderForValue) { if (webhookBuilder_ == null) { webhook_ = builderForValue.build(); - onChanged(); } else { webhookBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -650,19 +656,18 @@ public Builder setWebhook( */ public Builder mergeWebhook(com.google.cloud.dialogflow.cx.v3beta1.Webhook value) { if (webhookBuilder_ == null) { - if (webhook_ != null) { - webhook_ = - com.google.cloud.dialogflow.cx.v3beta1.Webhook.newBuilder(webhook_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && webhook_ != null + && webhook_ != com.google.cloud.dialogflow.cx.v3beta1.Webhook.getDefaultInstance()) { + getWebhookBuilder().mergeFrom(value); } else { webhook_ = value; } - onChanged(); } else { webhookBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -677,14 +682,13 @@ public Builder mergeWebhook(com.google.cloud.dialogflow.cx.v3beta1.Webhook value * */ public Builder clearWebhook() { - if (webhookBuilder_ == null) { - webhook_ = null; - onChanged(); - } else { - webhook_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + webhook_ = null; + if (webhookBuilder_ != null) { + webhookBuilder_.dispose(); webhookBuilder_ = null; } - + onChanged(); return this; } /** @@ -699,7 +703,7 @@ public Builder clearWebhook() { * */ public com.google.cloud.dialogflow.cx.v3beta1.Webhook.Builder getWebhookBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getWebhookFieldBuilder().getBuilder(); } @@ -770,7 +774,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.WebhookOrBuilder getWebhookOrBuild * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -809,11 +813,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { throw new NullPointerException(); } updateMask_ = value; - onChanged(); } else { updateMaskBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -829,11 +833,11 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); - onChanged(); } else { updateMaskBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -848,17 +852,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); } else { updateMask_ = value; } - onChanged(); } else { updateMaskBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -872,14 +877,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * .google.protobuf.FieldMask update_mask = 2; */ public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); updateMaskBuilder_ = null; } - + onChanged(); return this; } /** @@ -893,7 +897,7 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidateAgentRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidateAgentRequest.java index 8c8c039fd75a..4df101fb78a4 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidateAgentRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidateAgentRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -125,7 +127,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -381,10 +385,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - languageCode_ = ""; - return this; } @@ -412,12 +415,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest(this); - result.name_ = name_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ValidateAgentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -466,10 +480,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ValidateAgentReq return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -501,13 +517,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -527,6 +543,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -597,8 +615,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -617,8 +635,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -642,8 +660,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -709,8 +727,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -726,8 +744,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -748,8 +766,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidateFlowRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidateFlowRequest.java index ab32ed000ae4..9f5ec5b31263 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidateFlowRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidateFlowRequest.java @@ -70,7 +70,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -127,7 +129,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 2; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -383,10 +387,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - languageCode_ = ""; - return this; } @@ -414,12 +417,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest result = new com.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest(this); - result.name_ = name_; - result.languageCode_ = languageCode_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.languageCode_ = languageCode_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -468,10 +482,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ValidateFlowRequ return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -503,13 +519,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -529,6 +545,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -602,8 +620,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -623,8 +641,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -649,8 +667,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -716,8 +734,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -733,8 +751,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -755,8 +773,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidationMessage.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidationMessage.java index 03c78b99a7c8..f5c9adbfce1c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidationMessage.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ValidationMessage.java @@ -654,7 +654,7 @@ private Severity(int value) { } public static final int RESOURCE_TYPE_FIELD_NUMBER = 1; - private int resourceType_; + private int resourceType_ = 0; /** * * @@ -685,9 +685,8 @@ public int getResourceTypeValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType getResourceType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType result = - com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType.forNumber( resourceType_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType.UNRECOGNIZED @@ -695,6 +694,8 @@ public com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType get } public static final int RESOURCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList resources_; /** * @@ -768,6 +769,8 @@ public com.google.protobuf.ByteString getResourcesBytes(int index) { } public static final int RESOURCE_NAMES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") private java.util.List resourceNames_; /** * @@ -839,7 +842,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResourceNameOrBuilder getResourceN } public static final int SEVERITY_FIELD_NUMBER = 3; - private int severity_; + private int severity_ = 0; /** * * @@ -868,16 +871,17 @@ public int getSeverityValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity getSeverity() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity result = - com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity.valueOf(severity_); + com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity.forNumber(severity_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity.UNRECOGNIZED : result; } public static final int DETAIL_FIELD_NUMBER = 4; - private volatile java.lang.Object detail_; + + @SuppressWarnings("serial") + private volatile java.lang.Object detail_ = ""; /** * * @@ -1178,21 +1182,19 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; resourceType_ = 0; - resources_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); if (resourceNamesBuilder_ == null) { resourceNames_ = java.util.Collections.emptyList(); } else { resourceNames_ = null; resourceNamesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); severity_ = 0; - detail_ = ""; - return this; } @@ -1220,26 +1222,43 @@ public com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage build() { public com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage result = new com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage(this); - int from_bitField0_ = bitField0_; - result.resourceType_ = resourceType_; - if (((bitField0_ & 0x00000001) != 0)) { + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage result) { + if (((bitField0_ & 0x00000002) != 0)) { resources_ = resources_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } result.resources_ = resources_; if (resourceNamesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { resourceNames_ = java.util.Collections.unmodifiableList(resourceNames_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } result.resourceNames_ = resourceNames_; } else { result.resourceNames_ = resourceNamesBuilder_.build(); } - result.severity_ = severity_; - result.detail_ = detail_; - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resourceType_ = resourceType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.severity_ = severity_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.detail_ = detail_; + } } @java.lang.Override @@ -1294,7 +1313,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ValidationMessag if (!other.resources_.isEmpty()) { if (resources_.isEmpty()) { resources_ = other.resources_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureResourcesIsMutable(); resources_.addAll(other.resources_); @@ -1305,7 +1324,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ValidationMessag if (!other.resourceNames_.isEmpty()) { if (resourceNames_.isEmpty()) { resourceNames_ = other.resourceNames_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureResourceNamesIsMutable(); resourceNames_.addAll(other.resourceNames_); @@ -1318,7 +1337,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ValidationMessag resourceNamesBuilder_.dispose(); resourceNamesBuilder_ = null; resourceNames_ = other.resourceNames_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); resourceNamesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getResourceNamesFieldBuilder() @@ -1333,6 +1352,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.ValidationMessag } if (!other.getDetail().isEmpty()) { detail_ = other.detail_; + bitField0_ |= 0x00000010; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1364,7 +1384,7 @@ public Builder mergeFrom( case 8: { resourceType_ = input.readEnum(); - + bitField0_ |= 0x00000001; break; } // case 8 case 18: @@ -1377,13 +1397,13 @@ public Builder mergeFrom( case 24: { severity_ = input.readEnum(); - + bitField0_ |= 0x00000008; break; } // case 24 case 34: { detail_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000010; break; } // case 34 case 50: @@ -1450,8 +1470,8 @@ public int getResourceTypeValue() { * @return This builder for chaining. */ public Builder setResourceTypeValue(int value) { - resourceType_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1469,9 +1489,8 @@ public Builder setResourceTypeValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType getResourceType() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType result = - com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType.valueOf( + com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType.forNumber( resourceType_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.ResourceType.UNRECOGNIZED @@ -1495,7 +1514,7 @@ public Builder setResourceType( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000001; resourceType_ = value.getNumber(); onChanged(); return this; @@ -1513,7 +1532,7 @@ public Builder setResourceType( * @return This builder for chaining. */ public Builder clearResourceType() { - + bitField0_ = (bitField0_ & ~0x00000001); resourceType_ = 0; onChanged(); return this; @@ -1523,9 +1542,9 @@ public Builder clearResourceType() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureResourcesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { resources_ = new com.google.protobuf.LazyStringArrayList(resources_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; } } /** @@ -1684,7 +1703,7 @@ public Builder addAllResources(java.lang.Iterable values) { @java.lang.Deprecated public Builder clearResources() { resources_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1718,11 +1737,11 @@ public Builder addResourcesBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureResourceNamesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { resourceNames_ = new java.util.ArrayList( resourceNames_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; } } @@ -1941,7 +1960,7 @@ public Builder addAllResourceNames( public Builder clearResourceNames() { if (resourceNamesBuilder_ == null) { resourceNames_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { resourceNamesBuilder_.clear(); @@ -2068,7 +2087,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResourceName.Builder addResourceNa com.google.cloud.dialogflow.cx.v3beta1.ResourceName.Builder, com.google.cloud.dialogflow.cx.v3beta1.ResourceNameOrBuilder>( resourceNames_, - ((bitField0_ & 0x00000002) != 0), + ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); resourceNames_ = null; @@ -2105,8 +2124,8 @@ public int getSeverityValue() { * @return This builder for chaining. */ public Builder setSeverityValue(int value) { - severity_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2123,9 +2142,8 @@ public Builder setSeverityValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity getSeverity() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity result = - com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity.valueOf(severity_); + com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity.forNumber(severity_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.ValidationMessage.Severity.UNRECOGNIZED : result; @@ -2147,7 +2165,7 @@ public Builder setSeverity( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000008; severity_ = value.getNumber(); onChanged(); return this; @@ -2164,7 +2182,7 @@ public Builder setSeverity( * @return This builder for chaining. */ public Builder clearSeverity() { - + bitField0_ = (bitField0_ & ~0x00000008); severity_ = 0; onChanged(); return this; @@ -2231,8 +2249,8 @@ public Builder setDetail(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - detail_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2248,8 +2266,8 @@ public Builder setDetail(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDetail() { - detail_ = getDefaultInstance().getDetail(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2270,8 +2288,8 @@ public Builder setDetailBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - detail_ = value; + bitField0_ |= 0x00000010; onChanged(); return this; } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VariantsHistory.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VariantsHistory.java index c8f1b7c8d830..8ef5d0c55ee0 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VariantsHistory.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VariantsHistory.java @@ -204,7 +204,7 @@ public com.google.protobuf.Timestamp getUpdateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return getUpdateTime(); + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } private byte memoizedIsInitialized = -1; @@ -434,13 +434,13 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (versionVariantsBuilder_ != null) { versionVariantsBuilder_.clear(); } - if (updateTimeBuilder_ == null) { - updateTime_ = null; - } else { - updateTime_ = null; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } variantsCase_ = 0; @@ -472,23 +472,29 @@ public com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory build() { public com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory result = new com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory(this); - if (variantsCase_ == 1) { - if (versionVariantsBuilder_ == null) { - result.variants_ = variants_; - } else { - result.variants_ = versionVariantsBuilder_.build(); - } - } - if (updateTimeBuilder_ == null) { - result.updateTime_ = updateTime_; - } else { - result.updateTime_ = updateTimeBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - result.variantsCase_ = variantsCase_; + buildPartialOneofs(result); onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3beta1.VariantsHistory result) { + result.variantsCase_ = variantsCase_; + result.variants_ = this.variants_; + if (variantsCase_ == 1 && versionVariantsBuilder_ != null) { + result.variants_ = versionVariantsBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -584,7 +590,7 @@ public Builder mergeFrom( case 18: { input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -618,6 +624,8 @@ public Builder clearVariants() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3beta1.VersionVariants, com.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Builder, @@ -829,7 +837,6 @@ public Builder clearVersionVariants() { } variantsCase_ = 1; onChanged(); - ; return versionVariantsBuilder_; } @@ -851,7 +858,7 @@ public Builder clearVersionVariants() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return updateTimeBuilder_ != null || updateTime_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -888,11 +895,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } updateTime_ = value; - onChanged(); } else { updateTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -907,11 +914,11 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); - onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -925,17 +932,18 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (updateTime_ != null) { - updateTime_ = - com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); } else { updateTime_ = value; } - onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -948,14 +956,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp update_time = 2; */ public Builder clearUpdateTime() { - if (updateTimeBuilder_ == null) { - updateTime_ = null; - onChanged(); - } else { - updateTime_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -968,7 +975,7 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 2; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Version.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Version.java index dbedfb79ace4..d347ec57f446 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Version.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Version.java @@ -250,7 +250,9 @@ private State(int value) { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -303,7 +305,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -352,7 +356,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; /** * * @@ -453,7 +459,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.NluSettings getNluSettings() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.NluSettingsOrBuilder getNluSettingsOrBuilder() { - return getNluSettings(); + return nluSettings_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.NluSettings.getDefaultInstance() + : nluSettings_; } public static final int CREATE_TIME_FIELD_NUMBER = 5; @@ -502,11 +510,11 @@ public com.google.protobuf.Timestamp getCreateTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return getCreateTime(); + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } public static final int STATE_FIELD_NUMBER = 6; - private int state_; + private int state_ = 0; /** * * @@ -541,9 +549,8 @@ public int getStateValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Version.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.Version.State result = - com.google.cloud.dialogflow.cx.v3beta1.Version.State.valueOf(state_); + com.google.cloud.dialogflow.cx.v3beta1.Version.State.forNumber(state_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.Version.State.UNRECOGNIZED : result; @@ -803,26 +810,21 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - description_ = ""; - - if (nluSettingsBuilder_ == null) { - nluSettings_ = null; - } else { - nluSettings_ = null; + nluSettings_ = null; + if (nluSettingsBuilder_ != null) { + nluSettingsBuilder_.dispose(); nluSettingsBuilder_ = null; } - if (createTimeBuilder_ == null) { - createTime_ = null; - } else { - createTime_ = null; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } state_ = 0; - return this; } @@ -850,24 +852,36 @@ public com.google.cloud.dialogflow.cx.v3beta1.Version build() { public com.google.cloud.dialogflow.cx.v3beta1.Version buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Version result = new com.google.cloud.dialogflow.cx.v3beta1.Version(this); - result.name_ = name_; - result.displayName_ = displayName_; - result.description_ = description_; - if (nluSettingsBuilder_ == null) { - result.nluSettings_ = nluSettings_; - } else { - result.nluSettings_ = nluSettingsBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (createTimeBuilder_ == null) { - result.createTime_ = createTime_; - } else { - result.createTime_ = createTimeBuilder_.build(); - } - result.state_ = state_; onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Version result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.nluSettings_ = + nluSettingsBuilder_ == null ? nluSettings_ : nluSettingsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -915,14 +929,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Version other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.Version.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasNluSettings()) { @@ -963,37 +980,37 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getNluSettingsFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 42 case 48: { state_ = input.readEnum(); - + bitField0_ |= 0x00000020; break; } // case 48 default: @@ -1013,6 +1030,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -1080,8 +1099,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1099,8 +1118,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1123,8 +1142,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1190,8 +1209,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1207,8 +1226,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1229,8 +1248,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1299,8 +1318,8 @@ public Builder setDescription(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1317,8 +1336,8 @@ public Builder setDescription(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1340,8 +1359,8 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1366,7 +1385,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the nluSettings field is set. */ public boolean hasNluSettings() { - return nluSettingsBuilder_ != null || nluSettings_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1407,11 +1426,11 @@ public Builder setNluSettings(com.google.cloud.dialogflow.cx.v3beta1.NluSettings throw new NullPointerException(); } nluSettings_ = value; - onChanged(); } else { nluSettingsBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1429,11 +1448,11 @@ public Builder setNluSettings( com.google.cloud.dialogflow.cx.v3beta1.NluSettings.Builder builderForValue) { if (nluSettingsBuilder_ == null) { nluSettings_ = builderForValue.build(); - onChanged(); } else { nluSettingsBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1449,19 +1468,19 @@ public Builder setNluSettings( */ public Builder mergeNluSettings(com.google.cloud.dialogflow.cx.v3beta1.NluSettings value) { if (nluSettingsBuilder_ == null) { - if (nluSettings_ != null) { - nluSettings_ = - com.google.cloud.dialogflow.cx.v3beta1.NluSettings.newBuilder(nluSettings_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && nluSettings_ != null + && nluSettings_ + != com.google.cloud.dialogflow.cx.v3beta1.NluSettings.getDefaultInstance()) { + getNluSettingsBuilder().mergeFrom(value); } else { nluSettings_ = value; } - onChanged(); } else { nluSettingsBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -1476,14 +1495,13 @@ public Builder mergeNluSettings(com.google.cloud.dialogflow.cx.v3beta1.NluSettin * */ public Builder clearNluSettings() { - if (nluSettingsBuilder_ == null) { - nluSettings_ = null; - onChanged(); - } else { - nluSettings_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + nluSettings_ = null; + if (nluSettingsBuilder_ != null) { + nluSettingsBuilder_.dispose(); nluSettingsBuilder_ = null; } - + onChanged(); return this; } /** @@ -1498,7 +1516,7 @@ public Builder clearNluSettings() { * */ public com.google.cloud.dialogflow.cx.v3beta1.NluSettings.Builder getNluSettingsBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getNluSettingsFieldBuilder().getBuilder(); } @@ -1570,7 +1588,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.NluSettingsOrBuilder getNluSetting * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return createTimeBuilder_ != null || createTime_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1611,11 +1629,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { throw new NullPointerException(); } createTime_ = value; - onChanged(); } else { createTimeBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1632,11 +1650,11 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); - onChanged(); } else { createTimeBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1652,17 +1670,18 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (createTime_ != null) { - createTime_ = - com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; } - onChanged(); } else { createTimeBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -1677,14 +1696,13 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - if (createTimeBuilder_ == null) { - createTime_ = null; - onChanged(); - } else { - createTime_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - + onChanged(); return this; } /** @@ -1699,7 +1717,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } @@ -1786,8 +1804,8 @@ public int getStateValue() { * @return This builder for chaining. */ public Builder setStateValue(int value) { - state_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1807,9 +1825,8 @@ public Builder setStateValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Version.State getState() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.Version.State result = - com.google.cloud.dialogflow.cx.v3beta1.Version.State.valueOf(state_); + com.google.cloud.dialogflow.cx.v3beta1.Version.State.forNumber(state_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.Version.State.UNRECOGNIZED : result; @@ -1833,7 +1850,7 @@ public Builder setState(com.google.cloud.dialogflow.cx.v3beta1.Version.State val if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000020; state_ = value.getNumber(); onChanged(); return this; @@ -1853,7 +1870,7 @@ public Builder setState(com.google.cloud.dialogflow.cx.v3beta1.Version.State val * @return This builder for chaining. */ public Builder clearState() { - + bitField0_ = (bitField0_ & ~0x00000020); state_ = 0; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionVariants.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionVariants.java index 9a08418272c7..b8c7cb113c56 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionVariants.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionVariants.java @@ -178,7 +178,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int VERSION_FIELD_NUMBER = 1; - private volatile java.lang.Object version_; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; /** * * @@ -231,7 +233,7 @@ public com.google.protobuf.ByteString getVersionBytes() { } public static final int TRAFFIC_ALLOCATION_FIELD_NUMBER = 2; - private float trafficAllocation_; + private float trafficAllocation_ = 0F; /** * * @@ -250,7 +252,7 @@ public float getTrafficAllocation() { } public static final int IS_CONTROL_GROUP_FIELD_NUMBER = 3; - private boolean isControlGroup_; + private boolean isControlGroup_ = false; /** * * @@ -486,12 +488,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; version_ = ""; - trafficAllocation_ = 0F; - isControlGroup_ = false; - return this; } @@ -520,13 +520,27 @@ public com.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant build() { public com.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant result = new com.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant(this); - result.version_ = version_; - result.trafficAllocation_ = trafficAllocation_; - result.isControlGroup_ = isControlGroup_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.VersionVariants.Variant result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.trafficAllocation_ = trafficAllocation_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.isControlGroup_ = isControlGroup_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -579,6 +593,7 @@ public Builder mergeFrom( return this; if (!other.getVersion().isEmpty()) { version_ = other.version_; + bitField0_ |= 0x00000001; onChanged(); } if (other.getTrafficAllocation() != 0F) { @@ -616,19 +631,19 @@ public Builder mergeFrom( case 10: { version_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 21: { trafficAllocation_ = input.readFloat(); - + bitField0_ |= 0x00000002; break; } // case 21 case 24: { isControlGroup_ = input.readBool(); - + bitField0_ |= 0x00000004; break; } // case 24 default: @@ -648,6 +663,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object version_ = ""; /** * @@ -715,8 +732,8 @@ public Builder setVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - version_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -734,8 +751,8 @@ public Builder setVersion(java.lang.String value) { * @return This builder for chaining. */ public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -758,8 +775,8 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - version_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -797,6 +814,7 @@ public float getTrafficAllocation() { public Builder setTrafficAllocation(float value) { trafficAllocation_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -813,7 +831,7 @@ public Builder setTrafficAllocation(float value) { * @return This builder for chaining. */ public Builder clearTrafficAllocation() { - + bitField0_ = (bitField0_ & ~0x00000002); trafficAllocation_ = 0F; onChanged(); return this; @@ -850,6 +868,7 @@ public boolean getIsControlGroup() { public Builder setIsControlGroup(boolean value) { isControlGroup_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -865,7 +884,7 @@ public Builder setIsControlGroup(boolean value) { * @return This builder for chaining. */ public Builder clearIsControlGroup() { - + bitField0_ = (bitField0_ & ~0x00000004); isControlGroup_ = false; onChanged(); return this; @@ -939,6 +958,8 @@ public com.google.protobuf.Parser getParserForType() { } public static final int VARIANTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List variants_; /** * @@ -1210,6 +1231,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (variantsBuilder_ == null) { variants_ = java.util.Collections.emptyList(); } else { @@ -1244,7 +1266,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.VersionVariants build() { public com.google.cloud.dialogflow.cx.v3beta1.VersionVariants buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.VersionVariants result = new com.google.cloud.dialogflow.cx.v3beta1.VersionVariants(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.VersionVariants result) { if (variantsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { variants_ = java.util.Collections.unmodifiableList(variants_); @@ -1254,8 +1285,10 @@ public com.google.cloud.dialogflow.cx.v3beta1.VersionVariants buildPartial() { } else { result.variants_ = variantsBuilder_.build(); } - onBuilt(); - return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.VersionVariants result) { + int from_bitField0_ = bitField0_; } @java.lang.Override diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VoiceSelectionParams.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VoiceSelectionParams.java index 867b93fa5bef..0aa0224badaf 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VoiceSelectionParams.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VoiceSelectionParams.java @@ -69,7 +69,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -126,7 +128,7 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int SSML_GENDER_FIELD_NUMBER = 2; - private int ssmlGender_; + private int ssmlGender_ = 0; /** * * @@ -165,9 +167,8 @@ public int getSsmlGenderValue() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender getSsmlGender() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender result = - com.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender.valueOf(ssmlGender_); + com.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender.forNumber(ssmlGender_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender.UNRECOGNIZED : result; @@ -384,10 +385,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - ssmlGender_ = 0; - return this; } @@ -415,12 +415,23 @@ public com.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams build() { public com.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams result = new com.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams(this); - result.name_ = name_; - result.ssmlGender_ = ssmlGender_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ssmlGender_ = ssmlGender_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -469,6 +480,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.VoiceSelectionPa return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (other.ssmlGender_ != 0) { @@ -503,13 +515,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 16: { ssmlGender_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -529,6 +541,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -602,8 +616,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -623,8 +637,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -649,8 +663,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -694,8 +708,8 @@ public int getSsmlGenderValue() { * @return This builder for chaining. */ public Builder setSsmlGenderValue(int value) { - ssmlGender_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -717,9 +731,8 @@ public Builder setSsmlGenderValue(int value) { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender getSsmlGender() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender result = - com.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender.valueOf(ssmlGender_); + com.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender.forNumber(ssmlGender_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGender.UNRECOGNIZED : result; @@ -745,7 +758,7 @@ public Builder setSsmlGender(com.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGen if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; ssmlGender_ = value.getNumber(); onChanged(); return this; @@ -767,7 +780,7 @@ public Builder setSsmlGender(com.google.cloud.dialogflow.cx.v3beta1.SsmlVoiceGen * @return This builder for chaining. */ public Builder clearSsmlGender() { - + bitField0_ = (bitField0_ & ~0x00000002); ssmlGender_ = 0; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Webhook.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Webhook.java index dea16109356f..191eb1292407 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Webhook.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/Webhook.java @@ -211,7 +211,6 @@ public interface GenericWebServiceOrBuilder * * map<string, string> request_headers = 4; */ - /* nullable */ java.lang.String getRequestHeadersOrDefault( java.lang.String key, @@ -364,7 +363,9 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { } public static final int URI_FIELD_NUMBER = 1; - private volatile java.lang.Object uri_; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; /** * * @@ -415,7 +416,9 @@ public com.google.protobuf.ByteString getUriBytes() { } public static final int USERNAME_FIELD_NUMBER = 2; - private volatile java.lang.Object username_; + + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; /** * * @@ -470,7 +473,9 @@ public com.google.protobuf.ByteString getUsernameBytes() { } public static final int PASSWORD_FIELD_NUMBER = 3; - private volatile java.lang.Object password_; + + @SuppressWarnings("serial") + private volatile java.lang.Object password_ = ""; /** * * @@ -537,6 +542,7 @@ private static final class RequestHeadersDefaultEntryHolder { ""); } + @SuppressWarnings("serial") private com.google.protobuf.MapField requestHeaders_; private com.google.protobuf.MapField @@ -599,8 +605,10 @@ public java.util.Map getRequestHeadersMap() * map<string, string> request_headers = 4; */ @java.lang.Override - public java.lang.String getRequestHeadersOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getRequestHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -630,6 +638,8 @@ public java.lang.String getRequestHeadersOrThrow(java.lang.String key) { } public static final int ALLOWED_CA_CERTS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") private java.util.List allowedCaCerts_; /** * @@ -983,15 +993,12 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; uri_ = ""; - username_ = ""; - password_ = ""; - internalGetMutableRequestHeaders().clear(); allowedCaCerts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -1021,21 +1028,41 @@ public com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService build() public com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService result = new com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService(this); - int from_bitField0_ = bitField0_; - result.uri_ = uri_; - result.username_ = username_; - result.password_ = password_; - result.requestHeaders_ = internalGetRequestHeaders(); - result.requestHeaders_.makeImmutable(); - if (((bitField0_ & 0x00000002) != 0)) { - allowedCaCerts_ = java.util.Collections.unmodifiableList(allowedCaCerts_); - bitField0_ = (bitField0_ & ~0x00000002); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } - result.allowedCaCerts_ = allowedCaCerts_; onBuilt(); return result; } + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService result) { + if (((bitField0_ & 0x00000010) != 0)) { + allowedCaCerts_ = java.util.Collections.unmodifiableList(allowedCaCerts_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.allowedCaCerts_ = allowedCaCerts_; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.username_ = username_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.password_ = password_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestHeaders_ = internalGetRequestHeaders(); + result.requestHeaders_.makeImmutable(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1089,21 +1116,25 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getUri().isEmpty()) { uri_ = other.uri_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getUsername().isEmpty()) { username_ = other.username_; + bitField0_ |= 0x00000002; onChanged(); } if (!other.getPassword().isEmpty()) { password_ = other.password_; + bitField0_ |= 0x00000004; onChanged(); } internalGetMutableRequestHeaders().mergeFrom(other.internalGetRequestHeaders()); + bitField0_ |= 0x00000008; if (!other.allowedCaCerts_.isEmpty()) { if (allowedCaCerts_.isEmpty()) { allowedCaCerts_ = other.allowedCaCerts_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureAllowedCaCertsIsMutable(); allowedCaCerts_.addAll(other.allowedCaCerts_); @@ -1139,19 +1170,19 @@ public Builder mergeFrom( case 10: { uri_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { username_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { password_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: @@ -1164,6 +1195,7 @@ public Builder mergeFrom( internalGetMutableRequestHeaders() .getMutableMap() .put(requestHeaders__.getKey(), requestHeaders__.getValue()); + bitField0_ |= 0x00000008; break; } // case 34 case 42: @@ -1256,8 +1288,8 @@ public Builder setUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - uri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1274,8 +1306,8 @@ public Builder setUri(java.lang.String value) { * @return This builder for chaining. */ public Builder clearUri() { - uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1297,8 +1329,8 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - uri_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1373,8 +1405,8 @@ public Builder setUsername(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - username_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1393,8 +1425,8 @@ public Builder setUsername(java.lang.String value) { */ @java.lang.Deprecated public Builder clearUsername() { - username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1418,8 +1450,8 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - username_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1494,8 +1526,8 @@ public Builder setPassword(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - password_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1514,8 +1546,8 @@ public Builder setPassword(java.lang.String value) { */ @java.lang.Deprecated public Builder clearPassword() { - password_ = getDefaultInstance().getPassword(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1539,8 +1571,8 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - password_ = value; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1558,8 +1590,6 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.MapField internalGetMutableRequestHeaders() { - onChanged(); - ; if (requestHeaders_ == null) { requestHeaders_ = com.google.protobuf.MapField.newMapField( @@ -1568,6 +1598,8 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (!requestHeaders_.isMutable()) { requestHeaders_ = requestHeaders_.copy(); } + bitField0_ |= 0x00000008; + onChanged(); return requestHeaders_; } @@ -1622,8 +1654,10 @@ public java.util.Map getRequestHeadersMap() * map<string, string> request_headers = 4; */ @java.lang.Override - public java.lang.String getRequestHeadersOrDefault( - java.lang.String key, java.lang.String defaultValue) { + public /* nullable */ java.lang.String getRequestHeadersOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } @@ -1655,6 +1689,7 @@ public java.lang.String getRequestHeadersOrThrow(java.lang.String key) { } public Builder clearRequestHeaders() { + bitField0_ = (bitField0_ & ~0x00000008); internalGetMutableRequestHeaders().getMutableMap().clear(); return this; } @@ -1678,6 +1713,7 @@ public Builder removeRequestHeaders(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableRequestHeaders() { + bitField0_ |= 0x00000008; return internalGetMutableRequestHeaders().getMutableMap(); } /** @@ -1697,8 +1733,8 @@ public Builder putRequestHeaders(java.lang.String key, java.lang.String value) { if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableRequestHeaders().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; return this; } /** @@ -1714,6 +1750,7 @@ public Builder putRequestHeaders(java.lang.String key, java.lang.String value) { public Builder putAllRequestHeaders( java.util.Map values) { internalGetMutableRequestHeaders().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; return this; } @@ -1721,10 +1758,10 @@ public Builder putAllRequestHeaders( java.util.Collections.emptyList(); private void ensureAllowedCaCertsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { allowedCaCerts_ = new java.util.ArrayList(allowedCaCerts_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; } } /** @@ -1750,7 +1787,7 @@ private void ensureAllowedCaCertsIsMutable() { * @return A list containing the allowedCaCerts. */ public java.util.List getAllowedCaCertsList() { - return ((bitField0_ & 0x00000002) != 0) + return ((bitField0_ & 0x00000010) != 0) ? java.util.Collections.unmodifiableList(allowedCaCerts_) : allowedCaCerts_; } @@ -1924,7 +1961,7 @@ public Builder addAllAllowedCaCerts( */ public Builder clearAllowedCaCerts() { allowedCaCerts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2130,7 +2167,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SERVICE_FIELD_NUMBER = 1; - private volatile java.lang.Object service_; + + @SuppressWarnings("serial") + private volatile java.lang.Object service_ = ""; /** * * @@ -2241,7 +2280,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService getGener @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebServiceOrBuilder getGenericWebServiceOrBuilder() { - return getGenericWebService(); + return genericWebService_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.getDefaultInstance() + : genericWebService_; } private byte memoizedIsInitialized = -1; @@ -2462,12 +2503,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; service_ = ""; - - if (genericWebServiceBuilder_ == null) { - genericWebService_ = null; - } else { - genericWebService_ = null; + genericWebService_ = null; + if (genericWebServiceBuilder_ != null) { + genericWebServiceBuilder_.dispose(); genericWebServiceBuilder_ = null; } return this; @@ -2500,16 +2540,27 @@ public com.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig bui public com.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig result = new com.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig(this); - result.service_ = service_; - if (genericWebServiceBuilder_ == null) { - result.genericWebService_ = genericWebService_; - } else { - result.genericWebService_ = genericWebServiceBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.Webhook.ServiceDirectoryConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.service_ = service_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.genericWebService_ = + genericWebServiceBuilder_ == null + ? genericWebService_ + : genericWebServiceBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2564,6 +2615,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getService().isEmpty()) { service_ = other.service_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasGenericWebService()) { @@ -2598,14 +2650,14 @@ public Builder mergeFrom( case 10: { service_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getGenericWebServiceFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -2625,6 +2677,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object service_ = ""; /** * @@ -2707,8 +2761,8 @@ public Builder setService(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - service_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2731,8 +2785,8 @@ public Builder setService(java.lang.String value) { * @return This builder for chaining. */ public Builder clearService() { - service_ = getDefaultInstance().getService(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2760,8 +2814,8 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - service_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2786,7 +2840,7 @@ public Builder setServiceBytes(com.google.protobuf.ByteString value) { * @return Whether the genericWebService field is set. */ public boolean hasGenericWebService() { - return genericWebServiceBuilder_ != null || genericWebService_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -2830,11 +2884,11 @@ public Builder setGenericWebService( throw new NullPointerException(); } genericWebService_ = value; - onChanged(); } else { genericWebServiceBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2853,11 +2907,11 @@ public Builder setGenericWebService( builderForValue) { if (genericWebServiceBuilder_ == null) { genericWebService_ = builderForValue.build(); - onChanged(); } else { genericWebServiceBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2874,20 +2928,20 @@ public Builder setGenericWebService( public Builder mergeGenericWebService( com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService value) { if (genericWebServiceBuilder_ == null) { - if (genericWebService_ != null) { - genericWebService_ = - com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.newBuilder( - genericWebService_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && genericWebService_ != null + && genericWebService_ + != com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService + .getDefaultInstance()) { + getGenericWebServiceBuilder().mergeFrom(value); } else { genericWebService_ = value; } - onChanged(); } else { genericWebServiceBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2902,14 +2956,13 @@ public Builder mergeGenericWebService( * */ public Builder clearGenericWebService() { - if (genericWebServiceBuilder_ == null) { - genericWebService_ = null; - onChanged(); - } else { - genericWebService_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + genericWebService_ = null; + if (genericWebServiceBuilder_ != null) { + genericWebServiceBuilder_.dispose(); genericWebServiceBuilder_ = null; } - + onChanged(); return this; } /** @@ -2925,7 +2978,7 @@ public Builder clearGenericWebService() { */ public com.google.cloud.dialogflow.cx.v3beta1.Webhook.GenericWebService.Builder getGenericWebServiceBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getGenericWebServiceFieldBuilder().getBuilder(); } @@ -3095,7 +3148,9 @@ public WebhookCase getWebhookCase() { } public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; /** * * @@ -3156,7 +3211,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -3369,11 +3426,11 @@ public com.google.protobuf.Duration getTimeout() { */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { - return getTimeout(); + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } public static final int DISABLED_FIELD_NUMBER = 5; - private boolean disabled_; + private boolean disabled_ = false; /** * * @@ -3663,24 +3720,21 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; name_ = ""; - displayName_ = ""; - if (genericWebServiceBuilder_ != null) { genericWebServiceBuilder_.clear(); } if (serviceDirectoryBuilder_ != null) { serviceDirectoryBuilder_.clear(); } - if (timeoutBuilder_ == null) { - timeout_ = null; - } else { - timeout_ = null; + timeout_ = null; + if (timeoutBuilder_ != null) { + timeoutBuilder_.dispose(); timeoutBuilder_ = null; } disabled_ = false; - webhookCase_ = 0; webhook_ = null; return this; @@ -3710,31 +3764,39 @@ public com.google.cloud.dialogflow.cx.v3beta1.Webhook build() { public com.google.cloud.dialogflow.cx.v3beta1.Webhook buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.Webhook result = new com.google.cloud.dialogflow.cx.v3beta1.Webhook(this); - result.name_ = name_; - result.displayName_ = displayName_; - if (webhookCase_ == 4) { - if (genericWebServiceBuilder_ == null) { - result.webhook_ = webhook_; - } else { - result.webhook_ = genericWebServiceBuilder_.build(); - } + if (bitField0_ != 0) { + buildPartial0(result); } - if (webhookCase_ == 7) { - if (serviceDirectoryBuilder_ == null) { - result.webhook_ = webhook_; - } else { - result.webhook_ = serviceDirectoryBuilder_.build(); - } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.Webhook result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; } - if (timeoutBuilder_ == null) { - result.timeout_ = timeout_; - } else { - result.timeout_ = timeoutBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.timeout_ = timeoutBuilder_ == null ? timeout_ : timeoutBuilder_.build(); } - result.disabled_ = disabled_; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.disabled_ = disabled_; + } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3beta1.Webhook result) { result.webhookCase_ = webhookCase_; - onBuilt(); - return result; + result.webhook_ = this.webhook_; + if (webhookCase_ == 4 && genericWebServiceBuilder_ != null) { + result.webhook_ = genericWebServiceBuilder_.build(); + } + if (webhookCase_ == 7 && serviceDirectoryBuilder_ != null) { + result.webhook_ = serviceDirectoryBuilder_.build(); + } } @java.lang.Override @@ -3784,10 +3846,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.Webhook other) { if (other == com.google.cloud.dialogflow.cx.v3beta1.Webhook.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } if (other.hasTimeout()) { @@ -3841,13 +3905,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 18 case 34: @@ -3860,13 +3924,13 @@ public Builder mergeFrom( case 40: { disabled_ = input.readBool(); - + bitField0_ |= 0x00000020; break; } // case 40 case 50: { input.readMessage(getTimeoutFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000010; break; } // case 50 case 58: @@ -3907,6 +3971,8 @@ public Builder clearWebhook() { return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -3986,8 +4052,8 @@ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4009,8 +4075,8 @@ public Builder setName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearName() { - name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -4037,8 +4103,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -4104,8 +4170,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4121,8 +4187,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -4143,8 +4209,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4374,7 +4440,6 @@ public Builder clearGenericWebService() { } webhookCase_ = 4; onChanged(); - ; return genericWebServiceBuilder_; } @@ -4625,7 +4690,6 @@ public Builder clearServiceDirectory() { } webhookCase_ = 7; onChanged(); - ; return serviceDirectoryBuilder_; } @@ -4649,7 +4713,7 @@ public Builder clearServiceDirectory() { * @return Whether the timeout field is set. */ public boolean hasTimeout() { - return timeoutBuilder_ != null || timeout_ != null; + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -4688,11 +4752,11 @@ public Builder setTimeout(com.google.protobuf.Duration value) { throw new NullPointerException(); } timeout_ = value; - onChanged(); } else { timeoutBuilder_.setMessage(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4709,11 +4773,11 @@ public Builder setTimeout(com.google.protobuf.Duration value) { public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) { if (timeoutBuilder_ == null) { timeout_ = builderForValue.build(); - onChanged(); } else { timeoutBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4729,17 +4793,18 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) */ public Builder mergeTimeout(com.google.protobuf.Duration value) { if (timeoutBuilder_ == null) { - if (timeout_ != null) { - timeout_ = - com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000010) != 0) + && timeout_ != null + && timeout_ != com.google.protobuf.Duration.getDefaultInstance()) { + getTimeoutBuilder().mergeFrom(value); } else { timeout_ = value; } - onChanged(); } else { timeoutBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000010; + onChanged(); return this; } /** @@ -4754,14 +4819,13 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { * .google.protobuf.Duration timeout = 6; */ public Builder clearTimeout() { - if (timeoutBuilder_ == null) { - timeout_ = null; - onChanged(); - } else { - timeout_ = null; + bitField0_ = (bitField0_ & ~0x00000010); + timeout_ = null; + if (timeoutBuilder_ != null) { + timeoutBuilder_.dispose(); timeoutBuilder_ = null; } - + onChanged(); return this; } /** @@ -4776,7 +4840,7 @@ public Builder clearTimeout() { * .google.protobuf.Duration timeout = 6; */ public com.google.protobuf.Duration.Builder getTimeoutBuilder() { - + bitField0_ |= 0x00000010; onChanged(); return getTimeoutFieldBuilder().getBuilder(); } @@ -4857,6 +4921,7 @@ public boolean getDisabled() { public Builder setDisabled(boolean value) { disabled_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4872,7 +4937,7 @@ public Builder setDisabled(boolean value) { * @return This builder for chaining. */ public Builder clearDisabled() { - + bitField0_ = (bitField0_ & ~0x00000020); disabled_ = false; onChanged(); return this; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequest.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequest.java index d80e95bfb160..d3df12541887 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequest.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookRequest.java @@ -164,7 +164,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int TAG_FIELD_NUMBER = 1; - private volatile java.lang.Object tag_; + + @SuppressWarnings("serial") + private volatile java.lang.Object tag_ = ""; /** * * @@ -427,8 +429,8 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; tag_ = ""; - return this; } @@ -459,11 +461,21 @@ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo bui public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo result = new com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo(this); - result.tag_ = tag_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tag_ = tag_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -518,6 +530,7 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getTag().isEmpty()) { tag_ = other.tag_; + bitField0_ |= 0x00000001; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -549,7 +562,7 @@ public Builder mergeFrom( case 10: { tag_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 default: @@ -569,6 +582,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object tag_ = ""; /** * @@ -648,8 +663,8 @@ public Builder setTag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tag_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -671,8 +686,8 @@ public Builder setTag(java.lang.String value) { * @return This builder for chaining. */ public Builder clearTag() { - tag_ = getDefaultInstance().getTag(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -699,8 +714,8 @@ public Builder setTagBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - tag_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -904,7 +919,6 @@ public interface IntentInfoOrBuilder * map<string, .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> parameters = 2; * */ - /* nullable */ com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue getParametersOrDefault( @@ -1125,7 +1139,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int ORIGINAL_VALUE_FIELD_NUMBER = 1; - private volatile java.lang.Object originalValue_; + + @SuppressWarnings("serial") + private volatile java.lang.Object originalValue_ = ""; /** * * @@ -1221,7 +1237,9 @@ public com.google.protobuf.Value getResolvedValue() { */ @java.lang.Override public com.google.protobuf.ValueOrBuilder getResolvedValueOrBuilder() { - return getResolvedValue(); + return resolvedValue_ == null + ? com.google.protobuf.Value.getDefaultInstance() + : resolvedValue_; } private byte memoizedIsInitialized = -1; @@ -1470,12 +1488,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; originalValue_ = ""; - - if (resolvedValueBuilder_ == null) { - resolvedValue_ = null; - } else { - resolvedValue_ = null; + resolvedValue_ = null; + if (resolvedValueBuilder_ != null) { + resolvedValueBuilder_.dispose(); resolvedValueBuilder_ = null; } return this; @@ -1512,16 +1529,26 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { result = new com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo .IntentParameterValue(this); - result.originalValue_ = originalValue_; - if (resolvedValueBuilder_ == null) { - result.resolvedValue_ = resolvedValue_; - } else { - result.resolvedValue_ = resolvedValueBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.originalValue_ = originalValue_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.resolvedValue_ = + resolvedValueBuilder_ == null ? resolvedValue_ : resolvedValueBuilder_.build(); + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -1581,6 +1608,7 @@ public Builder mergeFrom( .IntentParameterValue.getDefaultInstance()) return this; if (!other.getOriginalValue().isEmpty()) { originalValue_ = other.originalValue_; + bitField0_ |= 0x00000001; onChanged(); } if (other.hasResolvedValue()) { @@ -1615,14 +1643,14 @@ public Builder mergeFrom( case 10: { originalValue_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getResolvedValueFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 default: @@ -1642,6 +1670,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object originalValue_ = ""; /** * @@ -1703,8 +1733,8 @@ public Builder setOriginalValue(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - originalValue_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1720,8 +1750,8 @@ public Builder setOriginalValue(java.lang.String value) { * @return This builder for chaining. */ public Builder clearOriginalValue() { - originalValue_ = getDefaultInstance().getOriginalValue(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1742,8 +1772,8 @@ public Builder setOriginalValueBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - originalValue_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1767,7 +1797,7 @@ public Builder setOriginalValueBytes(com.google.protobuf.ByteString value) { * @return Whether the resolvedValue field is set. */ public boolean hasResolvedValue() { - return resolvedValueBuilder_ != null || resolvedValue_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -1806,11 +1836,11 @@ public Builder setResolvedValue(com.google.protobuf.Value value) { throw new NullPointerException(); } resolvedValue_ = value; - onChanged(); } else { resolvedValueBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1826,11 +1856,11 @@ public Builder setResolvedValue(com.google.protobuf.Value value) { public Builder setResolvedValue(com.google.protobuf.Value.Builder builderForValue) { if (resolvedValueBuilder_ == null) { resolvedValue_ = builderForValue.build(); - onChanged(); } else { resolvedValueBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1845,19 +1875,18 @@ public Builder setResolvedValue(com.google.protobuf.Value.Builder builderForValu */ public Builder mergeResolvedValue(com.google.protobuf.Value value) { if (resolvedValueBuilder_ == null) { - if (resolvedValue_ != null) { - resolvedValue_ = - com.google.protobuf.Value.newBuilder(resolvedValue_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && resolvedValue_ != null + && resolvedValue_ != com.google.protobuf.Value.getDefaultInstance()) { + getResolvedValueBuilder().mergeFrom(value); } else { resolvedValue_ = value; } - onChanged(); } else { resolvedValueBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -1871,14 +1900,13 @@ public Builder mergeResolvedValue(com.google.protobuf.Value value) { * .google.protobuf.Value resolved_value = 2; */ public Builder clearResolvedValue() { - if (resolvedValueBuilder_ == null) { - resolvedValue_ = null; - onChanged(); - } else { - resolvedValue_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + resolvedValue_ = null; + if (resolvedValueBuilder_ != null) { + resolvedValueBuilder_.dispose(); resolvedValueBuilder_ = null; } - + onChanged(); return this; } /** @@ -1892,7 +1920,7 @@ public Builder clearResolvedValue() { * .google.protobuf.Value resolved_value = 2; */ public com.google.protobuf.Value.Builder getResolvedValueBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getResolvedValueFieldBuilder().getBuilder(); } @@ -2014,7 +2042,9 @@ public com.google.protobuf.Parser getParserForType() { } public static final int LAST_MATCHED_INTENT_FIELD_NUMBER = 1; - private volatile java.lang.Object lastMatchedIntent_; + + @SuppressWarnings("serial") + private volatile java.lang.Object lastMatchedIntent_ = ""; /** * * @@ -2069,7 +2099,9 @@ public com.google.protobuf.ByteString getLastMatchedIntentBytes() { } public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object displayName_; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; /** * * @@ -2140,6 +2172,7 @@ private static final class ParametersDefaultEntryHolder { .IntentParameterValue.getDefaultInstance()); } + @SuppressWarnings("serial") private com.google.protobuf.MapField< java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> @@ -2225,9 +2258,11 @@ public boolean containsParameters(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + public /* nullable */ com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + .IntentParameterValue getParametersOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue defaultValue) { if (key == null) { @@ -2270,7 +2305,7 @@ public boolean containsParameters(java.lang.String key) { } public static final int CONFIDENCE_FIELD_NUMBER = 4; - private float confidence_; + private float confidence_ = 0F; /** * * @@ -2552,13 +2587,11 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; lastMatchedIntent_ = ""; - displayName_ = ""; - internalGetMutableParameters().clear(); confidence_ = 0F; - return this; } @@ -2588,16 +2621,31 @@ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo build() public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo result = new com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo(this); - int from_bitField0_ = bitField0_; - result.lastMatchedIntent_ = lastMatchedIntent_; - result.displayName_ = displayName_; - result.parameters_ = internalGetParameters(); - result.parameters_.makeImmutable(); - result.confidence_ = confidence_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.lastMatchedIntent_ = lastMatchedIntent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parameters_ = internalGetParameters(); + result.parameters_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.confidence_ = confidence_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -2651,13 +2699,16 @@ public Builder mergeFrom( .getDefaultInstance()) return this; if (!other.getLastMatchedIntent().isEmpty()) { lastMatchedIntent_ = other.lastMatchedIntent_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; + bitField0_ |= 0x00000002; onChanged(); } internalGetMutableParameters().mergeFrom(other.internalGetParameters()); + bitField0_ |= 0x00000004; if (other.getConfidence() != 0F) { setConfidence(other.getConfidence()); } @@ -2690,7 +2741,7 @@ public Builder mergeFrom( case 10: { lastMatchedIntent_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: @@ -2706,18 +2757,19 @@ public Builder mergeFrom( internalGetMutableParameters() .getMutableMap() .put(parameters__.getKey(), parameters__.getValue()); + bitField0_ |= 0x00000004; break; } // case 18 case 26: { displayName_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000002; break; } // case 26 case 37: { confidence_ = input.readFloat(); - + bitField0_ |= 0x00000008; break; } // case 37 default: @@ -2809,8 +2861,8 @@ public Builder setLastMatchedIntent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - lastMatchedIntent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2829,8 +2881,8 @@ public Builder setLastMatchedIntent(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLastMatchedIntent() { - lastMatchedIntent_ = getDefaultInstance().getLastMatchedIntent(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2854,8 +2906,8 @@ public Builder setLastMatchedIntentBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - lastMatchedIntent_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2924,8 +2976,8 @@ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2942,8 +2994,8 @@ public Builder setDisplayName(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -2965,8 +3017,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - displayName_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -2991,8 +3043,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> internalGetMutableParameters() { - onChanged(); - ; if (parameters_ == null) { parameters_ = com.google.protobuf.MapField.newMapField(ParametersDefaultEntryHolder.defaultEntry); @@ -3000,6 +3050,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (!parameters_.isMutable()) { parameters_ = parameters_.copy(); } + bitField0_ |= 0x00000004; + onChanged(); return parameters_; } @@ -3072,9 +3124,11 @@ public boolean containsParameters(java.lang.String key) { * */ @java.lang.Override - public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue + public /* nullable */ com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + .IntentParameterValue getParametersOrDefault( java.lang.String key, + /* nullable */ com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue defaultValue) { if (key == null) { @@ -3119,6 +3173,7 @@ public boolean containsParameters(java.lang.String key) { } public Builder clearParameters() { + bitField0_ = (bitField0_ & ~0x00000004); internalGetMutableParameters().getMutableMap().clear(); return this; } @@ -3149,6 +3204,7 @@ public Builder removeParameters(java.lang.String key) { java.lang.String, com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.IntentParameterValue> getMutableParameters() { + bitField0_ |= 0x00000004; return internalGetMutableParameters().getMutableMap(); } /** @@ -3175,8 +3231,8 @@ public Builder putParameters( if (value == null) { throw new NullPointerException("map value"); } - internalGetMutableParameters().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; return this; } /** @@ -3200,6 +3256,7 @@ public Builder putAllParameters( .IntentParameterValue> values) { internalGetMutableParameters().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; return this; } @@ -3236,6 +3293,7 @@ public float getConfidence() { public Builder setConfidence(float value) { confidence_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3252,7 +3310,7 @@ public Builder setConfidence(float value) { * @return This builder for chaining. */ public Builder clearConfidence() { - + bitField0_ = (bitField0_ & ~0x00000008); confidence_ = 0F; onChanged(); return this; @@ -3408,7 +3466,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } public static final int SCORE_FIELD_NUMBER = 1; - private float score_; + private float score_ = 0F; /** * * @@ -3427,7 +3485,7 @@ public float getScore() { } public static final int MAGNITUDE_FIELD_NUMBER = 2; - private float magnitude_; + private float magnitude_ = 0F; /** * * @@ -3668,10 +3726,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; score_ = 0F; - magnitude_ = 0F; - return this; } @@ -3703,12 +3760,24 @@ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisRe buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult result = new com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult(this); - result.score_ = score_; - result.magnitude_ = magnitude_; + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.score_ = score_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.magnitude_ = magnitude_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -3798,13 +3867,13 @@ public Builder mergeFrom( case 13: { score_ = input.readFloat(); - + bitField0_ |= 0x00000001; break; } // case 13 case 21: { magnitude_ = input.readFloat(); - + bitField0_ |= 0x00000002; break; } // case 21 default: @@ -3824,6 +3893,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private float score_; /** * @@ -3857,6 +3928,7 @@ public float getScore() { public Builder setScore(float value) { score_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3873,7 +3945,7 @@ public Builder setScore(float value) { * @return This builder for chaining. */ public Builder clearScore() { - + bitField0_ = (bitField0_ & ~0x00000001); score_ = 0F; onChanged(); return this; @@ -3914,6 +3986,7 @@ public float getMagnitude() { public Builder setMagnitude(float value) { magnitude_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3931,7 +4004,7 @@ public Builder setMagnitude(float value) { * @return This builder for chaining. */ public Builder clearMagnitude() { - + bitField0_ = (bitField0_ & ~0x00000002); magnitude_ = 0F; onChanged(); return this; @@ -4060,7 +4133,9 @@ public QueryCase getQueryCase() { } public static final int DETECT_INTENT_RESPONSE_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object detectIntentResponseId_; + + @SuppressWarnings("serial") + private volatile java.lang.Object detectIntentResponseId_ = ""; /** * * @@ -4414,7 +4489,9 @@ public com.google.protobuf.ByteString getTriggerEventBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 15; - private volatile java.lang.Object languageCode_; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; /** * * @@ -4517,7 +4594,9 @@ public boolean hasFulfillmentInfo() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfoOrBuilder getFulfillmentInfoOrBuilder() { - return getFulfillmentInfo(); + return fulfillmentInfo_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.getDefaultInstance() + : fulfillmentInfo_; } public static final int INTENT_INFO_FIELD_NUMBER = 3; @@ -4566,7 +4645,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo getInten @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfoOrBuilder getIntentInfoOrBuilder() { - return getIntentInfo(); + return intentInfo_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.getDefaultInstance() + : intentInfo_; } public static final int PAGE_INFO_FIELD_NUMBER = 4; @@ -4614,7 +4695,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.PageInfo getPageInfo() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.PageInfoOrBuilder getPageInfoOrBuilder() { - return getPageInfo(); + return pageInfo_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.PageInfo.getDefaultInstance() + : pageInfo_; } public static final int SESSION_INFO_FIELD_NUMBER = 5; @@ -4662,10 +4745,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.SessionInfo getSessionInfo() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SessionInfoOrBuilder getSessionInfoOrBuilder() { - return getSessionInfo(); + return sessionInfo_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.SessionInfo.getDefaultInstance() + : sessionInfo_; } public static final int MESSAGES_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") private java.util.List messages_; /** * @@ -4791,7 +4878,7 @@ public com.google.protobuf.Struct getPayload() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { - return getPayload(); + return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_; } public static final int SENTIMENT_ANALYSIS_RESULT_FIELD_NUMBER = 9; @@ -4852,7 +4939,10 @@ public boolean hasSentimentAnalysisResult() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder() { - return getSentimentAnalysisResult(); + return sentimentAnalysisResult_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult + .getDefaultInstance() + : sentimentAnalysisResult_; } private byte memoizedIsInitialized = -1; @@ -5222,32 +5312,27 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; detectIntentResponseId_ = ""; - languageCode_ = ""; - - if (fulfillmentInfoBuilder_ == null) { - fulfillmentInfo_ = null; - } else { - fulfillmentInfo_ = null; + fulfillmentInfo_ = null; + if (fulfillmentInfoBuilder_ != null) { + fulfillmentInfoBuilder_.dispose(); fulfillmentInfoBuilder_ = null; } - if (intentInfoBuilder_ == null) { - intentInfo_ = null; - } else { - intentInfo_ = null; + intentInfo_ = null; + if (intentInfoBuilder_ != null) { + intentInfoBuilder_.dispose(); intentInfoBuilder_ = null; } - if (pageInfoBuilder_ == null) { - pageInfo_ = null; - } else { - pageInfo_ = null; + pageInfo_ = null; + if (pageInfoBuilder_ != null) { + pageInfoBuilder_.dispose(); pageInfoBuilder_ = null; } - if (sessionInfoBuilder_ == null) { - sessionInfo_ = null; - } else { - sessionInfo_ = null; + sessionInfo_ = null; + if (sessionInfoBuilder_ != null) { + sessionInfoBuilder_.dispose(); sessionInfoBuilder_ = null; } if (messagesBuilder_ == null) { @@ -5256,17 +5341,15 @@ public Builder clear() { messages_ = null; messagesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (payloadBuilder_ == null) { - payload_ = null; - } else { - payload_ = null; + bitField0_ = (bitField0_ & ~0x00000400); + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); payloadBuilder_ = null; } - if (sentimentAnalysisResultBuilder_ == null) { - sentimentAnalysisResult_ = null; - } else { - sentimentAnalysisResult_ = null; + sentimentAnalysisResult_ = null; + if (sentimentAnalysisResultBuilder_ != null) { + sentimentAnalysisResultBuilder_.dispose(); sentimentAnalysisResultBuilder_ = null; } queryCase_ = 0; @@ -5298,63 +5381,64 @@ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest build() { public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest result = new com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest(this); - int from_bitField0_ = bitField0_; - result.detectIntentResponseId_ = detectIntentResponseId_; - if (queryCase_ == 10) { - result.query_ = query_; - } - if (queryCase_ == 11) { - result.query_ = query_; - } - if (queryCase_ == 12) { - result.query_ = query_; - } - if (queryCase_ == 14) { - result.query_ = query_; - } - result.languageCode_ = languageCode_; - if (fulfillmentInfoBuilder_ == null) { - result.fulfillmentInfo_ = fulfillmentInfo_; - } else { - result.fulfillmentInfo_ = fulfillmentInfoBuilder_.build(); - } - if (intentInfoBuilder_ == null) { - result.intentInfo_ = intentInfo_; - } else { - result.intentInfo_ = intentInfoBuilder_.build(); - } - if (pageInfoBuilder_ == null) { - result.pageInfo_ = pageInfo_; - } else { - result.pageInfo_ = pageInfoBuilder_.build(); - } - if (sessionInfoBuilder_ == null) { - result.sessionInfo_ = sessionInfo_; - } else { - result.sessionInfo_ = sessionInfoBuilder_.build(); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest result) { if (messagesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); } result.messages_ = messages_; } else { result.messages_ = messagesBuilder_.build(); } - if (payloadBuilder_ == null) { - result.payload_ = payload_; - } else { - result.payload_ = payloadBuilder_.build(); + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.detectIntentResponseId_ = detectIntentResponseId_; } - if (sentimentAnalysisResultBuilder_ == null) { - result.sentimentAnalysisResult_ = sentimentAnalysisResult_; - } else { - result.sentimentAnalysisResult_ = sentimentAnalysisResultBuilder_.build(); + if (((from_bitField0_ & 0x00000020) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.fulfillmentInfo_ = + fulfillmentInfoBuilder_ == null ? fulfillmentInfo_ : fulfillmentInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.intentInfo_ = intentInfoBuilder_ == null ? intentInfo_ : intentInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.pageInfo_ = pageInfoBuilder_ == null ? pageInfo_ : pageInfoBuilder_.build(); } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.sessionInfo_ = + sessionInfoBuilder_ == null ? sessionInfo_ : sessionInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.payload_ = payloadBuilder_ == null ? payload_ : payloadBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.sentimentAnalysisResult_ = + sentimentAnalysisResultBuilder_ == null + ? sentimentAnalysisResult_ + : sentimentAnalysisResultBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest result) { result.queryCase_ = queryCase_; - onBuilt(); - return result; + result.query_ = this.query_; } @java.lang.Override @@ -5405,10 +5489,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest o return this; if (!other.getDetectIntentResponseId().isEmpty()) { detectIntentResponseId_ = other.detectIntentResponseId_; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasFulfillmentInfo()) { @@ -5427,7 +5513,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest o if (!other.messages_.isEmpty()) { if (messages_.isEmpty()) { messages_ = other.messages_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensureMessagesIsMutable(); messages_.addAll(other.messages_); @@ -5440,7 +5526,7 @@ public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest o messagesBuilder_.dispose(); messagesBuilder_ = null; messages_ = other.messages_; - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); messagesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMessagesFieldBuilder() @@ -5519,31 +5605,31 @@ public Builder mergeFrom( case 10: { detectIntentResponseId_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000001; break; } // case 10 case 26: { input.readMessage(getIntentInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000080; break; } // case 26 case 34: { input.readMessage(getPageInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000100; break; } // case 34 case 42: { input.readMessage(getSessionInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000200; break; } // case 42 case 50: { input.readMessage(getFulfillmentInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000040; break; } // case 50 case 58: @@ -5563,14 +5649,14 @@ public Builder mergeFrom( case 66: { input.readMessage(getPayloadFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000800; break; } // case 66 case 74: { input.readMessage( getSentimentAnalysisResultFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00001000; break; } // case 74 case 82: @@ -5604,7 +5690,7 @@ public Builder mergeFrom( case 122: { languageCode_ = input.readStringRequireUtf8(); - + bitField0_ |= 0x00000020; break; } // case 122 default: @@ -5707,8 +5793,8 @@ public Builder setDetectIntentResponseId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - detectIntentResponseId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -5726,8 +5812,8 @@ public Builder setDetectIntentResponseId(java.lang.String value) { * @return This builder for chaining. */ public Builder clearDetectIntentResponseId() { - detectIntentResponseId_ = getDefaultInstance().getDetectIntentResponseId(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -5750,8 +5836,8 @@ public Builder setDetectIntentResponseIdBytes(com.google.protobuf.ByteString val throw new NullPointerException(); } checkByteStringIsUtf8(value); - detectIntentResponseId_ = value; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -6398,8 +6484,8 @@ public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - languageCode_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -6416,8 +6502,8 @@ public Builder setLanguageCode(java.lang.String value) { * @return This builder for chaining. */ public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -6439,8 +6525,8 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - languageCode_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -6466,7 +6552,7 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { * @return Whether the fulfillmentInfo field is set. */ public boolean hasFulfillmentInfo() { - return fulfillmentInfoBuilder_ != null || fulfillmentInfo_ != null; + return ((bitField0_ & 0x00000040) != 0); } /** * @@ -6512,11 +6598,11 @@ public Builder setFulfillmentInfo( throw new NullPointerException(); } fulfillmentInfo_ = value; - onChanged(); } else { fulfillmentInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -6536,11 +6622,11 @@ public Builder setFulfillmentInfo( builderForValue) { if (fulfillmentInfoBuilder_ == null) { fulfillmentInfo_ = builderForValue.build(); - onChanged(); } else { fulfillmentInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -6558,20 +6644,20 @@ public Builder setFulfillmentInfo( public Builder mergeFulfillmentInfo( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo value) { if (fulfillmentInfoBuilder_ == null) { - if (fulfillmentInfo_ != null) { - fulfillmentInfo_ = - com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.newBuilder( - fulfillmentInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000040) != 0) + && fulfillmentInfo_ != null + && fulfillmentInfo_ + != com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo + .getDefaultInstance()) { + getFulfillmentInfoBuilder().mergeFrom(value); } else { fulfillmentInfo_ = value; } - onChanged(); } else { fulfillmentInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000040; + onChanged(); return this; } /** @@ -6587,14 +6673,13 @@ public Builder mergeFulfillmentInfo( * */ public Builder clearFulfillmentInfo() { - if (fulfillmentInfoBuilder_ == null) { - fulfillmentInfo_ = null; - onChanged(); - } else { - fulfillmentInfo_ = null; + bitField0_ = (bitField0_ & ~0x00000040); + fulfillmentInfo_ = null; + if (fulfillmentInfoBuilder_ != null) { + fulfillmentInfoBuilder_.dispose(); fulfillmentInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -6611,7 +6696,7 @@ public Builder clearFulfillmentInfo() { */ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.FulfillmentInfo.Builder getFulfillmentInfoBuilder() { - + bitField0_ |= 0x00000040; onChanged(); return getFulfillmentInfoFieldBuilder().getBuilder(); } @@ -6685,7 +6770,7 @@ public Builder clearFulfillmentInfo() { * @return Whether the intentInfo field is set. */ public boolean hasIntentInfo() { - return intentInfoBuilder_ != null || intentInfo_ != null; + return ((bitField0_ & 0x00000080) != 0); } /** * @@ -6723,11 +6808,11 @@ public Builder setIntentInfo( throw new NullPointerException(); } intentInfo_ = value; - onChanged(); } else { intentInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -6743,11 +6828,11 @@ public Builder setIntentInfo( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.Builder builderForValue) { if (intentInfoBuilder_ == null) { intentInfo_ = builderForValue.build(); - onChanged(); } else { intentInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -6762,20 +6847,20 @@ public Builder setIntentInfo( public Builder mergeIntentInfo( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo value) { if (intentInfoBuilder_ == null) { - if (intentInfo_ != null) { - intentInfo_ = - com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.newBuilder( - intentInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000080) != 0) + && intentInfo_ != null + && intentInfo_ + != com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo + .getDefaultInstance()) { + getIntentInfoBuilder().mergeFrom(value); } else { intentInfo_ = value; } - onChanged(); } else { intentInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000080; + onChanged(); return this; } /** @@ -6788,14 +6873,13 @@ public Builder mergeIntentInfo( * .google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo intent_info = 3; */ public Builder clearIntentInfo() { - if (intentInfoBuilder_ == null) { - intentInfo_ = null; - onChanged(); - } else { - intentInfo_ = null; + bitField0_ = (bitField0_ & ~0x00000080); + intentInfo_ = null; + if (intentInfoBuilder_ != null) { + intentInfoBuilder_.dispose(); intentInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -6809,7 +6893,7 @@ public Builder clearIntentInfo() { */ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.IntentInfo.Builder getIntentInfoBuilder() { - + bitField0_ |= 0x00000080; onChanged(); return getIntentInfoFieldBuilder().getBuilder(); } @@ -6876,7 +6960,7 @@ public Builder clearIntentInfo() { * @return Whether the pageInfo field is set. */ public boolean hasPageInfo() { - return pageInfoBuilder_ != null || pageInfo_ != null; + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -6913,11 +6997,11 @@ public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3beta1.PageInfo value throw new NullPointerException(); } pageInfo_ = value; - onChanged(); } else { pageInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -6933,11 +7017,11 @@ public Builder setPageInfo( com.google.cloud.dialogflow.cx.v3beta1.PageInfo.Builder builderForValue) { if (pageInfoBuilder_ == null) { pageInfo_ = builderForValue.build(); - onChanged(); } else { pageInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -6951,19 +7035,18 @@ public Builder setPageInfo( */ public Builder mergePageInfo(com.google.cloud.dialogflow.cx.v3beta1.PageInfo value) { if (pageInfoBuilder_ == null) { - if (pageInfo_ != null) { - pageInfo_ = - com.google.cloud.dialogflow.cx.v3beta1.PageInfo.newBuilder(pageInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000100) != 0) + && pageInfo_ != null + && pageInfo_ != com.google.cloud.dialogflow.cx.v3beta1.PageInfo.getDefaultInstance()) { + getPageInfoBuilder().mergeFrom(value); } else { pageInfo_ = value; } - onChanged(); } else { pageInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000100; + onChanged(); return this; } /** @@ -6976,14 +7059,13 @@ public Builder mergePageInfo(com.google.cloud.dialogflow.cx.v3beta1.PageInfo val * .google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4; */ public Builder clearPageInfo() { - if (pageInfoBuilder_ == null) { - pageInfo_ = null; - onChanged(); - } else { - pageInfo_ = null; + bitField0_ = (bitField0_ & ~0x00000100); + pageInfo_ = null; + if (pageInfoBuilder_ != null) { + pageInfoBuilder_.dispose(); pageInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -6996,7 +7078,7 @@ public Builder clearPageInfo() { * .google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 4; */ public com.google.cloud.dialogflow.cx.v3beta1.PageInfo.Builder getPageInfoBuilder() { - + bitField0_ |= 0x00000100; onChanged(); return getPageInfoFieldBuilder().getBuilder(); } @@ -7062,7 +7144,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.PageInfoOrBuilder getPageInfoOrBui * @return Whether the sessionInfo field is set. */ public boolean hasSessionInfo() { - return sessionInfoBuilder_ != null || sessionInfo_ != null; + return ((bitField0_ & 0x00000200) != 0); } /** * @@ -7099,11 +7181,11 @@ public Builder setSessionInfo(com.google.cloud.dialogflow.cx.v3beta1.SessionInfo throw new NullPointerException(); } sessionInfo_ = value; - onChanged(); } else { sessionInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -7119,11 +7201,11 @@ public Builder setSessionInfo( com.google.cloud.dialogflow.cx.v3beta1.SessionInfo.Builder builderForValue) { if (sessionInfoBuilder_ == null) { sessionInfo_ = builderForValue.build(); - onChanged(); } else { sessionInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -7137,19 +7219,19 @@ public Builder setSessionInfo( */ public Builder mergeSessionInfo(com.google.cloud.dialogflow.cx.v3beta1.SessionInfo value) { if (sessionInfoBuilder_ == null) { - if (sessionInfo_ != null) { - sessionInfo_ = - com.google.cloud.dialogflow.cx.v3beta1.SessionInfo.newBuilder(sessionInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000200) != 0) + && sessionInfo_ != null + && sessionInfo_ + != com.google.cloud.dialogflow.cx.v3beta1.SessionInfo.getDefaultInstance()) { + getSessionInfoBuilder().mergeFrom(value); } else { sessionInfo_ = value; } - onChanged(); } else { sessionInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000200; + onChanged(); return this; } /** @@ -7162,14 +7244,13 @@ public Builder mergeSessionInfo(com.google.cloud.dialogflow.cx.v3beta1.SessionIn * .google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5; */ public Builder clearSessionInfo() { - if (sessionInfoBuilder_ == null) { - sessionInfo_ = null; - onChanged(); - } else { - sessionInfo_ = null; + bitField0_ = (bitField0_ & ~0x00000200); + sessionInfo_ = null; + if (sessionInfoBuilder_ != null) { + sessionInfoBuilder_.dispose(); sessionInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -7182,7 +7263,7 @@ public Builder clearSessionInfo() { * .google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 5; */ public com.google.cloud.dialogflow.cx.v3beta1.SessionInfo.Builder getSessionInfoBuilder() { - + bitField0_ |= 0x00000200; onChanged(); return getSessionInfoFieldBuilder().getBuilder(); } @@ -7234,11 +7315,11 @@ public com.google.cloud.dialogflow.cx.v3beta1.SessionInfoOrBuilder getSessionInf java.util.Collections.emptyList(); private void ensureMessagesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { + if (!((bitField0_ & 0x00000400) != 0)) { messages_ = new java.util.ArrayList( messages_); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000400; } } @@ -7480,7 +7561,7 @@ public Builder addAllMessages( public Builder clearMessages() { if (messagesBuilder_ == null) { messages_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { messagesBuilder_.clear(); @@ -7620,7 +7701,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Builder addMessage com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage, com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Builder, com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageOrBuilder>( - messages_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + messages_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); messages_ = null; } return messagesBuilder_; @@ -7645,7 +7726,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Builder addMessage * @return Whether the payload field is set. */ public boolean hasPayload() { - return payloadBuilder_ != null || payload_ != null; + return ((bitField0_ & 0x00000800) != 0); } /** * @@ -7682,11 +7763,11 @@ public Builder setPayload(com.google.protobuf.Struct value) { throw new NullPointerException(); } payload_ = value; - onChanged(); } else { payloadBuilder_.setMessage(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -7702,11 +7783,11 @@ public Builder setPayload(com.google.protobuf.Struct value) { public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); - onChanged(); } else { payloadBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -7721,17 +7802,18 @@ public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) { */ public Builder mergePayload(com.google.protobuf.Struct value) { if (payloadBuilder_ == null) { - if (payload_ != null) { - payload_ = - com.google.protobuf.Struct.newBuilder(payload_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000800) != 0) + && payload_ != null + && payload_ != com.google.protobuf.Struct.getDefaultInstance()) { + getPayloadBuilder().mergeFrom(value); } else { payload_ = value; } - onChanged(); } else { payloadBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000800; + onChanged(); return this; } /** @@ -7745,14 +7827,13 @@ public Builder mergePayload(com.google.protobuf.Struct value) { * .google.protobuf.Struct payload = 8; */ public Builder clearPayload() { - if (payloadBuilder_ == null) { - payload_ = null; - onChanged(); - } else { - payload_ = null; + bitField0_ = (bitField0_ & ~0x00000800); + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); payloadBuilder_ = null; } - + onChanged(); return this; } /** @@ -7766,7 +7847,7 @@ public Builder clearPayload() { * .google.protobuf.Struct payload = 8; */ public com.google.protobuf.Struct.Builder getPayloadBuilder() { - + bitField0_ |= 0x00000800; onChanged(); return getPayloadFieldBuilder().getBuilder(); } @@ -7836,7 +7917,7 @@ public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { * @return Whether the sentimentAnalysisResult field is set. */ public boolean hasSentimentAnalysisResult() { - return sentimentAnalysisResultBuilder_ != null || sentimentAnalysisResult_ != null; + return ((bitField0_ & 0x00001000) != 0); } /** * @@ -7882,11 +7963,11 @@ public Builder setSentimentAnalysisResult( throw new NullPointerException(); } sentimentAnalysisResult_ = value; - onChanged(); } else { sentimentAnalysisResultBuilder_.setMessage(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -7906,11 +7987,11 @@ public Builder setSentimentAnalysisResult( builderForValue) { if (sentimentAnalysisResultBuilder_ == null) { sentimentAnalysisResult_ = builderForValue.build(); - onChanged(); } else { sentimentAnalysisResultBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -7928,20 +8009,20 @@ public Builder setSentimentAnalysisResult( public Builder mergeSentimentAnalysisResult( com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult value) { if (sentimentAnalysisResultBuilder_ == null) { - if (sentimentAnalysisResult_ != null) { - sentimentAnalysisResult_ = - com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult - .newBuilder(sentimentAnalysisResult_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00001000) != 0) + && sentimentAnalysisResult_ != null + && sentimentAnalysisResult_ + != com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult + .getDefaultInstance()) { + getSentimentAnalysisResultBuilder().mergeFrom(value); } else { sentimentAnalysisResult_ = value; } - onChanged(); } else { sentimentAnalysisResultBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00001000; + onChanged(); return this; } /** @@ -7957,14 +8038,13 @@ public Builder mergeSentimentAnalysisResult( * */ public Builder clearSentimentAnalysisResult() { - if (sentimentAnalysisResultBuilder_ == null) { - sentimentAnalysisResult_ = null; - onChanged(); - } else { - sentimentAnalysisResult_ = null; + bitField0_ = (bitField0_ & ~0x00001000); + sentimentAnalysisResult_ = null; + if (sentimentAnalysisResultBuilder_ != null) { + sentimentAnalysisResultBuilder_.dispose(); sentimentAnalysisResultBuilder_ = null; } - + onChanged(); return this; } /** @@ -7981,7 +8061,7 @@ public Builder clearSentimentAnalysisResult() { */ public com.google.cloud.dialogflow.cx.v3beta1.WebhookRequest.SentimentAnalysisResult.Builder getSentimentAnalysisResultBuilder() { - + bitField0_ |= 0x00001000; onChanged(); return getSentimentAnalysisResultFieldBuilder().getBuilder(); } diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookResponse.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookResponse.java index fcef83a36e59..0f2424e72527 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookResponse.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhookResponse.java @@ -371,6 +371,8 @@ private MergeBehavior(int value) { } public static final int MESSAGES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") private java.util.List messages_; /** * @@ -442,7 +444,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageOrBuilder getMessag } public static final int MERGE_BEHAVIOR_FIELD_NUMBER = 2; - private int mergeBehavior_; + private int mergeBehavior_ = 0; /** * * @@ -476,11 +478,10 @@ public int getMergeBehaviorValue() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior getMergeBehavior() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior result = com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse - .MergeBehavior.valueOf(mergeBehavior_); + .MergeBehavior.forNumber(mergeBehavior_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior .UNRECOGNIZED @@ -713,6 +714,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; if (messagesBuilder_ == null) { messages_ = java.util.Collections.emptyList(); } else { @@ -721,7 +723,6 @@ public Builder clear() { } bitField0_ = (bitField0_ & ~0x00000001); mergeBehavior_ = 0; - return this; } @@ -753,7 +754,16 @@ public com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentRespons buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse result = new com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse(this); - int from_bitField0_ = bitField0_; + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse result) { if (messagesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { messages_ = java.util.Collections.unmodifiableList(messages_); @@ -763,9 +773,14 @@ public com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentRespons } else { result.messages_ = messagesBuilder_.build(); } - result.mergeBehavior_ = mergeBehavior_; - onBuilt(); - return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mergeBehavior_ = mergeBehavior_; + } } @java.lang.Override @@ -893,7 +908,7 @@ public Builder mergeFrom( case 16: { mergeBehavior_ = input.readEnum(); - + bitField0_ |= 0x00000002; break; } // case 16 default: @@ -1312,8 +1327,8 @@ public int getMergeBehaviorValue() { * @return This builder for chaining. */ public Builder setMergeBehaviorValue(int value) { - mergeBehavior_ = value; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1334,11 +1349,10 @@ public Builder setMergeBehaviorValue(int value) { public com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse .MergeBehavior getMergeBehavior() { - @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.MergeBehavior result = com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse - .MergeBehavior.valueOf(mergeBehavior_); + .MergeBehavior.forNumber(mergeBehavior_); return result == null ? com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse .MergeBehavior.UNRECOGNIZED @@ -1364,7 +1378,7 @@ public Builder setMergeBehavior( if (value == null) { throw new NullPointerException(); } - + bitField0_ |= 0x00000002; mergeBehavior_ = value.getNumber(); onChanged(); return this; @@ -1383,7 +1397,7 @@ public Builder setMergeBehavior( * @return This builder for chaining. */ public Builder clearMergeBehavior() { - + bitField0_ = (bitField0_ & ~0x00000002); mergeBehavior_ = 0; onChanged(); return this; @@ -1562,7 +1576,10 @@ public boolean hasFulfillmentResponse() { @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponseOrBuilder getFulfillmentResponseOrBuilder() { - return getFulfillmentResponse(); + return fulfillmentResponse_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + .getDefaultInstance() + : fulfillmentResponse_; } public static final int PAGE_INFO_FIELD_NUMBER = 2; @@ -1613,7 +1630,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.PageInfo getPageInfo() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.PageInfoOrBuilder getPageInfoOrBuilder() { - return getPageInfo(); + return pageInfo_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.PageInfo.getDefaultInstance() + : pageInfo_; } public static final int SESSION_INFO_FIELD_NUMBER = 3; @@ -1664,7 +1683,9 @@ public com.google.cloud.dialogflow.cx.v3beta1.SessionInfo getSessionInfo() { */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3beta1.SessionInfoOrBuilder getSessionInfoOrBuilder() { - return getSessionInfo(); + return sessionInfo_ == null + ? com.google.cloud.dialogflow.cx.v3beta1.SessionInfo.getDefaultInstance() + : sessionInfo_; } public static final int PAYLOAD_FIELD_NUMBER = 4; @@ -1713,7 +1734,7 @@ public com.google.protobuf.Struct getPayload() { */ @java.lang.Override public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { - return getPayload(); + return payload_ == null ? com.google.protobuf.Struct.getDefaultInstance() : payload_; } public static final int TARGET_PAGE_FIELD_NUMBER = 5; @@ -2148,28 +2169,25 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); - if (fulfillmentResponseBuilder_ == null) { - fulfillmentResponse_ = null; - } else { - fulfillmentResponse_ = null; + bitField0_ = 0; + fulfillmentResponse_ = null; + if (fulfillmentResponseBuilder_ != null) { + fulfillmentResponseBuilder_.dispose(); fulfillmentResponseBuilder_ = null; } - if (pageInfoBuilder_ == null) { - pageInfo_ = null; - } else { - pageInfo_ = null; + pageInfo_ = null; + if (pageInfoBuilder_ != null) { + pageInfoBuilder_.dispose(); pageInfoBuilder_ = null; } - if (sessionInfoBuilder_ == null) { - sessionInfo_ = null; - } else { - sessionInfo_ = null; + sessionInfo_ = null; + if (sessionInfoBuilder_ != null) { + sessionInfoBuilder_.dispose(); sessionInfoBuilder_ = null; } - if (payloadBuilder_ == null) { - payload_ = null; - } else { - payload_ = null; + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); payloadBuilder_ = null; } transitionCase_ = 0; @@ -2201,35 +2219,37 @@ public com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse build() { public com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse buildPartial() { com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse result = new com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse(this); - if (fulfillmentResponseBuilder_ == null) { - result.fulfillmentResponse_ = fulfillmentResponse_; - } else { - result.fulfillmentResponse_ = fulfillmentResponseBuilder_.build(); + if (bitField0_ != 0) { + buildPartial0(result); } - if (pageInfoBuilder_ == null) { - result.pageInfo_ = pageInfo_; - } else { - result.pageInfo_ = pageInfoBuilder_.build(); - } - if (sessionInfoBuilder_ == null) { - result.sessionInfo_ = sessionInfo_; - } else { - result.sessionInfo_ = sessionInfoBuilder_.build(); + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fulfillmentResponse_ = + fulfillmentResponseBuilder_ == null + ? fulfillmentResponse_ + : fulfillmentResponseBuilder_.build(); } - if (payloadBuilder_ == null) { - result.payload_ = payload_; - } else { - result.payload_ = payloadBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageInfo_ = pageInfoBuilder_ == null ? pageInfo_ : pageInfoBuilder_.build(); } - if (transitionCase_ == 5) { - result.transition_ = transition_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sessionInfo_ = + sessionInfoBuilder_ == null ? sessionInfo_ : sessionInfoBuilder_.build(); } - if (transitionCase_ == 6) { - result.transition_ = transition_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.payload_ = payloadBuilder_ == null ? payload_ : payloadBuilder_.build(); } + } + + private void buildPartialOneofs(com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse result) { result.transitionCase_ = transitionCase_; - onBuilt(); - return result; + result.transition_ = this.transition_; } @java.lang.Override @@ -2340,25 +2360,25 @@ public Builder mergeFrom( { input.readMessage( getFulfillmentResponseFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage(getPageInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage(getSessionInfoFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(getPayloadFieldBuilder().getBuilder(), extensionRegistry); - + bitField0_ |= 0x00000008; break; } // case 34 case 42: @@ -2406,6 +2426,8 @@ public Builder clearTransition() { return this; } + private int bitField0_; + private com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse fulfillmentResponse_; private com.google.protobuf.SingleFieldBuilderV3< @@ -2428,7 +2450,7 @@ public Builder clearTransition() { * @return Whether the fulfillmentResponse field is set. */ public boolean hasFulfillmentResponse() { - return fulfillmentResponseBuilder_ != null || fulfillmentResponse_ != null; + return ((bitField0_ & 0x00000001) != 0); } /** * @@ -2474,11 +2496,11 @@ public Builder setFulfillmentResponse( throw new NullPointerException(); } fulfillmentResponse_ = value; - onChanged(); } else { fulfillmentResponseBuilder_.setMessage(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2498,11 +2520,11 @@ public Builder setFulfillmentResponse( builderForValue) { if (fulfillmentResponseBuilder_ == null) { fulfillmentResponse_ = builderForValue.build(); - onChanged(); } else { fulfillmentResponseBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2520,20 +2542,20 @@ public Builder setFulfillmentResponse( public Builder mergeFulfillmentResponse( com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse value) { if (fulfillmentResponseBuilder_ == null) { - if (fulfillmentResponse_ != null) { - fulfillmentResponse_ = - com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.newBuilder( - fulfillmentResponse_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000001) != 0) + && fulfillmentResponse_ != null + && fulfillmentResponse_ + != com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse + .getDefaultInstance()) { + getFulfillmentResponseBuilder().mergeFrom(value); } else { fulfillmentResponse_ = value; } - onChanged(); } else { fulfillmentResponseBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000001; + onChanged(); return this; } /** @@ -2549,14 +2571,13 @@ public Builder mergeFulfillmentResponse( * */ public Builder clearFulfillmentResponse() { - if (fulfillmentResponseBuilder_ == null) { - fulfillmentResponse_ = null; - onChanged(); - } else { - fulfillmentResponse_ = null; + bitField0_ = (bitField0_ & ~0x00000001); + fulfillmentResponse_ = null; + if (fulfillmentResponseBuilder_ != null) { + fulfillmentResponseBuilder_.dispose(); fulfillmentResponseBuilder_ = null; } - + onChanged(); return this; } /** @@ -2573,7 +2594,7 @@ public Builder clearFulfillmentResponse() { */ public com.google.cloud.dialogflow.cx.v3beta1.WebhookResponse.FulfillmentResponse.Builder getFulfillmentResponseBuilder() { - + bitField0_ |= 0x00000001; onChanged(); return getFulfillmentResponseFieldBuilder().getBuilder(); } @@ -2649,7 +2670,7 @@ public Builder clearFulfillmentResponse() { * @return Whether the pageInfo field is set. */ public boolean hasPageInfo() { - return pageInfoBuilder_ != null || pageInfo_ != null; + return ((bitField0_ & 0x00000002) != 0); } /** * @@ -2688,11 +2709,11 @@ public Builder setPageInfo(com.google.cloud.dialogflow.cx.v3beta1.PageInfo value throw new NullPointerException(); } pageInfo_ = value; - onChanged(); } else { pageInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2709,11 +2730,11 @@ public Builder setPageInfo( com.google.cloud.dialogflow.cx.v3beta1.PageInfo.Builder builderForValue) { if (pageInfoBuilder_ == null) { pageInfo_ = builderForValue.build(); - onChanged(); } else { pageInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2728,19 +2749,18 @@ public Builder setPageInfo( */ public Builder mergePageInfo(com.google.cloud.dialogflow.cx.v3beta1.PageInfo value) { if (pageInfoBuilder_ == null) { - if (pageInfo_ != null) { - pageInfo_ = - com.google.cloud.dialogflow.cx.v3beta1.PageInfo.newBuilder(pageInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000002) != 0) + && pageInfo_ != null + && pageInfo_ != com.google.cloud.dialogflow.cx.v3beta1.PageInfo.getDefaultInstance()) { + getPageInfoBuilder().mergeFrom(value); } else { pageInfo_ = value; } - onChanged(); } else { pageInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000002; + onChanged(); return this; } /** @@ -2754,14 +2774,13 @@ public Builder mergePageInfo(com.google.cloud.dialogflow.cx.v3beta1.PageInfo val * .google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 2; */ public Builder clearPageInfo() { - if (pageInfoBuilder_ == null) { - pageInfo_ = null; - onChanged(); - } else { - pageInfo_ = null; + bitField0_ = (bitField0_ & ~0x00000002); + pageInfo_ = null; + if (pageInfoBuilder_ != null) { + pageInfoBuilder_.dispose(); pageInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -2775,7 +2794,7 @@ public Builder clearPageInfo() { * .google.cloud.dialogflow.cx.v3beta1.PageInfo page_info = 2; */ public com.google.cloud.dialogflow.cx.v3beta1.PageInfo.Builder getPageInfoBuilder() { - + bitField0_ |= 0x00000002; onChanged(); return getPageInfoFieldBuilder().getBuilder(); } @@ -2844,7 +2863,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.PageInfoOrBuilder getPageInfoOrBui * @return Whether the sessionInfo field is set. */ public boolean hasSessionInfo() { - return sessionInfoBuilder_ != null || sessionInfo_ != null; + return ((bitField0_ & 0x00000004) != 0); } /** * @@ -2883,11 +2902,11 @@ public Builder setSessionInfo(com.google.cloud.dialogflow.cx.v3beta1.SessionInfo throw new NullPointerException(); } sessionInfo_ = value; - onChanged(); } else { sessionInfoBuilder_.setMessage(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2904,11 +2923,11 @@ public Builder setSessionInfo( com.google.cloud.dialogflow.cx.v3beta1.SessionInfo.Builder builderForValue) { if (sessionInfoBuilder_ == null) { sessionInfo_ = builderForValue.build(); - onChanged(); } else { sessionInfoBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2923,19 +2942,19 @@ public Builder setSessionInfo( */ public Builder mergeSessionInfo(com.google.cloud.dialogflow.cx.v3beta1.SessionInfo value) { if (sessionInfoBuilder_ == null) { - if (sessionInfo_ != null) { - sessionInfo_ = - com.google.cloud.dialogflow.cx.v3beta1.SessionInfo.newBuilder(sessionInfo_) - .mergeFrom(value) - .buildPartial(); + if (((bitField0_ & 0x00000004) != 0) + && sessionInfo_ != null + && sessionInfo_ + != com.google.cloud.dialogflow.cx.v3beta1.SessionInfo.getDefaultInstance()) { + getSessionInfoBuilder().mergeFrom(value); } else { sessionInfo_ = value; } - onChanged(); } else { sessionInfoBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000004; + onChanged(); return this; } /** @@ -2949,14 +2968,13 @@ public Builder mergeSessionInfo(com.google.cloud.dialogflow.cx.v3beta1.SessionIn * .google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 3; */ public Builder clearSessionInfo() { - if (sessionInfoBuilder_ == null) { - sessionInfo_ = null; - onChanged(); - } else { - sessionInfo_ = null; + bitField0_ = (bitField0_ & ~0x00000004); + sessionInfo_ = null; + if (sessionInfoBuilder_ != null) { + sessionInfoBuilder_.dispose(); sessionInfoBuilder_ = null; } - + onChanged(); return this; } /** @@ -2970,7 +2988,7 @@ public Builder clearSessionInfo() { * .google.cloud.dialogflow.cx.v3beta1.SessionInfo session_info = 3; */ public com.google.cloud.dialogflow.cx.v3beta1.SessionInfo.Builder getSessionInfoBuilder() { - + bitField0_ |= 0x00000004; onChanged(); return getSessionInfoFieldBuilder().getBuilder(); } @@ -3039,7 +3057,7 @@ public com.google.cloud.dialogflow.cx.v3beta1.SessionInfoOrBuilder getSessionInf * @return Whether the payload field is set. */ public boolean hasPayload() { - return payloadBuilder_ != null || payload_ != null; + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -3076,11 +3094,11 @@ public Builder setPayload(com.google.protobuf.Struct value) { throw new NullPointerException(); } payload_ = value; - onChanged(); } else { payloadBuilder_.setMessage(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3096,11 +3114,11 @@ public Builder setPayload(com.google.protobuf.Struct value) { public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); - onChanged(); } else { payloadBuilder_.setMessage(builderForValue.build()); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3115,17 +3133,18 @@ public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) { */ public Builder mergePayload(com.google.protobuf.Struct value) { if (payloadBuilder_ == null) { - if (payload_ != null) { - payload_ = - com.google.protobuf.Struct.newBuilder(payload_).mergeFrom(value).buildPartial(); + if (((bitField0_ & 0x00000008) != 0) + && payload_ != null + && payload_ != com.google.protobuf.Struct.getDefaultInstance()) { + getPayloadBuilder().mergeFrom(value); } else { payload_ = value; } - onChanged(); } else { payloadBuilder_.mergeFrom(value); } - + bitField0_ |= 0x00000008; + onChanged(); return this; } /** @@ -3139,14 +3158,13 @@ public Builder mergePayload(com.google.protobuf.Struct value) { * .google.protobuf.Struct payload = 4; */ public Builder clearPayload() { - if (payloadBuilder_ == null) { - payload_ = null; - onChanged(); - } else { - payload_ = null; + bitField0_ = (bitField0_ & ~0x00000008); + payload_ = null; + if (payloadBuilder_ != null) { + payloadBuilder_.dispose(); payloadBuilder_ = null; } - + onChanged(); return this; } /** @@ -3160,7 +3178,7 @@ public Builder clearPayload() { * .google.protobuf.Struct payload = 4; */ public com.google.protobuf.Struct.Builder getPayloadBuilder() { - + bitField0_ |= 0x00000008; onChanged(); return getPayloadFieldBuilder().getBuilder(); }