From b04ceb96f92537136df1ffb04c7ba21efa534588 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Fri, 19 Jun 2026 06:00:11 +0000 Subject: [PATCH 1/2] chore: update googleapis commitish to 1df255f --- generation_config.yaml | 2 +- librarian.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/generation_config.yaml b/generation_config.yaml index 0436082edd91..dd89c38cc1b2 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,4 +1,4 @@ -googleapis_commitish: db88feb4756963c6aa9b5996a880cfe5572d0320 +googleapis_commitish: 1df255f1feb82e85ec0c8a3b558857e8ca3d3372 libraries_bom_version: 26.83.0 is_monorepo: true libraries: diff --git a/librarian.yaml b/librarian.yaml index 7a285b9b6d25..e59852a4a4dc 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -16,8 +16,8 @@ version: v0.21.1-0.20260617000028-820646f3db93 repo: googleapis/google-cloud-java sources: googleapis: - commit: db88feb4756963c6aa9b5996a880cfe5572d0320 - sha256: ba3f018c32dae09803b3c8759ef79c59fc9cc1200d097026ac52a1490bec3b3e + commit: 1df255f1feb82e85ec0c8a3b558857e8ca3d3372 + sha256: 75d9ff8bb7174f6bea0e5ee24aae7b59238a906a878392dccc9b3e0e1226d179 showcase: commit: 328bec7ce4c1fb77c37fdf1868d0506bc02a70fc sha256: 8df187486e37edf5a78c1646c859c311bc452871b9ba4641d93149d3c53450a2 From cd8e75a75d83521329154b44b5c0f7fd6ffb4486 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Fri, 19 Jun 2026 06:00:13 +0000 Subject: [PATCH 2/2] chore: generate libraries --- .../v1alpha/AnalyticsAdminServiceClient.java | 122 + .../AnalyticsAdminServiceSettings.java | 14 + .../admin/v1alpha/gapic_metadata.json | 3 + .../stub/AnalyticsAdminServiceStub.java | 7 + .../AnalyticsAdminServiceStubSettings.java | 31 + .../stub/GrpcAnalyticsAdminServiceStub.java | 44 + .../HttpJsonAnalyticsAdminServiceStub.java | 77 + .../reflect-config.json | 18 + ...alyticsAdminServiceClientHttpJsonTest.java | 53 + .../AnalyticsAdminServiceClientTest.java | 45 + .../MockAnalyticsAdminServiceImpl.java | 23 + .../v1alpha/AnalyticsAdminServiceGrpc.java | 148 +- .../admin/v1alpha/AnalyticsAdminProto.java | 1818 +-- .../admin/v1alpha/PropertySummary.java | 101 + .../v1alpha/PropertySummaryOrBuilder.java | 14 + .../admin/v1alpha/ResourcesProto.java | 377 +- ...pdateReportingIdentitySettingsRequest.java | 1109 ++ ...rtingIdentitySettingsRequestOrBuilder.java | 127 + .../admin/v1alpha/analytics_admin.proto | 27 + .../analytics/admin/v1alpha/resources.proto | 4 + .../analytics/admin/v1beta/Account.java | 28 +- .../admin/v1beta/AccountOrBuilder.java | 8 +- .../admin/v1beta/AccountSummary.java | 28 +- .../admin/v1beta/AccountSummaryOrBuilder.java | 8 +- .../admin/v1beta/AnalyticsAdminProto.java | 680 +- .../admin/v1beta/ConversionEvent.java | 28 +- .../v1beta/ConversionEventOrBuilder.java | 8 +- .../admin/v1beta/CustomDimension.java | 28 +- .../v1beta/CustomDimensionOrBuilder.java | 8 +- .../analytics/admin/v1beta/CustomMetric.java | 28 +- .../admin/v1beta/CustomMetricOrBuilder.java | 8 +- .../admin/v1beta/DataRetentionSettings.java | 28 +- .../DataRetentionSettingsOrBuilder.java | 8 +- .../admin/v1beta/DataSharingSettings.java | 192 +- .../v1beta/DataSharingSettingsOrBuilder.java | 49 +- .../analytics/admin/v1beta/DataStream.java | 28 +- .../admin/v1beta/DataStreamOrBuilder.java | 8 +- .../analytics/admin/v1beta/FirebaseLink.java | 28 +- .../admin/v1beta/FirebaseLinkOrBuilder.java | 8 +- .../analytics/admin/v1beta/GoogleAdsLink.java | 28 +- .../admin/v1beta/GoogleAdsLinkOrBuilder.java | 8 +- .../v1beta/ListAccountSummariesRequest.java | 110 +- .../ListAccountSummariesRequestOrBuilder.java | 30 +- .../admin/v1beta/ListAccountsRequest.java | 44 +- .../v1beta/ListAccountsRequestOrBuilder.java | 12 +- .../v1beta/ListConversionEventsRequest.java | 86 +- .../ListConversionEventsRequestOrBuilder.java | 24 +- .../v1beta/ListCustomDimensionsRequest.java | 58 +- .../ListCustomDimensionsRequestOrBuilder.java | 16 +- .../v1beta/ListFirebaseLinksRequest.java | 44 +- .../ListFirebaseLinksRequestOrBuilder.java | 12 +- .../v1beta/ListGoogleAdsLinksRequest.java | 44 +- .../ListGoogleAdsLinksRequestOrBuilder.java | 12 +- .../admin/v1beta/ListKeyEventsRequest.java | 44 +- .../v1beta/ListKeyEventsRequestOrBuilder.java | 12 +- ...ListMeasurementProtocolSecretsRequest.java | 93 +- ...rementProtocolSecretsRequestOrBuilder.java | 26 +- .../admin/v1beta/ListPropertiesRequest.java | 44 +- .../ListPropertiesRequestOrBuilder.java | 12 +- .../v1beta/MeasurementProtocolSecret.java | 42 +- .../MeasurementProtocolSecretOrBuilder.java | 12 +- .../analytics/admin/v1beta/Property.java | 28 +- .../admin/v1beta/PropertyOrBuilder.java | 8 +- .../admin/v1beta/PropertySummary.java | 101 + .../v1beta/PropertySummaryOrBuilder.java | 14 + .../admin/v1beta/ResourcesProto.java | 222 +- .../admin/v1beta/access_report.proto | 2 +- .../admin/v1beta/analytics_admin.proto | 101 +- .../analytics/admin/v1beta/resources.proto | 117 +- .../AsyncUpdateReportingIdentitySettings.java | 52 + .../SyncUpdateReportingIdentitySettings.java | 49 + ...ngsReportingidentitysettingsFieldmask.java | 48 + .../reflect-config.json | 9 + .../cloud/dataproc/v1/ClustersProto.java | 238 +- .../v1/ConfidentialInstanceConfig.java | 443 +- .../ConfidentialInstanceConfigOrBuilder.java | 42 +- .../cloud/dataproc/v1/GceClusterConfig.java | 416 +- .../v1/GceClusterConfigOrBuilder.java | 94 +- .../google/cloud/dataproc/v1/clusters.proto | 42 +- .../cloud/dialogflow/cx/v3/AgentsClient.java | 18 +- .../dialogflow/cx/v3/ChangelogsClient.java | 18 +- .../dialogflow/cx/v3/DeploymentsClient.java | 18 +- .../dialogflow/cx/v3/EntityTypesClient.java | 18 +- .../dialogflow/cx/v3/EnvironmentsClient.java | 18 +- .../dialogflow/cx/v3/ExamplesClient.java | 18 +- .../dialogflow/cx/v3/ExperimentsClient.java | 18 +- .../cloud/dialogflow/cx/v3/FlowsClient.java | 18 +- .../dialogflow/cx/v3/GeneratorsClient.java | 18 +- .../cloud/dialogflow/cx/v3/IntentsClient.java | 18 +- .../cloud/dialogflow/cx/v3/PagesClient.java | 18 +- .../dialogflow/cx/v3/PlaybooksClient.java | 18 +- .../cx/v3/SecuritySettingsServiceClient.java | 18 +- .../cx/v3/SessionEntityTypesClient.java | 18 +- .../dialogflow/cx/v3/SessionsClient.java | 18 +- .../dialogflow/cx/v3/TestCasesClient.java | 18 +- .../cloud/dialogflow/cx/v3/ToolsClient.java | 18 +- .../cx/v3/TransitionRouteGroupsClient.java | 18 +- .../dialogflow/cx/v3/VersionsClient.java | 18 +- .../dialogflow/cx/v3/WebhooksClient.java | 18 +- .../dialogflow/cx/v3beta1/AgentsClient.java | 18 +- .../cx/v3beta1/ChangelogsClient.java | 18 +- .../cx/v3beta1/ConversationHistoryClient.java | 18 +- .../cx/v3beta1/DeploymentsClient.java | 18 +- .../cx/v3beta1/EntityTypesClient.java | 18 +- .../cx/v3beta1/EnvironmentsClient.java | 18 +- .../dialogflow/cx/v3beta1/ExamplesClient.java | 18 +- .../cx/v3beta1/ExperimentsClient.java | 18 +- .../dialogflow/cx/v3beta1/FlowsClient.java | 18 +- .../cx/v3beta1/GeneratorsClient.java | 18 +- .../dialogflow/cx/v3beta1/IntentsClient.java | 18 +- .../dialogflow/cx/v3beta1/PagesClient.java | 18 +- .../cx/v3beta1/PlaybooksClient.java | 18 +- .../SecuritySettingsServiceClient.java | 18 +- .../cx/v3beta1/SessionEntityTypesClient.java | 18 +- .../dialogflow/cx/v3beta1/SessionsClient.java | 18 +- .../cx/v3beta1/TestCasesClient.java | 18 +- .../dialogflow/cx/v3beta1/ToolsClient.java | 18 +- .../v3beta1/TransitionRouteGroupsClient.java | 18 +- .../dialogflow/cx/v3beta1/VersionsClient.java | 18 +- .../dialogflow/cx/v3beta1/WebhooksClient.java | 18 +- .../dialogflow/cx/v3/AudioConfigProto.java | 26 +- .../cx/v3/DetectIntentResponseView.java | 10 + .../dialogflow/cx/v3/OutputAudioEncoding.java | 11 +- .../cloud/dialogflow/cx/v3/audio_config.proto | 4 +- .../cloud/dialogflow/cx/v3/session.proto | 5 + .../cx/v3beta1/AudioConfigProto.java | 28 +- .../cx/v3beta1/DetectIntentResponseView.java | 8 + .../cx/v3beta1/OutputAudioEncoding.java | 11 +- .../dialogflow/cx/v3beta1/audio_config.proto | 4 +- .../cloud/dialogflow/cx/v3beta1/session.proto | 4 + .../cloud/dialogflow/v2/AgentsClient.java | 18 +- .../dialogflow/v2/AnswerRecordsClient.java | 18 +- .../cloud/dialogflow/v2/ContextsClient.java | 18 +- .../v2/ConversationDatasetsClient.java | 18 +- .../v2/ConversationModelsClient.java | 18 +- .../v2/ConversationProfilesClient.java | 18 +- .../dialogflow/v2/ConversationsClient.java | 18 +- .../cloud/dialogflow/v2/DocumentsClient.java | 18 +- .../v2/EncryptionSpecServiceClient.java | 18 +- .../dialogflow/v2/EntityTypesClient.java | 18 +- .../dialogflow/v2/EnvironmentsClient.java | 18 +- .../dialogflow/v2/FulfillmentsClient.java | 18 +- .../v2/GeneratorEvaluationsClient.java | 18 +- .../cloud/dialogflow/v2/GeneratorsClient.java | 18 +- .../cloud/dialogflow/v2/IntentsClient.java | 18 +- .../dialogflow/v2/KnowledgeBasesClient.java | 18 +- .../dialogflow/v2/ParticipantsClient.java | 18 +- .../v2/SessionEntityTypesClient.java | 18 +- .../cloud/dialogflow/v2/SessionsClient.java | 18 +- .../cloud/dialogflow/v2/SipTrunksClient.java | 18 +- .../cloud/dialogflow/v2/ToolsClient.java | 18 +- .../cloud/dialogflow/v2/VersionsClient.java | 18 +- .../dialogflow/v2beta1/AgentsClient.java | 18 +- .../v2beta1/AnswerRecordsClient.java | 18 +- .../dialogflow/v2beta1/ContextsClient.java | 18 +- .../v2beta1/ConversationProfilesClient.java | 18 +- .../v2beta1/ConversationsClient.java | 18 +- .../dialogflow/v2beta1/DocumentsClient.java | 18 +- .../v2beta1/EncryptionSpecServiceClient.java | 18 +- .../dialogflow/v2beta1/EntityTypesClient.java | 18 +- .../v2beta1/EnvironmentsClient.java | 18 +- .../v2beta1/FulfillmentsClient.java | 18 +- .../v2beta1/GeneratorEvaluationsClient.java | 18 +- .../dialogflow/v2beta1/GeneratorsClient.java | 18 +- .../dialogflow/v2beta1/IntentsClient.java | 18 +- .../v2beta1/KnowledgeBasesClient.java | 18 +- .../v2beta1/ParticipantsClient.java | 18 +- .../v2beta1/PhoneNumbersClient.java | 18 +- .../v2beta1/SessionEntityTypesClient.java | 18 +- .../dialogflow/v2beta1/SessionsClient.java | 18 +- .../dialogflow/v2beta1/SipTrunksClient.java | 18 +- .../cloud/dialogflow/v2beta1/ToolsClient.java | 18 +- .../dialogflow/v2beta1/VersionsClient.java | 18 +- .../reflect-config.json | 90 + .../reflect-config.json | 180 +- ...onversationProfilesClientHttpJsonTest.java | 12 + .../v2/ConversationProfilesClientTest.java | 10 + .../v2/ParticipantsClientHttpJsonTest.java | 2 + .../dialogflow/v2/ParticipantsClientTest.java | 2 + ...onversationProfilesClientHttpJsonTest.java | 12 + .../ConversationProfilesClientTest.java | 10 + .../ParticipantsClientHttpJsonTest.java | 2 + .../v2beta1/ParticipantsClientTest.java | 2 + .../cloud/dialogflow/v2/AudioConfigProto.java | 20 +- .../cloud/dialogflow/v2/CesAppProto.java | 31 +- .../cloud/dialogflow/v2/CesAppSpec.java | 309 + .../dialogflow/v2/CesAppSpecOrBuilder.java | 64 + .../dialogflow/v2/ConversationProfile.java | 349 +- .../v2/ConversationProfileOrBuilder.java | 43 + .../v2/ConversationProfileProto.java | 547 +- .../dialogflow/v2/ConversationProto.java | 151 +- .../v2/HumanAgentAssistantConfig.java | 458 +- .../dialogflow/v2/KnowledgeAssistAnswer.java | 11450 ++++++++++----- .../v2/KnowledgeAssistDebugInfo.java | 1368 ++ .../v2/KnowledgeAssistDebugInfoOrBuilder.java | 82 + .../dialogflow/v2/OutputAudioEncoding.java | 11 +- .../cloud/dialogflow/v2/Participant.java | 77 +- .../dialogflow/v2/ParticipantOrBuilder.java | 22 +- .../cloud/dialogflow/v2/ParticipantProto.java | 331 +- .../dialogflow/v2/SearchKnowledgeAnswer.java | 46 + .../google/cloud/dialogflow/v2/SipConfig.java | 1536 +++ .../dialogflow/v2/SipConfigOrBuilder.java | 197 + .../v2/StreamingAnalyzeContentResponse.java | 14 +- .../v2/StreamingRecognitionResult.java | 50 +- .../v2/SuggestKnowledgeAssistResponse.java | 676 + ...ggestKnowledgeAssistResponseOrBuilder.java | 83 + .../cloud/dialogflow/v2/audio_config.proto | 4 +- .../google/cloud/dialogflow/v2/ces_app.proto | 12 + .../cloud/dialogflow/v2/conversation.proto | 6 + .../dialogflow/v2/conversation_profile.proto | 49 + .../cloud/dialogflow/v2/participant.proto | 94 +- .../google/cloud/dialogflow/v2/session.proto | 25 +- .../dialogflow/v2beta1/AudioConfigProto.java | 21 +- .../v2beta1/AutomatedAgentConfig.java | 14 +- .../AutomatedAgentConfigOrBuilder.java | 4 +- .../v2beta1/AutomatedAgentReply.java | 8 +- .../v2beta1/AutomatedAgentReplyOrBuilder.java | 4 +- .../BidiStreamingAnalyzeContentRequest.java | 2845 +++- .../BidiStreamingAnalyzeContentResponse.java | 2666 ++++ ...eamingAnalyzeContentResponseOrBuilder.java | 44 + .../cloud/dialogflow/v2beta1/CesAppProto.java | 21 +- .../cloud/dialogflow/v2beta1/CesAppSpec.java | 309 + .../v2beta1/CesAppSpecOrBuilder.java | 64 + .../v2beta1/ConversationProfile.java | 350 +- .../v2beta1/ConversationProfileOrBuilder.java | 43 + .../v2beta1/ConversationProfileProto.java | 626 +- .../dialogflow/v2beta1/ConversationProto.java | 179 +- .../v2beta1/HumanAgentAssistantConfig.java | 2019 +-- .../v2beta1/KnowledgeAssistAnswer.java | 11468 +++++++++++----- .../v2beta1/KnowledgeAssistDebugInfo.java | 3737 +++-- .../KnowledgeAssistDebugInfoOrBuilder.java | 82 + .../v2beta1/OutputAudioEncoding.java | 11 +- .../cloud/dialogflow/v2beta1/Participant.java | 63 +- .../v2beta1/ParticipantOrBuilder.java | 18 +- .../dialogflow/v2beta1/ParticipantProto.java | 462 +- .../v2beta1/SearchKnowledgeAnswer.java | 46 + .../cloud/dialogflow/v2beta1/SipConfig.java | 1537 +++ .../v2beta1/SipConfigOrBuilder.java | 197 + .../StreamingAnalyzeContentResponse.java | 14 +- .../v2beta1/StreamingRecognitionResult.java | 52 +- .../SuggestKnowledgeAssistResponse.java | 688 + ...ggestKnowledgeAssistResponseOrBuilder.java | 83 + .../dialogflow/v2beta1/audio_config.proto | 4 +- .../cloud/dialogflow/v2beta1/ces_app.proto | 12 + .../dialogflow/v2beta1/conversation.proto | 6 + .../v2beta1/conversation_profile.proto | 81 +- .../dialogflow/v2beta1/participant.proto | 136 +- .../cloud/dialogflow/v2beta1/session.proto | 26 +- 248 files changed, 41972 insertions(+), 14228 deletions(-) create mode 100644 java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateReportingIdentitySettingsRequest.java create mode 100644 java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateReportingIdentitySettingsRequestOrBuilder.java create mode 100644 java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/AsyncUpdateReportingIdentitySettings.java create mode 100644 java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/SyncUpdateReportingIdentitySettings.java create mode 100644 java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/SyncUpdateReportingIdentitySettingsReportingidentitysettingsFieldmask.java create mode 100644 java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SipConfig.java create mode 100644 java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SipConfigOrBuilder.java create mode 100644 java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipConfig.java create mode 100644 java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipConfigOrBuilder.java diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java index 236b0f6ac9e3..56c2bd1f6210 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java @@ -2926,6 +2926,24 @@ * * * + *

UpdateReportingIdentitySettings + *

Updates the reporting identity settings for this property. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ * + *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ * + *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ * + * + * + * *

GetUserProvidedDataSettings *

Looks up settings related to user-provided data for a property. * @@ -22341,6 +22359,110 @@ public final ReportingIdentitySettings getReportingIdentitySettings( return stub.getReportingIdentitySettingsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the reporting identity settings for this property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ReportingIdentitySettings reportingIdentitySettings =
+   *       ReportingIdentitySettings.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   ReportingIdentitySettings response =
+   *       analyticsAdminServiceClient.updateReportingIdentitySettings(
+   *           reportingIdentitySettings, updateMask);
+   * }
+   * }
+ * + * @param reportingIdentitySettings Required. The reporting identity settings to update. The + * settings' `name` field is used to identify the settings. + * @param updateMask Optional. The list of fields to be updated. Field names must be in snake case + * (for example, "field_to_update"). Omitted fields will not be updated. To replace the entire + * entity, use one path with the string "*" to match all fields. If omitted, the service + * will treat it as an implied field mask equivalent to all fields that are populated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReportingIdentitySettings updateReportingIdentitySettings( + ReportingIdentitySettings reportingIdentitySettings, FieldMask updateMask) { + UpdateReportingIdentitySettingsRequest request = + UpdateReportingIdentitySettingsRequest.newBuilder() + .setReportingIdentitySettings(reportingIdentitySettings) + .setUpdateMask(updateMask) + .build(); + return updateReportingIdentitySettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the reporting identity settings for this property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UpdateReportingIdentitySettingsRequest request =
+   *       UpdateReportingIdentitySettingsRequest.newBuilder()
+   *           .setReportingIdentitySettings(ReportingIdentitySettings.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ReportingIdentitySettings response =
+   *       analyticsAdminServiceClient.updateReportingIdentitySettings(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReportingIdentitySettings updateReportingIdentitySettings( + UpdateReportingIdentitySettingsRequest request) { + return updateReportingIdentitySettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the reporting identity settings for this property. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UpdateReportingIdentitySettingsRequest request =
+   *       UpdateReportingIdentitySettingsRequest.newBuilder()
+   *           .setReportingIdentitySettings(ReportingIdentitySettings.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.updateReportingIdentitySettingsCallable().futureCall(request);
+   *   // Do something.
+   *   ReportingIdentitySettings response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateReportingIdentitySettingsCallable() { + return stub.updateReportingIdentitySettingsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Looks up settings related to user-provided data for a property. diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java index f846a3b7501c..85e685dac97f 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java @@ -1168,6 +1168,13 @@ public UnaryCallSettings deleteCalculatedM .getReportingIdentitySettingsSettings(); } + /** Returns the object with the settings used for calls to updateReportingIdentitySettings. */ + public UnaryCallSettings + updateReportingIdentitySettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateReportingIdentitySettingsSettings(); + } + /** Returns the object with the settings used for calls to getUserProvidedDataSettings. */ public UnaryCallSettings getUserProvidedDataSettingsSettings() { @@ -2339,6 +2346,13 @@ public UnaryCallSettings.Builder deleteAdSenseL return getStubSettingsBuilder().getReportingIdentitySettingsSettings(); } + /** Returns the builder for the settings used for calls to updateReportingIdentitySettings. */ + public UnaryCallSettings.Builder< + UpdateReportingIdentitySettingsRequest, ReportingIdentitySettings> + updateReportingIdentitySettingsSettings() { + return getStubSettingsBuilder().updateReportingIdentitySettingsSettings(); + } + /** Returns the builder for the settings used for calls to getUserProvidedDataSettings. */ public UnaryCallSettings.Builder getUserProvidedDataSettingsSettings() { diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json index 3ca72cd0beb4..4d882a0094b0 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json @@ -463,6 +463,9 @@ "UpdateReportingDataAnnotation": { "methods": ["updateReportingDataAnnotation", "updateReportingDataAnnotation", "updateReportingDataAnnotationCallable"] }, + "UpdateReportingIdentitySettings": { + "methods": ["updateReportingIdentitySettings", "updateReportingIdentitySettings", "updateReportingIdentitySettingsCallable"] + }, "UpdateSKAdNetworkConversionValueSchema": { "methods": ["updateSKAdNetworkConversionValueSchema", "updateSKAdNetworkConversionValueSchema", "updateSKAdNetworkConversionValueSchemaCallable"] }, diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java index 95c4a8f885cf..faafdcd657df 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java @@ -271,6 +271,7 @@ import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; import com.google.analytics.admin.v1alpha.UpdateReportingDataAnnotationRequest; +import com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest; import com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest; @@ -1221,6 +1222,12 @@ public UnaryCallable deleteCalculatedMetri "Not implemented: getReportingIdentitySettingsCallable()"); } + public UnaryCallable + updateReportingIdentitySettingsCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateReportingIdentitySettingsCallable()"); + } + public UnaryCallable getUserProvidedDataSettingsCallable() { throw new UnsupportedOperationException( diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java index 542b462b37ac..af4b7a5b700f 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java @@ -273,6 +273,7 @@ import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; import com.google.analytics.admin.v1alpha.UpdateReportingDataAnnotationRequest; +import com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest; import com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest; @@ -731,6 +732,8 @@ public class AnalyticsAdminServiceStubSettings getSubpropertySyncConfigSettings; private final UnaryCallSettings getReportingIdentitySettingsSettings; + private final UnaryCallSettings + updateReportingIdentitySettingsSettings; private final UnaryCallSettings getUserProvidedDataSettingsSettings; @@ -3604,6 +3607,12 @@ public UnaryCallSettings deleteCalculatedM return getReportingIdentitySettingsSettings; } + /** Returns the object with the settings used for calls to updateReportingIdentitySettings. */ + public UnaryCallSettings + updateReportingIdentitySettingsSettings() { + return updateReportingIdentitySettingsSettings; + } + /** Returns the object with the settings used for calls to getUserProvidedDataSettings. */ public UnaryCallSettings getUserProvidedDataSettingsSettings() { @@ -3918,6 +3927,8 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx getSubpropertySyncConfigSettings = settingsBuilder.getSubpropertySyncConfigSettings().build(); getReportingIdentitySettingsSettings = settingsBuilder.getReportingIdentitySettingsSettings().build(); + updateReportingIdentitySettingsSettings = + settingsBuilder.updateReportingIdentitySettingsSettings().build(); getUserProvidedDataSettingsSettings = settingsBuilder.getUserProvidedDataSettingsSettings().build(); } @@ -4327,6 +4338,9 @@ public static class Builder private final UnaryCallSettings.Builder< GetReportingIdentitySettingsRequest, ReportingIdentitySettings> getReportingIdentitySettingsSettings; + private final UnaryCallSettings.Builder< + UpdateReportingIdentitySettingsRequest, ReportingIdentitySettings> + updateReportingIdentitySettingsSettings; private final UnaryCallSettings.Builder< GetUserProvidedDataSettingsRequest, UserProvidedDataSettings> getUserProvidedDataSettingsSettings; @@ -4561,6 +4575,7 @@ protected Builder(ClientContext clientContext) { updateSubpropertySyncConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getSubpropertySyncConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getReportingIdentitySettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateReportingIdentitySettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getUserProvidedDataSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = @@ -4719,6 +4734,7 @@ protected Builder(ClientContext clientContext) { updateSubpropertySyncConfigSettings, getSubpropertySyncConfigSettings, getReportingIdentitySettingsSettings, + updateReportingIdentitySettingsSettings, getUserProvidedDataSettingsSettings); initDefaults(this); } @@ -4921,6 +4937,8 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { getSubpropertySyncConfigSettings = settings.getSubpropertySyncConfigSettings.toBuilder(); getReportingIdentitySettingsSettings = settings.getReportingIdentitySettingsSettings.toBuilder(); + updateReportingIdentitySettingsSettings = + settings.updateReportingIdentitySettingsSettings.toBuilder(); getUserProvidedDataSettingsSettings = settings.getUserProvidedDataSettingsSettings.toBuilder(); @@ -5080,6 +5098,7 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { updateSubpropertySyncConfigSettings, getSubpropertySyncConfigSettings, getReportingIdentitySettingsSettings, + updateReportingIdentitySettingsSettings, getUserProvidedDataSettingsSettings); } @@ -5878,6 +5897,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .updateReportingIdentitySettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .getUserProvidedDataSettingsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -6952,6 +6976,13 @@ public UnaryCallSettings.Builder deleteAdSenseL return getReportingIdentitySettingsSettings; } + /** Returns the builder for the settings used for calls to updateReportingIdentitySettings. */ + public UnaryCallSettings.Builder< + UpdateReportingIdentitySettingsRequest, ReportingIdentitySettings> + updateReportingIdentitySettingsSettings() { + return updateReportingIdentitySettingsSettings; + } + /** Returns the builder for the settings used for calls to getUserProvidedDataSettings. */ public UnaryCallSettings.Builder getUserProvidedDataSettingsSettings() { diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java index 27f5287590e1..e3e10b82cb9c 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java @@ -271,6 +271,7 @@ import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; import com.google.analytics.admin.v1alpha.UpdateReportingDataAnnotationRequest; +import com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest; import com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest; @@ -2325,6 +2326,22 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor< + UpdateReportingIdentitySettingsRequest, ReportingIdentitySettings> + updateReportingIdentitySettingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateReportingIdentitySettings") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateReportingIdentitySettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ReportingIdentitySettings.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor< GetUserProvidedDataSettingsRequest, UserProvidedDataSettings> getUserProvidedDataSettingsMethodDescriptor = @@ -2686,6 +2703,8 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { getSubpropertySyncConfigCallable; private final UnaryCallable getReportingIdentitySettingsCallable; + private final UnaryCallable + updateReportingIdentitySettingsCallable; private final UnaryCallable getUserProvidedDataSettingsCallable; @@ -4573,6 +4592,20 @@ protected GrpcAnalyticsAdminServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings + updateReportingIdentitySettingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(updateReportingIdentitySettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "reporting_identity_settings.name", + String.valueOf(request.getReportingIdentitySettings().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings getUserProvidedDataSettingsTransportSettings = GrpcCallSettings @@ -5424,6 +5457,11 @@ protected GrpcAnalyticsAdminServiceStub( getReportingIdentitySettingsTransportSettings, settings.getReportingIdentitySettingsSettings(), clientContext); + this.updateReportingIdentitySettingsCallable = + callableFactory.createUnaryCallable( + updateReportingIdentitySettingsTransportSettings, + settings.updateReportingIdentitySettingsSettings(), + clientContext); this.getUserProvidedDataSettingsCallable = callableFactory.createUnaryCallable( getUserProvidedDataSettingsTransportSettings, @@ -6490,6 +6528,12 @@ public UnaryCallable deleteCalculatedMetri return getReportingIdentitySettingsCallable; } + @Override + public UnaryCallable + updateReportingIdentitySettingsCallable() { + return updateReportingIdentitySettingsCallable; + } + @Override public UnaryCallable getUserProvidedDataSettingsCallable() { diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java index 8b0a3a55b3e7..4ebcc1d0e25e 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java @@ -271,6 +271,7 @@ import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; import com.google.analytics.admin.v1alpha.UpdateReportingDataAnnotationRequest; +import com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest; import com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest; @@ -6275,6 +6276,53 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .build()) .build(); + private static final ApiMethodDescriptor< + UpdateReportingIdentitySettingsRequest, ReportingIdentitySettings> + updateReportingIdentitySettingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateReportingIdentitySettings") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{reportingIdentitySettings.name=properties/*/reportingIdentitySettings}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "reportingIdentitySettings.name", + request.getReportingIdentitySettings().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "reportingIdentitySettings", + request.getReportingIdentitySettings(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ReportingIdentitySettings.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor< GetUserProvidedDataSettingsRequest, UserProvidedDataSettings> getUserProvidedDataSettingsMethodDescriptor = @@ -6658,6 +6706,8 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub getSubpropertySyncConfigCallable; private final UnaryCallable getReportingIdentitySettingsCallable; + private final UnaryCallable + updateReportingIdentitySettingsCallable; private final UnaryCallable getUserProvidedDataSettingsCallable; @@ -8739,6 +8789,21 @@ protected HttpJsonAnalyticsAdminServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + HttpJsonCallSettings + updateReportingIdentitySettingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(updateReportingIdentitySettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "reporting_identity_settings.name", + String.valueOf(request.getReportingIdentitySettings().getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings getUserProvidedDataSettingsTransportSettings = HttpJsonCallSettings @@ -9591,6 +9656,11 @@ protected HttpJsonAnalyticsAdminServiceStub( getReportingIdentitySettingsTransportSettings, settings.getReportingIdentitySettingsSettings(), clientContext); + this.updateReportingIdentitySettingsCallable = + callableFactory.createUnaryCallable( + updateReportingIdentitySettingsTransportSettings, + settings.updateReportingIdentitySettingsSettings(), + clientContext); this.getUserProvidedDataSettingsCallable = callableFactory.createUnaryCallable( getUserProvidedDataSettingsTransportSettings, @@ -9758,6 +9828,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateSubpropertySyncConfigMethodDescriptor); methodDescriptors.add(getSubpropertySyncConfigMethodDescriptor); methodDescriptors.add(getReportingIdentitySettingsMethodDescriptor); + methodDescriptors.add(updateReportingIdentitySettingsMethodDescriptor); methodDescriptors.add(getUserProvidedDataSettingsMethodDescriptor); return methodDescriptors; } @@ -10814,6 +10885,12 @@ public UnaryCallable deleteCalculatedMetri return getReportingIdentitySettingsCallable; } + @Override + public UnaryCallable + updateReportingIdentitySettingsCallable() { + return updateReportingIdentitySettingsCallable; + } + @Override public UnaryCallable getUserProvidedDataSettingsCallable() { diff --git a/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json b/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json index d26e54152eb1..b6b294ee94c0 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json +++ b/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json @@ -5651,6 +5651,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest", "queryAllDeclaredConstructors": true, diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java index e9ef7a96429b..0a70882c781f 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java @@ -13606,6 +13606,59 @@ public void getReportingIdentitySettingsExceptionTest2() throws Exception { } } + @Test + public void updateReportingIdentitySettingsTest() throws Exception { + ReportingIdentitySettings expectedResponse = + ReportingIdentitySettings.newBuilder() + .setName(ReportingIdentitySettingsName.of("[PROPERTY]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + ReportingIdentitySettings reportingIdentitySettings = + ReportingIdentitySettings.newBuilder() + .setName(ReportingIdentitySettingsName.of("[PROPERTY]").toString()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ReportingIdentitySettings actualResponse = + client.updateReportingIdentitySettings(reportingIdentitySettings, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateReportingIdentitySettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ReportingIdentitySettings reportingIdentitySettings = + ReportingIdentitySettings.newBuilder() + .setName(ReportingIdentitySettingsName.of("[PROPERTY]").toString()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateReportingIdentitySettings(reportingIdentitySettings, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getUserProvidedDataSettingsTest() throws Exception { UserProvidedDataSettings expectedResponse = diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java index 604514faf54f..2b0f0b874137 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java @@ -11810,6 +11810,51 @@ public void getReportingIdentitySettingsExceptionTest2() throws Exception { } } + @Test + public void updateReportingIdentitySettingsTest() throws Exception { + ReportingIdentitySettings expectedResponse = + ReportingIdentitySettings.newBuilder() + .setName(ReportingIdentitySettingsName.of("[PROPERTY]").toString()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + ReportingIdentitySettings reportingIdentitySettings = + ReportingIdentitySettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ReportingIdentitySettings actualResponse = + client.updateReportingIdentitySettings(reportingIdentitySettings, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateReportingIdentitySettingsRequest actualRequest = + ((UpdateReportingIdentitySettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(reportingIdentitySettings, actualRequest.getReportingIdentitySettings()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateReportingIdentitySettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + ReportingIdentitySettings reportingIdentitySettings = + ReportingIdentitySettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateReportingIdentitySettings(reportingIdentitySettings, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getUserProvidedDataSettingsTest() throws Exception { UserProvidedDataSettings expectedResponse = diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java index bd67d75d7365..45e0a4f8a761 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java @@ -3439,6 +3439,29 @@ public void getReportingIdentitySettings( } } + @Override + public void updateReportingIdentitySettings( + UpdateReportingIdentitySettingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ReportingIdentitySettings) { + requests.add(request); + responseObserver.onNext(((ReportingIdentitySettings) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UpdateReportingIdentitySettings," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ReportingIdentitySettings.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getUserProvidedDataSettings( GetUserProvidedDataSettingsRequest request, diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java index f25c25559766..3b14b870daa9 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java +++ b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java @@ -7840,6 +7840,59 @@ private AnalyticsAdminServiceGrpc() {} return getGetReportingIdentitySettingsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest, + com.google.analytics.admin.v1alpha.ReportingIdentitySettings> + getUpdateReportingIdentitySettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateReportingIdentitySettings", + requestType = com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ReportingIdentitySettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest, + com.google.analytics.admin.v1alpha.ReportingIdentitySettings> + getUpdateReportingIdentitySettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest, + com.google.analytics.admin.v1alpha.ReportingIdentitySettings> + getUpdateReportingIdentitySettingsMethod; + if ((getUpdateReportingIdentitySettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateReportingIdentitySettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateReportingIdentitySettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateReportingIdentitySettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateReportingIdentitySettingsMethod = + getUpdateReportingIdentitySettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateReportingIdentitySettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .UpdateReportingIdentitySettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ReportingIdentitySettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateReportingIdentitySettings")) + .build(); + } + } + } + return getUpdateReportingIdentitySettingsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest, com.google.analytics.admin.v1alpha.UserProvidedDataSettings> @@ -10352,6 +10405,21 @@ default void getReportingIdentitySettings( getGetReportingIdentitySettingsMethod(), responseObserver); } + /** + * + * + *
+     * Updates the reporting identity settings for this property.
+     * 
+ */ + default void updateReportingIdentitySettings( + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateReportingIdentitySettingsMethod(), responseObserver); + } + /** * * @@ -13112,6 +13180,23 @@ public void getReportingIdentitySettings( responseObserver); } + /** + * + * + *
+     * Updates the reporting identity settings for this property.
+     * 
+ */ + public void updateReportingIdentitySettings( + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateReportingIdentitySettingsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -15466,6 +15551,21 @@ public com.google.analytics.admin.v1alpha.SubpropertySyncConfig getSubpropertySy getChannel(), getGetReportingIdentitySettingsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Updates the reporting identity settings for this property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ReportingIdentitySettings + updateReportingIdentitySettings( + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateReportingIdentitySettingsMethod(), getCallOptions(), request); + } + /** * * @@ -17664,6 +17764,20 @@ public com.google.analytics.admin.v1alpha.SubpropertySyncConfig getSubpropertySy getChannel(), getGetReportingIdentitySettingsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Updates the reporting identity settings for this property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ReportingIdentitySettings + updateReportingIdentitySettings( + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateReportingIdentitySettingsMethod(), getCallOptions(), request); + } + /** * * @@ -20051,6 +20165,22 @@ protected AnalyticsAdminServiceFutureStub build( getChannel().newCall(getGetReportingIdentitySettingsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Updates the reporting identity settings for this property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ReportingIdentitySettings> + updateReportingIdentitySettings( + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateReportingIdentitySettingsMethod(), getCallOptions()), + request); + } + /** * * @@ -20221,7 +20351,8 @@ protected AnalyticsAdminServiceFutureStub build( private static final int METHODID_UPDATE_SUBPROPERTY_SYNC_CONFIG = 151; private static final int METHODID_GET_SUBPROPERTY_SYNC_CONFIG = 152; private static final int METHODID_GET_REPORTING_IDENTITY_SETTINGS = 153; - private static final int METHODID_GET_USER_PROVIDED_DATA_SETTINGS = 154; + private static final int METHODID_UPDATE_REPORTING_IDENTITY_SETTINGS = 154; + private static final int METHODID_GET_USER_PROVIDED_DATA_SETTINGS = 155; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -21229,6 +21360,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.analytics.admin.v1alpha.ReportingIdentitySettings>) responseObserver); break; + case METHODID_UPDATE_REPORTING_IDENTITY_SETTINGS: + serviceImpl.updateReportingIdentitySettings( + (com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ReportingIdentitySettings>) + responseObserver); + break; case METHODID_GET_USER_PROVIDED_DATA_SETTINGS: serviceImpl.getUserProvidedDataSettings( (com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest) request, @@ -22317,6 +22455,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.analytics.admin.v1alpha.GetReportingIdentitySettingsRequest, com.google.analytics.admin.v1alpha.ReportingIdentitySettings>( service, METHODID_GET_REPORTING_IDENTITY_SETTINGS))) + .addMethod( + getUpdateReportingIdentitySettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest, + com.google.analytics.admin.v1alpha.ReportingIdentitySettings>( + service, METHODID_UPDATE_REPORTING_IDENTITY_SETTINGS))) .addMethod( getGetUserProvidedDataSettingsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -22529,6 +22674,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateSubpropertySyncConfigMethod()) .addMethod(getGetSubpropertySyncConfigMethod()) .addMethod(getGetReportingIdentitySettingsMethod()) + .addMethod(getUpdateReportingIdentitySettingsMethod()) .addMethod(getGetUserProvidedDataSettingsMethod()) .build(); } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java index 5dd30719a5e1..00a6e9aebd03 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java @@ -812,6 +812,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_GetReportingIdentitySettingsRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_GetReportingIdentitySettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateReportingIdentitySettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateReportingIdentitySettingsRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -1593,912 +1597,926 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "askB\003\340A\001\"t\n#GetReportingIdentitySettings" + "Request\022M\n\004name\030\001 \001(\tB?\340A\002\372A9\n7analytics" + "admin.googleapis.com/ReportingIdentitySe" - + "ttings\"r\n\"GetUserProvidedDataSettingsReq" - + "uest\022L\n\004name\030\001 \001(\tB>\340A\002\372A8\n6analyticsadm" - + "in.googleapis.com/UserProvidedDataSettin" - + "gs2\210\231\002\n\025AnalyticsAdminService\022\223\001\n\nGetAcc" - + "ount\0221.google.analytics.admin.v1alpha.Ge" - + "tAccountRequest\032\'.google.analytics.admin" - + ".v1alpha.Account\")\332A\004name\202\323\344\223\002\034\022\032/v1alph" - + "a/{name=accounts/*}\022\224\001\n\014ListAccounts\0223.g" - + "oogle.analytics.admin.v1alpha.ListAccoun" - + "tsRequest\0324.google.analytics.admin.v1alp" - + "ha.ListAccountsResponse\"\031\202\323\344\223\002\023\022\021/v1alph" - + "a/accounts\022\210\001\n\rDeleteAccount\0224.google.an" - + "alytics.admin.v1alpha.DeleteAccountReque" - + "st\032\026.google.protobuf.Empty\")\332A\004name\202\323\344\223\002" - + "\034*\032/v1alpha/{name=accounts/*}\022\271\001\n\rUpdate" - + "Account\0224.google.analytics.admin.v1alpha" - + ".UpdateAccountRequest\032\'.google.analytics" - + ".admin.v1alpha.Account\"I\332A\023account,updat" - + "e_mask\202\323\344\223\002-2\"/v1alpha/{account.name=acc" - + "ounts/*}:\007account\022\314\001\n\026ProvisionAccountTi" - + "cket\022=.google.analytics.admin.v1alpha.Pr" - + "ovisionAccountTicketRequest\032>.google.ana" - + "lytics.admin.v1alpha.ProvisionAccountTic" - + "ketResponse\"3\202\323\344\223\002-\"(/v1alpha/accounts:p" - + "rovisionAccountTicket:\001*\022\264\001\n\024ListAccount" - + "Summaries\022;.google.analytics.admin.v1alp" - + "ha.ListAccountSummariesRequest\032<.google." - + "analytics.admin.v1alpha.ListAccountSumma" - + "riesResponse\"!\202\323\344\223\002\033\022\031/v1alpha/accountSu" - + "mmaries\022\230\001\n\013GetProperty\0222.google.analyti" - + "cs.admin.v1alpha.GetPropertyRequest\032(.go" - + "ogle.analytics.admin.v1alpha.Property\"+\332" - + "A\004name\202\323\344\223\002\036\022\034/v1alpha/{name=properties/" - + "*}\022\234\001\n\016ListProperties\0225.google.analytics" - + ".admin.v1alpha.ListPropertiesRequest\0326.g" - + "oogle.analytics.admin.v1alpha.ListProper" - + "tiesResponse\"\033\202\323\344\223\002\025\022\023/v1alpha/propertie" - + "s\022\243\001\n\016CreateProperty\0225.google.analytics." - + "admin.v1alpha.CreatePropertyRequest\032(.go" - + "ogle.analytics.admin.v1alpha.Property\"0\332" - + "A\010property\202\323\344\223\002\037\"\023/v1alpha/properties:\010p" - + "roperty\022\236\001\n\016DeleteProperty\0225.google.anal" - + "ytics.admin.v1alpha.DeletePropertyReques" - + "t\032(.google.analytics.admin.v1alpha.Prope" - + "rty\"+\332A\004name\202\323\344\223\002\036*\034/v1alpha/{name=prope" - + "rties/*}\022\301\001\n\016UpdateProperty\0225.google.ana" - + "lytics.admin.v1alpha.UpdatePropertyReque" - + "st\032(.google.analytics.admin.v1alpha.Prop" - + "erty\"N\332A\024property,update_mask\202\323\344\223\00212%/v1" - + "alpha/{property.name=properties/*}:\010prop" - + "erty\022\331\001\n\022CreateFirebaseLink\0229.google.ana" - + "lytics.admin.v1alpha.CreateFirebaseLinkR" - + "equest\032,.google.analytics.admin.v1alpha." - + "FirebaseLink\"Z\332A\024parent,firebase_link\202\323\344" - + "\223\002=\",/v1alpha/{parent=properties/*}/fire" - + "baseLinks:\rfirebase_link\022\244\001\n\022DeleteFireb" - + "aseLink\0229.google.analytics.admin.v1alpha" - + ".DeleteFirebaseLinkRequest\032\026.google.prot" - + "obuf.Empty\";\332A\004name\202\323\344\223\002.*,/v1alpha/{nam" - + "e=properties/*/firebaseLinks/*}\022\307\001\n\021List" - + "FirebaseLinks\0228.google.analytics.admin.v" - + "1alpha.ListFirebaseLinksRequest\0329.google" - + ".analytics.admin.v1alpha.ListFirebaseLin" - + "ksResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1alpha/{p" - + "arent=properties/*}/firebaseLinks\022\303\001\n\020Ge" - + "tGlobalSiteTag\0227.google.analytics.admin." - + "v1alpha.GetGlobalSiteTagRequest\032-.google" - + ".analytics.admin.v1alpha.GlobalSiteTag\"G" - + "\332A\004name\202\323\344\223\002:\0228/v1alpha/{name=properties" - + "/*/dataStreams/*/globalSiteTag}\022\341\001\n\023Crea" - + "teGoogleAdsLink\022:.google.analytics.admin" - + ".v1alpha.CreateGoogleAdsLinkRequest\032-.go" - + "ogle.analytics.admin.v1alpha.GoogleAdsLi" - + "nk\"_\332A\026parent,google_ads_link\202\323\344\223\002@\"-/v1" - + "alpha/{parent=properties/*}/googleAdsLin", - "ks:\017google_ads_link\022\366\001\n\023UpdateGoogleAdsL" - + "ink\022:.google.analytics.admin.v1alpha.Upd" - + "ateGoogleAdsLinkRequest\032-.google.analyti" - + "cs.admin.v1alpha.GoogleAdsLink\"t\332A\033googl" - + "e_ads_link,update_mask\202\323\344\223\002P2=/v1alpha/{" - + "google_ads_link.name=properties/*/google" - + "AdsLinks/*}:\017google_ads_link\022\247\001\n\023DeleteG" - + "oogleAdsLink\022:.google.analytics.admin.v1" - + "alpha.DeleteGoogleAdsLinkRequest\032\026.googl" - + "e.protobuf.Empty\"<\332A\004name\202\323\344\223\002/*-/v1alph" - + "a/{name=properties/*/googleAdsLinks/*}\022\313" - + "\001\n\022ListGoogleAdsLinks\0229.google.analytics" - + ".admin.v1alpha.ListGoogleAdsLinksRequest" - + "\032:.google.analytics.admin.v1alpha.ListGo" - + "ogleAdsLinksResponse\">\332A\006parent\202\323\344\223\002/\022-/" - + "v1alpha/{parent=properties/*}/googleAdsL" - + "inks\022\313\001\n\026GetDataSharingSettings\022=.google" - + ".analytics.admin.v1alpha.GetDataSharingS" - + "ettingsRequest\0323.google.analytics.admin." - + "v1alpha.DataSharingSettings\"=\332A\004name\202\323\344\223" - + "\0020\022./v1alpha/{name=accounts/*/dataSharin" - + "gSettings}\022\366\001\n\034GetMeasurementProtocolSec" - + "ret\022C.google.analytics.admin.v1alpha.Get" - + "MeasurementProtocolSecretRequest\0329.googl" - + "e.analytics.admin.v1alpha.MeasurementPro" - + "tocolSecret\"V\332A\004name\202\323\344\223\002I\022G/v1alpha/{na" - + "me=properties/*/dataStreams/*/measuremen" - + "tProtocolSecrets/*}\022\211\002\n\036ListMeasurementP" - + "rotocolSecrets\022E.google.analytics.admin." - + "v1alpha.ListMeasurementProtocolSecretsRe" - + "quest\032F.google.analytics.admin.v1alpha.L" - + "istMeasurementProtocolSecretsResponse\"X\332" - + "A\006parent\202\323\344\223\002I\022G/v1alpha/{parent=propert" - + "ies/*/dataStreams/*}/measurementProtocol" - + "Secrets\022\270\002\n\037CreateMeasurementProtocolSec" - + "ret\022F.google.analytics.admin.v1alpha.Cre" - + "ateMeasurementProtocolSecretRequest\0329.go" - + "ogle.analytics.admin.v1alpha.Measurement" - + "ProtocolSecret\"\221\001\332A\"parent,measurement_p" - + "rotocol_secret\202\323\344\223\002f\"G/v1alpha/{parent=p" - + "roperties/*/dataStreams/*}/measurementPr" - + "otocolSecrets:\033measurement_protocol_secr" - + "et\022\331\001\n\037DeleteMeasurementProtocolSecret\022F" - + ".google.analytics.admin.v1alpha.DeleteMe" - + "asurementProtocolSecretRequest\032\026.google." - + "protobuf.Empty\"V\332A\004name\202\323\344\223\002I*G/v1alpha/" - + "{name=properties/*/dataStreams/*/measure" - + "mentProtocolSecrets/*}\022\332\002\n\037UpdateMeasure" - + "mentProtocolSecret\022F.google.analytics.ad" - + "min.v1alpha.UpdateMeasurementProtocolSec" - + "retRequest\0329.google.analytics.admin.v1al" - + "pha.MeasurementProtocolSecret\"\263\001\332A\'measu" - + "rement_protocol_secret,update_mask\202\323\344\223\002\202" - + "\0012c/v1alpha/{measurement_protocol_secret" - + ".name=properties/*/dataStreams/*/measure" - + "mentProtocolSecrets/*}:\033measurement_prot" - + "ocol_secret\022\367\001\n\035AcknowledgeUserDataColle" - + "ction\022D.google.analytics.admin.v1alpha.A" - + "cknowledgeUserDataCollectionRequest\032E.go" - + "ogle.analytics.admin.v1alpha.Acknowledge" - + "UserDataCollectionResponse\"I\202\323\344\223\002C\">/v1a" - + "lpha/{property=properties/*}:acknowledge" - + "UserDataCollection:\001*\022\221\002\n#GetSKAdNetwork" - + "ConversionValueSchema\022J.google.analytics" - + ".admin.v1alpha.GetSKAdNetworkConversionV" - + "alueSchemaRequest\032@.google.analytics.adm" - + "in.v1alpha.SKAdNetworkConversionValueSch" - + "ema\"\\\332A\004name\202\323\344\223\002O\022M/v1alpha/{name=prope" - + "rties/*/dataStreams/*/sKAdNetworkConvers" - + "ionValueSchema/*}\022\343\002\n&CreateSKAdNetworkC" - + "onversionValueSchema\022M.google.analytics." - + "admin.v1alpha.CreateSKAdNetworkConversio" - + "nValueSchemaRequest\032@.google.analytics.a" - + "dmin.v1alpha.SKAdNetworkConversionValueS" - + "chema\"\247\001\332A*parent,skadnetwork_conversion" - + "_value_schema\202\323\344\223\002t\"M/v1alpha/{parent=pr" - + "operties/*/dataStreams/*}/sKAdNetworkCon" - + "versionValueSchema:#skadnetwork_conversi" - + "on_value_schema\022\355\001\n&DeleteSKAdNetworkCon" - + "versionValueSchema\022M.google.analytics.ad" - + "min.v1alpha.DeleteSKAdNetworkConversionV" - + "alueSchemaRequest\032\026.google.protobuf.Empt" - + "y\"\\\332A\004name\202\323\344\223\002O*M/v1alpha/{name=propert" + + "ttings\"\303\001\n&UpdateReportingIdentitySettin" + + "gsRequest\022c\n\033reporting_identity_settings" + + "\030\001 \001(\01329.google.analytics.admin.v1alpha." + + "ReportingIdentitySettingsB\003\340A\002\0224\n\013update" + + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" + + "\003\340A\001\"r\n\"GetUserProvidedDataSettingsReque" + + "st\022L\n\004name\030\001 \001(\tB>\340A\002\372A8\n6analyticsadmin" + + ".googleapis.com/UserProvidedDataSettings" + + "2\323\233\002\n\025AnalyticsAdminService\022\223\001\n\nGetAccou" + + "nt\0221.google.analytics.admin.v1alpha.GetA" + + "ccountRequest\032\'.google.analytics.admin.v" + + "1alpha.Account\")\332A\004name\202\323\344\223\002\034\022\032/v1alpha/" + + "{name=accounts/*}\022\224\001\n\014ListAccounts\0223.goo" + + "gle.analytics.admin.v1alpha.ListAccounts" + + "Request\0324.google.analytics.admin.v1alpha" + + ".ListAccountsResponse\"\031\202\323\344\223\002\023\022\021/v1alpha/" + + "accounts\022\210\001\n\rDeleteAccount\0224.google.anal" + + "ytics.admin.v1alpha.DeleteAccountRequest" + + "\032\026.google.protobuf.Empty\")\332A\004name\202\323\344\223\002\034*" + + "\032/v1alpha/{name=accounts/*}\022\271\001\n\rUpdateAc" + + "count\0224.google.analytics.admin.v1alpha.U" + + "pdateAccountRequest\032\'.google.analytics.a" + + "dmin.v1alpha.Account\"I\332A\023account,update_" + + "mask\202\323\344\223\002-2\"/v1alpha/{account.name=accou" + + "nts/*}:\007account\022\314\001\n\026ProvisionAccountTick" + + "et\022=.google.analytics.admin.v1alpha.Prov" + + "isionAccountTicketRequest\032>.google.analy" + + "tics.admin.v1alpha.ProvisionAccountTicke" + + "tResponse\"3\202\323\344\223\002-\"(/v1alpha/accounts:pro" + + "visionAccountTicket:\001*\022\264\001\n\024ListAccountSu" + + "mmaries\022;.google.analytics.admin.v1alpha" + + ".ListAccountSummariesRequest\032<.google.an" + + "alytics.admin.v1alpha.ListAccountSummari" + + "esResponse\"!\202\323\344\223\002\033\022\031/v1alpha/accountSumm" + + "aries\022\230\001\n\013GetProperty\0222.google.analytics" + + ".admin.v1alpha.GetPropertyRequest\032(.goog" + + "le.analytics.admin.v1alpha.Property\"+\332A\004" + + "name\202\323\344\223\002\036\022\034/v1alpha/{name=properties/*}" + + "\022\234\001\n\016ListProperties\0225.google.analytics.a" + + "dmin.v1alpha.ListPropertiesRequest\0326.goo" + + "gle.analytics.admin.v1alpha.ListProperti" + + "esResponse\"\033\202\323\344\223\002\025\022\023/v1alpha/properties\022" + + "\243\001\n\016CreateProperty\0225.google.analytics.ad" + + "min.v1alpha.CreatePropertyRequest\032(.goog" + + "le.analytics.admin.v1alpha.Property\"0\332A\010" + + "property\202\323\344\223\002\037\"\023/v1alpha/properties:\010pro" + + "perty\022\236\001\n\016DeleteProperty\0225.google.analyt" + + "ics.admin.v1alpha.DeletePropertyRequest\032" + + "(.google.analytics.admin.v1alpha.Propert" + + "y\"+\332A\004name\202\323\344\223\002\036*\034/v1alpha/{name=propert" + + "ies/*}\022\301\001\n\016UpdateProperty\0225.google.analy" + + "tics.admin.v1alpha.UpdatePropertyRequest" + + "\032(.google.analytics.admin.v1alpha.Proper" + + "ty\"N\332A\024property,update_mask\202\323\344\223\00212%/v1al" + + "pha/{property.name=properties/*}:\010proper" + + "ty\022\331\001\n\022CreateFirebaseLink\0229.google.analy" + + "tics.admin.v1alpha.CreateFirebaseLinkReq" + + "uest\032,.google.analytics.admin.v1alpha.Fi" + + "rebaseLink\"Z\332A\024parent,firebase_link\202\323\344\223\002" + + "=\",/v1alpha/{parent=properties/*}/fireba" + + "seLinks:\rfirebase_link\022\244\001\n\022DeleteFirebas" + + "eLink\0229.google.analytics.admin.v1alpha.D" + + "eleteFirebaseLinkRequest\032\026.google.protob" + + "uf.Empty\";\332A\004name\202\323\344\223\002.*,/v1alpha/{name=" + + "properties/*/firebaseLinks/*}\022\307\001\n\021ListFi" + + "rebaseLinks\0228.google.analytics.admin.v1a" + + "lpha.ListFirebaseLinksRequest\0329.google.a" + + "nalytics.admin.v1alpha.ListFirebaseLinks" + + "Response\"=\332A\006parent\202\323\344\223\002.\022,/v1alpha/{par" + + "ent=properties/*}/firebaseLinks\022\303\001\n\020GetG" + + "lobalSiteTag\0227.google.analytics.admin.v1" + + "alpha.GetGlobalSiteTagRequest\032-.google.a" + + "nalytics.admin.v1alpha.GlobalSiteTag\"G\332A" + + "\004name\202\323\344\223\002:\0228/v1alpha/{name=properties/*" + + "/dataStreams/*/globalSiteTag}\022\341\001\n\023Create", + "GoogleAdsLink\022:.google.analytics.admin.v" + + "1alpha.CreateGoogleAdsLinkRequest\032-.goog" + + "le.analytics.admin.v1alpha.GoogleAdsLink" + + "\"_\332A\026parent,google_ads_link\202\323\344\223\002@\"-/v1al" + + "pha/{parent=properties/*}/googleAdsLinks" + + ":\017google_ads_link\022\366\001\n\023UpdateGoogleAdsLin" + + "k\022:.google.analytics.admin.v1alpha.Updat" + + "eGoogleAdsLinkRequest\032-.google.analytics" + + ".admin.v1alpha.GoogleAdsLink\"t\332A\033google_" + + "ads_link,update_mask\202\323\344\223\002P2=/v1alpha/{go" + + "ogle_ads_link.name=properties/*/googleAd" + + "sLinks/*}:\017google_ads_link\022\247\001\n\023DeleteGoo" + + "gleAdsLink\022:.google.analytics.admin.v1al" + + "pha.DeleteGoogleAdsLinkRequest\032\026.google." + + "protobuf.Empty\"<\332A\004name\202\323\344\223\002/*-/v1alpha/" + + "{name=properties/*/googleAdsLinks/*}\022\313\001\n" + + "\022ListGoogleAdsLinks\0229.google.analytics.a" + + "dmin.v1alpha.ListGoogleAdsLinksRequest\032:" + + ".google.analytics.admin.v1alpha.ListGoog" + + "leAdsLinksResponse\">\332A\006parent\202\323\344\223\002/\022-/v1" + + "alpha/{parent=properties/*}/googleAdsLin" + + "ks\022\313\001\n\026GetDataSharingSettings\022=.google.a" + + "nalytics.admin.v1alpha.GetDataSharingSet" + + "tingsRequest\0323.google.analytics.admin.v1" + + "alpha.DataSharingSettings\"=\332A\004name\202\323\344\223\0020" + + "\022./v1alpha/{name=accounts/*/dataSharingS" + + "ettings}\022\366\001\n\034GetMeasurementProtocolSecre" + + "t\022C.google.analytics.admin.v1alpha.GetMe" + + "asurementProtocolSecretRequest\0329.google." + + "analytics.admin.v1alpha.MeasurementProto" + + "colSecret\"V\332A\004name\202\323\344\223\002I\022G/v1alpha/{name" + + "=properties/*/dataStreams/*/measurementP" + + "rotocolSecrets/*}\022\211\002\n\036ListMeasurementPro" + + "tocolSecrets\022E.google.analytics.admin.v1" + + "alpha.ListMeasurementProtocolSecretsRequ" + + "est\032F.google.analytics.admin.v1alpha.Lis" + + "tMeasurementProtocolSecretsResponse\"X\332A\006" + + "parent\202\323\344\223\002I\022G/v1alpha/{parent=propertie" + + "s/*/dataStreams/*}/measurementProtocolSe" + + "crets\022\270\002\n\037CreateMeasurementProtocolSecre" + + "t\022F.google.analytics.admin.v1alpha.Creat" + + "eMeasurementProtocolSecretRequest\0329.goog" + + "le.analytics.admin.v1alpha.MeasurementPr" + + "otocolSecret\"\221\001\332A\"parent,measurement_pro" + + "tocol_secret\202\323\344\223\002f\"G/v1alpha/{parent=pro" + + "perties/*/dataStreams/*}/measurementProt" + + "ocolSecrets:\033measurement_protocol_secret" + + "\022\331\001\n\037DeleteMeasurementProtocolSecret\022F.g" + + "oogle.analytics.admin.v1alpha.DeleteMeas" + + "urementProtocolSecretRequest\032\026.google.pr" + + "otobuf.Empty\"V\332A\004name\202\323\344\223\002I*G/v1alpha/{n" + + "ame=properties/*/dataStreams/*/measureme" + + "ntProtocolSecrets/*}\022\332\002\n\037UpdateMeasureme" + + "ntProtocolSecret\022F.google.analytics.admi" + + "n.v1alpha.UpdateMeasurementProtocolSecre" + + "tRequest\0329.google.analytics.admin.v1alph" + + "a.MeasurementProtocolSecret\"\263\001\332A\'measure" + + "ment_protocol_secret,update_mask\202\323\344\223\002\202\0012" + + "c/v1alpha/{measurement_protocol_secret.n" + + "ame=properties/*/dataStreams/*/measureme" + + "ntProtocolSecrets/*}:\033measurement_protoc" + + "ol_secret\022\367\001\n\035AcknowledgeUserDataCollect" + + "ion\022D.google.analytics.admin.v1alpha.Ack" + + "nowledgeUserDataCollectionRequest\032E.goog" + + "le.analytics.admin.v1alpha.AcknowledgeUs" + + "erDataCollectionResponse\"I\202\323\344\223\002C\">/v1alp" + + "ha/{property=properties/*}:acknowledgeUs" + + "erDataCollection:\001*\022\221\002\n#GetSKAdNetworkCo" + + "nversionValueSchema\022J.google.analytics.a" + + "dmin.v1alpha.GetSKAdNetworkConversionVal" + + "ueSchemaRequest\032@.google.analytics.admin" + + ".v1alpha.SKAdNetworkConversionValueSchem" + + "a\"\\\332A\004name\202\323\344\223\002O\022M/v1alpha/{name=propert" + "ies/*/dataStreams/*/sKAdNetworkConversio" - + "nValueSchema/*}\022\215\003\n&UpdateSKAdNetworkCon" + + "nValueSchema/*}\022\343\002\n&CreateSKAdNetworkCon" + "versionValueSchema\022M.google.analytics.ad" - + "min.v1alpha.UpdateSKAdNetworkConversionV" + + "min.v1alpha.CreateSKAdNetworkConversionV" + "alueSchemaRequest\032@.google.analytics.adm" + "in.v1alpha.SKAdNetworkConversionValueSch" - + "ema\"\321\001\332A/skadnetwork_conversion_value_sc" - + "hema,update_mask\202\323\344\223\002\230\0012q/v1alpha/{skadn" - + "etwork_conversion_value_schema.name=prop" - + "erties/*/dataStreams/*/sKAdNetworkConver" - + "sionValueSchema/*}:#skadnetwork_conversi" - + "on_value_schema\022\244\002\n%ListSKAdNetworkConve" - + "rsionValueSchemas\022L.google.analytics.adm" - + "in.v1alpha.ListSKAdNetworkConversionValu" - + "eSchemasRequest\032M.google.analytics.admin" + + "ema\"\247\001\332A*parent,skadnetwork_conversion_v" + + "alue_schema\202\323\344\223\002t\"M/v1alpha/{parent=prop" + + "erties/*/dataStreams/*}/sKAdNetworkConve" + + "rsionValueSchema:#skadnetwork_conversion" + + "_value_schema\022\355\001\n&DeleteSKAdNetworkConve" + + "rsionValueSchema\022M.google.analytics.admi" + + "n.v1alpha.DeleteSKAdNetworkConversionVal" + + "ueSchemaRequest\032\026.google.protobuf.Empty\"" + + "\\\332A\004name\202\323\344\223\002O*M/v1alpha/{name=propertie" + + "s/*/dataStreams/*/sKAdNetworkConversionV" + + "alueSchema/*}\022\215\003\n&UpdateSKAdNetworkConve" + + "rsionValueSchema\022M.google.analytics.admi" + + "n.v1alpha.UpdateSKAdNetworkConversionVal" + + "ueSchemaRequest\032@.google.analytics.admin" + + ".v1alpha.SKAdNetworkConversionValueSchem" + + "a\"\321\001\332A/skadnetwork_conversion_value_sche" + + "ma,update_mask\202\323\344\223\002\230\0012q/v1alpha/{skadnet" + + "work_conversion_value_schema.name=proper" + + "ties/*/dataStreams/*/sKAdNetworkConversi" + + "onValueSchema/*}:#skadnetwork_conversion" + + "_value_schema\022\244\002\n%ListSKAdNetworkConvers" + + "ionValueSchemas\022L.google.analytics.admin" + ".v1alpha.ListSKAdNetworkConversionValueS" - + "chemasResponse\"^\332A\006parent\202\323\344\223\002O\022M/v1alph" - + "a/{parent=properties/*/dataStreams/*}/sK" - + "AdNetworkConversionValueSchema\022\344\001\n\031Searc" - + "hChangeHistoryEvents\022@.google.analytics." - + "admin.v1alpha.SearchChangeHistoryEventsR" - + "equest\032A.google.analytics.admin.v1alpha." - + "SearchChangeHistoryEventsResponse\"B\202\323\344\223\002" - + "<\"7/v1alpha/{account=accounts/*}:searchC" - + "hangeHistoryEvents:\001*\022\325\001\n\030GetGoogleSigna" - + "lsSettings\022?.google.analytics.admin.v1al" - + "pha.GetGoogleSignalsSettingsRequest\0325.go" - + "ogle.analytics.admin.v1alpha.GoogleSigna" - + "lsSettings\"A\332A\004name\202\323\344\223\0024\0222/v1alpha/{nam" - + "e=properties/*/googleSignalsSettings}\022\254\002" - + "\n\033UpdateGoogleSignalsSettings\022B.google.a" - + "nalytics.admin.v1alpha.UpdateGoogleSigna" - + "lsSettingsRequest\0325.google.analytics.adm" - + "in.v1alpha.GoogleSignalsSettings\"\221\001\332A#go" - + "ogle_signals_settings,update_mask\202\323\344\223\002e2" - + "J/v1alpha/{google_signals_settings.name=" - + "properties/*/googleSignalsSettings}:\027goo" - + "gle_signals_settings\022\356\001\n\025CreateConversio" - + "nEvent\022<.google.analytics.admin.v1alpha." - + "CreateConversionEventRequest\032/.google.an" - + "alytics.admin.v1alpha.ConversionEvent\"f\210" - + "\002\001\332A\027parent,conversion_event\202\323\344\223\002C\"//v1a" - + "lpha/{parent=properties/*}/conversionEve" - + "nts:\020conversion_event\022\204\002\n\025UpdateConversi" - + "onEvent\022<.google.analytics.admin.v1alpha" - + ".UpdateConversionEventRequest\032/.google.a" - + "nalytics.admin.v1alpha.ConversionEvent\"|" - + "\210\002\001\332A\034conversion_event,update_mask\202\323\344\223\002T" - + "2@/v1alpha/{conversion_event.name=proper" - + "ties/*/conversionEvents/*}:\020conversion_e" - + "vent\022\303\001\n\022GetConversionEvent\0229.google.ana" - + "lytics.admin.v1alpha.GetConversionEventR" - + "equest\032/.google.analytics.admin.v1alpha." - + "ConversionEvent\"A\210\002\001\332A\004name\202\323\344\223\0021\022//v1al" - + "pha/{name=properties/*/conversionEvents/" - + "*}\022\260\001\n\025DeleteConversionEvent\022<.google.an" - + "alytics.admin.v1alpha.DeleteConversionEv" - + "entRequest\032\026.google.protobuf.Empty\"A\210\002\001\332" - + "A\004name\202\323\344\223\0021*//v1alpha/{name=properties/" - + "*/conversionEvents/*}\022\326\001\n\024ListConversion" - + "Events\022;.google.analytics.admin.v1alpha." - + "ListConversionEventsRequest\032<.google.ana" - + "lytics.admin.v1alpha.ListConversionEvent" - + "sResponse\"C\210\002\001\332A\006parent\202\323\344\223\0021\022//v1alpha/" - + "{parent=properties/*}/conversionEvents\022\301" - + "\001\n\016CreateKeyEvent\0225.google.analytics.adm" - + "in.v1alpha.CreateKeyEventRequest\032(.googl" - + "e.analytics.admin.v1alpha.KeyEvent\"N\332A\020p" - + "arent,key_event\202\323\344\223\0025\"(/v1alpha/{parent=" - + "properties/*}/keyEvents:\tkey_event\022\320\001\n\016U" - + "pdateKeyEvent\0225.google.analytics.admin.v" - + "1alpha.UpdateKeyEventRequest\032(.google.an" - + "alytics.admin.v1alpha.KeyEvent\"]\332A\025key_e" - + "vent,update_mask\202\323\344\223\002?22/v1alpha/{key_ev" - + "ent.name=properties/*/keyEvents/*}:\tkey_" - + "event\022\244\001\n\013GetKeyEvent\0222.google.analytics" - + ".admin.v1alpha.GetKeyEventRequest\032(.goog" - + "le.analytics.admin.v1alpha.KeyEvent\"7\332A\004" - + "name\202\323\344\223\002*\022(/v1alpha/{name=properties/*/" - + "keyEvents/*}\022\230\001\n\016DeleteKeyEvent\0225.google" - + ".analytics.admin.v1alpha.DeleteKeyEventR" - + "equest\032\026.google.protobuf.Empty\"7\332A\004name\202" - + "\323\344\223\002**(/v1alpha/{name=properties/*/keyEv" - + "ents/*}\022\267\001\n\rListKeyEvents\0224.google.analy" - + "tics.admin.v1alpha.ListKeyEventsRequest\032" - + "5.google.analytics.admin.v1alpha.ListKey" - + "EventsResponse\"9\332A\006parent\202\323\344\223\002*\022(/v1alph" - + "a/{parent=properties/*}/keyEvents\022\370\001\n Ge" - + "tDisplayVideo360AdvertiserLink\022G.google." - + "analytics.admin.v1alpha.GetDisplayVideo3" - + "60AdvertiserLinkRequest\032=.google.analyti" - + "cs.admin.v1alpha.DisplayVideo360Advertis" - + "erLink\"L\332A\004name\202\323\344\223\002?\022=/v1alpha/{name=pr" - + "operties/*/displayVideo360AdvertiserLink" - + "s/*}\022\213\002\n\"ListDisplayVideo360AdvertiserLi" - + "nks\022I.google.analytics.admin.v1alpha.Lis" - + "tDisplayVideo360AdvertiserLinksRequest\032J" + + "chemasRequest\032M.google.analytics.admin.v" + + "1alpha.ListSKAdNetworkConversionValueSch" + + "emasResponse\"^\332A\006parent\202\323\344\223\002O\022M/v1alpha/" + + "{parent=properties/*/dataStreams/*}/sKAd" + + "NetworkConversionValueSchema\022\344\001\n\031SearchC" + + "hangeHistoryEvents\022@.google.analytics.ad" + + "min.v1alpha.SearchChangeHistoryEventsReq" + + "uest\032A.google.analytics.admin.v1alpha.Se" + + "archChangeHistoryEventsResponse\"B\202\323\344\223\002<\"" + + "7/v1alpha/{account=accounts/*}:searchCha" + + "ngeHistoryEvents:\001*\022\325\001\n\030GetGoogleSignals" + + "Settings\022?.google.analytics.admin.v1alph" + + "a.GetGoogleSignalsSettingsRequest\0325.goog" + + "le.analytics.admin.v1alpha.GoogleSignals" + + "Settings\"A\332A\004name\202\323\344\223\0024\0222/v1alpha/{name=" + + "properties/*/googleSignalsSettings}\022\254\002\n\033" + + "UpdateGoogleSignalsSettings\022B.google.ana" + + "lytics.admin.v1alpha.UpdateGoogleSignals" + + "SettingsRequest\0325.google.analytics.admin" + + ".v1alpha.GoogleSignalsSettings\"\221\001\332A#goog" + + "le_signals_settings,update_mask\202\323\344\223\002e2J/" + + "v1alpha/{google_signals_settings.name=pr" + + "operties/*/googleSignalsSettings}:\027googl" + + "e_signals_settings\022\356\001\n\025CreateConversionE" + + "vent\022<.google.analytics.admin.v1alpha.Cr" + + "eateConversionEventRequest\032/.google.anal" + + "ytics.admin.v1alpha.ConversionEvent\"f\210\002\001" + + "\332A\027parent,conversion_event\202\323\344\223\002C\"//v1alp" + + "ha/{parent=properties/*}/conversionEvent" + + "s:\020conversion_event\022\204\002\n\025UpdateConversion" + + "Event\022<.google.analytics.admin.v1alpha.U" + + "pdateConversionEventRequest\032/.google.ana" + + "lytics.admin.v1alpha.ConversionEvent\"|\210\002" + + "\001\332A\034conversion_event,update_mask\202\323\344\223\002T2@" + + "/v1alpha/{conversion_event.name=properti" + + "es/*/conversionEvents/*}:\020conversion_eve" + + "nt\022\303\001\n\022GetConversionEvent\0229.google.analy" + + "tics.admin.v1alpha.GetConversionEventReq" + + "uest\032/.google.analytics.admin.v1alpha.Co" + + "nversionEvent\"A\210\002\001\332A\004name\202\323\344\223\0021\022//v1alph" + + "a/{name=properties/*/conversionEvents/*}" + + "\022\260\001\n\025DeleteConversionEvent\022<.google.anal" + + "ytics.admin.v1alpha.DeleteConversionEven" + + "tRequest\032\026.google.protobuf.Empty\"A\210\002\001\332A\004" + + "name\202\323\344\223\0021*//v1alpha/{name=properties/*/" + + "conversionEvents/*}\022\326\001\n\024ListConversionEv" + + "ents\022;.google.analytics.admin.v1alpha.Li" + + "stConversionEventsRequest\032<.google.analy" + + "tics.admin.v1alpha.ListConversionEventsR" + + "esponse\"C\210\002\001\332A\006parent\202\323\344\223\0021\022//v1alpha/{p" + + "arent=properties/*}/conversionEvents\022\301\001\n" + + "\016CreateKeyEvent\0225.google.analytics.admin" + + ".v1alpha.CreateKeyEventRequest\032(.google." + + "analytics.admin.v1alpha.KeyEvent\"N\332A\020par" + + "ent,key_event\202\323\344\223\0025\"(/v1alpha/{parent=pr" + + "operties/*}/keyEvents:\tkey_event\022\320\001\n\016Upd" + + "ateKeyEvent\0225.google.analytics.admin.v1a" + + "lpha.UpdateKeyEventRequest\032(.google.anal" + + "ytics.admin.v1alpha.KeyEvent\"]\332A\025key_eve" + + "nt,update_mask\202\323\344\223\002?22/v1alpha/{key_even" + + "t.name=properties/*/keyEvents/*}:\tkey_ev" + + "ent\022\244\001\n\013GetKeyEvent\0222.google.analytics.a" + + "dmin.v1alpha.GetKeyEventRequest\032(.google" + + ".analytics.admin.v1alpha.KeyEvent\"7\332A\004na" + + "me\202\323\344\223\002*\022(/v1alpha/{name=properties/*/ke" + + "yEvents/*}\022\230\001\n\016DeleteKeyEvent\0225.google.a" + + "nalytics.admin.v1alpha.DeleteKeyEventReq" + + "uest\032\026.google.protobuf.Empty\"7\332A\004name\202\323\344" + + "\223\002**(/v1alpha/{name=properties/*/keyEven" + + "ts/*}\022\267\001\n\rListKeyEvents\0224.google.analyti" + + "cs.admin.v1alpha.ListKeyEventsRequest\0325." + + "google.analytics.admin.v1alpha.ListKeyEv" + + "entsResponse\"9\332A\006parent\202\323\344\223\002*\022(/v1alpha/" + + "{parent=properties/*}/keyEvents\022\370\001\n GetD" + + "isplayVideo360AdvertiserLink\022G.google.an" + + "alytics.admin.v1alpha.GetDisplayVideo360" + + "AdvertiserLinkRequest\032=.google.analytics" + + ".admin.v1alpha.DisplayVideo360Advertiser" + + "Link\"L\332A\004name\202\323\344\223\002?\022=/v1alpha/{name=prop" + + "erties/*/displayVideo360AdvertiserLinks/" + + "*}\022\213\002\n\"ListDisplayVideo360AdvertiserLink" + + "s\022I.google.analytics.admin.v1alpha.ListD" + + "isplayVideo360AdvertiserLinksRequest\032J.g" + + "oogle.analytics.admin.v1alpha.ListDispla" + + "yVideo360AdvertiserLinksResponse\"N\332A\006par" + + "ent\202\323\344\223\002?\022=/v1alpha/{parent=properties/*" + + "}/displayVideo360AdvertiserLinks\022\306\002\n#Cre" + + "ateDisplayVideo360AdvertiserLink\022J.googl" + + "e.analytics.admin.v1alpha.CreateDisplayV" + + "ideo360AdvertiserLinkRequest\032=.google.an" + + "alytics.admin.v1alpha.DisplayVideo360Adv" + + "ertiserLink\"\223\001\332A(parent,display_video_36" + + "0_advertiser_link\202\323\344\223\002b\"=/v1alpha/{paren" + + "t=properties/*}/displayVideo360Advertise" + + "rLinks:!display_video_360_advertiser_lin" + + "k\022\327\001\n#DeleteDisplayVideo360AdvertiserLin" + + "k\022J.google.analytics.admin.v1alpha.Delet" + + "eDisplayVideo360AdvertiserLinkRequest\032\026." + + "google.protobuf.Empty\"L\332A\004name\202\323\344\223\002?*=/v" + + "1alpha/{name=properties/*/displayVideo36" + + "0AdvertiserLinks/*}\022\356\002\n#UpdateDisplayVid" + + "eo360AdvertiserLink\022J.google.analytics.a" + + "dmin.v1alpha.UpdateDisplayVideo360Advert" + + "iserLinkRequest\032=.google.analytics.admin" + + ".v1alpha.DisplayVideo360AdvertiserLink\"\273" + + "\001\332A-display_video_360_advertiser_link,up" + + "date_mask\202\323\344\223\002\204\0012_/v1alpha/{display_vide" + + "o_360_advertiser_link.name=properties/*/" + + "displayVideo360AdvertiserLinks/*}:!displ" + + "ay_video_360_advertiser_link\022\230\002\n(GetDisp" + + "layVideo360AdvertiserLinkProposal\022O.goog" + + "le.analytics.admin.v1alpha.GetDisplayVid" + + "eo360AdvertiserLinkProposalRequest\032E.goo" + + "gle.analytics.admin.v1alpha.DisplayVideo" + + "360AdvertiserLinkProposal\"T\332A\004name\202\323\344\223\002G" + + "\022E/v1alpha/{name=properties/*/displayVid" + + "eo360AdvertiserLinkProposals/*}\022\253\002\n*List" + + "DisplayVideo360AdvertiserLinkProposals\022Q" + ".google.analytics.admin.v1alpha.ListDisp" - + "layVideo360AdvertiserLinksResponse\"N\332A\006p" - + "arent\202\323\344\223\002?\022=/v1alpha/{parent=properties" - + "/*}/displayVideo360AdvertiserLinks\022\306\002\n#C" - + "reateDisplayVideo360AdvertiserLink\022J.goo" - + "gle.analytics.admin.v1alpha.CreateDispla" - + "yVideo360AdvertiserLinkRequest\032=.google." - + "analytics.admin.v1alpha.DisplayVideo360A" - + "dvertiserLink\"\223\001\332A(parent,display_video_" - + "360_advertiser_link\202\323\344\223\002b\"=/v1alpha/{par" - + "ent=properties/*}/displayVideo360Adverti" - + "serLinks:!display_video_360_advertiser_l" - + "ink\022\327\001\n#DeleteDisplayVideo360AdvertiserL" - + "ink\022J.google.analytics.admin.v1alpha.Del" - + "eteDisplayVideo360AdvertiserLinkRequest\032" - + "\026.google.protobuf.Empty\"L\332A\004name\202\323\344\223\002?*=" - + "/v1alpha/{name=properties/*/displayVideo" - + "360AdvertiserLinks/*}\022\356\002\n#UpdateDisplayV" - + "ideo360AdvertiserLink\022J.google.analytics" - + ".admin.v1alpha.UpdateDisplayVideo360Adve" - + "rtiserLinkRequest\032=.google.analytics.adm" - + "in.v1alpha.DisplayVideo360AdvertiserLink" - + "\"\273\001\332A-display_video_360_advertiser_link," - + "update_mask\202\323\344\223\002\204\0012_/v1alpha/{display_vi" - + "deo_360_advertiser_link.name=properties/" - + "*/displayVideo360AdvertiserLinks/*}:!dis" - + "play_video_360_advertiser_link\022\230\002\n(GetDi" - + "splayVideo360AdvertiserLinkProposal\022O.go" - + "ogle.analytics.admin.v1alpha.GetDisplayV" + + "layVideo360AdvertiserLinkProposalsReques" + + "t\032R.google.analytics.admin.v1alpha.ListD" + + "isplayVideo360AdvertiserLinkProposalsRes" + + "ponse\"V\332A\006parent\202\323\344\223\002G\022E/v1alpha/{parent" + + "=properties/*}/displayVideo360Advertiser" + + "LinkProposals\022\370\002\n+CreateDisplayVideo360A" + + "dvertiserLinkProposal\022R.google.analytics" + + ".admin.v1alpha.CreateDisplayVideo360Adve" + + "rtiserLinkProposalRequest\032E.google.analy" + + "tics.admin.v1alpha.DisplayVideo360Advert" + + "iserLinkProposal\"\255\001\332A1parent,display_vid" + + "eo_360_advertiser_link_proposal\202\323\344\223\002s\"E/" + + "v1alpha/{parent=properties/*}/displayVid" + + "eo360AdvertiserLinkProposals:*display_vi" + + "deo_360_advertiser_link_proposal\022\357\001\n+Del" + + "eteDisplayVideo360AdvertiserLinkProposal" + + "\022R.google.analytics.admin.v1alpha.Delete" + + "DisplayVideo360AdvertiserLinkProposalReq" + + "uest\032\026.google.protobuf.Empty\"T\332A\004name\202\323\344" + + "\223\002G*E/v1alpha/{name=properties/*/display" + + "Video360AdvertiserLinkProposals/*}\022\263\002\n,A" + + "pproveDisplayVideo360AdvertiserLinkPropo" + + "sal\022S.google.analytics.admin.v1alpha.App" + + "roveDisplayVideo360AdvertiserLinkProposa" + + "lRequest\032T.google.analytics.admin.v1alph" + + "a.ApproveDisplayVideo360AdvertiserLinkPr" + + "oposalResponse\"X\202\323\344\223\002R\"M/v1alpha/{name=p" + + "roperties/*/displayVideo360AdvertiserLin" + + "kProposals/*}:approve:\001*\022\241\002\n+CancelDispl" + + "ayVideo360AdvertiserLinkProposal\022R.googl" + + "e.analytics.admin.v1alpha.CancelDisplayV" + "ideo360AdvertiserLinkProposalRequest\032E.g" + "oogle.analytics.admin.v1alpha.DisplayVid" - + "eo360AdvertiserLinkProposal\"T\332A\004name\202\323\344\223" - + "\002G\022E/v1alpha/{name=properties/*/displayV" - + "ideo360AdvertiserLinkProposals/*}\022\253\002\n*Li" - + "stDisplayVideo360AdvertiserLinkProposals" - + "\022Q.google.analytics.admin.v1alpha.ListDi" - + "splayVideo360AdvertiserLinkProposalsRequ" - + "est\032R.google.analytics.admin.v1alpha.Lis" - + "tDisplayVideo360AdvertiserLinkProposalsR" - + "esponse\"V\332A\006parent\202\323\344\223\002G\022E/v1alpha/{pare" - + "nt=properties/*}/displayVideo360Advertis" - + "erLinkProposals\022\370\002\n+CreateDisplayVideo36" - + "0AdvertiserLinkProposal\022R.google.analyti" - + "cs.admin.v1alpha.CreateDisplayVideo360Ad" - + "vertiserLinkProposalRequest\032E.google.ana" - + "lytics.admin.v1alpha.DisplayVideo360Adve" - + "rtiserLinkProposal\"\255\001\332A1parent,display_v" - + "ideo_360_advertiser_link_proposal\202\323\344\223\002s\"" - + "E/v1alpha/{parent=properties/*}/displayV" - + "ideo360AdvertiserLinkProposals:*display_" - + "video_360_advertiser_link_proposal\022\357\001\n+D" - + "eleteDisplayVideo360AdvertiserLinkPropos" - + "al\022R.google.analytics.admin.v1alpha.Dele" - + "teDisplayVideo360AdvertiserLinkProposalR" - + "equest\032\026.google.protobuf.Empty\"T\332A\004name\202" - + "\323\344\223\002G*E/v1alpha/{name=properties/*/displ" - + "ayVideo360AdvertiserLinkProposals/*}\022\263\002\n" - + ",ApproveDisplayVideo360AdvertiserLinkPro" - + "posal\022S.google.analytics.admin.v1alpha.A" - + "pproveDisplayVideo360AdvertiserLinkPropo" - + "salRequest\032T.google.analytics.admin.v1al" - + "pha.ApproveDisplayVideo360AdvertiserLink" - + "ProposalResponse\"X\202\323\344\223\002R\"M/v1alpha/{name" - + "=properties/*/displayVideo360AdvertiserL" - + "inkProposals/*}:approve:\001*\022\241\002\n+CancelDis" - + "playVideo360AdvertiserLinkProposal\022R.goo" - + "gle.analytics.admin.v1alpha.CancelDispla" - + "yVideo360AdvertiserLinkProposalRequest\032E" - + ".google.analytics.admin.v1alpha.DisplayV" - + "ideo360AdvertiserLinkProposal\"W\202\323\344\223\002Q\"L/" - + "v1alpha/{name=properties/*/displayVideo3" - + "60AdvertiserLinkProposals/*}:cancel:\001*\022\353" - + "\001\n\025CreateCustomDimension\022<.google.analyt" - + "ics.admin.v1alpha.CreateCustomDimensionR" - + "equest\032/.google.analytics.admin.v1alpha." - + "CustomDimension\"c\332A\027parent,custom_dimens" - + "ion\202\323\344\223\002C\"//v1alpha/{parent=properties/*" - + "}/customDimensions:\020custom_dimension\022\201\002\n" - + "\025UpdateCustomDimension\022<.google.analytic" - + "s.admin.v1alpha.UpdateCustomDimensionReq" + + "eo360AdvertiserLinkProposal\"W\202\323\344\223\002Q\"L/v1" + + "alpha/{name=properties/*/displayVideo360" + + "AdvertiserLinkProposals/*}:cancel:\001*\022\353\001\n" + + "\025CreateCustomDimension\022<.google.analytic" + + "s.admin.v1alpha.CreateCustomDimensionReq" + "uest\032/.google.analytics.admin.v1alpha.Cu" - + "stomDimension\"y\332A\034custom_dimension,updat" - + "e_mask\202\323\344\223\002T2@/v1alpha/{custom_dimension" - + ".name=properties/*/customDimensions/*}:\020" - + "custom_dimension\022\323\001\n\024ListCustomDimension" - + "s\022;.google.analytics.admin.v1alpha.ListC" - + "ustomDimensionsRequest\032<.google.analytic" - + "s.admin.v1alpha.ListCustomDimensionsResp" - + "onse\"@\332A\006parent\202\323\344\223\0021\022//v1alpha/{parent=" - + "properties/*}/customDimensions\022\272\001\n\026Archi" - + "veCustomDimension\022=.google.analytics.adm" - + "in.v1alpha.ArchiveCustomDimensionRequest" - + "\032\026.google.protobuf.Empty\"I\332A\004name\202\323\344\223\002<\"" - + "7/v1alpha/{name=properties/*/customDimen" - + "sions/*}:archive:\001*\022\300\001\n\022GetCustomDimensi" - + "on\0229.google.analytics.admin.v1alpha.GetC" - + "ustomDimensionRequest\032/.google.analytics" - + ".admin.v1alpha.CustomDimension\">\332A\004name\202" - + "\323\344\223\0021\022//v1alpha/{name=properties/*/custo" - + "mDimensions/*}\022\331\001\n\022CreateCustomMetric\0229." - + "google.analytics.admin.v1alpha.CreateCus" - + "tomMetricRequest\032,.google.analytics.admi" - + "n.v1alpha.CustomMetric\"Z\332A\024parent,custom" - + "_metric\202\323\344\223\002=\",/v1alpha/{parent=properti" - + "es/*}/customMetrics:\rcustom_metric\022\354\001\n\022U" - + "pdateCustomMetric\0229.google.analytics.adm" - + "in.v1alpha.UpdateCustomMetricRequest\032,.g" - + "oogle.analytics.admin.v1alpha.CustomMetr" - + "ic\"m\332A\031custom_metric,update_mask\202\323\344\223\002K2:" - + "/v1alpha/{custom_metric.name=properties/" - + "*/customMetrics/*}:\rcustom_metric\022\307\001\n\021Li" - + "stCustomMetrics\0228.google.analytics.admin" - + ".v1alpha.ListCustomMetricsRequest\0329.goog" - + "le.analytics.admin.v1alpha.ListCustomMet" - + "ricsResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1alpha/" - + "{parent=properties/*}/customMetrics\022\261\001\n\023" - + "ArchiveCustomMetric\022:.google.analytics.a" - + "dmin.v1alpha.ArchiveCustomMetricRequest\032" - + "\026.google.protobuf.Empty\"F\332A\004name\202\323\344\223\0029\"4" - + "/v1alpha/{name=properties/*/customMetric" - + "s/*}:archive:\001*\022\264\001\n\017GetCustomMetric\0226.go" - + "ogle.analytics.admin.v1alpha.GetCustomMe" - + "tricRequest\032,.google.analytics.admin.v1a" - + "lpha.CustomMetric\";\332A\004name\202\323\344\223\002.\022,/v1alp" - + "ha/{name=properties/*/customMetrics/*}\022\325" - + "\001\n\030GetDataRetentionSettings\022?.google.ana" - + "lytics.admin.v1alpha.GetDataRetentionSet" - + "tingsRequest\0325.google.analytics.admin.v1" - + "alpha.DataRetentionSettings\"A\332A\004name\202\323\344\223" - + "\0024\0222/v1alpha/{name=properties/*/dataRete" - + "ntionSettings}\022\254\002\n\033UpdateDataRetentionSe" - + "ttings\022B.google.analytics.admin.v1alpha." - + "UpdateDataRetentionSettingsRequest\0325.goo" - + "gle.analytics.admin.v1alpha.DataRetentio" - + "nSettings\"\221\001\332A#data_retention_settings,u" - + "pdate_mask\202\323\344\223\002e2J/v1alpha/{data_retenti" - + "on_settings.name=properties/*/dataRetent" - + "ionSettings}:\027data_retention_settings\022\315\001" - + "\n\020CreateDataStream\0227.google.analytics.ad" - + "min.v1alpha.CreateDataStreamRequest\032*.go" - + "ogle.analytics.admin.v1alpha.DataStream\"" - + "T\332A\022parent,data_stream\202\323\344\223\0029\"*/v1alpha/{" - + "parent=properties/*}/dataStreams:\013data_s" - + "tream\022\236\001\n\020DeleteDataStream\0227.google.anal" - + "ytics.admin.v1alpha.DeleteDataStreamRequ" - + "est\032\026.google.protobuf.Empty\"9\332A\004name\202\323\344\223" - + "\002,**/v1alpha/{name=properties/*/dataStre" - + "ams/*}\022\336\001\n\020UpdateDataStream\0227.google.ana" - + "lytics.admin.v1alpha.UpdateDataStreamReq" - + "uest\032*.google.analytics.admin.v1alpha.Da" - + "taStream\"e\332A\027data_stream,update_mask\202\323\344\223" - + "\002E26/v1alpha/{data_stream.name=propertie" - + "s/*/dataStreams/*}:\013data_stream\022\277\001\n\017List" - + "DataStreams\0226.google.analytics.admin.v1a" - + "lpha.ListDataStreamsRequest\0327.google.ana" - + "lytics.admin.v1alpha.ListDataStreamsResp" - + "onse\";\332A\006parent\202\323\344\223\002,\022*/v1alpha/{parent=" - + "properties/*}/dataStreams\022\254\001\n\rGetDataStr" - + "eam\0224.google.analytics.admin.v1alpha.Get" - + "DataStreamRequest\032*.google.analytics.adm" - + "in.v1alpha.DataStream\"9\332A\004name\202\323\344\223\002,\022*/v" - + "1alpha/{name=properties/*/dataStreams/*}" - + "\022\244\001\n\013GetAudience\0222.google.analytics.admi" - + "n.v1alpha.GetAudienceRequest\032(.google.an" - + "alytics.admin.v1alpha.Audience\"7\332A\004name\202" - + "\323\344\223\002*\022(/v1alpha/{name=properties/*/audie" - + "nces/*}\022\267\001\n\rListAudiences\0224.google.analy" - + "tics.admin.v1alpha.ListAudiencesRequest\032" - + "5.google.analytics.admin.v1alpha.ListAud" - + "iencesResponse\"9\332A\006parent\202\323\344\223\002*\022(/v1alph" - + "a/{parent=properties/*}/audiences\022\277\001\n\016Cr" - + "eateAudience\0225.google.analytics.admin.v1" - + "alpha.CreateAudienceRequest\032(.google.ana" - + "lytics.admin.v1alpha.Audience\"L\332A\017parent" - + ",audience\202\323\344\223\0024\"(/v1alpha/{parent=proper" - + "ties/*}/audiences:\010audience\022\315\001\n\016UpdateAu" - + "dience\0225.google.analytics.admin.v1alpha." - + "UpdateAudienceRequest\032(.google.analytics" - + ".admin.v1alpha.Audience\"Z\332A\024audience,upd" - + "ate_mask\202\323\344\223\002=21/v1alpha/{audience.name=" - + "properties/*/audiences/*}:\010audience\022\236\001\n\017" - + "ArchiveAudience\0226.google.analytics.admin" - + ".v1alpha.ArchiveAudienceRequest\032\026.google" - + ".protobuf.Empty\";\202\323\344\223\0025\"0/v1alpha/{name=" - + "properties/*/audiences/*}:archive:\001*\022\304\001\n" - + "\023GetSearchAds360Link\022:.google.analytics." - + "admin.v1alpha.GetSearchAds360LinkRequest" - + "\0320.google.analytics.admin.v1alpha.Search" - + "Ads360Link\"?\332A\004name\202\323\344\223\0022\0220/v1alpha/{nam" - + "e=properties/*/searchAds360Links/*}\022\327\001\n\025" - + "ListSearchAds360Links\022<.google.analytics" - + ".admin.v1alpha.ListSearchAds360LinksRequ" - + "est\032=.google.analytics.admin.v1alpha.Lis" - + "tSearchAds360LinksResponse\"A\332A\006parent\202\323\344" - + "\223\0022\0220/v1alpha/{parent=properties/*}/sear" - + "chAds360Links\022\365\001\n\026CreateSearchAds360Link" - + "\022=.google.analytics.admin.v1alpha.Create" - + "SearchAds360LinkRequest\0320.google.analyti" - + "cs.admin.v1alpha.SearchAds360Link\"j\332A\032pa" - + "rent,search_ads_360_link\202\323\344\223\002G\"0/v1alpha" - + "/{parent=properties/*}/searchAds360Links" - + ":\023search_ads_360_link\022\260\001\n\026DeleteSearchAd" - + "s360Link\022=.google.analytics.admin.v1alph" - + "a.DeleteSearchAds360LinkRequest\032\026.google" - + ".protobuf.Empty\"?\332A\004name\202\323\344\223\0022*0/v1alpha" - + "/{name=properties/*/searchAds360Links/*}" - + "\022\217\002\n\026UpdateSearchAds360Link\022=.google.ana" - + "lytics.admin.v1alpha.UpdateSearchAds360L" - + "inkRequest\0320.google.analytics.admin.v1al" - + "pha.SearchAds360Link\"\203\001\332A\037search_ads_360" - + "_link,update_mask\202\323\344\223\002[2D/v1alpha/{searc" - + "h_ads_360_link.name=properties/*/searchA" - + "ds360Links/*}:\023search_ads_360_link\022\315\001\n\026G" - + "etAttributionSettings\022=.google.analytics" - + ".admin.v1alpha.GetAttributionSettingsReq" - + "uest\0323.google.analytics.admin.v1alpha.At" - + "tributionSettings\"?\332A\004name\202\323\344\223\0022\0220/v1alp" - + "ha/{name=properties/*/attributionSetting" - + "s}\022\233\002\n\031UpdateAttributionSettings\022@.googl" - + "e.analytics.admin.v1alpha.UpdateAttribut", - "ionSettingsRequest\0323.google.analytics.ad" - + "min.v1alpha.AttributionSettings\"\206\001\332A att" - + "ribution_settings,update_mask\202\323\344\223\002]2E/v1" - + "alpha/{attribution_settings.name=propert" - + "ies/*/attributionSettings}:\024attribution_" - + "settings\022\360\001\n\017RunAccessReport\0226.google.an" - + "alytics.admin.v1alpha.RunAccessReportReq" - + "uest\0327.google.analytics.admin.v1alpha.Ru" - + "nAccessReportResponse\"l\202\323\344\223\002f\"./v1alpha/" - + "{entity=properties/*}:runAccessReport:\001*" - + "Z1\",/v1alpha/{entity=accounts/*}:runAcce" - + "ssReport:\001*\022\237\002\n\023CreateAccessBinding\022:.go" - + "ogle.analytics.admin.v1alpha.CreateAcces" - + "sBindingRequest\032-.google.analytics.admin" - + ".v1alpha.AccessBinding\"\234\001\332A\025parent,acces" - + "s_binding\202\323\344\223\002~\"+/v1alpha/{parent=accoun" - + "ts/*}/accessBindings:\016access_bindingZ?\"-" - + "/v1alpha/{parent=properties/*}/accessBin" - + "dings:\016access_binding\022\347\001\n\020GetAccessBindi" - + "ng\0227.google.analytics.admin.v1alpha.GetA" - + "ccessBindingRequest\032-.google.analytics.a" - + "dmin.v1alpha.AccessBinding\"k\332A\004name\202\323\344\223\002" - + "^\022+/v1alpha/{name=accounts/*/accessBindi" - + "ngs/*}Z/\022-/v1alpha/{name=properties/*/ac" - + "cessBindings/*}\022\267\002\n\023UpdateAccessBinding\022" - + ":.google.analytics.admin.v1alpha.UpdateA" - + "ccessBindingRequest\032-.google.analytics.a" - + "dmin.v1alpha.AccessBinding\"\264\001\332A\016access_b" - + "inding\202\323\344\223\002\234\0012:/v1alpha/{access_binding." - + "name=accounts/*/accessBindings/*}:\016acces" - + "s_bindingZN2\"9/v1al" - + "pha/{parent=properties/*}/accessBindings" - + ":batchCreate:\001*\022\217\002\n\026BatchGetAccessBindin" - + "gs\022=.google.analytics.admin.v1alpha.Batc" - + "hGetAccessBindingsRequest\032>.google.analy" - + "tics.admin.v1alpha.BatchGetAccessBinding" - + "sResponse\"v\202\323\344\223\002p\0224/v1alpha/{parent=acco" - + "unts/*}/accessBindings:batchGetZ8\0226/v1al" - + "pha/{parent=properties/*}/accessBindings" - + ":batchGet\022\245\002\n\031BatchUpdateAccessBindings\022" - + "@.google.analytics.admin.v1alpha.BatchUp" - + "dateAccessBindingsRequest\032A.google.analy" - + "tics.admin.v1alpha.BatchUpdateAccessBind" - + "ingsResponse\"\202\001\202\323\344\223\002|\"7/v1alpha/{parent=" - + "accounts/*}/accessBindings:batchUpdate:\001" - + "*Z>\"9/v1alpha/{parent=properties/*}/acce" - + "ssBindings:batchUpdate:\001*\022\372\001\n\031BatchDelet" - + "eAccessBindings\022@.google.analytics.admin" - + ".v1alpha.BatchDeleteAccessBindingsReques" - + "t\032\026.google.protobuf.Empty\"\202\001\202\323\344\223\002|\"7/v1a" - + "lpha/{parent=accounts/*}/accessBindings:" - + "batchDelete:\001*Z>\"9/v1alpha/{parent=prope" - + "rties/*}/accessBindings:batchDelete:\001*\022\300" - + "\001\n\022GetExpandedDataSet\0229.google.analytics" - + ".admin.v1alpha.GetExpandedDataSetRequest" - + "\032/.google.analytics.admin.v1alpha.Expand" - + "edDataSet\">\332A\004name\202\323\344\223\0021\022//v1alpha/{name" - + "=properties/*/expandedDataSets/*}\022\323\001\n\024Li" - + "stExpandedDataSets\022;.google.analytics.ad" - + "min.v1alpha.ListExpandedDataSetsRequest\032" - + "<.google.analytics.admin.v1alpha.ListExp" - + "andedDataSetsResponse\"@\332A\006parent\202\323\344\223\0021\022/" - + "/v1alpha/{parent=properties/*}/expandedD" - + "ataSets\022\355\001\n\025CreateExpandedDataSet\022<.goog" - + "le.analytics.admin.v1alpha.CreateExpande" - + "dDataSetRequest\032/.google.analytics.admin" - + ".v1alpha.ExpandedDataSet\"e\332A\030parent,expa" - + "nded_data_set\202\323\344\223\002D\"//v1alpha/{parent=pr" - + "operties/*}/expandedDataSets:\021expanded_d" - + "ata_set\022\204\002\n\025UpdateExpandedDataSet\022<.goog" - + "le.analytics.admin.v1alpha.UpdateExpande" - + "dDataSetRequest\032/.google.analytics.admin" - + ".v1alpha.ExpandedDataSet\"|\332A\035expanded_da" - + "ta_set,update_mask\202\323\344\223\002V2A/v1alpha/{expa" - + "nded_data_set.name=properties/*/expanded" - + "DataSets/*}:\021expanded_data_set\022\255\001\n\025Delet" - + "eExpandedDataSet\022<.google.analytics.admi" - + "n.v1alpha.DeleteExpandedDataSetRequest\032\026" - + ".google.protobuf.Empty\">\332A\004name\202\323\344\223\0021*//" - + "v1alpha/{name=properties/*/expandedDataS" - + "ets/*}\022\264\001\n\017GetChannelGroup\0226.google.anal" - + "ytics.admin.v1alpha.GetChannelGroupReque" - + "st\032,.google.analytics.admin.v1alpha.Chan" - + "nelGroup\";\332A\004name\202\323\344\223\002.\022,/v1alpha/{name=" - + "properties/*/channelGroups/*}\022\307\001\n\021ListCh" - + "annelGroups\0228.google.analytics.admin.v1a" - + "lpha.ListChannelGroupsRequest\0329.google.a" - + "nalytics.admin.v1alpha.ListChannelGroups" - + "Response\"=\332A\006parent\202\323\344\223\002.\022,/v1alpha/{par" - + "ent=properties/*}/channelGroups\022\331\001\n\022Crea" - + "teChannelGroup\0229.google.analytics.admin." - + "v1alpha.CreateChannelGroupRequest\032,.goog" - + "le.analytics.admin.v1alpha.ChannelGroup\"" - + "Z\332A\024parent,channel_group\202\323\344\223\002=\",/v1alpha" - + "/{parent=properties/*}/channelGroups:\rch" - + "annel_group\022\354\001\n\022UpdateChannelGroup\0229.goo" - + "gle.analytics.admin.v1alpha.UpdateChanne" - + "lGroupRequest\032,.google.analytics.admin.v" - + "1alpha.ChannelGroup\"m\332A\031channel_group,up" - + "date_mask\202\323\344\223\002K2:/v1alpha/{channel_group" - + ".name=properties/*/channelGroups/*}:\rcha" - + "nnel_group\022\244\001\n\022DeleteChannelGroup\0229.goog" - + "le.analytics.admin.v1alpha.DeleteChannel" - + "GroupRequest\032\026.google.protobuf.Empty\";\332A" - + "\004name\202\323\344\223\002.*,/v1alpha/{name=properties/*" - + "/channelGroups/*}\022\331\001\n\022CreateBigQueryLink" - + "\0229.google.analytics.admin.v1alpha.Create" - + "BigQueryLinkRequest\032,.google.analytics.a" - + "dmin.v1alpha.BigQueryLink\"Z\332A\024parent,big" - + "query_link\202\323\344\223\002=\",/v1alpha/{parent=prope" - + "rties/*}/bigQueryLinks:\rbigquery_link\022\264\001" - + "\n\017GetBigQueryLink\0226.google.analytics.adm" - + "in.v1alpha.GetBigQueryLinkRequest\032,.goog" - + "le.analytics.admin.v1alpha.BigQueryLink\"" - + ";\332A\004name\202\323\344\223\002.\022,/v1alpha/{name=propertie" - + "s/*/bigQueryLinks/*}\022\307\001\n\021ListBigQueryLin" - + "ks\0228.google.analytics.admin.v1alpha.List" - + "BigQueryLinksRequest\0329.google.analytics." - + "admin.v1alpha.ListBigQueryLinksResponse\"" - + "=\332A\006parent\202\323\344\223\002.\022,/v1alpha/{parent=prope" - + "rties/*}/bigQueryLinks\022\244\001\n\022DeleteBigQuer" - + "yLink\0229.google.analytics.admin.v1alpha.D" - + "eleteBigQueryLinkRequest\032\026.google.protob" - + "uf.Empty\";\332A\004name\202\323\344\223\002.*,/v1alpha/{name=" - + "properties/*/bigQueryLinks/*}\022\354\001\n\022Update" - + "BigQueryLink\0229.google.analytics.admin.v1" - + "alpha.UpdateBigQueryLinkRequest\032,.google" - + ".analytics.admin.v1alpha.BigQueryLink\"m\332" - + "A\031bigquery_link,update_mask\202\323\344\223\002K2:/v1al" - + "pha/{bigquery_link.name=properties/*/big" - + "QueryLinks/*}:\rbigquery_link\022\373\001\n\036GetEnha" - + "ncedMeasurementSettings\022E.google.analyti" - + "cs.admin.v1alpha.GetEnhancedMeasurementS" - + "ettingsRequest\032;.google.analytics.admin." - + "v1alpha.EnhancedMeasurementSettings\"U\332A\004" - + "name\202\323\344\223\002H\022F/v1alpha/{name=properties/*/" - + "dataStreams/*/enhancedMeasurementSetting" - + "s}\022\345\002\n!UpdateEnhancedMeasurementSettings" - + "\022H.google.analytics.admin.v1alpha.Update" - + "EnhancedMeasurementSettingsRequest\032;.goo" - + "gle.analytics.admin.v1alpha.EnhancedMeas" - + "urementSettings\"\270\001\332A)enhanced_measuremen" - + "t_settings,update_mask\202\323\344\223\002\205\0012d/v1alpha/" - + "{enhanced_measurement_settings.name=prop" - + "erties/*/dataStreams/*/enhancedMeasureme" - + "ntSettings}:\035enhanced_measurement_settin" - + "gs\022\260\001\n\016GetAdSenseLink\0225.google.analytics" - + ".admin.v1alpha.GetAdSenseLinkRequest\032+.g" - + "oogle.analytics.admin.v1alpha.AdSenseLin" - + "k\":\332A\004name\202\323\344\223\002-\022+/v1alpha/{name=propert" - + "ies/*/adSenseLinks/*}\022\323\001\n\021CreateAdSenseL" - + "ink\0228.google.analytics.admin.v1alpha.Cre" - + "ateAdSenseLinkRequest\032+.google.analytics" - + ".admin.v1alpha.AdSenseLink\"W\332A\023parent,ad" - + "sense_link\202\323\344\223\002;\"+/v1alpha/{parent=prope" - + "rties/*}/adSenseLinks:\014adsense_link\022\241\001\n\021" - + "DeleteAdSenseLink\0228.google.analytics.adm" - + "in.v1alpha.DeleteAdSenseLinkRequest\032\026.go" - + "ogle.protobuf.Empty\":\332A\004name\202\323\344\223\002-*+/v1a" - + "lpha/{name=properties/*/adSenseLinks/*}\022" - + "\303\001\n\020ListAdSenseLinks\0227.google.analytics." - + "admin.v1alpha.ListAdSenseLinksRequest\0328." - + "google.analytics.admin.v1alpha.ListAdSen" - + "seLinksResponse\"<\332A\006parent\202\323\344\223\002-\022+/v1alp" - + "ha/{parent=properties/*}/adSenseLinks\022\316\001" - + "\n\022GetEventCreateRule\0229.google.analytics." - + "admin.v1alpha.GetEventCreateRuleRequest\032" - + "/.google.analytics.admin.v1alpha.EventCr" - + "eateRule\"L\332A\004name\202\323\344\223\002?\022=/v1alpha/{name=" - + "properties/*/dataStreams/*/eventCreateRu" - + "les/*}\022\341\001\n\024ListEventCreateRules\022;.google" - + ".analytics.admin.v1alpha.ListEventCreate" - + "RulesRequest\032<.google.analytics.admin.v1" - + "alpha.ListEventCreateRulesResponse\"N\332A\006p" - + "arent\202\323\344\223\002?\022=/v1alpha/{parent=properties" - + "/*/dataStreams/*}/eventCreateRules\022\373\001\n\025C" - + "reateEventCreateRule\022<.google.analytics." - + "admin.v1alpha.CreateEventCreateRuleReque" - + "st\032/.google.analytics.admin.v1alpha.Even" - + "tCreateRule\"s\332A\030parent,event_create_rule" - + "\202\323\344\223\002R\"=/v1alpha/{parent=properties/*/da" - + "taStreams/*}/eventCreateRules:\021event_cre" - + "ate_rule\022\223\002\n\025UpdateEventCreateRule\022<.goo" - + "gle.analytics.admin.v1alpha.UpdateEventC" - + "reateRuleRequest\032/.google.analytics.admi" - + "n.v1alpha.EventCreateRule\"\212\001\332A\035event_cre" - + "ate_rule,update_mask\202\323\344\223\002d2O/v1alpha/{ev" - + "ent_create_rule.name=properties/*/dataSt" - + "reams/*/eventCreateRules/*}:\021event_creat" - + "e_rule\022\273\001\n\025DeleteEventCreateRule\022<.googl" - + "e.analytics.admin.v1alpha.DeleteEventCre" - + "ateRuleRequest\032\026.google.protobuf.Empty\"L" - + "\332A\004name\202\323\344\223\002?*=/v1alpha/{name=properties" - + "/*/dataStreams/*/eventCreateRules/*}\022\306\001\n" - + "\020GetEventEditRule\0227.google.analytics.adm" - + "in.v1alpha.GetEventEditRuleRequest\032-.goo" - + "gle.analytics.admin.v1alpha.EventEditRul" - + "e\"J\332A\004name\202\323\344\223\002=\022;/v1alpha/{name=propert" - + "ies/*/dataStreams/*/eventEditRules/*}\022\331\001" - + "\n\022ListEventEditRules\0229.google.analytics." - + "admin.v1alpha.ListEventEditRulesRequest\032" - + ":.google.analytics.admin.v1alpha.ListEve" - + "ntEditRulesResponse\"L\332A\006parent\202\323\344\223\002=\022;/v" - + "1alpha/{parent=properties/*/dataStreams/" - + "*}/eventEditRules\022\357\001\n\023CreateEventEditRul" - + "e\022:.google.analytics.admin.v1alpha.Creat" + + "stomDimension\"c\332A\027parent,custom_dimensio" + + "n\202\323\344\223\002C\"//v1alpha/{parent=properties/*}/" + + "customDimensions:\020custom_dimension\022\201\002\n\025U" + + "pdateCustomDimension\022<.google.analytics." + + "admin.v1alpha.UpdateCustomDimensionReque" + + "st\032/.google.analytics.admin.v1alpha.Cust" + + "omDimension\"y\332A\034custom_dimension,update_" + + "mask\202\323\344\223\002T2@/v1alpha/{custom_dimension.n" + + "ame=properties/*/customDimensions/*}:\020cu" + + "stom_dimension\022\323\001\n\024ListCustomDimensions\022" + + ";.google.analytics.admin.v1alpha.ListCus" + + "tomDimensionsRequest\032<.google.analytics." + + "admin.v1alpha.ListCustomDimensionsRespon" + + "se\"@\332A\006parent\202\323\344\223\0021\022//v1alpha/{parent=pr" + + "operties/*}/customDimensions\022\272\001\n\026Archive" + + "CustomDimension\022=.google.analytics.admin" + + ".v1alpha.ArchiveCustomDimensionRequest\032\026" + + ".google.protobuf.Empty\"I\332A\004name\202\323\344\223\002<\"7/" + + "v1alpha/{name=properties/*/customDimensi" + + "ons/*}:archive:\001*\022\300\001\n\022GetCustomDimension" + + "\0229.google.analytics.admin.v1alpha.GetCus" + + "tomDimensionRequest\032/.google.analytics.a" + + "dmin.v1alpha.CustomDimension\">\332A\004name\202\323\344" + + "\223\0021\022//v1alpha/{name=properties/*/customD" + + "imensions/*}\022\331\001\n\022CreateCustomMetric\0229.go" + + "ogle.analytics.admin.v1alpha.CreateCusto" + + "mMetricRequest\032,.google.analytics.admin." + + "v1alpha.CustomMetric\"Z\332A\024parent,custom_m" + + "etric\202\323\344\223\002=\",/v1alpha/{parent=properties" + + "/*}/customMetrics:\rcustom_metric\022\354\001\n\022Upd" + + "ateCustomMetric\0229.google.analytics.admin" + + ".v1alpha.UpdateCustomMetricRequest\032,.goo" + + "gle.analytics.admin.v1alpha.CustomMetric" + + "\"m\332A\031custom_metric,update_mask\202\323\344\223\002K2:/v" + + "1alpha/{custom_metric.name=properties/*/" + + "customMetrics/*}:\rcustom_metric\022\307\001\n\021List" + + "CustomMetrics\0228.google.analytics.admin.v" + + "1alpha.ListCustomMetricsRequest\0329.google" + + ".analytics.admin.v1alpha.ListCustomMetri" + + "csResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1alpha/{p" + + "arent=properties/*}/customMetrics\022\261\001\n\023Ar" + + "chiveCustomMetric\022:.google.analytics.adm" + + "in.v1alpha.ArchiveCustomMetricRequest\032\026." + + "google.protobuf.Empty\"F\332A\004name\202\323\344\223\0029\"4/v" + + "1alpha/{name=properties/*/customMetrics/" + + "*}:archive:\001*\022\264\001\n\017GetCustomMetric\0226.goog" + + "le.analytics.admin.v1alpha.GetCustomMetr" + + "icRequest\032,.google.analytics.admin.v1alp" + + "ha.CustomMetric\";\332A\004name\202\323\344\223\002.\022,/v1alpha" + + "/{name=properties/*/customMetrics/*}\022\325\001\n" + + "\030GetDataRetentionSettings\022?.google.analy" + + "tics.admin.v1alpha.GetDataRetentionSetti" + + "ngsRequest\0325.google.analytics.admin.v1al" + + "pha.DataRetentionSettings\"A\332A\004name\202\323\344\223\0024" + + "\0222/v1alpha/{name=properties/*/dataRetent" + + "ionSettings}\022\254\002\n\033UpdateDataRetentionSett" + + "ings\022B.google.analytics.admin.v1alpha.Up" + + "dateDataRetentionSettingsRequest\0325.googl" + + "e.analytics.admin.v1alpha.DataRetentionS" + + "ettings\"\221\001\332A#data_retention_settings,upd" + + "ate_mask\202\323\344\223\002e2J/v1alpha/{data_retention" + + "_settings.name=properties/*/dataRetentio" + + "nSettings}:\027data_retention_settings\022\315\001\n\020" + + "CreateDataStream\0227.google.analytics.admi" + + "n.v1alpha.CreateDataStreamRequest\032*.goog" + + "le.analytics.admin.v1alpha.DataStream\"T\332" + + "A\022parent,data_stream\202\323\344\223\0029\"*/v1alpha/{pa" + + "rent=properties/*}/dataStreams:\013data_str" + + "eam\022\236\001\n\020DeleteDataStream\0227.google.analyt" + + "ics.admin.v1alpha.DeleteDataStreamReques" + + "t\032\026.google.protobuf.Empty\"9\332A\004name\202\323\344\223\002," + + "**/v1alpha/{name=properties/*/dataStream" + + "s/*}\022\336\001\n\020UpdateDataStream\0227.google.analy" + + "tics.admin.v1alpha.UpdateDataStreamReque" + + "st\032*.google.analytics.admin.v1alpha.Data" + + "Stream\"e\332A\027data_stream,update_mask\202\323\344\223\002E" + + "26/v1alpha/{data_stream.name=properties/" + + "*/dataStreams/*}:\013data_stream\022\277\001\n\017ListDa" + + "taStreams\0226.google.analytics.admin.v1alp" + + "ha.ListDataStreamsRequest\0327.google.analy" + + "tics.admin.v1alpha.ListDataStreamsRespon" + + "se\";\332A\006parent\202\323\344\223\002,\022*/v1alpha/{parent=pr" + + "operties/*}/dataStreams\022\254\001\n\rGetDataStrea" + + "m\0224.google.analytics.admin.v1alpha.GetDa" + + "taStreamRequest\032*.google.analytics.admin" + + ".v1alpha.DataStream\"9\332A\004name\202\323\344\223\002,\022*/v1a" + + "lpha/{name=properties/*/dataStreams/*}\022\244" + + "\001\n\013GetAudience\0222.google.analytics.admin." + + "v1alpha.GetAudienceRequest\032(.google.anal" + + "ytics.admin.v1alpha.Audience\"7\332A\004name\202\323\344" + + "\223\002*\022(/v1alpha/{name=properties/*/audienc" + + "es/*}\022\267\001\n\rListAudiences\0224.google.analyti" + + "cs.admin.v1alpha.ListAudiencesRequest\0325." + + "google.analytics.admin.v1alpha.ListAudie" + + "ncesResponse\"9\332A\006parent\202\323\344\223\002*\022(/v1alpha/" + + "{parent=properties/*}/audiences\022\277\001\n\016Crea" + + "teAudience\0225.google.analytics.admin.v1al" + + "pha.CreateAudienceRequest\032(.google.analy" + + "tics.admin.v1alpha.Audience\"L\332A\017parent,a" + + "udience\202\323\344\223\0024\"(/v1alpha/{parent=properti" + + "es/*}/audiences:\010audience\022\315\001\n\016UpdateAudi" + + "ence\0225.google.analytics.admin.v1alpha.Up" + + "dateAudienceRequest\032(.google.analytics.a" + + "dmin.v1alpha.Audience\"Z\332A\024audience,updat" + + "e_mask\202\323\344\223\002=21/v1alpha/{audience.name=pr" + + "operties/*/audiences/*}:\010audience\022\236\001\n\017Ar" + + "chiveAudience\0226.google.analytics.admin.v" + + "1alpha.ArchiveAudienceRequest\032\026.google.p" + + "rotobuf.Empty\";\202\323\344\223\0025\"0/v1alpha/{name=pr" + + "operties/*/audiences/*}:archive:\001*\022\304\001\n\023G" + + "etSearchAds360Link\022:.google.analytics.ad" + + "min.v1alpha.GetSearchAds360LinkRequest\0320" + + ".google.analytics.admin.v1alpha.SearchAd" + + "s360Link\"?\332A\004name\202\323\344\223\0022\0220/v1alpha/{name=" + + "properties/*/searchAds360Links/*}\022\327\001\n\025Li" + + "stSearchAds360Links\022<.google.analytics.a" + + "dmin.v1alpha.ListSearchAds360LinksReques" + + "t\032=.google.analytics.admin.v1alpha.ListS" + + "earchAds360LinksResponse\"A\332A\006parent\202\323\344\223\002" + + "2\0220/v1alpha/{parent=properties/*}/search" + + "Ads360Links\022\365\001\n\026CreateSearchAds360Link\022=" + + ".google.analytics.admin.v1alpha.CreateSe" + + "archAds360LinkRequest\0320.google.analytics" + + ".admin.v1alpha.SearchAds360Link\"j\332A\032pare" + + "nt,search_ads_360_link\202\323\344\223\002G\"0/v1alpha/{" + + "parent=properties/*}/searchAds360Links:\023" + + "search_ads_360_link\022\260\001\n\026DeleteSearchAds3" + + "60Link\022=.google.analytics.admin.v1alpha." + + "DeleteSearchAds360LinkRequest\032\026.google.p" + + "rotobuf.Empty\"?\332A\004name\202\323\344\223\0022*0/v1alpha/{" + + "name=properties/*/searchAds360Links/*}\022\217" + + "\002\n\026UpdateSearchAds360Link\022=.google.analy" + + "tics.admin.v1alpha.UpdateSearchAds360Lin" + + "kRequest\0320.google.analytics.admin.v1alph" + + "a.SearchAds360Link\"\203\001\332A\037search_ads_360_l" + + "ink,update_mask\202\323\344\223\002[2D/v1alpha/{search_" + + "ads_360_link.name=properties/*/searchAds" + + "360Links/*}:\023search_ads_360_link\022\315\001\n\026Get" + + "AttributionSettings\022=.google.analytics.a" + + "dmin.v1alpha.GetAttributionSettingsReque", + "st\0323.google.analytics.admin.v1alpha.Attr" + + "ibutionSettings\"?\332A\004name\202\323\344\223\0022\0220/v1alpha" + + "/{name=properties/*/attributionSettings}" + + "\022\233\002\n\031UpdateAttributionSettings\022@.google." + + "analytics.admin.v1alpha.UpdateAttributio" + + "nSettingsRequest\0323.google.analytics.admi" + + "n.v1alpha.AttributionSettings\"\206\001\332A attri" + + "bution_settings,update_mask\202\323\344\223\002]2E/v1al" + + "pha/{attribution_settings.name=propertie" + + "s/*/attributionSettings}:\024attribution_se" + + "ttings\022\360\001\n\017RunAccessReport\0226.google.anal" + + "ytics.admin.v1alpha.RunAccessReportReque" + + "st\0327.google.analytics.admin.v1alpha.RunA" + + "ccessReportResponse\"l\202\323\344\223\002f\"./v1alpha/{e" + + "ntity=properties/*}:runAccessReport:\001*Z1" + + "\",/v1alpha/{entity=accounts/*}:runAccess" + + "Report:\001*\022\237\002\n\023CreateAccessBinding\022:.goog" + + "le.analytics.admin.v1alpha.CreateAccessB" + + "indingRequest\032-.google.analytics.admin.v" + + "1alpha.AccessBinding\"\234\001\332A\025parent,access_" + + "binding\202\323\344\223\002~\"+/v1alpha/{parent=accounts" + + "/*}/accessBindings:\016access_bindingZ?\"-/v" + + "1alpha/{parent=properties/*}/accessBindi" + + "ngs:\016access_binding\022\347\001\n\020GetAccessBinding" + + "\0227.google.analytics.admin.v1alpha.GetAcc" + + "essBindingRequest\032-.google.analytics.adm" + + "in.v1alpha.AccessBinding\"k\332A\004name\202\323\344\223\002^\022" + + "+/v1alpha/{name=accounts/*/accessBinding" + + "s/*}Z/\022-/v1alpha/{name=properties/*/acce" + + "ssBindings/*}\022\267\002\n\023UpdateAccessBinding\022:." + + "google.analytics.admin.v1alpha.UpdateAcc" + + "essBindingRequest\032-.google.analytics.adm" + + "in.v1alpha.AccessBinding\"\264\001\332A\016access_bin" + + "ding\202\323\344\223\002\234\0012:/v1alpha/{access_binding.na" + + "me=accounts/*/accessBindings/*}:\016access_" + + "bindingZN2\"9/v1alph" + + "a/{parent=properties/*}/accessBindings:b" + + "atchCreate:\001*\022\217\002\n\026BatchGetAccessBindings" + + "\022=.google.analytics.admin.v1alpha.BatchG" + + "etAccessBindingsRequest\032>.google.analyti" + + "cs.admin.v1alpha.BatchGetAccessBindingsR" + + "esponse\"v\202\323\344\223\002p\0224/v1alpha/{parent=accoun" + + "ts/*}/accessBindings:batchGetZ8\0226/v1alph" + + "a/{parent=properties/*}/accessBindings:b" + + "atchGet\022\245\002\n\031BatchUpdateAccessBindings\022@." + + "google.analytics.admin.v1alpha.BatchUpda" + + "teAccessBindingsRequest\032A.google.analyti" + + "cs.admin.v1alpha.BatchUpdateAccessBindin" + + "gsResponse\"\202\001\202\323\344\223\002|\"7/v1alpha/{parent=ac" + + "counts/*}/accessBindings:batchUpdate:\001*Z" + + ">\"9/v1alpha/{parent=properties/*}/access" + + "Bindings:batchUpdate:\001*\022\372\001\n\031BatchDeleteA" + + "ccessBindings\022@.google.analytics.admin.v" + + "1alpha.BatchDeleteAccessBindingsRequest\032" + + "\026.google.protobuf.Empty\"\202\001\202\323\344\223\002|\"7/v1alp" + + "ha/{parent=accounts/*}/accessBindings:ba" + + "tchDelete:\001*Z>\"9/v1alpha/{parent=propert" + + "ies/*}/accessBindings:batchDelete:\001*\022\300\001\n" + + "\022GetExpandedDataSet\0229.google.analytics.a" + + "dmin.v1alpha.GetExpandedDataSetRequest\032/" + + ".google.analytics.admin.v1alpha.Expanded" + + "DataSet\">\332A\004name\202\323\344\223\0021\022//v1alpha/{name=p" + + "roperties/*/expandedDataSets/*}\022\323\001\n\024List" + + "ExpandedDataSets\022;.google.analytics.admi" + + "n.v1alpha.ListExpandedDataSetsRequest\032<." + + "google.analytics.admin.v1alpha.ListExpan" + + "dedDataSetsResponse\"@\332A\006parent\202\323\344\223\0021\022//v" + + "1alpha/{parent=properties/*}/expandedDat" + + "aSets\022\355\001\n\025CreateExpandedDataSet\022<.google" + + ".analytics.admin.v1alpha.CreateExpandedD" + + "ataSetRequest\032/.google.analytics.admin.v" + + "1alpha.ExpandedDataSet\"e\332A\030parent,expand" + + "ed_data_set\202\323\344\223\002D\"//v1alpha/{parent=prop" + + "erties/*}/expandedDataSets:\021expanded_dat" + + "a_set\022\204\002\n\025UpdateExpandedDataSet\022<.google" + + ".analytics.admin.v1alpha.UpdateExpandedD" + + "ataSetRequest\032/.google.analytics.admin.v" + + "1alpha.ExpandedDataSet\"|\332A\035expanded_data" + + "_set,update_mask\202\323\344\223\002V2A/v1alpha/{expand" + + "ed_data_set.name=properties/*/expandedDa" + + "taSets/*}:\021expanded_data_set\022\255\001\n\025DeleteE" + + "xpandedDataSet\022<.google.analytics.admin." + + "v1alpha.DeleteExpandedDataSetRequest\032\026.g" + + "oogle.protobuf.Empty\">\332A\004name\202\323\344\223\0021*//v1" + + "alpha/{name=properties/*/expandedDataSet" + + "s/*}\022\264\001\n\017GetChannelGroup\0226.google.analyt" + + "ics.admin.v1alpha.GetChannelGroupRequest" + + "\032,.google.analytics.admin.v1alpha.Channe" + + "lGroup\";\332A\004name\202\323\344\223\002.\022,/v1alpha/{name=pr" + + "operties/*/channelGroups/*}\022\307\001\n\021ListChan" + + "nelGroups\0228.google.analytics.admin.v1alp" + + "ha.ListChannelGroupsRequest\0329.google.ana" + + "lytics.admin.v1alpha.ListChannelGroupsRe" + + "sponse\"=\332A\006parent\202\323\344\223\002.\022,/v1alpha/{paren" + + "t=properties/*}/channelGroups\022\331\001\n\022Create" + + "ChannelGroup\0229.google.analytics.admin.v1" + + "alpha.CreateChannelGroupRequest\032,.google" + + ".analytics.admin.v1alpha.ChannelGroup\"Z\332" + + "A\024parent,channel_group\202\323\344\223\002=\",/v1alpha/{" + + "parent=properties/*}/channelGroups:\rchan" + + "nel_group\022\354\001\n\022UpdateChannelGroup\0229.googl" + + "e.analytics.admin.v1alpha.UpdateChannelG" + + "roupRequest\032,.google.analytics.admin.v1a" + + "lpha.ChannelGroup\"m\332A\031channel_group,upda" + + "te_mask\202\323\344\223\002K2:/v1alpha/{channel_group.n" + + "ame=properties/*/channelGroups/*}:\rchann" + + "el_group\022\244\001\n\022DeleteChannelGroup\0229.google" + + ".analytics.admin.v1alpha.DeleteChannelGr" + + "oupRequest\032\026.google.protobuf.Empty\";\332A\004n" + + "ame\202\323\344\223\002.*,/v1alpha/{name=properties/*/c" + + "hannelGroups/*}\022\331\001\n\022CreateBigQueryLink\0229" + + ".google.analytics.admin.v1alpha.CreateBi" + + "gQueryLinkRequest\032,.google.analytics.adm" + + "in.v1alpha.BigQueryLink\"Z\332A\024parent,bigqu" + + "ery_link\202\323\344\223\002=\",/v1alpha/{parent=propert" + + "ies/*}/bigQueryLinks:\rbigquery_link\022\264\001\n\017" + + "GetBigQueryLink\0226.google.analytics.admin" + + ".v1alpha.GetBigQueryLinkRequest\032,.google" + + ".analytics.admin.v1alpha.BigQueryLink\";\332" + + "A\004name\202\323\344\223\002.\022,/v1alpha/{name=properties/" + + "*/bigQueryLinks/*}\022\307\001\n\021ListBigQueryLinks" + + "\0228.google.analytics.admin.v1alpha.ListBi" + + "gQueryLinksRequest\0329.google.analytics.ad" + + "min.v1alpha.ListBigQueryLinksResponse\"=\332" + + "A\006parent\202\323\344\223\002.\022,/v1alpha/{parent=propert" + + "ies/*}/bigQueryLinks\022\244\001\n\022DeleteBigQueryL" + + "ink\0229.google.analytics.admin.v1alpha.Del" + + "eteBigQueryLinkRequest\032\026.google.protobuf" + + ".Empty\";\332A\004name\202\323\344\223\002.*,/v1alpha/{name=pr" + + "operties/*/bigQueryLinks/*}\022\354\001\n\022UpdateBi" + + "gQueryLink\0229.google.analytics.admin.v1al" + + "pha.UpdateBigQueryLinkRequest\032,.google.a" + + "nalytics.admin.v1alpha.BigQueryLink\"m\332A\031" + + "bigquery_link,update_mask\202\323\344\223\002K2:/v1alph" + + "a/{bigquery_link.name=properties/*/bigQu" + + "eryLinks/*}:\rbigquery_link\022\373\001\n\036GetEnhanc" + + "edMeasurementSettings\022E.google.analytics" + + ".admin.v1alpha.GetEnhancedMeasurementSet" + + "tingsRequest\032;.google.analytics.admin.v1" + + "alpha.EnhancedMeasurementSettings\"U\332A\004na" + + "me\202\323\344\223\002H\022F/v1alpha/{name=properties/*/da" + + "taStreams/*/enhancedMeasurementSettings}" + + "\022\345\002\n!UpdateEnhancedMeasurementSettings\022H" + + ".google.analytics.admin.v1alpha.UpdateEn" + + "hancedMeasurementSettingsRequest\032;.googl" + + "e.analytics.admin.v1alpha.EnhancedMeasur" + + "ementSettings\"\270\001\332A)enhanced_measurement_" + + "settings,update_mask\202\323\344\223\002\205\0012d/v1alpha/{e" + + "nhanced_measurement_settings.name=proper" + + "ties/*/dataStreams/*/enhancedMeasurement" + + "Settings}:\035enhanced_measurement_settings" + + "\022\260\001\n\016GetAdSenseLink\0225.google.analytics.a" + + "dmin.v1alpha.GetAdSenseLinkRequest\032+.goo" + + "gle.analytics.admin.v1alpha.AdSenseLink\"" + + ":\332A\004name\202\323\344\223\002-\022+/v1alpha/{name=propertie" + + "s/*/adSenseLinks/*}\022\323\001\n\021CreateAdSenseLin" + + "k\0228.google.analytics.admin.v1alpha.Creat" + + "eAdSenseLinkRequest\032+.google.analytics.a" + + "dmin.v1alpha.AdSenseLink\"W\332A\023parent,adse" + + "nse_link\202\323\344\223\002;\"+/v1alpha/{parent=propert" + + "ies/*}/adSenseLinks:\014adsense_link\022\241\001\n\021De" + + "leteAdSenseLink\0228.google.analytics.admin" + + ".v1alpha.DeleteAdSenseLinkRequest\032\026.goog" + + "le.protobuf.Empty\":\332A\004name\202\323\344\223\002-*+/v1alp" + + "ha/{name=properties/*/adSenseLinks/*}\022\303\001" + + "\n\020ListAdSenseLinks\0227.google.analytics.ad" + + "min.v1alpha.ListAdSenseLinksRequest\0328.go" + + "ogle.analytics.admin.v1alpha.ListAdSense" + + "LinksResponse\"<\332A\006parent\202\323\344\223\002-\022+/v1alpha" + + "/{parent=properties/*}/adSenseLinks\022\316\001\n\022" + + "GetEventCreateRule\0229.google.analytics.ad" + + "min.v1alpha.GetEventCreateRuleRequest\032/." + + "google.analytics.admin.v1alpha.EventCrea" + + "teRule\"L\332A\004name\202\323\344\223\002?\022=/v1alpha/{name=pr" + + "operties/*/dataStreams/*/eventCreateRule" + + "s/*}\022\341\001\n\024ListEventCreateRules\022;.google.a" + + "nalytics.admin.v1alpha.ListEventCreateRu" + + "lesRequest\032<.google.analytics.admin.v1al" + + "pha.ListEventCreateRulesResponse\"N\332A\006par" + + "ent\202\323\344\223\002?\022=/v1alpha/{parent=properties/*" + + "/dataStreams/*}/eventCreateRules\022\373\001\n\025Cre" + + "ateEventCreateRule\022<.google.analytics.ad" + + "min.v1alpha.CreateEventCreateRuleRequest" + + "\032/.google.analytics.admin.v1alpha.EventC" + + "reateRule\"s\332A\030parent,event_create_rule\202\323" + + "\344\223\002R\"=/v1alpha/{parent=properties/*/data" + + "Streams/*}/eventCreateRules:\021event_creat" + + "e_rule\022\223\002\n\025UpdateEventCreateRule\022<.googl" + + "e.analytics.admin.v1alpha.UpdateEventCre" + + "ateRuleRequest\032/.google.analytics.admin." + + "v1alpha.EventCreateRule\"\212\001\332A\035event_creat" + + "e_rule,update_mask\202\323\344\223\002d2O/v1alpha/{even" + + "t_create_rule.name=properties/*/dataStre" + + "ams/*/eventCreateRules/*}:\021event_create_" + + "rule\022\273\001\n\025DeleteEventCreateRule\022<.google." + + "analytics.admin.v1alpha.DeleteEventCreat" + + "eRuleRequest\032\026.google.protobuf.Empty\"L\332A" + + "\004name\202\323\344\223\002?*=/v1alpha/{name=properties/*" + + "/dataStreams/*/eventCreateRules/*}\022\306\001\n\020G" + + "etEventEditRule\0227.google.analytics.admin" + + ".v1alpha.GetEventEditRuleRequest\032-.googl" + + "e.analytics.admin.v1alpha.EventEditRule\"" + + "J\332A\004name\202\323\344\223\002=\022;/v1alpha/{name=propertie" + + "s/*/dataStreams/*/eventEditRules/*}\022\331\001\n\022" + + "ListEventEditRules\0229.google.analytics.ad" + + "min.v1alpha.ListEventEditRulesRequest\032:." + + "google.analytics.admin.v1alpha.ListEvent" + + "EditRulesResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1a" + + "lpha/{parent=properties/*/dataStreams/*}" + + "/eventEditRules\022\357\001\n\023CreateEventEditRule\022" + + ":.google.analytics.admin.v1alpha.CreateE" + + "ventEditRuleRequest\032-.google.analytics.a" + + "dmin.v1alpha.EventEditRule\"m\332A\026parent,ev" + + "ent_edit_rule\202\323\344\223\002N\";/v1alpha/{parent=pr" + + "operties/*/dataStreams/*}/eventEditRules" + + ":\017event_edit_rule\022\205\002\n\023UpdateEventEditRul" + + "e\022:.google.analytics.admin.v1alpha.Updat" + "eEventEditRuleRequest\032-.google.analytics" - + ".admin.v1alpha.EventEditRule\"m\332A\026parent," - + "event_edit_rule\202\323\344\223\002N\";/v1alpha/{parent=" - + "properties/*/dataStreams/*}/eventEditRul" - + "es:\017event_edit_rule\022\205\002\n\023UpdateEventEditR" - + "ule\022:.google.analytics.admin.v1alpha.Upd" - + "ateEventEditRuleRequest\032-.google.analyti" - + "cs.admin.v1alpha.EventEditRule\"\202\001\332A\033even" - + "t_edit_rule,update_mask\202\323\344\223\002^2K/v1alpha/" - + "{event_edit_rule.name=properties/*/dataS" - + "treams/*/eventEditRules/*}:\017event_edit_r" - + "ule\022\265\001\n\023DeleteEventEditRule\022:.google.ana" - + "lytics.admin.v1alpha.DeleteEventEditRule" - + "Request\032\026.google.protobuf.Empty\"J\332A\004name" - + "\202\323\344\223\002=*;/v1alpha/{name=properties/*/data" - + "Streams/*/eventEditRules/*}\022\275\001\n\025ReorderE" - + "ventEditRules\022<.google.analytics.admin.v" - + "1alpha.ReorderEventEditRulesRequest\032\026.go" - + "ogle.protobuf.Empty\"N\202\323\344\223\002H\"C/v1alpha/{p" - + "arent=properties/*/dataStreams/*}/eventE" - + "ditRules:reorder:\001*\022\272\002\n\033UpdateDataRedact" - + "ionSettings\022B.google.analytics.admin.v1a" - + "lpha.UpdateDataRedactionSettingsRequest\032" - + "5.google.analytics.admin.v1alpha.DataRed" - + "actionSettings\"\237\001\332A#data_redaction_setti" - + "ngs,update_mask\202\323\344\223\002s2X/v1alpha/{data_re" - + "daction_settings.name=properties/*/dataS" - + "treams/*/dataRedactionSettings}:\027data_re" - + "daction_settings\022\343\001\n\030GetDataRedactionSet" - + "tings\022?.google.analytics.admin.v1alpha.G" - + "etDataRedactionSettingsRequest\0325.google." - + "analytics.admin.v1alpha.DataRedactionSet" - + "tings\"O\332A\004name\202\323\344\223\002B\022@/v1alpha/{name=pro" - + "perties/*/dataStreams/*/dataRedactionSet" - + "tings}\022\304\001\n\023GetCalculatedMetric\022:.google." - + "analytics.admin.v1alpha.GetCalculatedMet" - + "ricRequest\0320.google.analytics.admin.v1al" - + "pha.CalculatedMetric\"?\332A\004name\202\323\344\223\0022\0220/v1" - + "alpha/{name=properties/*/calculatedMetri" - + "cs/*}\022\206\002\n\026CreateCalculatedMetric\022=.googl" - + "e.analytics.admin.v1alpha.CreateCalculat" - + "edMetricRequest\0320.google.analytics.admin" - + ".v1alpha.CalculatedMetric\"{\332A-parent,cal" - + "culated_metric,calculated_metric_id\202\323\344\223\002" - + "E\"0/v1alpha/{parent=properties/*}/calcul" - + "atedMetrics:\021calculated_metric\022\327\001\n\025ListC" - + "alculatedMetrics\022<.google.analytics.admi" - + "n.v1alpha.ListCalculatedMetricsRequest\032=" - + ".google.analytics.admin.v1alpha.ListCalc" - + "ulatedMetricsResponse\"A\332A\006parent\202\323\344\223\0022\0220" - + "/v1alpha/{parent=properties/*}/calculate" - + "dMetrics\022\210\002\n\026UpdateCalculatedMetric\022=.go" - + "ogle.analytics.admin.v1alpha.UpdateCalcu" - + "latedMetricRequest\0320.google.analytics.ad" - + "min.v1alpha.CalculatedMetric\"}\332A\035calcula" - + "ted_metric,update_mask\202\323\344\223\002W2B/v1alpha/{" - + "calculated_metric.name=properties/*/calc" - + "ulatedMetrics/*}:\021calculated_metric\022\260\001\n\026" - + "DeleteCalculatedMetric\022=.google.analytic" - + "s.admin.v1alpha.DeleteCalculatedMetricRe" - + "quest\032\026.google.protobuf.Empty\"?\332A\004name\202\323" - + "\344\223\0022*0/v1alpha/{name=properties/*/calcul" - + "atedMetrics/*}\022\306\001\n\024CreateRollupProperty\022" - + ";.google.analytics.admin.v1alpha.CreateR" - + "ollupPropertyRequest\032<.google.analytics." - + "admin.v1alpha.CreateRollupPropertyRespon" - + "se\"3\202\323\344\223\002-\"(/v1alpha/properties:createRo" - + "llupProperty:\001*\022\344\001\n\033GetRollupPropertySou" - + "rceLink\022B.google.analytics.admin.v1alpha" - + ".GetRollupPropertySourceLinkRequest\0328.go" - + "ogle.analytics.admin.v1alpha.RollupPrope" - + "rtySourceLink\"G\332A\004name\202\323\344\223\002:\0228/v1alpha/{" - + "name=properties/*/rollupPropertySourceLi" - + "nks/*}\022\367\001\n\035ListRollupPropertySourceLinks" - + "\022D.google.analytics.admin.v1alpha.ListRo" - + "llupPropertySourceLinksRequest\032E.google." - + "analytics.admin.v1alpha.ListRollupProper" - + "tySourceLinksResponse\"I\332A\006parent\202\323\344\223\002:\0228" - + "/v1alpha/{parent=properties/*}/rollupPro" - + "pertySourceLinks\022\246\002\n\036CreateRollupPropert" - + "ySourceLink\022E.google.analytics.admin.v1a" - + "lpha.CreateRollupPropertySourceLinkReque" - + "st\0328.google.analytics.admin.v1alpha.Roll" - + "upPropertySourceLink\"\202\001\332A\"parent,rollup_" - + "property_source_link\202\323\344\223\002W\"8/v1alpha/{pa" - + "rent=properties/*}/rollupPropertySourceL" - + "inks:\033rollup_property_source_link\022\310\001\n\036De" - + "leteRollupPropertySourceLink\022E.google.an" - + "alytics.admin.v1alpha.DeleteRollupProper" - + "tySourceLinkRequest\032\026.google.protobuf.Em" - + "pty\"G\332A\004name\202\323\344\223\002:*8/v1alpha/{name=prope" - + "rties/*/rollupPropertySourceLinks/*}\022\306\001\n" - + "\024ProvisionSubproperty\022;.google.analytics" - + ".admin.v1alpha.ProvisionSubpropertyReque" - + "st\032<.google.analytics.admin.v1alpha.Prov" - + "isionSubpropertyResponse\"3\202\323\344\223\002-\"(/v1alp" - + "ha/properties:provisionSubproperty:\001*\022\227\002" - + "\n\034CreateSubpropertyEventFilter\022C.google." - + "analytics.admin.v1alpha.CreateSubpropert" - + "yEventFilterRequest\0326.google.analytics.a" - + "dmin.v1alpha.SubpropertyEventFilter\"z\332A\037" - + "parent,subproperty_event_filter\202\323\344\223\002R\"6/" - + "v1alpha/{parent=properties/*}/subpropert" - + "yEventFilters:\030subproperty_event_filter\022" - + "\334\001\n\031GetSubpropertyEventFilter\022@.google.a" - + "nalytics.admin.v1alpha.GetSubpropertyEve" - + "ntFilterRequest\0326.google.analytics.admin" - + ".v1alpha.SubpropertyEventFilter\"E\332A\004name" - + "\202\323\344\223\0028\0226/v1alpha/{name=properties/*/subp" - + "ropertyEventFilters/*}\022\357\001\n\033ListSubproper" - + "tyEventFilters\022B.google.analytics.admin." - + "v1alpha.ListSubpropertyEventFiltersReque" - + "st\032C.google.analytics.admin.v1alpha.List" - + "SubpropertyEventFiltersResponse\"G\332A\006pare" - + "nt\202\323\344\223\0028\0226/v1alpha/{parent=properties/*}" - + "/subpropertyEventFilters\022\266\002\n\034UpdateSubpr" - + "opertyEventFilter\022C.google.analytics.adm" - + "in.v1alpha.UpdateSubpropertyEventFilterR" - + "equest\0326.google.analytics.admin.v1alpha." - + "SubpropertyEventFilter\"\230\001\332A$subproperty_" - + "event_filter,update_mask\202\323\344\223\002k2O/v1alpha" - + "/{subproperty_event_filter.name=properti" - + "es/*/subpropertyEventFilters/*}:\030subprop" - + "erty_event_filter\022\302\001\n\034DeleteSubpropertyE" - + "ventFilter\022C.google.analytics.admin.v1al" - + "pha.DeleteSubpropertyEventFilterRequest\032" - + "\026.google.protobuf.Empty\"E\332A\004name\202\323\344\223\0028*6" - + "/v1alpha/{name=properties/*/subpropertyE" - + "ventFilters/*}\022\235\002\n\035CreateReportingDataAn" - + "notation\022D.google.analytics.admin.v1alph" - + "a.CreateReportingDataAnnotationRequest\0327" + + ".admin.v1alpha.EventEditRule\"\202\001\332A\033event_" + + "edit_rule,update_mask\202\323\344\223\002^2K/v1alpha/{e" + + "vent_edit_rule.name=properties/*/dataStr" + + "eams/*/eventEditRules/*}:\017event_edit_rul" + + "e\022\265\001\n\023DeleteEventEditRule\022:.google.analy" + + "tics.admin.v1alpha.DeleteEventEditRuleRe" + + "quest\032\026.google.protobuf.Empty\"J\332A\004name\202\323" + + "\344\223\002=*;/v1alpha/{name=properties/*/dataSt" + + "reams/*/eventEditRules/*}\022\275\001\n\025ReorderEve" + + "ntEditRules\022<.google.analytics.admin.v1a" + + "lpha.ReorderEventEditRulesRequest\032\026.goog" + + "le.protobuf.Empty\"N\202\323\344\223\002H\"C/v1alpha/{par" + + "ent=properties/*/dataStreams/*}/eventEdi" + + "tRules:reorder:\001*\022\272\002\n\033UpdateDataRedactio" + + "nSettings\022B.google.analytics.admin.v1alp" + + "ha.UpdateDataRedactionSettingsRequest\0325." + + "google.analytics.admin.v1alpha.DataRedac" + + "tionSettings\"\237\001\332A#data_redaction_setting" + + "s,update_mask\202\323\344\223\002s2X/v1alpha/{data_reda" + + "ction_settings.name=properties/*/dataStr" + + "eams/*/dataRedactionSettings}:\027data_reda" + + "ction_settings\022\343\001\n\030GetDataRedactionSetti" + + "ngs\022?.google.analytics.admin.v1alpha.Get" + + "DataRedactionSettingsRequest\0325.google.an" + + "alytics.admin.v1alpha.DataRedactionSetti" + + "ngs\"O\332A\004name\202\323\344\223\002B\022@/v1alpha/{name=prope" + + "rties/*/dataStreams/*/dataRedactionSetti" + + "ngs}\022\304\001\n\023GetCalculatedMetric\022:.google.an" + + "alytics.admin.v1alpha.GetCalculatedMetri" + + "cRequest\0320.google.analytics.admin.v1alph" + + "a.CalculatedMetric\"?\332A\004name\202\323\344\223\0022\0220/v1al" + + "pha/{name=properties/*/calculatedMetrics" + + "/*}\022\206\002\n\026CreateCalculatedMetric\022=.google." + + "analytics.admin.v1alpha.CreateCalculated" + + "MetricRequest\0320.google.analytics.admin.v" + + "1alpha.CalculatedMetric\"{\332A-parent,calcu" + + "lated_metric,calculated_metric_id\202\323\344\223\002E\"" + + "0/v1alpha/{parent=properties/*}/calculat" + + "edMetrics:\021calculated_metric\022\327\001\n\025ListCal" + + "culatedMetrics\022<.google.analytics.admin." + + "v1alpha.ListCalculatedMetricsRequest\032=.g" + + "oogle.analytics.admin.v1alpha.ListCalcul" + + "atedMetricsResponse\"A\332A\006parent\202\323\344\223\0022\0220/v" + + "1alpha/{parent=properties/*}/calculatedM" + + "etrics\022\210\002\n\026UpdateCalculatedMetric\022=.goog" + + "le.analytics.admin.v1alpha.UpdateCalcula" + + "tedMetricRequest\0320.google.analytics.admi" + + "n.v1alpha.CalculatedMetric\"}\332A\035calculate" + + "d_metric,update_mask\202\323\344\223\002W2B/v1alpha/{ca" + + "lculated_metric.name=properties/*/calcul" + + "atedMetrics/*}:\021calculated_metric\022\260\001\n\026De" + + "leteCalculatedMetric\022=.google.analytics." + + "admin.v1alpha.DeleteCalculatedMetricRequ" + + "est\032\026.google.protobuf.Empty\"?\332A\004name\202\323\344\223" + + "\0022*0/v1alpha/{name=properties/*/calculat" + + "edMetrics/*}\022\306\001\n\024CreateRollupProperty\022;." + + "google.analytics.admin.v1alpha.CreateRol" + + "lupPropertyRequest\032<.google.analytics.ad" + + "min.v1alpha.CreateRollupPropertyResponse" + + "\"3\202\323\344\223\002-\"(/v1alpha/properties:createRoll" + + "upProperty:\001*\022\344\001\n\033GetRollupPropertySourc" + + "eLink\022B.google.analytics.admin.v1alpha.G" + + "etRollupPropertySourceLinkRequest\0328.goog" + + "le.analytics.admin.v1alpha.RollupPropert" + + "ySourceLink\"G\332A\004name\202\323\344\223\002:\0228/v1alpha/{na" + + "me=properties/*/rollupPropertySourceLink" + + "s/*}\022\367\001\n\035ListRollupPropertySourceLinks\022D" + + ".google.analytics.admin.v1alpha.ListRoll" + + "upPropertySourceLinksRequest\032E.google.an" + + "alytics.admin.v1alpha.ListRollupProperty" + + "SourceLinksResponse\"I\332A\006parent\202\323\344\223\002:\0228/v" + + "1alpha/{parent=properties/*}/rollupPrope" + + "rtySourceLinks\022\246\002\n\036CreateRollupPropertyS" + + "ourceLink\022E.google.analytics.admin.v1alp" + + "ha.CreateRollupPropertySourceLinkRequest" + + "\0328.google.analytics.admin.v1alpha.Rollup" + + "PropertySourceLink\"\202\001\332A\"parent,rollup_pr" + + "operty_source_link\202\323\344\223\002W\"8/v1alpha/{pare" + + "nt=properties/*}/rollupPropertySourceLin" + + "ks:\033rollup_property_source_link\022\310\001\n\036Dele" + + "teRollupPropertySourceLink\022E.google.anal" + + "ytics.admin.v1alpha.DeleteRollupProperty" + + "SourceLinkRequest\032\026.google.protobuf.Empt" + + "y\"G\332A\004name\202\323\344\223\002:*8/v1alpha/{name=propert" + + "ies/*/rollupPropertySourceLinks/*}\022\306\001\n\024P" + + "rovisionSubproperty\022;.google.analytics.a" + + "dmin.v1alpha.ProvisionSubpropertyRequest" + + "\032<.google.analytics.admin.v1alpha.Provis" + + "ionSubpropertyResponse\"3\202\323\344\223\002-\"(/v1alpha" + + "/properties:provisionSubproperty:\001*\022\227\002\n\034" + + "CreateSubpropertyEventFilter\022C.google.an" + + "alytics.admin.v1alpha.CreateSubpropertyE" + + "ventFilterRequest\0326.google.analytics.adm" + + "in.v1alpha.SubpropertyEventFilter\"z\332A\037pa" + + "rent,subproperty_event_filter\202\323\344\223\002R\"6/v1" + + "alpha/{parent=properties/*}/subpropertyE" + + "ventFilters:\030subproperty_event_filter\022\334\001" + + "\n\031GetSubpropertyEventFilter\022@.google.ana" + + "lytics.admin.v1alpha.GetSubpropertyEvent" + + "FilterRequest\0326.google.analytics.admin.v" + + "1alpha.SubpropertyEventFilter\"E\332A\004name\202\323" + + "\344\223\0028\0226/v1alpha/{name=properties/*/subpro" + + "pertyEventFilters/*}\022\357\001\n\033ListSubproperty" + + "EventFilters\022B.google.analytics.admin.v1" + + "alpha.ListSubpropertyEventFiltersRequest" + + "\032C.google.analytics.admin.v1alpha.ListSu" + + "bpropertyEventFiltersResponse\"G\332A\006parent" + + "\202\323\344\223\0028\0226/v1alpha/{parent=properties/*}/s" + + "ubpropertyEventFilters\022\266\002\n\034UpdateSubprop" + + "ertyEventFilter\022C.google.analytics.admin" + + ".v1alpha.UpdateSubpropertyEventFilterReq" + + "uest\0326.google.analytics.admin.v1alpha.Su" + + "bpropertyEventFilter\"\230\001\332A$subproperty_ev" + + "ent_filter,update_mask\202\323\344\223\002k2O/v1alpha/{" + + "subproperty_event_filter.name=properties" + + "/*/subpropertyEventFilters/*}:\030subproper" + + "ty_event_filter\022\302\001\n\034DeleteSubpropertyEve" + + "ntFilter\022C.google.analytics.admin.v1alph" + + "a.DeleteSubpropertyEventFilterRequest\032\026." + + "google.protobuf.Empty\"E\332A\004name\202\323\344\223\0028*6/v" + + "1alpha/{name=properties/*/subpropertyEve" + + "ntFilters/*}\022\235\002\n\035CreateReportingDataAnno" + + "tation\022D.google.analytics.admin.v1alpha." + + "CreateReportingDataAnnotationRequest\0327.g" + + "oogle.analytics.admin.v1alpha.ReportingD" + + "ataAnnotation\"}\332A parent,reporting_data_" + + "annotation\202\323\344\223\002T\"7/v1alpha/{parent=prope" + + "rties/*}/reportingDataAnnotations:\031repor" + + "ting_data_annotation\022\340\001\n\032GetReportingDat" + + "aAnnotation\022A.google.analytics.admin.v1a" + + "lpha.GetReportingDataAnnotationRequest\0327" + ".google.analytics.admin.v1alpha.Reportin" - + "gDataAnnotation\"}\332A parent,reporting_dat" - + "a_annotation\202\323\344\223\002T\"7/v1alpha/{parent=pro" - + "perties/*}/reportingDataAnnotations:\031rep" - + "orting_data_annotation\022\340\001\n\032GetReportingD" - + "ataAnnotation\022A.google.analytics.admin.v" - + "1alpha.GetReportingDataAnnotationRequest" - + "\0327.google.analytics.admin.v1alpha.Report" - + "ingDataAnnotation\"F\332A\004name\202\323\344\223\0029\0227/v1alp" - + "ha/{name=properties/*/reportingDataAnnot" - + "ations/*}\022\363\001\n\034ListReportingDataAnnotatio" - + "ns\022C.google.analytics.admin.v1alpha.List" - + "ReportingDataAnnotationsRequest\032D.google" - + ".analytics.admin.v1alpha.ListReportingDa" - + "taAnnotationsResponse\"H\332A\006parent\202\323\344\223\0029\0227" - + "/v1alpha/{parent=properties/*}/reporting" - + "DataAnnotations\022\275\002\n\035UpdateReportingDataA" - + "nnotation\022D.google.analytics.admin.v1alp" - + "ha.UpdateReportingDataAnnotationRequest\032" - + "7.google.analytics.admin.v1alpha.Reporti" - + "ngDataAnnotation\"\234\001\332A%reporting_data_ann" - + "otation,update_mask\202\323\344\223\002n2Q/v1alpha/{rep" - + "orting_data_annotation.name=properties/*" - + "/reportingDataAnnotations/*}:\031reporting_" - + "data_annotation\022\305\001\n\035DeleteReportingDataA" - + "nnotation\022D.google.analytics.admin.v1alp" - + "ha.DeleteReportingDataAnnotationRequest\032" - + "\026.google.protobuf.Empty\"F\332A\004name\202\323\344\223\0029*7" - + "/v1alpha/{name=properties/*/reportingDat" - + "aAnnotations/*}\022\316\001\n\022SubmitUserDeletion\0229" - + ".google.analytics.admin.v1alpha.SubmitUs" - + "erDeletionRequest\032:.google.analytics.adm" - + "in.v1alpha.SubmitUserDeletionResponse\"A\332" - + "A\004name\202\323\344\223\0024\"//v1alpha/{name=properties/" - + "*}:submitUserDeletion:\001*\022\353\001\n\032ListSubprop" - + "ertySyncConfigs\022A.google.analytics.admin" - + ".v1alpha.ListSubpropertySyncConfigsReque" - + "st\032B.google.analytics.admin.v1alpha.List" - + "SubpropertySyncConfigsResponse\"F\332A\006paren" - + "t\202\323\344\223\0027\0225/v1alpha/{parent=properties/*}/" - + "subpropertySyncConfigs\022\257\002\n\033UpdateSubprop" - + "ertySyncConfig\022B.google.analytics.admin." - + "v1alpha.UpdateSubpropertySyncConfigReque" - + "st\0325.google.analytics.admin.v1alpha.Subp", - "ropertySyncConfig\"\224\001\332A#subproperty_sync_" - + "config,update_mask\202\323\344\223\002h2M/v1alpha/{subp" - + "roperty_sync_config.name=properties/*/su" - + "bpropertySyncConfigs/*}:\027subproperty_syn" - + "c_config\022\330\001\n\030GetSubpropertySyncConfig\022?." - + "google.analytics.admin.v1alpha.GetSubpro" - + "pertySyncConfigRequest\0325.google.analytic" - + "s.admin.v1alpha.SubpropertySyncConfig\"D\332" - + "A\004name\202\323\344\223\0027\0225/v1alpha/{name=properties/" - + "*/subpropertySyncConfigs/*}\022\345\001\n\034GetRepor" - + "tingIdentitySettings\022C.google.analytics." - + "admin.v1alpha.GetReportingIdentitySettin" - + "gsRequest\0329.google.analytics.admin.v1alp" - + "ha.ReportingIdentitySettings\"E\332A\004name\202\323\344" - + "\223\0028\0226/v1alpha/{name=properties/*/reporti" - + "ngIdentitySettings}\022\341\001\n\033GetUserProvidedD" - + "ataSettings\022B.google.analytics.admin.v1a" - + "lpha.GetUserProvidedDataSettingsRequest\032" - + "8.google.analytics.admin.v1alpha.UserPro" - + "videdDataSettings\"D\332A\004name\202\323\344\223\0027\0225/v1alp" - + "ha/{name=properties/*/userProvidedDataSe" - + "ttings}\032\374\001\312A\035analyticsadmin.googleapis.c" - + "om\322A\330\001https://www.googleapis.com/auth/an" - + "alytics.edit,https://www.googleapis.com/" - + "auth/analytics.manage.users,https://www." - + "googleapis.com/auth/analytics.manage.use" - + "rs.readonly,https://www.googleapis.com/a" - + "uth/analytics.readonlyB{\n\"com.google.ana" - + "lytics.admin.v1alphaB\023AnalyticsAdminProt" - + "oP\001Z>cloud.google.com/go/analytics/admin" - + "/apiv1alpha/adminpb;adminpbb\006proto3" + + "gDataAnnotation\"F\332A\004name\202\323\344\223\0029\0227/v1alpha" + + "/{name=properties/*/reportingDataAnnotat" + + "ions/*}\022\363\001\n\034ListReportingDataAnnotations" + + "\022C.google.analytics.admin.v1alpha.ListRe" + + "portingDataAnnotationsRequest\032D.google.a" + + "nalytics.admin.v1alpha.ListReportingData" + + "AnnotationsResponse\"H\332A\006parent\202\323\344\223\0029\0227/v" + + "1alpha/{parent=properties/*}/reportingDa" + + "taAnnotations\022\275\002\n\035UpdateReportingDataAnn" + + "otation\022D.google.analytics.admin.v1alpha" + + ".UpdateReportingDataAnnotationRequest\0327." + + "google.analytics.admin.v1alpha.Reporting" + + "DataAnnotation\"\234\001\332A%reporting_data_annot" + + "ation,update_mask\202\323\344\223\002n2Q/v1alpha/{repor" + + "ting_data_annotation.name=properties/*/r" + + "eportingDataAnnotations/*}:\031reporting_da" + + "ta_annotation\022\305\001\n\035DeleteReportingDataAnn" + + "otation\022D.google.analytics.admin.v1alpha" + + ".DeleteReportingDataAnnotationRequest\032\026." + + "google.protobuf.Empty\"F\332A\004name\202\323\344\223\0029*7/v" + + "1alpha/{name=properties/*/reportingDataA" + + "nnotations/*}\022\316\001\n\022SubmitUserDeletion\0229.g" + + "oogle.analytics.admin.v1alpha.SubmitUser" + + "DeletionRequest\032:.google.analytics.admin" + + ".v1alpha.SubmitUserDeletionResponse\"A\332A\004" + + "name\202\323\344\223\0024\"//v1alpha/{name=properties/*}" + + ":submitUserDeletion:\001*\022\353\001\n\032ListSubproper" + + "tySyncConfigs\022A.google.analytics.admin.v" + + "1alpha.ListSubpropertySyncConfigsRequest" + + "\032B.google.analytics.admin.v1alpha.ListSu" + + "bpropertySyncConfigsResponse\"F\332A\006parent\202", + "\323\344\223\0027\0225/v1alpha/{parent=properties/*}/su" + + "bpropertySyncConfigs\022\257\002\n\033UpdateSubproper" + + "tySyncConfig\022B.google.analytics.admin.v1" + + "alpha.UpdateSubpropertySyncConfigRequest" + + "\0325.google.analytics.admin.v1alpha.Subpro" + + "pertySyncConfig\"\224\001\332A#subproperty_sync_co" + + "nfig,update_mask\202\323\344\223\002h2M/v1alpha/{subpro" + + "perty_sync_config.name=properties/*/subp" + + "ropertySyncConfigs/*}:\027subproperty_sync_" + + "config\022\330\001\n\030GetSubpropertySyncConfig\022?.go" + + "ogle.analytics.admin.v1alpha.GetSubprope" + + "rtySyncConfigRequest\0325.google.analytics." + + "admin.v1alpha.SubpropertySyncConfig\"D\332A\004" + + "name\202\323\344\223\0027\0225/v1alpha/{name=properties/*/" + + "subpropertySyncConfigs/*}\022\345\001\n\034GetReporti" + + "ngIdentitySettings\022C.google.analytics.ad" + + "min.v1alpha.GetReportingIdentitySettings" + + "Request\0329.google.analytics.admin.v1alpha" + + ".ReportingIdentitySettings\"E\332A\004name\202\323\344\223\002" + + "8\0226/v1alpha/{name=properties/*/reporting" + + "IdentitySettings}\022\310\002\n\037UpdateReportingIde" + + "ntitySettings\022F.google.analytics.admin.v" + + "1alpha.UpdateReportingIdentitySettingsRe" + + "quest\0329.google.analytics.admin.v1alpha.R" + + "eportingIdentitySettings\"\241\001\332A\'reporting_" + + "identity_settings,update_mask\202\323\344\223\002q2R/v1" + + "alpha/{reporting_identity_settings.name=" + + "properties/*/reportingIdentitySettings}:" + + "\033reporting_identity_settings\022\341\001\n\033GetUser" + + "ProvidedDataSettings\022B.google.analytics." + + "admin.v1alpha.GetUserProvidedDataSetting" + + "sRequest\0328.google.analytics.admin.v1alph" + + "a.UserProvidedDataSettings\"D\332A\004name\202\323\344\223\002" + + "7\0225/v1alpha/{name=properties/*/userProvi" + + "dedDataSettings}\032\374\001\312A\035analyticsadmin.goo" + + "gleapis.com\322A\330\001https://www.googleapis.co" + + "m/auth/analytics.edit,https://www.google" + + "apis.com/auth/analytics.manage.users,htt" + + "ps://www.googleapis.com/auth/analytics.m" + + "anage.users.readonly,https://www.googlea" + + "pis.com/auth/analytics.readonlyB{\n\"com.g" + + "oogle.analytics.admin.v1alphaB\023Analytics" + + "AdminProtoP\001Z>cloud.google.com/go/analyt" + + "ics/admin/apiv1alpha/adminpb;adminpbb\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -4083,8 +4101,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_descriptor = + internal_static_google_analytics_admin_v1alpha_UpdateReportingIdentitySettingsRequest_descriptor = getDescriptor().getMessageType(193); + internal_static_google_analytics_admin_v1alpha_UpdateReportingIdentitySettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateReportingIdentitySettingsRequest_descriptor, + new java.lang.String[] { + "ReportingIdentitySettings", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_descriptor = + getDescriptor().getMessageType(194); internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_descriptor, diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java index decb5b26bcaf..926777d57581 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java @@ -281,6 +281,26 @@ public com.google.protobuf.ByteString getParentBytes() { } } + public static final int CAN_EDIT_FIELD_NUMBER = 5; + private boolean canEdit_ = false; + + /** + * + * + *
+   * If true, then the user has a Google Analytics role that permits them to
+   * edit the property.
+   * 
+ * + * bool can_edit = 5; + * + * @return The canEdit. + */ + @java.lang.Override + public boolean getCanEdit() { + return canEdit_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -308,6 +328,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, parent_); } + if (canEdit_ != false) { + output.writeBool(5, canEdit_); + } getUnknownFields().writeTo(output); } @@ -330,6 +353,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, parent_); } + if (canEdit_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, canEdit_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -350,6 +376,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDisplayName().equals(other.getDisplayName())) return false; if (propertyType_ != other.propertyType_) return false; if (!getParent().equals(other.getParent())) return false; + if (getCanEdit() != other.getCanEdit()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -369,6 +396,8 @@ public int hashCode() { hash = (53 * hash) + propertyType_; hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + CAN_EDIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCanEdit()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -513,6 +542,7 @@ public Builder clear() { displayName_ = ""; propertyType_ = 0; parent_ = ""; + canEdit_ = false; return this; } @@ -561,6 +591,9 @@ private void buildPartial0(com.google.analytics.admin.v1alpha.PropertySummary re if (((from_bitField0_ & 0x00000008) != 0)) { result.parent_ = parent_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.canEdit_ = canEdit_; + } } @java.lang.Override @@ -594,6 +627,9 @@ public Builder mergeFrom(com.google.analytics.admin.v1alpha.PropertySummary othe bitField0_ |= 0x00000008; onChanged(); } + if (other.getCanEdit() != false) { + setCanEdit(other.getCanEdit()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -644,6 +680,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 40: + { + canEdit_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1121,6 +1163,65 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } + private boolean canEdit_; + + /** + * + * + *
+     * If true, then the user has a Google Analytics role that permits them to
+     * edit the property.
+     * 
+ * + * bool can_edit = 5; + * + * @return The canEdit. + */ + @java.lang.Override + public boolean getCanEdit() { + return canEdit_; + } + + /** + * + * + *
+     * If true, then the user has a Google Analytics role that permits them to
+     * edit the property.
+     * 
+ * + * bool can_edit = 5; + * + * @param value The canEdit to set. + * @return This builder for chaining. + */ + public Builder setCanEdit(boolean value) { + + canEdit_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * If true, then the user has a Google Analytics role that permits them to
+     * edit the property.
+     * 
+ * + * bool can_edit = 5; + * + * @return This builder for chaining. + */ + public Builder clearCanEdit() { + bitField0_ = (bitField0_ & ~0x00000010); + canEdit_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.PropertySummary) } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java index d43abced655c..04a41f9285f5 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java @@ -141,4 +141,18 @@ public interface PropertySummaryOrBuilder * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * If true, then the user has a Google Analytics role that permits them to
+   * edit the property.
+   * 
+ * + * bool can_edit = 5; + * + * @return The canEdit. + */ + boolean getCanEdit(); } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java index c9088665a89c..5482bc2b6690 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java @@ -347,50 +347,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022property_summaries\030\004 \003(\013" + "2/.google.analytics.admin.v1alpha.PropertySummary:w\352At\n" + ",analyticsadmin.googleapis.com/AccountSummary\022\"accountSummaries/{" - + "account_summary}*\020accountSummaries2\016accountSummary\"\273\001\n" + + "account_summary}*\020accountSummaries2\016accountSummary\"\315\001\n" + "\017PropertySummary\022=\n" + "\010property\030\001 \001(\tB+\372A(\n" + "&analyticsadmin.googleapis.com/Property\022\024\n" + "\014display_name\030\002 \001(\t\022C\n\r" + "property_type\030\003" + " \001(\0162,.google.analytics.admin.v1alpha.PropertyType\022\016\n" - + "\006parent\030\004 \001(\t\"\305\002\n" + + "\006parent\030\004 \001(\t\022\020\n" + + "\010can_edit\030\005 \001(\010\"\305\002\n" + "\031MeasurementProtocolSecret\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\031\n" + "\014secret_value\030\003 \001(\tB\003\340A\003:\336\001\352A\332\001\n" - + "7analyticsadmin.googleapis.com/MeasurementProtoco" - + "lSecret\022hproperties/{property}/dataStreams/{data_stream}/measurementProtocolSecr" - + "ets/{measurement_protocol_secret}*\032measu" - + "rementProtocolSecrets2\031measurementProtocolSecret\"\310\004\n" + + "7analyticsadmin.googleapis.com/MeasurementProtocolSecret\022hproperties/{p" + + "roperty}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_proto" + + "col_secret}*\032measurementProtocolSecrets2\031measurementProtocolSecret\"\310\004\n" + " SKAdNetworkConversionValueSchema\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022P\n" - + "\023postback_window_one\030\002" - + " \001(\0132..google.analytics.admin.v1alpha.PostbackWindowB\003\340A\002\022K\n" - + "\023postback_window_two\030\003" - + " \001(\0132..google.analytics.admin.v1alpha.PostbackWindow\022M\n" - + "\025postback_window_three\030\004" - + " \001(\0132..google.analytics.admin.v1alpha.PostbackWindow\022\037\n" + + "\023postback_window_one\030\002 \001(\0132..google" + + ".analytics.admin.v1alpha.PostbackWindowB\003\340A\002\022K\n" + + "\023postback_window_two\030\003 \001(\0132..goog" + + "le.analytics.admin.v1alpha.PostbackWindow\022M\n" + + "\025postback_window_three\030\004 \001(\0132..googl" + + "e.analytics.admin.v1alpha.PostbackWindow\022\037\n" + "\027apply_conversion_values\030\005 \001(\010:\201\002\352A\375\001\n" - + ">analyticsadmin.googleapis.com/SKAdNetworkConversionValue" - + "Schema\022vproperties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionVal" - + "ueSchema/{skadnetwork_conversion_value_schema}*!skAdNetworkConversionValueSchemas2" + + ">analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\022vproperties/{pr" + + "operty}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_" + + "conversion_value_schema}*!skAdNetworkConversionValueSchemas2" + " skAdNetworkConversionValueSchema\"\207\001\n" + "\016PostbackWindow\022K\n" - + "\021conversion_values\030\001 \003(" - + "\01320.google.analytics.admin.v1alpha.ConversionValues\022(\n" + + "\021conversion_values\030\001" + + " \003(\01320.google.analytics.admin.v1alpha.ConversionValues\022(\n" + " postback_window_settings_enabled\030\002 \001(\010\"\364\001\n" + "\020ConversionValues\022\024\n" + "\014display_name\030\001 \001(\t\022\027\n\n" + "fine_value\030\002 \001(\005H\000\210\001\001\022F\n" - + "\014coarse_value\030\003" - + " \001(\0162+.google.analytics.admin.v1alpha.CoarseValueB\003\340A\002\022D\n" - + "\016event_mappings\030\004" - + " \003(\0132,.google.analytics.admin.v1alpha.EventMapping\022\024\n" + + "\014coarse_value\030\003 \001(" + + "\0162+.google.analytics.admin.v1alpha.CoarseValueB\003\340A\002\022D\n" + + "\016event_mappings\030\004 \003(\0132,.go" + + "ogle.analytics.admin.v1alpha.EventMapping\022\024\n" + "\014lock_enabled\030\005 \001(\010B\r\n" + "\013_fine_value\"\357\001\n" - + "\014EventMapping\022\027\n" - + "\n" + + "\014EventMapping\022\027\n\n" + "event_name\030\001 \001(\tB\003\340A\002\022\034\n" + "\017min_event_count\030\002 \001(\003H\000\210\001\001\022\034\n" + "\017max_event_count\030\003 \001(\003H\001\210\001\001\022\034\n" @@ -406,73 +405,73 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "actor_type\030\003 \001(\0162).google.analytics.admin.v1alpha.ActorType\022\030\n" + "\020user_actor_email\030\004 \001(\t\022\030\n" + "\020changes_filtered\030\005 \001(\010\022D\n" - + "\007changes\030\006 \003(\01323" - + ".google.analytics.admin.v1alpha.ChangeHistoryChange\"\231\026\n" + + "\007changes\030\006" + + " \003(\01323.google.analytics.admin.v1alpha.ChangeHistoryChange\"\231\026\n" + "\023ChangeHistoryChange\022\020\n" + "\010resource\030\001 \001(\t\022:\n" + "\006action\030\002 \001(\0162*.google.analytics.admin.v1alpha.ActionType\022i\n" - + "\026resource_before_change\030\003 \001(\0132I.google.analy" - + "tics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource\022h\n" - + "\025resource_after_change\030\004 \001(\0132I.google.analytics.admin.v1a" - + "lpha.ChangeHistoryChange.ChangeHistoryResource\032\336\023\n" + + "\026resource_before_change\030\003 \001(\0132I.google.analytics.admin.v1alpha.Cha" + + "ngeHistoryChange.ChangeHistoryResource\022h\n" + + "\025resource_after_change\030\004 \001(\0132I.google.a" + + "nalytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource\032\336\023\n" + "\025ChangeHistoryResource\022:\n" + "\007account\030\001 \001(\0132\'.google.analytics.admin.v1alpha.AccountH\000\022<\n" + "\010property\030\002 \001(\0132(.google.analytics.admin.v1alpha.PropertyH\000\022E\n\r" - + "firebase_link\030\006" - + " \001(\0132,.google.analytics.admin.v1alpha.FirebaseLinkH\000\022H\n" + + "firebase_link\030\006 \001(\0132,.go" + + "ogle.analytics.admin.v1alpha.FirebaseLinkH\000\022H\n" + "\017google_ads_link\030\007" + " \001(\0132-.google.analytics.admin.v1alpha.GoogleAdsLinkH\000\022X\n" - + "\027google_signals_settings\030\010" - + " \001(\01325.google.analytics.admin.v1alpha.GoogleSignalsSettingsH\000\022j\n" - + "!display_video_360_advertiser_link\030\t \001(\0132=.googl" - + "e.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkH\000\022{\n" + + "\027google_signals_settings\030\010 \001(\01325.google." + + "analytics.admin.v1alpha.GoogleSignalsSettingsH\000\022j\n" + + "!display_video_360_advertiser_link\030\t" + + " \001(\0132=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkH\000\022{\n" + "*display_video_360_advertiser_link_proposal\030\n" - + " \001(\0132E.google.a" - + "nalytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalH\000\022K\n" + + " \001(\0132E.google.analytics.admin.v1alpha" + + ".DisplayVideo360AdvertiserLinkProposalH\000\022K\n" + "\020conversion_event\030\013" + " \001(\0132/.google.analytics.admin.v1alpha.ConversionEventH\000\022`\n" - + "\033measurement_protocol_secret\030\014" - + " \001(\01329.google.analytics.admin.v1alpha.MeasurementProtocolSecretH\000\022K\n" + + "\033measurement_protocol_secret\030\014 \001(\01329.goo" + + "gle.analytics.admin.v1alpha.MeasurementProtocolSecretH\000\022K\n" + "\020custom_dimension\030\r" + " \001(\0132/.google.analytics.admin.v1alpha.CustomDimensionH\000\022E\n\r" - + "custom_metric\030\016" - + " \001(\0132,.google.analytics.admin.v1alpha.CustomMetricH\000\022X\n" - + "\027data_retention_settings\030\017" - + " \001(\01325.google.analytics.admin.v1alpha.DataRetentionSettingsH\000\022O\n" - + "\023search_ads_360_link\030\020" - + " \001(\01320.google.analytics.admin.v1alpha.SearchAds360LinkH\000\022A\n" - + "\013data_stream\030\022" - + " \001(\0132*.google.analytics.admin.v1alpha.DataStreamH\000\022S\n" - + "\024attribution_settings\030\024" - + " \001(\01323.google.analytics.admin.v1alpha.AttributionSettingsH\000\022L\n" - + "\021expanded_data_set\030\025" - + " \001(\0132/.google.analytics.admin.v1alpha.ExpandedDataSetH\000\022E\n\r" + + "custom_metric\030\016 \001(\0132,.go" + + "ogle.analytics.admin.v1alpha.CustomMetricH\000\022X\n" + + "\027data_retention_settings\030\017 \001(\01325.g" + + "oogle.analytics.admin.v1alpha.DataRetentionSettingsH\000\022O\n" + + "\023search_ads_360_link\030\020 \001" + + "(\01320.google.analytics.admin.v1alpha.SearchAds360LinkH\000\022A\n" + + "\013data_stream\030\022 \001(\0132*.go" + + "ogle.analytics.admin.v1alpha.DataStreamH\000\022S\n" + + "\024attribution_settings\030\024 \001(\01323.google" + + ".analytics.admin.v1alpha.AttributionSettingsH\000\022L\n" + + "\021expanded_data_set\030\025 \001(\0132/.goog" + + "le.analytics.admin.v1alpha.ExpandedDataSetH\000\022E\n\r" + "channel_group\030\026" + " \001(\0132,.google.analytics.admin.v1alpha.ChannelGroupH\000\022E\n\r" - + "bigquery_link\030\027 \001(\013" - + "2,.google.analytics.admin.v1alpha.BigQueryLinkH\000\022d\n" - + "\035enhanced_measurement_settings\030\030" - + " \001(\0132;.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsH\000\022X\n" - + "\027data_redaction_settings\030\031 \001(\01325.google.analyti" - + "cs.admin.v1alpha.DataRedactionSettingsH\000\022o\n" - + "#skadnetwork_conversion_value_schema\030\032" - + " \001(\0132@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaH\000\022C\n" - + "\014adsense_link\030\033" - + " \001(\0132+.google.analytics.admin.v1alpha.AdSenseLinkH\000\022<\n" + + "bigquery_link\030\027" + + " \001(\0132,.google.analytics.admin.v1alpha.BigQueryLinkH\000\022d\n" + + "\035enhanced_measurement_settings\030\030 \001(\0132;.google.analy" + + "tics.admin.v1alpha.EnhancedMeasurementSettingsH\000\022X\n" + + "\027data_redaction_settings\030\031 \001(" + + "\01325.google.analytics.admin.v1alpha.DataRedactionSettingsH\000\022o\n" + + "#skadnetwork_conversion_value_schema\030\032 \001(\0132@.google.analyti" + + "cs.admin.v1alpha.SKAdNetworkConversionValueSchemaH\000\022C\n" + + "\014adsense_link\030\033 \001(\0132+.goog" + + "le.analytics.admin.v1alpha.AdSenseLinkH\000\022<\n" + "\010audience\030\034 \001(\0132(.google.analytics.admin.v1alpha.AudienceH\000\022L\n" - + "\021event_create_rule\030\035 \001(\0132/.google" - + ".analytics.admin.v1alpha.EventCreateRuleH\000\022=\n" + + "\021event_create_rule\030\035" + + " \001(\0132/.google.analytics.admin.v1alpha.EventCreateRuleH\000\022=\n" + "\tkey_event\030\036 \001(\0132(.google.analytics.admin.v1alpha.KeyEventH\000\022M\n" - + "\021calculated_metric\030\037" - + " \001(\01320.google.analytics.admin.v1alpha.CalculatedMetricH\000\022\\\n" - + "\031reporting_data_annotation\030 \001(\01327.google.analytics.a" - + "dmin.v1alpha.ReportingDataAnnotationH\000\022X\n" - + "\027subproperty_sync_config\030! \001(\01325.google" - + ".analytics.admin.v1alpha.SubpropertySyncConfigH\000\022`\n" - + "\033reporting_identity_settings\030\"" - + " \001(\01329.google.analytics.admin.v1alpha.ReportingIdentitySettingsH\000\022_\n" - + "\033user_provided_data_settings\030# \001(\01328.google.analyti" - + "cs.admin.v1alpha.UserProvidedDataSettingsH\000B\n\n" + + "\021calculated_metric\030\037 \001(\01320.google." + + "analytics.admin.v1alpha.CalculatedMetricH\000\022\\\n" + + "\031reporting_data_annotation\030 \001(\01327." + + "google.analytics.admin.v1alpha.ReportingDataAnnotationH\000\022X\n" + + "\027subproperty_sync_config\030!" + + " \001(\01325.google.analytics.admin.v1alpha.SubpropertySyncConfigH\000\022`\n" + + "\033reporting_identity_settings\030\" \001(\01329.google.analyti" + + "cs.admin.v1alpha.ReportingIdentitySettingsH\000\022_\n" + + "\033user_provided_data_settings\030# \001(" + + "\01328.google.analytics.admin.v1alpha.UserProvidedDataSettingsH\000B\n\n" + "\010resource\"\236\004\n" + "\035DisplayVideo360AdvertiserLink\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\032\n\r" @@ -484,15 +483,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\005\022B\n" + "\031cost_data_sharing_enabled\030\006" + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\005:\332\001\352A\326\001\n" - + ";analyticsadmin.googleapis.com/DisplayVideo360Adverti" - + "serLink\022Xproperties/{property}/displayVideo360AdvertiserLinks/{display_video_360" - + "_advertiser_link}*\036displayVideo360Advert" - + "iserLinks2\035displayVideo360AdvertiserLink\"\331\005\n" + + ";analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\022Xproperties/{p" + + "roperty}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}*\036dis" + + "playVideo360AdvertiserLinks2\035displayVideo360AdvertiserLink\"\331\005\n" + "%DisplayVideo360AdvertiserLinkProposal\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\032\n\r" + "advertiser_id\030\002 \001(\tB\003\340A\005\022d\n" - + "\034link_proposal_status_details\030\003" - + " \001(\01329.google.analytics.admin.v1alpha.LinkProposalStatusDetailsB\003\340A\003\022$\n" + + "\034link_proposal_status_details\030\003 \001(\01329.google.analy" + + "tics.admin.v1alpha.LinkProposalStatusDetailsB\003\340A\003\022$\n" + "\027advertiser_display_name\030\004 \001(\tB\003\340A\003\022\035\n" + "\020validation_email\030\005 \001(\tB\003\340A\004\022D\n" + "\033ads_personalization_enabled\030\006" @@ -501,10 +499,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\005\022B\n" + "\031cost_data_sharing_enabled\030\010" + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\005:\203\002\352A\377\001\n" - + "Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\022iproperties/{" - + "property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_l" - + "ink_proposal}*&displayVideo360Advertiser" - + "LinkProposals2%displayVideo360AdvertiserLinkProposal\"\217\004\n" + + "Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProp" + + "osal\022iproperties/{property}/displayVideo360AdvertiserLinkProposals/{display_vide" + + "o_360_advertiser_link_proposal}*&display" + + "Video360AdvertiserLinkProposals2%displayVideo360AdvertiserLinkProposal\"\217\004\n" + "\020SearchAds360Link\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\032\n\r" + "advertiser_id\030\002 \001(\tB\003\340A\005\022F\n" @@ -517,15 +515,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.BoolValue\022>\n" + "\032site_stats_sharing_enabled\030\007" + " \001(\0132\032.google.protobuf.BoolValue:\230\001\352A\224\001\n" - + ".analyticsadmin.googleapis.com/SearchAds360Li" - + "nk\022=properties/{property}/searchAds360Li" - + "nks/{search_ads_360_link}*\021searchAds360Links2\020searchAds360Link\"\374\001\n" + + ".analyticsadmin.googleapis.com/SearchAds360Link\022=properties/{proper" + + "ty}/searchAds360Links/{search_ads_360_li" + + "nk}*\021searchAds360Links2\020searchAds360Link\"\374\001\n" + "\031LinkProposalStatusDetails\022l\n" - + " link_proposal_initiating_product\030\001 \001(\0162=.google.analytics.admin." - + "v1alpha.LinkProposalInitiatingProductB\003\340A\003\022\034\n" + + " link_proposal_initiating_product\030\001 \001(\0162=.googl" + + "e.analytics.admin.v1alpha.LinkProposalInitiatingProductB\003\340A\003\022\034\n" + "\017requestor_email\030\002 \001(\tB\003\340A\003\022S\n" - + "\023link_proposal_state\030\003 \001(\01621.google.analytics" - + ".admin.v1alpha.LinkProposalStateB\003\340A\003\"\205\006\n" + + "\023link_proposal_state\030\003 \001(\0162" + + "1.google.analytics.admin.v1alpha.LinkProposalStateB\003\340A\003\"\205\006\n" + "\017ConversionEvent\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\027\n\n" + "event_name\030\002 \001(\tB\003\340A\005\0224\n" @@ -533,10 +531,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\026\n" + "\tdeletable\030\004 \001(\010B\003\340A\003\022\023\n" + "\006custom\030\005 \001(\010B\003\340A\003\022f\n" - + "\017counting_method\030\006 \001(\0162H.google.analy" - + "tics.admin.v1alpha.ConversionEvent.ConversionCountingMethodB\003\340A\001\022r\n" - + "\030default_conversion_value\030\007 \001(\0132F.google.analytics.ad" - + "min.v1alpha.ConversionEvent.DefaultConversionValueB\003\340A\001H\000\210\001\001\032d\n" + + "\017counting_method\030\006 \001(\0162H.google.analytics.admin.v1alpha.Con" + + "versionEvent.ConversionCountingMethodB\003\340A\001\022r\n" + + "\030default_conversion_value\030\007 \001(\0132F.g" + + "oogle.analytics.admin.v1alpha.Conversion" + + "Event.DefaultConversionValueB\003\340A\001H\000\210\001\001\032d\n" + "\026DefaultConversionValue\022\022\n" + "\005value\030\001 \001(\001H\000\210\001\001\022\032\n\r" + "currency_code\030\002 \001(\tH\001\210\001\001B\010\n" @@ -546,8 +545,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&CONVERSION_COUNTING_METHOD_UNSPECIFIED\020\000\022\022\n" + "\016ONCE_PER_EVENT\020\001\022\024\n" + "\020ONCE_PER_SESSION\020\002:\221\001\352A\215\001\n" - + "-analyticsadmin.googleapis.com/ConversionEvent\0229properties/{property}/conver" - + "sionEvents/{conversion_event}*\020conversionEvents2\017conversionEventB\033\n" + + "-analyticsadmin.googleapis.com/ConversionEvent\0229properties" + + "/{property}/conversionEvents/{conversion" + + "_event}*\020conversionEvents2\017conversionEventB\033\n" + "\031_default_conversion_value\"\327\004\n" + "\010KeyEvent\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\027\n\n" @@ -556,10 +556,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\026\n" + "\tdeletable\030\004 \001(\010B\003\340A\003\022\023\n" + "\006custom\030\005 \001(\010B\003\340A\003\022U\n" - + "\017counting_method\030\006 \001(\01627.goo" - + "gle.analytics.admin.v1alpha.KeyEvent.CountingMethodB\003\340A\002\022Q\n\r" - + "default_value\030\007 \001(\0132" - + "5.google.analytics.admin.v1alpha.KeyEvent.DefaultValueB\003\340A\001\032F\n" + + "\017counting_method\030\006" + + " \001(\01627.google.analytics.admin.v1alpha.KeyEvent.CountingMethodB\003\340A\002\022Q\n\r" + + "default_value\030\007" + + " \001(\01325.google.analytics.admin.v1alpha.KeyEvent.DefaultValueB\003\340A\001\032F\n" + "\014DefaultValue\022\032\n\r" + "numeric_value\030\001 \001(\001B\003\340A\002\022\032\n\r" + "currency_code\030\002 \001(\tB\003\340A\002\"[\n" @@ -567,42 +567,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033COUNTING_METHOD_UNSPECIFIED\020\000\022\022\n" + "\016ONCE_PER_EVENT\020\001\022\024\n" + "\020ONCE_PER_SESSION\020\002:m\352Aj\n" - + "&analytics" - + "admin.googleapis.com/KeyEvent\022+properties/{property}/keyEvents/{key_event}*" + + "&analyticsadmin.googleapis.com/K" + + "eyEvent\022+properties/{property}/keyEvents/{key_event}*" + "\tkeyEvents2\010keyEvent\"\240\002\n" + "\025GoogleSignalsSettings\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022A\n" + "\005state\030\003 \001(\01622.google.analytics.admin.v1alpha.GoogleSignalsState\022J\n" - + "\007consent\030\004 \001(\01624.google.analyt" - + "ics.admin.v1alpha.GoogleSignalsConsentB\003\340A\003:e\352Ab\n" - + "3analyticsadmin.googleapis.com/" - + "GoogleSignalsSettings\022+properties/{property}/googleSignalsSettings\"\341\003\n" + + "\007consent\030\004 \001" + + "(\01624.google.analytics.admin.v1alpha.GoogleSignalsConsentB\003\340A\003:e\352Ab\n" + + "3analyticsadmin.googleapis.com/GoogleSignalsSettings\022" + + "+properties/{property}/googleSignalsSettings\"\341\003\n" + "\017CustomDimension\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + "\016parameter_name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n" + "\014display_name\030\003 \001(\tB\003\340A\002\022\030\n" + "\013description\030\004 \001(\tB\003\340A\001\022U\n" - + "\005scope\030\005" - + " \001(\0162>.google.analytics.admin.v1alpha.CustomDimension.DimensionScopeB\006\340A\002\340A\005\022)\n" + + "\005scope\030\005 \001(\0162>.google.analyti" + + "cs.admin.v1alpha.CustomDimension.DimensionScopeB\006\340A\002\340A\005\022)\n" + "\034disallow_ads_personalization\030\006 \001(\010B\003\340A\001\"P\n" + "\016DimensionScope\022\037\n" + "\033DIMENSION_SCOPE_UNSPECIFIED\020\000\022\t\n" + "\005EVENT\020\001\022\010\n" + "\004USER\020\002\022\010\n" + "\004ITEM\020\003:\221\001\352A\215\001\n" - + "-analyticsadmin.googleapis.com/CustomDimension\0229properties/{property}/" - + "customDimensions/{custom_dimension}*\020customDimensions2\017customDimension\"\343\006\n" + + "-analyticsadmin.googleapis.com/CustomDimension\0229prop" + + "erties/{property}/customDimensions/{cust" + + "om_dimension}*\020customDimensions2\017customDimension\"\343\006\n" + "\014CustomMetric\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + "\016parameter_name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n" + "\014display_name\030\003 \001(\tB\003\340A\002\022\030\n" + "\013description\030\004 \001(\tB\003\340A\001\022[\n" - + "\020measurement_unit\030\005 \001(\0162<.google.analytics.adm" - + "in.v1alpha.CustomMetric.MeasurementUnitB\003\340A\002\022O\n" - + "\005scope\030\006 \001(\01628.google.analytics.a" - + "dmin.v1alpha.CustomMetric.MetricScopeB\006\340A\002\340A\005\022f\n" - + "\026restricted_metric_type\030\010 \003(\0162A." - + "google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricTypeB\003\340A\001\"\267\001\n" + + "\020measurement_unit\030\005 \001(\0162<.go" + + "ogle.analytics.admin.v1alpha.CustomMetric.MeasurementUnitB\003\340A\002\022O\n" + + "\005scope\030\006 \001(\01628." + + "google.analytics.admin.v1alpha.CustomMetric.MetricScopeB\006\340A\002\340A\005\022f\n" + + "\026restricted_metric_type\030\010 \003(\0162A.google.analytics.admin" + + ".v1alpha.CustomMetric.RestrictedMetricTypeB\003\340A\001\"\267\001\n" + "\017MeasurementUnit\022 \n" + "\034MEASUREMENT_UNIT_UNSPECIFIED\020\000\022\014\n" + "\010STANDARD\020\001\022\014\n" @@ -623,18 +624,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tCOST_DATA\020\001\022\020\n" + "\014REVENUE_DATA\020\002:\201\001\352A~\n" - + "*analyticsadmin.googleapi" - + "s.com/CustomMetric\0223properties/{property}/customMetrics/{custom_metric}*\r" + + "*analyticsadmin.googleapis.com/CustomMetric\0223pr" + + "operties/{property}/customMetrics/{custom_metric}*\r" + "customMetrics2\014customMetric\"\247\006\n" + "\020CalculatedMetric\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\030\n" + "\013description\030\002 \001(\tB\003\340A\001\022\031\n" + "\014display_name\030\003 \001(\tB\003\340A\002\022!\n" + "\024calculated_metric_id\030\004 \001(\tB\003\340A\003\022U\n" - + "\013metric_unit\030\005" - + " \001(\0162;.google.analytics.admin.v1alpha.CalculatedMetric.MetricUnitB\003\340A\002\022j\n" - + "\026restricted_metric_type\030\006 \003(\0162E.google.ana" - + "lytics.admin.v1alpha.CalculatedMetric.RestrictedMetricTypeB\003\340A\003\022\024\n" + + "\013metric_unit\030\005 \001(\0162;.google.ana" + + "lytics.admin.v1alpha.CalculatedMetric.MetricUnitB\003\340A\002\022j\n" + + "\026restricted_metric_type\030\006 \003(\0162E.google.analytics.admin.v1alpha.C" + + "alculatedMetric.RestrictedMetricTypeB\003\340A\003\022\024\n" + "\007formula\030\007 \001(\tB\003\340A\002\022%\n" + "\030invalid_metric_reference\030\t \001(\010B\003\340A\003\"\255\001\n\n" + "MetricUnit\022\033\n" @@ -654,14 +655,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tCOST_DATA\020\001\022\020\n" + "\014REVENUE_DATA\020\002:\226\001\352A\222\001\n" - + ".analyticsadmin.googleapis.com/CalculatedMetric\022;properties/{property}/calc" - + "ulatedMetrics/{calculated_metric}*\021calculatedMetrics2\020calculatedMetric\"\342\004\n" + + ".analyticsadmin.googleapis.com/CalculatedMetric\022;properti" + + "es/{property}/calculatedMetrics/{calcula" + + "ted_metric}*\021calculatedMetrics2\020calculatedMetric\"\342\004\n" + "\025DataRetentionSettings\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022j\n" - + "\024event_data_retention\030\002 \001(\0162G.google.analy" - + "tics.admin.v1alpha.DataRetentionSettings.RetentionDurationB\003\340A\002\022i\n" - + "\023user_data_retention\030\004 \001(\0162G.google.analytics.admin.v1" - + "alpha.DataRetentionSettings.RetentionDurationB\003\340A\002\022\'\n" + + "\024event_data_retention\030\002 \001(\0162G.google.analytics.admin.v1alpha.Dat" + + "aRetentionSettings.RetentionDurationB\003\340A\002\022i\n" + + "\023user_data_retention\030\004 \001(\0162G.google." + + "analytics.admin.v1alpha.DataRetentionSettings.RetentionDurationB\003\340A\002\022\'\n" + "\037reset_user_data_on_new_activity\030\003 \001(\010\"\236\001\n" + "\021RetentionDuration\022\"\n" + "\036RETENTION_DURATION_UNSPECIFIED\020\000\022\016\n\n" @@ -670,23 +672,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021TWENTY_SIX_MONTHS\020\004\022\027\n" + "\023THIRTY_EIGHT_MONTHS\020\005\022\020\n" + "\014FIFTY_MONTHS\020\006:\224\001\352A\220\001\n" - + "3analyticsadmin.googleapis.com/DataRetentionSettings\022+proper" - + "ties/{property}/dataRetentionSettings*\025d" - + "ataRetentionSettings2\025dataRetentionSettings\"\374\013\n" + + "3analyticsadmin.googleapis.com/DataRetentionSettings\022+properties/{property}/dataRe" + + "tentionSettings*\025dataRetentionSettings2\025dataRetentionSettings\"\374\013\n" + "\023AttributionSettings\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\227\001\n" - + ",acquisition_conversion_event_lookback_window\030\002 \001(\0162\\.google.analytics" - + ".admin.v1alpha.AttributionSettings.Acqui" - + "sitionConversionEventLookbackWindowB\003\340A\002\022\213\001\n" - + "&other_conversion_event_lookback_window\030\003" - + " \001(\0162V.google.analytics.admin.v1alp" - + "ha.AttributionSettings.OtherConversionEventLookbackWindowB\003\340A\002\022w\n" - + "\033reporting_attribution_model\030\004 \001(\0162M.google.analytics.a" - + "dmin.v1alpha.AttributionSettings.Reporti", - "ngAttributionModelB\003\340A\002\022\206\001\n" - + "$ads_web_conversion_data_export_scope\030\005 \001(\0162S.google." - + "analytics.admin.v1alpha.AttributionSetti" - + "ngs.AdsWebConversionDataExportScopeB\003\340A\002\"\333\001\n" + + ",acquisition_conversion_event_lookback_window\030\002 \001(\0162" + + "\\.google.analytics.admin.v1alpha.Attribu" + + "tionSettings.AcquisitionConversionEventLookbackWindowB\003\340A\002\022\213\001\n" + + "&other_conversion_event_lookback_window\030\003 \001(\0162V.google.ana" + + "lytics.admin.v1alpha.AttributionSettings" + + ".OtherConversionEventLookbackWindowB\003\340A\002\022w\n" + + "\033reporting_attribution_model\030\004 \001(\0162M." + + "google.analytics.admin.v1alpha.Attributi", + "onSettings.ReportingAttributionModelB\003\340A\002\022\206\001\n" + + "$ads_web_conversion_data_export_scope\030\005" + + " \001(\0162S.google.analytics.admin.v1alph" + + "a.AttributionSettings.AdsWebConversionDataExportScopeB\003\340A\002\"\333\001\n" + "(AcquisitionConversionEventLookbackWindow\022<\n" + "8ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED\020\000\0227\n" + "3ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS\020\001\0228\n" @@ -706,15 +707,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020NOT_SELECTED_YET\020\001\022\035\n" + "\031PAID_AND_ORGANIC_CHANNELS\020\002\022\030\n" + "\024GOOGLE_PAID_CHANNELS\020\003:a\352A^\n" - + "1analyticsadmin.googleapis.com/Attr" - + "ibutionSettings\022)properties/{property}/attributionSettings\"\361\001\n\r" + + "1analyticsadmin.g" + + "oogleapis.com/AttributionSettings\022)properties/{property}/attributionSettings\"\361\001\n" + + "\r" + "AccessBinding\022\016\n" + "\004user\030\002 \001(\tH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\r\n" + "\005roles\030\003 \003(\t:\234\001\352A\230\001\n" - + "+analyticsadmin.googleapis.com/AccessBinding\0222accounts/{account}/a" - + "ccessBindings/{access_binding}\0225properti" - + "es/{property}/accessBindings/{access_binding}B\017\n\r" + + "+analyticsadmin.googleapis.com/AccessBinding\0222ac" + + "counts/{account}/accessBindings/{access_" + + "binding}\0225properties/{property}/accessBindings/{access_binding}B\017\n\r" + "access_target\"\252\003\n" + "\014BigQueryLink\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" @@ -729,8 +731,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017excluded_events\030\010 \003(\t\022 \n" + "\020dataset_location\030\n" + " \001(\tB\006\340A\005\340A\002:d\352Aa\n" - + "*analyticsadmin.googleapis.com/BigQueryLink\0223" - + "properties/{property}/bigQueryLinks/{bigquery_link}\"\363\003\n" + + "*analyticsadmin.googleapis." + + "com/BigQueryLink\0223properties/{property}/bigQueryLinks/{bigquery_link}\"\363\003\n" + "\033EnhancedMeasurementSettings\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\026\n" + "\016stream_enabled\030\002 \001(\010\022\027\n" @@ -744,35 +746,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026search_query_parameter\030\n" + " \001(\tB\003\340A\002\022\033\n" + "\023uri_query_parameter\030\013 \001(\t:\214\001\352A\210\001\n" - + "9analyticsadmin.googleapis.com/EnhancedMeasurementSettings\022Kpr" - + "operties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings\"\225\002\n" + + "9analyticsadmin.googleapis.com/EnhancedMeasu" + + "rementSettings\022Kproperties/{property}/da" + + "taStreams/{data_stream}/enhancedMeasurementSettings\"\225\002\n" + "\025DataRedactionSettings\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\037\n" + "\027email_redaction_enabled\030\002 \001(\010\022)\n" + "!query_parameter_redaction_enabled\030\003 \001(\010\022\034\n" + "\024query_parameter_keys\030\004 \003(\t:\177\352A|\n" - + "3analyticsadmin.googleapis.com/DataRedactionSettin" - + "gs\022Eproperties/{property}/dataStreams/{data_stream}/dataRedactionSettings\"\240\001\n" + + "3analyticsadmin.googleapis.com/DataRedactionSettings\022Eproperties/{proper" + + "ty}/dataStreams/{data_stream}/dataRedactionSettings\"\240\001\n" + "\013AdSenseLink\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\033\n" + "\016ad_client_code\030\002 \001(\tB\003\340A\005:a\352A^\n" - + ")analyticsadmin.g" - + "oogleapis.com/AdSenseLink\0221properties/{property}/adSenseLinks/{adsense_link}\"\216\002\n" + + ")analyticsadmin.googleapis.com/AdSenseL" + + "ink\0221properties/{property}/adSenseLinks/{adsense_link}\"\216\002\n" + "\030RollupPropertySourceLink\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\034\n" + "\017source_property\030\002 \001(\tB\003\340A\005:\300\001\352A\274\001\n" - + "6analyticsadmin.googleapis.com/RollupPropertySourceLink\022Mproperties/{property}" - + "/rollupPropertySourceLinks/{rollup_prope" - + "rty_source_link}*\031rollupPropertySourceLinks2\030rollupPropertySourceLink\"\366\005\n" + + "6analyticsadmin.googleapis.com/RollupPropertySourceLink\022Mpro" + + "perties/{property}/rollupPropertySourceLinks/{rollup_property_source_link}*\031roll" + + "upPropertySourceLinks2\030rollupPropertySourceLink\"\366\005\n" + "\027ReportingDataAnnotation\022,\n" + "\017annotation_date\030\004 \001(\0132\021.google.type.DateH\000\022b\n" - + "\025annotation_date_range\030\005 \001(\0132A.google.analytics.admin." - + "v1alpha.ReportingDataAnnotation.DateRangeH\000\022\024\n" + + "\025annotation_date_range\030\005 \001(\0132A.googl" + + "e.analytics.admin.v1alpha.ReportingDataAnnotation.DateRangeH\000\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\002\022\022\n" + "\005title\030\002 \001(\tB\003\340A\002\022\030\n" + "\013description\030\003 \001(\tB\003\340A\001\022Q\n" - + "\005color\030\006" - + " \001(\0162=.google.analytics.admin.v1alpha.ReportingDataAnnotation.ColorB\003\340A\002\022\035\n" + + "\005color\030\006 \001(\0162=.google.analyt" + + "ics.admin.v1alpha.ReportingDataAnnotation.ColorB\003\340A\002\022\035\n" + "\020system_generated\030\007 \001(\010B\003\340A\003\032a\n" + "\tDateRange\022*\n\n" + "start_date\030\001 \001(\0132\021.google.type.DateB\003\340A\002\022(\n" @@ -786,48 +789,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003RED\020\005\022\010\n" + "\004CYAN\020\006\022\n\n" + "\006ORANGE\020\007:\272\001\352A\266\001\n" - + "5analyticsadmin.googleapis.com/ReportingDataAnnotation\022Jproperties/{property}/rep" - + "ortingDataAnnotations/{reporting_data_an" - + "notation}*\030reportingDataAnnotations2\027reportingDataAnnotationB\010\n" + + "5analyticsadmin.googleapis.com/ReportingDataAnnotation\022Jpropert" + + "ies/{property}/reportingDataAnnotations/{reporting_data_annotation}*\030reportingDa" + + "taAnnotations2\027reportingDataAnnotationB\010\n" + "\006target\"\322\003\n" + "\025SubpropertySyncConfig\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022!\n" + "\021apply_to_property\030\002 \001(\tB\006\340A\005\340A\003\022}\n" - + "%custom_dimension_and_metric_sync_mode\030\003 \001(\016" - + "2I.google.analytics.admin.v1alpha.Subpro" - + "pertySyncConfig.SynchronizationModeB\003\340A\002\"N\n" + + "%custom_dimension_and_metric_sync_mode\030\003 \001(\0162I.google.analytics.ad" + + "min.v1alpha.SubpropertySyncConfig.SynchronizationModeB\003\340A\002\"N\n" + "\023SynchronizationMode\022$\n" + " SYNCHRONIZATION_MODE_UNSPECIFIED\020\000\022\010\n" + "\004NONE\020\001\022\007\n" + "\003ALL\020\002:\260\001\352A\254\001\n" - + "3analyticsadmin.googleapis.com/SubpropertySyncConfig\022Fproperties/{proper" - + "ty}/subpropertySyncConfigs/{subproperty_" - + "sync_config}*\026subpropertySyncConfigs2\025subpropertySyncConfig\"\257\003\n" + + "3analyticsadmin.googleapis.com/SubpropertySyncConfig\022F" + + "properties/{property}/subpropertySyncConfigs/{subproperty_sync_config}*\026subprope" + + "rtySyncConfigs2\025subpropertySyncConfig\"\257\003\n" + "\031ReportingIdentitySettings\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022g\n" - + "\022reporting_identity\030\002 \001(\0162K.google.analytics.a" - + "dmin.v1alpha.ReportingIdentitySettings.ReportingIdentity\"l\n" + + "\022reporting_identity\030\002 \001(\0162K." + + "google.analytics.admin.v1alpha.ReportingIdentitySettings.ReportingIdentity\"l\n" + "\021ReportingIdentity\022*\n" + "&IDENTITY_BLENDING_STRATEGY_UNSPECIFIED\020\000\022\013\n" + "\007BLENDED\020\001\022\014\n" + "\010OBSERVED\020\002\022\020\n" + "\014DEVICE_BASED\020\003:\244\001\352A\240\001\n" - + "7analyticsadmin.googleapis.com/ReportingIdentitySettings\022/properti" - + "es/{property}/reportingIdentitySettings*" - + "\031reportingIdentitySettings2\031reportingIdentitySettings\"\301\002\n" + + "7analyticsadmin.googleapis.com/ReportingIdentity" + + "Settings\022/properties/{property}/reportin" + + "gIdentitySettings*\031reportingIdentitySettings2\031reportingIdentitySettings\"\301\002\n" + "\030UserProvidedDataSettings\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0222\n" + "%user_provided_data_collection_enabled\030\002 \001(\010B\003\340A\001\022;\n" + ".automatically_detected_data_collection_enabled\030\003" + " \001(\010B\003\340A\001:\240\001\352A\234\001\n" - + "6analyticsadmin.googleapis.com/UserProvidedDataSettings\022.p" - + "roperties/{property}/userProvidedDataSet" - + "tings*\030userProvidedDataSettings2\030userProvidedDataSettings*\252\004\n" + + "6analyticsadmin.googleapis.com/UserProvidedDataSettings\022.properties/{property}/u" + + "serProvidedDataSettings*\030userProvidedDataSettings2\030userProvidedDataSettings*\252\004\n" + "\020IndustryCategory\022!\n" + "\035INDUSTRY_CATEGORY_UNSPECIFIED\020\000\022\016\n\n" + "AUTOMOTIVE\020\001\022#\n" + "\037BUSINESS_AND_INDUSTRIAL_MARKETS\020\002\022\013\n" - + "\007FINANCE\020\003\022\016\n\n" + + "\007FINANCE\020\003\022\016\n" + + "\n" + "HEALTHCARE\020\004\022\016\n\n" + "TECHNOLOGY\020\005\022\n\n" + "\006TRAVEL\020\006\022\t\n" @@ -870,7 +872,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031ChangeHistoryResourceType\022,\n" + "(CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED\020\000\022\013\n" + "\007ACCOUNT\020\001\022\014\n" - + "\010PROPERTY\020\002\022\021\n\r" + + "\010PROPERTY\020\002\022\021\n" + + "\r" + "FIREBASE_LINK\020\006\022\023\n" + "\017GOOGLE_ADS_LINK\020\007\022\033\n" + "\027GOOGLE_SIGNALS_SETTINGS\020\010\022\024\n" @@ -931,10 +934,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020COARSE_VALUE_LOW\020\001\022\027\n" + "\023COARSE_VALUE_MEDIUM\020\002\022\025\n" + "\021COARSE_VALUE_HIGH\020\003B\313\001\n" - + "\"com.google.analytics.admin.v1alphaB\016ResourcesPro" - + "toP\001Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpb\352AR\n" - + "2marketingplatformadmin.googleapis.com/Organizat" - + "ion\022\034organizations/{organization}b\006proto3" + + "\"com.google.analytics.admin.v1alphaB\016ResourcesProtoP\001Z>cloud.google.com" + + "/go/analytics/admin/apiv1alpha/adminpb;adminpb\352AR\n" + + "2marketingplatformadmin.googleapis.com/Organization\022\034organizations/{or" + + "ganization}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1081,7 +1084,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor, new java.lang.String[] { - "Property", "DisplayName", "PropertyType", "Parent", + "Property", "DisplayName", "PropertyType", "Parent", "CanEdit", }); internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor = getDescriptor().getMessageType(9); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateReportingIdentitySettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateReportingIdentitySettingsRequest.java new file mode 100644 index 000000000000..e4c59c5baa04 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateReportingIdentitySettingsRequest.java @@ -0,0 +1,1109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/admin/v1alpha/analytics_admin.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateReportingIdentitySettings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest} + */ +@com.google.protobuf.Generated +public final class UpdateReportingIdentitySettingsRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest) + UpdateReportingIdentitySettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateReportingIdentitySettingsRequest"); + } + + // Use UpdateReportingIdentitySettingsRequest.newBuilder() to construct. + private UpdateReportingIdentitySettingsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateReportingIdentitySettingsRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateReportingIdentitySettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateReportingIdentitySettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest.Builder + .class); + } + + private int bitField0_; + public static final int REPORTING_IDENTITY_SETTINGS_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.ReportingIdentitySettings reportingIdentitySettings_; + + /** + * + * + *
+   * Required. The reporting identity settings to update.
+   * The settings' `name` field is used to identify the settings.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the reportingIdentitySettings field is set. + */ + @java.lang.Override + public boolean hasReportingIdentitySettings() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The reporting identity settings to update.
+   * The settings' `name` field is used to identify the settings.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reportingIdentitySettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ReportingIdentitySettings + getReportingIdentitySettings() { + return reportingIdentitySettings_ == null + ? com.google.analytics.admin.v1alpha.ReportingIdentitySettings.getDefaultInstance() + : reportingIdentitySettings_; + } + + /** + * + * + *
+   * Required. The reporting identity settings to update.
+   * The settings' `name` field is used to identify the settings.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ReportingIdentitySettingsOrBuilder + getReportingIdentitySettingsOrBuilder() { + return reportingIdentitySettings_ == null + ? com.google.analytics.admin.v1alpha.ReportingIdentitySettings.getDefaultInstance() + : reportingIdentitySettings_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. The list of fields to be updated. Field names must be in snake
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
+   * fields. If omitted, the service will treat it as an implied field mask
+   * equivalent to all fields that are populated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The list of fields to be updated. Field names must be in snake
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
+   * fields. If omitted, the service will treat it as an implied field mask
+   * equivalent to all fields that are populated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. The list of fields to be updated. Field names must be in snake
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
+   * fields. If omitted, the service will treat it as an implied field mask
+   * equivalent to all fields that are populated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getReportingIdentitySettings()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getReportingIdentitySettings()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest other = + (com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest) obj; + + if (hasReportingIdentitySettings() != other.hasReportingIdentitySettings()) return false; + if (hasReportingIdentitySettings()) { + if (!getReportingIdentitySettings().equals(other.getReportingIdentitySettings())) + return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReportingIdentitySettings()) { + hash = (37 * hash) + REPORTING_IDENTITY_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getReportingIdentitySettings().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for UpdateReportingIdentitySettings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest) + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateReportingIdentitySettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateReportingIdentitySettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetReportingIdentitySettingsFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + reportingIdentitySettings_ = null; + if (reportingIdentitySettingsBuilder_ != null) { + reportingIdentitySettingsBuilder_.dispose(); + reportingIdentitySettingsBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateReportingIdentitySettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest build() { + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest + buildPartial() { + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest result = + new com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.reportingIdentitySettings_ = + reportingIdentitySettingsBuilder_ == null + ? reportingIdentitySettings_ + : reportingIdentitySettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest + .getDefaultInstance()) return this; + if (other.hasReportingIdentitySettings()) { + mergeReportingIdentitySettings(other.getReportingIdentitySettings()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetReportingIdentitySettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.ReportingIdentitySettings reportingIdentitySettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.admin.v1alpha.ReportingIdentitySettings, + com.google.analytics.admin.v1alpha.ReportingIdentitySettings.Builder, + com.google.analytics.admin.v1alpha.ReportingIdentitySettingsOrBuilder> + reportingIdentitySettingsBuilder_; + + /** + * + * + *
+     * Required. The reporting identity settings to update.
+     * The settings' `name` field is used to identify the settings.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the reportingIdentitySettings field is set. + */ + public boolean hasReportingIdentitySettings() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The reporting identity settings to update.
+     * The settings' `name` field is used to identify the settings.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reportingIdentitySettings. + */ + public com.google.analytics.admin.v1alpha.ReportingIdentitySettings + getReportingIdentitySettings() { + if (reportingIdentitySettingsBuilder_ == null) { + return reportingIdentitySettings_ == null + ? com.google.analytics.admin.v1alpha.ReportingIdentitySettings.getDefaultInstance() + : reportingIdentitySettings_; + } else { + return reportingIdentitySettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The reporting identity settings to update.
+     * The settings' `name` field is used to identify the settings.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReportingIdentitySettings( + com.google.analytics.admin.v1alpha.ReportingIdentitySettings value) { + if (reportingIdentitySettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reportingIdentitySettings_ = value; + } else { + reportingIdentitySettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The reporting identity settings to update.
+     * The settings' `name` field is used to identify the settings.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReportingIdentitySettings( + com.google.analytics.admin.v1alpha.ReportingIdentitySettings.Builder builderForValue) { + if (reportingIdentitySettingsBuilder_ == null) { + reportingIdentitySettings_ = builderForValue.build(); + } else { + reportingIdentitySettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The reporting identity settings to update.
+     * The settings' `name` field is used to identify the settings.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReportingIdentitySettings( + com.google.analytics.admin.v1alpha.ReportingIdentitySettings value) { + if (reportingIdentitySettingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && reportingIdentitySettings_ != null + && reportingIdentitySettings_ + != com.google.analytics.admin.v1alpha.ReportingIdentitySettings + .getDefaultInstance()) { + getReportingIdentitySettingsBuilder().mergeFrom(value); + } else { + reportingIdentitySettings_ = value; + } + } else { + reportingIdentitySettingsBuilder_.mergeFrom(value); + } + if (reportingIdentitySettings_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The reporting identity settings to update.
+     * The settings' `name` field is used to identify the settings.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReportingIdentitySettings() { + bitField0_ = (bitField0_ & ~0x00000001); + reportingIdentitySettings_ = null; + if (reportingIdentitySettingsBuilder_ != null) { + reportingIdentitySettingsBuilder_.dispose(); + reportingIdentitySettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The reporting identity settings to update.
+     * The settings' `name` field is used to identify the settings.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ReportingIdentitySettings.Builder + getReportingIdentitySettingsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetReportingIdentitySettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The reporting identity settings to update.
+     * The settings' `name` field is used to identify the settings.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ReportingIdentitySettingsOrBuilder + getReportingIdentitySettingsOrBuilder() { + if (reportingIdentitySettingsBuilder_ != null) { + return reportingIdentitySettingsBuilder_.getMessageOrBuilder(); + } else { + return reportingIdentitySettings_ == null + ? com.google.analytics.admin.v1alpha.ReportingIdentitySettings.getDefaultInstance() + : reportingIdentitySettings_; + } + } + + /** + * + * + *
+     * Required. The reporting identity settings to update.
+     * The settings' `name` field is used to identify the settings.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.admin.v1alpha.ReportingIdentitySettings, + com.google.analytics.admin.v1alpha.ReportingIdentitySettings.Builder, + com.google.analytics.admin.v1alpha.ReportingIdentitySettingsOrBuilder> + internalGetReportingIdentitySettingsFieldBuilder() { + if (reportingIdentitySettingsBuilder_ == null) { + reportingIdentitySettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.analytics.admin.v1alpha.ReportingIdentitySettings, + com.google.analytics.admin.v1alpha.ReportingIdentitySettings.Builder, + com.google.analytics.admin.v1alpha.ReportingIdentitySettingsOrBuilder>( + getReportingIdentitySettings(), getParentForChildren(), isClean()); + reportingIdentitySettings_ = null; + } + return reportingIdentitySettingsBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields. If omitted, the service will treat it as an implied field mask
+     * equivalent to all fields that are populated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields. If omitted, the service will treat it as an implied field mask
+     * equivalent to all fields that are populated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields. If omitted, the service will treat it as an implied field mask
+     * equivalent to all fields that are populated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields. If omitted, the service will treat it as an implied field mask
+     * equivalent to all fields that are populated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields. If omitted, the service will treat it as an implied field mask
+     * equivalent to all fields that are populated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields. If omitted, the service will treat it as an implied field mask
+     * equivalent to all fields that are populated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields. If omitted, the service will treat it as an implied field mask
+     * equivalent to all fields that are populated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields. If omitted, the service will treat it as an implied field mask
+     * equivalent to all fields that are populated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields. If omitted, the service will treat it as an implied field mask
+     * equivalent to all fields that are populated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest) + private static final com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateReportingIdentitySettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateReportingIdentitySettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateReportingIdentitySettingsRequestOrBuilder.java new file mode 100644 index 000000000000..2133c1a0ceef --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateReportingIdentitySettingsRequestOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/admin/v1alpha/analytics_admin.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.admin.v1alpha; + +@com.google.protobuf.Generated +public interface UpdateReportingIdentitySettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The reporting identity settings to update.
+   * The settings' `name` field is used to identify the settings.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the reportingIdentitySettings field is set. + */ + boolean hasReportingIdentitySettings(); + + /** + * + * + *
+   * Required. The reporting identity settings to update.
+   * The settings' `name` field is used to identify the settings.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reportingIdentitySettings. + */ + com.google.analytics.admin.v1alpha.ReportingIdentitySettings getReportingIdentitySettings(); + + /** + * + * + *
+   * Required. The reporting identity settings to update.
+   * The settings' `name` field is used to identify the settings.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.ReportingIdentitySettingsOrBuilder + getReportingIdentitySettingsOrBuilder(); + + /** + * + * + *
+   * Optional. The list of fields to be updated. Field names must be in snake
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
+   * fields. If omitted, the service will treat it as an implied field mask
+   * equivalent to all fields that are populated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. The list of fields to be updated. Field names must be in snake
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
+   * fields. If omitted, the service will treat it as an implied field mask
+   * equivalent to all fields that are populated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. The list of fields to be updated. Field names must be in snake
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
+   * fields. If omitted, the service will treat it as an implied field mask
+   * equivalent to all fields that are populated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto index af2055300082..2293f93e23a8 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto @@ -1611,6 +1611,17 @@ service AnalyticsAdminService { option (google.api.method_signature) = "name"; } + // Updates the reporting identity settings for this property. + rpc UpdateReportingIdentitySettings(UpdateReportingIdentitySettingsRequest) + returns (ReportingIdentitySettings) { + option (google.api.http) = { + patch: "/v1alpha/{reporting_identity_settings.name=properties/*/reportingIdentitySettings}" + body: "reporting_identity_settings" + }; + option (google.api.method_signature) = + "reporting_identity_settings,update_mask"; + } + // Looks up settings related to user-provided data for a property. rpc GetUserProvidedDataSettings(GetUserProvidedDataSettingsRequest) returns (UserProvidedDataSettings) { @@ -4636,6 +4647,22 @@ message GetReportingIdentitySettingsRequest { ]; } +// Request message for UpdateReportingIdentitySettings RPC. +message UpdateReportingIdentitySettingsRequest { + // Required. The reporting identity settings to update. + // The settings' `name` field is used to identify the settings. + ReportingIdentitySettings reporting_identity_settings = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. The list of fields to be updated. Field names must be in snake + // case (for example, "field_to_update"). Omitted fields will not be updated. + // To replace the entire entity, use one path with the string "*" to match all + // fields. If omitted, the service will treat it as an implied field mask + // equivalent to all fields that are populated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + // Request message for GetUserProvidedDataSettings RPC message GetUserProvidedDataSettingsRequest { // Required. The name of the user provided data settings to retrieve. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto index d253a61e5c84..62a589c8bdab 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto @@ -791,6 +791,10 @@ message PropertySummary { // Format: accounts/{account}, properties/{property} // Example: "accounts/100", "properties/200" string parent = 4; + + // If true, then the user has a Google Analytics role that permits them to + // edit the property. + bool can_edit = 5; } // A secret value used for sending hits to Measurement Protocol. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java index 7923d6f472b6..16eb2145f519 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java @@ -83,12 +83,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Resource name of this account.
+   * Identifier. Resource name of this account.
    * Format: accounts/{account}
    * Example: "accounts/100"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -109,12 +109,12 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name of this account.
+   * Identifier. Resource name of this account.
    * Format: accounts/{account}
    * Example: "accounts/100"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -909,12 +909,12 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name of this account.
+     * Identifier. Resource name of this account.
      * Format: accounts/{account}
      * Example: "accounts/100"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -934,12 +934,12 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name of this account.
+     * Identifier. Resource name of this account.
      * Format: accounts/{account}
      * Example: "accounts/100"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -959,12 +959,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name of this account.
+     * Identifier. Resource name of this account.
      * Format: accounts/{account}
      * Example: "accounts/100"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -983,12 +983,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name of this account.
+     * Identifier. Resource name of this account.
      * Format: accounts/{account}
      * Example: "accounts/100"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1003,12 +1003,12 @@ public Builder clearName() { * * *
-     * Output only. Resource name of this account.
+     * Identifier. Resource name of this account.
      * Format: accounts/{account}
      * Example: "accounts/100"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java index e836e68ba5c7..1e217a25dc9e 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java @@ -30,12 +30,12 @@ public interface AccountOrBuilder * * *
-   * Output only. Resource name of this account.
+   * Identifier. Resource name of this account.
    * Format: accounts/{account}
    * Example: "accounts/100"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface AccountOrBuilder * * *
-   * Output only. Resource name of this account.
+   * Identifier. Resource name of this account.
    * Format: accounts/{account}
    * Example: "accounts/100"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummary.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummary.java index ee355d67b266..ed2a0180c6c2 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummary.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummary.java @@ -83,12 +83,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Resource name for this account summary.
+   * Identifier. Resource name for this account summary.
    * Format: accountSummaries/{account_id}
    * Example: "accountSummaries/1000"
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -109,12 +109,12 @@ public java.lang.String getName() { * * *
-   * Resource name for this account summary.
+   * Identifier. Resource name for this account summary.
    * Format: accountSummaries/{account_id}
    * Example: "accountSummaries/1000"
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -758,12 +758,12 @@ public Builder mergeFrom( * * *
-     * Resource name for this account summary.
+     * Identifier. Resource name for this account summary.
      * Format: accountSummaries/{account_id}
      * Example: "accountSummaries/1000"
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -783,12 +783,12 @@ public java.lang.String getName() { * * *
-     * Resource name for this account summary.
+     * Identifier. Resource name for this account summary.
      * Format: accountSummaries/{account_id}
      * Example: "accountSummaries/1000"
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -808,12 +808,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Resource name for this account summary.
+     * Identifier. Resource name for this account summary.
      * Format: accountSummaries/{account_id}
      * Example: "accountSummaries/1000"
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -832,12 +832,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Resource name for this account summary.
+     * Identifier. Resource name for this account summary.
      * Format: accountSummaries/{account_id}
      * Example: "accountSummaries/1000"
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -852,12 +852,12 @@ public Builder clearName() { * * *
-     * Resource name for this account summary.
+     * Identifier. Resource name for this account summary.
      * Format: accountSummaries/{account_id}
      * Example: "accountSummaries/1000"
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummaryOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummaryOrBuilder.java index d1460ea498b4..46bcdde1f71f 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummaryOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummaryOrBuilder.java @@ -30,12 +30,12 @@ public interface AccountSummaryOrBuilder * * *
-   * Resource name for this account summary.
+   * Identifier. Resource name for this account summary.
    * Format: accountSummaries/{account_id}
    * Example: "accountSummaries/1000"
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface AccountSummaryOrBuilder * * *
-   * Resource name for this account summary.
+   * Identifier. Resource name for this account summary.
    * Format: accountSummaries/{account_id}
    * Example: "accountSummaries/1000"
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java index d8418a4554f2..715268e2ef26 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java @@ -362,10 +362,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005quota\030\005 \001(\0132*.google.analytics.admin.v1beta.AccessQuota\"P\n" + "\021GetAccountRequest\022;\n" + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" - + "%analyticsadmin.googleapis.com/Account\"R\n" - + "\023ListAccountsRequest\022\021\n" - + "\tpage_size\030\001 \001(\005\022\022\n\n" - + "page_token\030\002 \001(\t\022\024\n" + + "%analyticsadmin.googleapis.com/Account\"\\\n" + + "\023ListAccountsRequest\022\026\n" + + "\tpage_size\030\001 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\002 \001(\tB\003\340A\001\022\024\n" + "\014show_deleted\030\003 \001(\010\"i\n" + "\024ListAccountsResponse\0228\n" + "\010accounts\030\001 \003(\0132&.google.analytics.admin.v1beta.Account\022\027\n" @@ -374,8 +374,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + "%analyticsadmin.googleapis.com/Account\"\212\001\n" + "\024UpdateAccountRequest\022<\n" - + "\007account\030\001 \001(\0132&.g" - + "oogle.analytics.admin.v1beta.AccountB\003\340A\002\0224\n" + + "\007account\030\001" + + " \001(\0132&.google.analytics.admin.v1beta.AccountB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"n\n" + "\035ProvisionAccountTicketRequest\0227\n" + "\007account\030\001 \001(\0132&.google.analytics.admin.v1beta.Account\022\024\n" @@ -384,38 +384,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021account_ticket_id\030\001 \001(\t\"R\n" + "\022GetPropertyRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&analyticsadmin.googleapis.com/Property\"i\n" + + "&analyticsadmin.googleapis.com/Property\"s\n" + "\025ListPropertiesRequest\022\023\n" - + "\006filter\030\001 \001(\tB\003\340A\002\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\022\024\n" + + "\006filter\030\001 \001(\tB\003\340A\002\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\024\n" + "\014show_deleted\030\004 \001(\010\"n\n" + "\026ListPropertiesResponse\022;\n\n" + "properties\030\001 \003(\0132\'.google.analytics.admin.v1beta.Property\022\027\n" + "\017next_page_token\030\002 \001(\t\"\215\001\n" + "\025UpdatePropertyRequest\022>\n" - + "\010property\030\001" - + " \001(\0132\'.google.analytics.admin.v1beta.PropertyB\003\340A\002\0224\n" + + "\010property\030\001 \001(\0132\'.go" + + "ogle.analytics.admin.v1beta.PropertyB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"W\n" + "\025CreatePropertyRequest\022>\n" - + "\010property\030\001 \001(\0132\'" - + ".google.analytics.admin.v1beta.PropertyB\003\340A\002\"U\n" + + "\010property\030\001" + + " \001(\0132\'.google.analytics.admin.v1beta.PropertyB\003\340A\002\"U\n" + "\025DeletePropertyRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + "&analyticsadmin.googleapis.com/Property\"\250\001\n" + "\031CreateFirebaseLinkRequest\022B\n" - + "\006parent\030\001 \001(" - + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/FirebaseLink\022G\n\r" - + "firebase_link\030\002" - + " \001(\0132+.google.analytics.admin.v1beta.FirebaseLinkB\003\340A\002\"]\n" + + "\006parent\030\001 \001(\tB2\340" + + "A\002\372A,\022*analyticsadmin.googleapis.com/FirebaseLink\022G\n\r" + + "firebase_link\030\002 \001(\0132+.googl" + + "e.analytics.admin.v1beta.FirebaseLinkB\003\340A\002\"]\n" + "\031DeleteFirebaseLinkRequest\022@\n" + "\004name\030\001 \001(\tB2\340A\002\372A,\n" - + "*analyticsadmin.googleapis.com/FirebaseLink\"\205\001\n" + + "*analyticsadmin.googleapis.com/FirebaseLink\"\217\001\n" + "\030ListFirebaseLinksRequest\022B\n" + "\006parent\030\001 \001(" - + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/FirebaseLink\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"y\n" + + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/FirebaseLink\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"y\n" + "\031ListFirebaseLinksResponse\022C\n" + "\016firebase_links\030\001" + " \003(\0132+.google.analytics.admin.v1beta.FirebaseLink\022\027\n" @@ -426,30 +426,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017google_ads_link\030\002" + " \001(\0132,.google.analytics.admin.v1beta.GoogleAdsLinkB\003\340A\002\"\231\001\n" + "\032UpdateGoogleAdsLinkRequest\022E\n" - + "\017google_ads_link\030\001" - + " \001(\0132,.google.analytics.admin.v1beta.GoogleAdsLink\0224\n" + + "\017google_ads_link\030\001 \001(\0132," + + ".google.analytics.admin.v1beta.GoogleAdsLink\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"_\n" + "\032DeleteGoogleAdsLinkRequest\022A\n" + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+analyticsadmin.googleapis.com/GoogleAdsLink\"\207\001\n" + + "+analyticsadmin.googleapis.com/GoogleAdsLink\"\221\001\n" + "\031ListGoogleAdsLinksRequest\022C\n" + "\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+analyticsadmin.googleapis.com/GoogleAdsLink\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"}\n" + + "\tB3\340A\002\372A-\022+analyticsadmin.googleapis.com/GoogleAdsLink\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"}\n" + "\032ListGoogleAdsLinksResponse\022F\n" + "\020google_ads_links\030\001 \003(\0132" + ",.google.analytics.admin.v1beta.GoogleAdsLink\022\027\n" + "\017next_page_token\030\002 \001(\t\"h\n" + "\035GetDataSharingSettingsRequest\022G\n" + "\004name\030\001 \001(\tB9\340A\002\372A3\n" - + "1analyticsadmin.googleapis.com/DataSharingSettings\"D\n" - + "\033ListAccountSummariesRequest\022\021\n" - + "\tpage_size\030\001 \001(\005\022\022\n\n" - + "page_token\030\002 \001(\t\"\201\001\n" + + "1analyticsadmin.googleapis.com/DataSharingSettings\"N\n" + + "\033ListAccountSummariesRequest\022\026\n" + + "\tpage_size\030\001 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\002 \001(\tB\003\340A\001\"\201\001\n" + "\034ListAccountSummariesResponse\022H\n" - + "\021account_summaries\030\001" - + " \003(\0132-.google.analytics.admin.v1beta.AccountSummary\022\027\n" + + "\021account_summaries\030\001 \003(\0132-.g" + + "oogle.analytics.admin.v1beta.AccountSummary\022\027\n" + "\017next_page_token\030\002 \001(\t\"\206\001\n" + "$AcknowledgeUserDataCollectionRequest\022@\n" + "\010property\030\001 \001(\tB.\340A\002\372A(\n" @@ -461,10 +461,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%analyticsadmin.googleapis.com/Account\022@\n" + "\010property\030\002 \001(\tB.\340A\001\372A(\n" + "&analyticsadmin.googleapis.com/Property\022T\n\r" - + "resource_type\030\003 \003(\01628.google.anal" - + "ytics.admin.v1beta.ChangeHistoryResourceTypeB\003\340A\001\022>\n" - + "\006action\030\004" - + " \003(\0162).google.analytics.admin.v1beta.ActionTypeB\003\340A\001\022\030\n" + + "resource_type\030\003 \003(\01628.g" + + "oogle.analytics.admin.v1beta.ChangeHistoryResourceTypeB\003\340A\001\022>\n" + + "\006action\030\004 \003(\0162).go" + + "ogle.analytics.admin.v1beta.ActionTypeB\003\340A\001\022\030\n" + "\013actor_email\030\005 \003(\tB\003\340A\001\022=\n" + "\024earliest_change_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022;\n" @@ -473,57 +473,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\010 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\t \001(\tB\003\340A\001\"\216\001\n" + "!SearchChangeHistoryEventsResponse\022P\n" - + "\025change_history_events\030\001" - + " \003(\01321.google.analytics.admin.v1beta.ChangeHistoryEvent\022\027\n" + + "\025change_history_events\030\001 \003(\01321.google" + + ".analytics.admin.v1beta.ChangeHistoryEvent\022\027\n" + "\017next_page_token\030\002 \001(\t\"t\n" + "#GetMeasurementProtocolSecretRequest\022M\n" + "\004name\030\001 \001(\tB?\340A\002\372A9\n" + "7analyticsadmin.googleapis.com/MeasurementProtocolSecret\"\335\001\n" + "&CreateMeasurementProtocolSecretRequest\022O\n" - + "\006parent\030\001 \001(\tB?\340A\002\372" - + "A9\0227analyticsadmin.googleapis.com/MeasurementProtocolSecret\022b\n" - + "\033measurement_protocol_secret\030\002 \001(\01328.google.analytics.admi" - + "n.v1beta.MeasurementProtocolSecretB\003\340A\002\"w\n" + + "\006parent\030\001 \001(" + + "\tB?\340A\002\372A9\0227analyticsadmin.googleapis.com/MeasurementProtocolSecret\022b\n" + + "\033measurement_protocol_secret\030\002 \001(\01328.google.anal" + + "ytics.admin.v1beta.MeasurementProtocolSecretB\003\340A\002\"w\n" + "&DeleteMeasurementProtocolSecretRequest\022M\n" + "\004name\030\001 \001(\tB?\340A\002\372A9\n" + "7analyticsadmin.googleapis.com/MeasurementProtocolSecret\"\302\001\n" + "&UpdateMeasurementProtocolSecretRequest\022b\n" - + "\033measurement_protocol_secret\030\001 \001(\013" - + "28.google.analytics.admin.v1beta.MeasurementProtocolSecretB\003\340A\002\0224\n" + + "\033measurement_protocol_secret\030\001" + + " \001(\01328.google.analytics.admin.v1beta.MeasurementProtocolSecretB\003\340A\002\0224\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\237\001\n" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\251\001\n" + "%ListMeasurementProtocolSecretsRequest\022O\n" - + "\006parent\030\001 \001(\tB?\340A\002\372A9\0227analyticsadmin." - + "googleapis.com/MeasurementProtocolSecret\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\241\001\n" + + "\006parent\030\001 \001(\tB?\340A\002\372A9\0227analy" + + "ticsadmin.googleapis.com/MeasurementProtocolSecret\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\241\001\n" + "&ListMeasurementProtocolSecretsResponse\022^\n" - + "\034measurement_protocol_secrets\030\001 \003(\013" - + "28.google.analytics.admin.v1beta.MeasurementProtocolSecret\022\027\n" + + "\034measurement_protocol_secrets\030\001 \003(\01328.google.analytics." + + "admin.v1beta.MeasurementProtocolSecret\022\027\n" + "\017next_page_token\030\002 \001(\t\"\264\001\n" + "\034CreateConversionEventRequest\022M\n" - + "\020conversion_event\030\001" - + " \001(\0132..google.analytics.admin.v1beta.ConversionEventB\003\340A\002\022E\n" - + "\006parent\030\002 \001(" - + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/ConversionEvent\"\243\001\n" + + "\020conversion_event\030\001 \001" + + "(\0132..google.analytics.admin.v1beta.ConversionEventB\003\340A\002\022E\n" + + "\006parent\030\002 \001(\tB5\340A\002\372A/\022" + + "-analyticsadmin.googleapis.com/ConversionEvent\"\243\001\n" + "\034UpdateConversionEventRequest\022M\n" - + "\020conversion_event\030\001" - + " \001(\0132..google.analytics.admin.v1beta.ConversionEventB\003\340A\002\0224\n" + + "\020conversion_event\030\001 \001(\0132..google.analy" + + "tics.admin.v1beta.ConversionEventB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"`\n" + "\031GetConversionEventRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-analyticsadmin.googleapis.com/ConversionEvent\"c\n" + "\034DeleteConversionEventRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-analyticsadmin.googleapis.com/ConversionEvent\"\213\001\n" + + "-analyticsadmin.googleapis.com/ConversionEvent\"\225\001\n" + "\033ListConversionEventsRequest\022E\n" - + "\006parent\030\001 \001(\tB" - + "5\340A\002\372A/\022-analyticsadmin.googleapis.com/ConversionEvent\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\202\001\n" + + "\006parent\030\001 \001(" + + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/ConversionEvent\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\202\001\n" + "\034ListConversionEventsResponse\022I\n" - + "\021conversion_events\030\001 \003(\0132..goog" - + "le.analytics.admin.v1beta.ConversionEvent\022\027\n" + + "\021conversion_events\030\001" + + " \003(\0132..google.analytics.admin.v1beta.ConversionEvent\022\027\n" + "\017next_page_token\030\002 \001(\t\"\230\001\n" + "\025CreateKeyEventRequest\022?\n" + "\tkey_event\030\001" @@ -539,33 +539,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&analyticsadmin.googleapis.com/KeyEvent\"U\n" + "\025DeleteKeyEventRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&analyticsadmin.googleapis.com/KeyEvent\"}\n" + + "&analyticsadmin.googleapis.com/KeyEvent\"\207\001\n" + "\024ListKeyEventsRequest\022>\n" + "\006parent\030\001 \001(" - + "\tB.\340A\002\372A(\022&analyticsadmin.googleapis.com/KeyEvent\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"m\n" + + "\tB.\340A\002\372A(\022&analyticsadmin.googleapis.com/KeyEvent\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"m\n" + "\025ListKeyEventsResponse\022;\n\n" + "key_events\030\001 \003(\0132\'.google.analytics.admin.v1beta.KeyEvent\022\027\n" + "\017next_page_token\030\002 \001(\t\"\264\001\n" + "\034CreateCustomDimensionRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-analyt" - + "icsadmin.googleapis.com/CustomDimension\022M\n" - + "\020custom_dimension\030\002 \001(\0132..google.analy" - + "tics.admin.v1beta.CustomDimensionB\003\340A\002\"\236\001\n" + + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-analy" + + "ticsadmin.googleapis.com/CustomDimension\022M\n" + + "\020custom_dimension\030\002 \001(\0132..google.anal" + + "ytics.admin.v1beta.CustomDimensionB\003\340A\002\"\236\001\n" + "\034UpdateCustomDimensionRequest\022H\n" + "\020custom_dimension\030\001" + " \001(\0132..google.analytics.admin.v1beta.CustomDimension\0224\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\213\001\n" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\225\001\n" + "\033ListCustomDimensionsRequest\022E\n" + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/CustomDimension\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\202\001\n" + + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/CustomDimension\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\202\001\n" + "\034ListCustomDimensionsResponse\022I\n" - + "\021custom_dimensions\030\001 \003(" - + "\0132..google.analytics.admin.v1beta.CustomDimension\022\027\n" + + "\021custom_dimensions\030\001" + + " \003(\0132..google.analytics.admin.v1beta.CustomDimension\022\027\n" + "\017next_page_token\030\002 \001(\t\"d\n" + "\035ArchiveCustomDimensionRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" @@ -574,10 +574,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-analyticsadmin.googleapis.com/CustomDimension\"\250\001\n" + "\031CreateCustomMetricRequest\022B\n" - + "\006parent\030\001 \001(\t" - + "B2\340A\002\372A,\022*analyticsadmin.googleapis.com/CustomMetric\022G\n\r" - + "custom_metric\030\002 \001(\0132+.go" - + "ogle.analytics.admin.v1beta.CustomMetricB\003\340A\002\"\225\001\n" + + "\006parent\030\001 \001(" + + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/CustomMetric\022G\n\r" + + "custom_metric\030\002" + + " \001(\0132+.google.analytics.admin.v1beta.CustomMetricB\003\340A\002\"\225\001\n" + "\031UpdateCustomMetricRequest\022B\n\r" + "custom_metric\030\001 \001(\0132+.google.analytics.admin.v1beta.CustomMetric\0224\n" + "\013update_mask\030\002" @@ -588,8 +588,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"y\n" + "\031ListCustomMetricsResponse\022C\n" - + "\016custom_metrics\030\001" - + " \003(\0132+.google.analytics.admin.v1beta.CustomMetric\022\027\n" + + "\016custom_metrics\030\001 \003(\0132+." + + "google.analytics.admin.v1beta.CustomMetric\022\027\n" + "\017next_page_token\030\002 \001(\t\"^\n" + "\032ArchiveCustomMetricRequest\022@\n" + "\004name\030\001 \001(\tB2\340A\002\372A,\n" @@ -601,13 +601,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB;\340A\002\372A5\n" + "3analyticsadmin.googleapis.com/DataRetentionSettings\"\266\001\n" + "\"UpdateDataRetentionSettingsRequest\022Z\n" - + "\027data_retention_settings\030\001 \001(\01324.google.anal" - + "ytics.admin.v1beta.DataRetentionSettingsB\003\340A\002\0224\n" + + "\027data_retention_settings\030\001 \001(\01324." + + "google.analytics.admin.v1beta.DataRetentionSettingsB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\240\001\n" + "\027CreateDataStreamRequest\022@\n" - + "\006parent\030\001 \001(" - + "\tB0\340A\002\372A*\022(analyticsadmin.googleapis.com/DataStream\022C\n" + + "\006parent\030\001 \001(\tB0\340A\002\372" + + "A*\022(analyticsadmin.googleapis.com/DataStream\022C\n" + "\013data_stream\030\002" + " \001(\0132).google.analytics.admin.v1beta.DataStreamB\003\340A\002\"Y\n" + "\027DeleteDataStreamRequest\022>\n" @@ -618,267 +618,267 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\201\001\n" + "\026ListDataStreamsRequest\022@\n" - + "\006parent\030\001 \001(" - + "\tB0\340A\002\372A*\022(analyticsadmin.googleapis.com/DataStream\022\021\n" + + "\006parent\030\001 \001(\tB0\340A\002\372A" + + "*\022(analyticsadmin.googleapis.com/DataStream\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"s\n" + "\027ListDataStreamsResponse\022?\n" - + "\014data_streams\030\001 \003(\013" - + "2).google.analytics.admin.v1beta.DataStream\022\027\n" + + "\014data_streams\030\001" + + " \003(\0132).google.analytics.admin.v1beta.DataStream\022\027\n" + "\017next_page_token\030\002 \001(\t\"V\n" + "\024GetDataStreamRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + "(analyticsadmin.googleapis.com/DataStream2\357W\n" + "\025AnalyticsAdminService\022\220\001\n\n" - + "GetAccount\0220.google.analytics.admin.v1beta.GetAccount" - + "Request\032&.google.analytics.admin.v1beta." - + "Account\"(\332A\004name\202\323\344\223\002\033\022\031/v1beta/{name=accounts/*}\022\221\001\n" - + "\014ListAccounts\0222.google.analytics.admin.v1beta.ListAccountsRequest\0323" - + ".google.analytics.admin.v1beta.ListAccou" - + "ntsResponse\"\030\202\323\344\223\002\022\022\020/v1beta/accounts\022\206\001\n\r" - + "DeleteAccount\0223.google.analytics.admin" - + ".v1beta.DeleteAccountRequest\032\026.google.pr" - + "otobuf.Empty\"(\332A\004name\202\323\344\223\002\033*\031/v1beta/{name=accounts/*}\022\266\001\n\r" - + "UpdateAccount\0223.google.analytics.admin.v1beta.UpdateAccountRe" - + "quest\032&.google.analytics.admin.v1beta.Ac" - + "count\"H\332A\023account,update_mask\202\323\344\223\002,2!/v1" - + "beta/{account.name=accounts/*}:\007account\022\311\001\n" - + "\026ProvisionAccountTicket\022<.google.analytics.admin.v1beta.ProvisionAccountTicke" - + "tRequest\032=.google.analytics.admin.v1beta" - + ".ProvisionAccountTicketResponse\"2\202\323\344\223\002,\"" - + "\'/v1beta/accounts:provisionAccountTicket:\001*\022\261\001\n" - + "\024ListAccountSummaries\022:.google.analytics.admin.v1beta.ListAccountSummarie" - + "sRequest\032;.google.analytics.admin.v1beta.ListAccountSummariesResponse\"" + + "GetAccount\0220.google.analytics.admin.v1beta" + + ".GetAccountRequest\032&.google.analytics.ad" + + "min.v1beta.Account\"(\332A\004name\202\323\344\223\002\033\022\031/v1beta/{name=accounts/*}\022\221\001\n" + + "\014ListAccounts\0222.google.analytics.admin.v1beta.ListAccoun" + + "tsRequest\0323.google.analytics.admin.v1bet" + + "a.ListAccountsResponse\"\030\202\323\344\223\002\022\022\020/v1beta/accounts\022\206\001\n\r" + + "DeleteAccount\0223.google.analytics.admin.v1beta.DeleteAccountRequest\032" + + "\026.google.protobuf.Empty\"(\332A\004name\202\323\344\223\002\033*\031/v1beta/{name=accounts/*}\022\266\001\n\r" + + "UpdateAccount\0223.google.analytics.admin.v1beta.Upda" + + "teAccountRequest\032&.google.analytics.admi" + + "n.v1beta.Account\"H\332A\023account,update_mask" + + "\202\323\344\223\002,2!/v1beta/{account.name=accounts/*}:\007account\022\311\001\n" + + "\026ProvisionAccountTicket\022<.google.analytics.admin.v1beta.ProvisionA" + + "ccountTicketRequest\032=.google.analytics.admin.v1beta.ProvisionAccountTicketRespon" + + "se\"2\202\323\344\223\002,\"\'/v1beta/accounts:provisionAccountTicket:\001*\022\261\001\n" + + "\024ListAccountSummaries\022:.google.analytics.admin.v1beta.ListAcco" + + "untSummariesRequest\032;.google.analytics.admin.v1beta.ListAccountSummariesResponse\"" + " \202\323\344\223\002\032\022\030/v1beta/accountSummaries\022\225\001\n" - + "\013GetProperty\0221.google.analytics.admin.v1beta.GetPrope" - + "rtyRequest\032\'.google.analytics.admin.v1be" - + "ta.Property\"*\332A\004name\202\323\344\223\002\035\022\033/v1beta/{name=properties/*}\022\231\001\n" - + "\016ListProperties\0224.google.analytics.admin.v1beta.ListPropertie" - + "sRequest\0325.google.analytics.admin.v1beta" - + ".ListPropertiesResponse\"\032\202\323\344\223\002\024\022\022/v1beta/properties\022\240\001\n" - + "\016CreateProperty\0224.google.analytics.admin.v1beta.CreatePropertyReq" - + "uest\032\'.google.analytics.admin.v1beta.Pro" - + "perty\"/\332A\010property\202\323\344\223\002\036\"\022/v1beta/properties:\010property\022\233\001\n" - + "\016DeleteProperty\0224.google.analytics.admin.v1beta.DeleteProperty" - + "Request\032\'.google.analytics.admin.v1beta." - + "Property\"*\332A\004name\202\323\344\223\002\035*\033/v1beta/{name=properties/*}\022\276\001\n" - + "\016UpdateProperty\0224.google.analytics.admin.v1beta.UpdatePropertyRe" - + "quest\032\'.google.analytics.admin.v1beta.Pr" - + "operty\"M\332A\024property,update_mask\202\323\344\223\00202$/" - + "v1beta/{property.name=properties/*}:\010property\022\326\001\n" - + "\022CreateFirebaseLink\0228.google.analytics.admin.v1beta.CreateFirebaseLinkR" - + "equest\032+.google.analytics.admin.v1beta.F" - + "irebaseLink\"Y\332A\024parent,firebase_link\202\323\344\223" - + "\002<\"+/v1beta/{parent=properties/*}/firebaseLinks:\r" + + "\013GetProperty\0221.google.analytics.admin.v1be" + + "ta.GetPropertyRequest\032\'.google.analytics" + + ".admin.v1beta.Property\"*\332A\004name\202\323\344\223\002\035\022\033/v1beta/{name=properties/*}\022\231\001\n" + + "\016ListProperties\0224.google.analytics.admin.v1beta.Li" + + "stPropertiesRequest\0325.google.analytics.a" + + "dmin.v1beta.ListPropertiesResponse\"\032\202\323\344\223\002\024\022\022/v1beta/properties\022\240\001\n" + + "\016CreateProperty\0224.google.analytics.admin.v1beta.Create" + + "PropertyRequest\032\'.google.analytics.admin" + + ".v1beta.Property\"/\332A\010property\202\323\344\223\002\036\"\022/v1beta/properties:\010property\022\233\001\n" + + "\016DeleteProperty\0224.google.analytics.admin.v1beta.Del" + + "etePropertyRequest\032\'.google.analytics.ad" + + "min.v1beta.Property\"*\332A\004name\202\323\344\223\002\035*\033/v1beta/{name=properties/*}\022\276\001\n" + + "\016UpdateProperty\0224.google.analytics.admin.v1beta.Updat" + + "ePropertyRequest\032\'.google.analytics.admi" + + "n.v1beta.Property\"M\332A\024property,update_ma" + + "sk\202\323\344\223\00202$/v1beta/{property.name=properties/*}:\010property\022\326\001\n" + + "\022CreateFirebaseLink\0228.google.analytics.admin.v1beta.CreateFi" + + "rebaseLinkRequest\032+.google.analytics.adm" + + "in.v1beta.FirebaseLink\"Y\332A\024parent,fireba" + + "se_link\202\323\344\223\002<\"+/v1beta/{parent=properties/*}/firebaseLinks:\r" + "firebase_link\022\242\001\n" - + "\022DeleteFirebaseLink\0228.google.analytics.admin.v1beta.De" - + "leteFirebaseLinkRequest\032\026.google.protobu" - + "f.Empty\":\332A\004name\202\323\344\223\002-*+/v1beta/{name=properties/*/firebaseLinks/*}\022\304\001\n" - + "\021ListFirebaseLinks\0227.google.analytics.admin.v1bet" - + "a.ListFirebaseLinksRequest\0328.google.analytics.admin.v1beta.ListFirebaseLinksResp" - + "onse\"<\332A\006parent\202\323\344\223\002-\022+/v1beta/{parent=properties/*}/firebaseLinks\022\336\001\n" - + "\023CreateGoogleAdsLink\0229.google.analytics.admin.v1be" - + "ta.CreateGoogleAdsLinkRequest\032,.google.a" - + "nalytics.admin.v1beta.GoogleAdsLink\"^\332A\026" - + "parent,google_ads_link\202\323\344\223\002?\",/v1beta/{p" - + "arent=properties/*}/googleAdsLinks:\017google_ads_link\022\363\001\n" - + "\023UpdateGoogleAdsLink\0229.google.analytics.admin.v1beta.UpdateGoogle" - + "AdsLinkRequest\032,.google.analytics.admin." - + "v1beta.GoogleAdsLink\"s\332A\033google_ads_link" - + ",update_mask\202\323\344\223\002O221/v" - + "1beta/{key_event.name=properties/*/keyEv" - + "ents/*}:\tkey_event\022\241\001\n\013GetKeyEvent\0221.goo" - + "gle.analytics.admin.v1beta.GetKeyEventRe" - + "quest\032\'.google.analytics.admin.v1beta.Ke" - + "yEvent\"6\332A\004name\202\323\344\223\002)\022\'/v1beta/{name=pro" - + "perties/*/keyEvents/*}\022\226\001\n\016DeleteKeyEven" - + "t\0224.google.analytics.admin.v1beta.Delete" - + "KeyEventRequest\032\026.google.protobuf.Empty\"" - + "6\332A\004name\202\323\344\223\002)*\'/v1beta/{name=properties" - + "/*/keyEvents/*}\022\264\001\n\rListKeyEvents\0223.goog" - + "le.analytics.admin.v1beta.ListKeyEventsR" - + "equest\0324.google.analytics.admin.v1beta.L" - + "istKeyEventsResponse\"8\332A\006parent\202\323\344\223\002)\022\'/" - + "v1beta/{parent=properties/*}/keyEvents\022\350" - + "\001\n\025CreateCustomDimension\022;.google.analyt" - + "ics.admin.v1beta.CreateCustomDimensionRe" - + "quest\032..google.analytics.admin.v1beta.Cu" - + "stomDimension\"b\332A\027parent,custom_dimensio" - + "n\202\323\344\223\002B\"./v1beta/{parent=properties/*}/c" - + "ustomDimensions:\020custom_dimension\022\376\001\n\025Up" - + "dateCustomDimension\022;.google.analytics.a" - + "dmin.v1beta.UpdateCustomDimensionRequest" - + "\032..google.analytics.admin.v1beta.CustomD" - + "imension\"x\332A\034custom_dimension,update_mas" - + "k\202\323\344\223\002S2?/v1beta/{custom_dimension.name=" - + "properties/*/customDimensions/*}:\020custom" - + "_dimension\022\320\001\n\024ListCustomDimensions\022:.go" - + "ogle.analytics.admin.v1beta.ListCustomDi" - + "mensionsRequest\032;.google.analytics.admin" - + ".v1beta.ListCustomDimensionsResponse\"?\332A" - + "\006parent\202\323\344\223\0020\022./v1beta/{parent=propertie" - + "s/*}/customDimensions\022\270\001\n\026ArchiveCustomD" - + "imension\022<.google.analytics.admin.v1beta" - + ".ArchiveCustomDimensionRequest\032\026.google." - + "protobuf.Empty\"H\332A\004name\202\323\344\223\002;\"6/v1beta/{" - + "name=properties/*/customDimensions/*}:ar" - + "chive:\001*\022\275\001\n\022GetCustomDimension\0228.google" - + ".analytics.admin.v1beta.GetCustomDimensi" - + "onRequest\032..google.analytics.admin.v1bet" - + "a.CustomDimension\"=\332A\004name\202\323\344\223\0020\022./v1bet" - + "a/{name=properties/*/customDimensions/*}" - + "\022\326\001\n\022CreateCustomMetric\0228.google.analyti" - + "cs.admin.v1beta.CreateCustomMetricReques" - + "t\032+.google.analytics.admin.v1beta.Custom" - + "Metric\"Y\332A\024parent,custom_metric\202\323\344\223\002<\"+/" - + "v1beta/{parent=properties/*}/customMetri" - + "cs:\rcustom_metric\022\351\001\n\022UpdateCustomMetric" - + "\0228.google.analytics.admin.v1beta.UpdateC" - + "ustomMetricRequest\032+.google.analytics.ad" - + "min.v1beta.CustomMetric\"l\332A\031custom_metri" - + "c,update_mask\202\323\344\223\002J29/v1beta/{custom_met" - + "ric.name=properties/*/customMetrics/*}:\r" - + "custom_metric\022\304\001\n\021ListCustomMetrics\0227.go" - + "ogle.analytics.admin.v1beta.ListCustomMe" - + "tricsRequest\0328.google.analytics.admin.v1" - + "beta.ListCustomMetricsResponse\"<\332A\006paren" - + "t\202\323\344\223\002-\022+/v1beta/{parent=properties/*}/c" - + "ustomMetrics\022\257\001\n\023ArchiveCustomMetric\0229.g" - + "oogle.analytics.admin.v1beta.ArchiveCust" - + "omMetricRequest\032\026.google.protobuf.Empty\"" - + "E\332A\004name\202\323\344\223\0028\"3/v1beta/{name=properties" - + "/*/customMetrics/*}:archive:\001*\022\261\001\n\017GetCu" - + "stomMetric\0225.google.analytics.admin.v1be" - + "ta.GetCustomMetricRequest\032+.google.analy" - + "tics.admin.v1beta.CustomMetric\":\332A\004name\202" - + "\323\344\223\002-\022+/v1beta/{name=properties/*/custom" - + "Metrics/*}\022\322\001\n\030GetDataRetentionSettings\022" - + ">.google.analytics.admin.v1beta.GetDataR" - + "etentionSettingsRequest\0324.google.analyti" - + "cs.admin.v1beta.DataRetentionSettings\"@\332" - + "A\004name\202\323\344\223\0023\0221/v1beta/{name=properties/*" - + "/dataRetentionSettings}\022\251\002\n\033UpdateDataRe" - + "tentionSettings\022A.google.analytics.admin" - + ".v1beta.UpdateDataRetentionSettingsReque" - + "st\0324.google.analytics.admin.v1beta.DataR" - + "etentionSettings\"\220\001\332A#data_retention_set" - + "tings,update_mask\202\323\344\223\002d2I/v1beta/{data_r" - + "etention_settings.name=properties/*/data" - + "RetentionSettings}:\027data_retention_setti" - + "ngs\022\312\001\n\020CreateDataStream\0226.google.analyt" - + "ics.admin.v1beta.CreateDataStreamRequest" - + "\032).google.analytics.admin.v1beta.DataStr" - + "eam\"S\332A\022parent,data_stream\202\323\344\223\0028\")/v1bet" - + "a/{parent=properties/*}/dataStreams:\013dat" - + "a_stream\022\234\001\n\020DeleteDataStream\0226.google.a" - + "nalytics.admin.v1beta.DeleteDataStreamRe" - + "quest\032\026.google.protobuf.Empty\"8\332A\004name\202\323" - + "\344\223\002+*)/v1beta/{name=properties/*/dataStr" - + "eams/*}\022\333\001\n\020UpdateDataStream\0226.google.an" - + "alytics.admin.v1beta.UpdateDataStreamReq" - + "uest\032).google.analytics.admin.v1beta.Dat" - + "aStream\"d\332A\027data_stream,update_mask\202\323\344\223\002" - + "D25/v1beta/{data_stream.name=properties/" - + "*/dataStreams/*}:\013data_stream\022\274\001\n\017ListDa" - + "taStreams\0225.google.analytics.admin.v1bet" - + "a.ListDataStreamsRequest\0326.google.analyt" - + "ics.admin.v1beta.ListDataStreamsResponse" - + "\":\332A\006parent\202\323\344\223\002+\022)/v1beta/{parent=prope" - + "rties/*}/dataStreams\022\251\001\n\rGetDataStream\0223" - + ".google.analytics.admin.v1beta.GetDataSt" + + "\022DeleteFirebaseLink\0228.google.analytics.admi" + + "n.v1beta.DeleteFirebaseLinkRequest\032\026.goo" + + "gle.protobuf.Empty\":\332A\004name\202\323\344\223\002-*+/v1be" + + "ta/{name=properties/*/firebaseLinks/*}\022\304\001\n" + + "\021ListFirebaseLinks\0227.google.analytics." + + "admin.v1beta.ListFirebaseLinksRequest\0328.google.analytics.admin.v1beta.ListFireba" + + "seLinksResponse\"<\332A\006parent\202\323\344\223\002-\022+/v1bet" + + "a/{parent=properties/*}/firebaseLinks\022\336\001\n" + + "\023CreateGoogleAdsLink\0229.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest" + + "\032,.google.analytics.admin.v1beta.GoogleA" + + "dsLink\"^\332A\026parent,google_ads_link\202\323\344\223\002?\"" + + ",/v1beta/{parent=properties/*}/googleAdsLinks:\017google_ads_link\022\363\001\n" + + "\023UpdateGoogleAdsLink\0229.google.analytics.admin.v1beta.U" + + "pdateGoogleAdsLinkRequest\032,.google.analy" + + "tics.admin.v1beta.GoogleAdsLink\"s\332A\033goog" + + "le_ads_link,update_mask\202\323\344\223\002O221/v1beta/{key_event.name=propert" + + "ies/*/keyEvents/*}:\tkey_event\022\241\001\n\013GetKey" + + "Event\0221.google.analytics.admin.v1beta.Ge" + + "tKeyEventRequest\032\'.google.analytics.admi" + + "n.v1beta.KeyEvent\"6\332A\004name\202\323\344\223\002)\022\'/v1bet" + + "a/{name=properties/*/keyEvents/*}\022\226\001\n\016De" + + "leteKeyEvent\0224.google.analytics.admin.v1" + + "beta.DeleteKeyEventRequest\032\026.google.prot" + + "obuf.Empty\"6\332A\004name\202\323\344\223\002)*\'/v1beta/{name" + + "=properties/*/keyEvents/*}\022\264\001\n\rListKeyEv" + + "ents\0223.google.analytics.admin.v1beta.Lis" + + "tKeyEventsRequest\0324.google.analytics.adm" + + "in.v1beta.ListKeyEventsResponse\"8\332A\006pare" + + "nt\202\323\344\223\002)\022\'/v1beta/{parent=properties/*}/" + + "keyEvents\022\350\001\n\025CreateCustomDimension\022;.go" + + "ogle.analytics.admin.v1beta.CreateCustom" + + "DimensionRequest\032..google.analytics.admi" + + "n.v1beta.CustomDimension\"b\332A\027parent,cust" + + "om_dimension\202\323\344\223\002B\"./v1beta/{parent=prop" + + "erties/*}/customDimensions:\020custom_dimen" + + "sion\022\376\001\n\025UpdateCustomDimension\022;.google." + + "analytics.admin.v1beta.UpdateCustomDimen" + + "sionRequest\032..google.analytics.admin.v1b" + + "eta.CustomDimension\"x\332A\034custom_dimension" + + ",update_mask\202\323\344\223\002S2?/v1beta/{custom_dime" + + "nsion.name=properties/*/customDimensions" + + "/*}:\020custom_dimension\022\320\001\n\024ListCustomDime" + + "nsions\022:.google.analytics.admin.v1beta.L" + + "istCustomDimensionsRequest\032;.google.anal" + + "ytics.admin.v1beta.ListCustomDimensionsR" + + "esponse\"?\332A\006parent\202\323\344\223\0020\022./v1beta/{paren" + + "t=properties/*}/customDimensions\022\270\001\n\026Arc" + + "hiveCustomDimension\022<.google.analytics.a" + + "dmin.v1beta.ArchiveCustomDimensionReques" + + "t\032\026.google.protobuf.Empty\"H\332A\004name\202\323\344\223\002;" + + "\"6/v1beta/{name=properties/*/customDimen" + + "sions/*}:archive:\001*\022\275\001\n\022GetCustomDimensi" + + "on\0228.google.analytics.admin.v1beta.GetCu" + + "stomDimensionRequest\032..google.analytics." + + "admin.v1beta.CustomDimension\"=\332A\004name\202\323\344" + + "\223\0020\022./v1beta/{name=properties/*/customDi" + + "mensions/*}\022\326\001\n\022CreateCustomMetric\0228.goo" + + "gle.analytics.admin.v1beta.CreateCustomM" + + "etricRequest\032+.google.analytics.admin.v1" + + "beta.CustomMetric\"Y\332A\024parent,custom_metr" + + "ic\202\323\344\223\002<\"+/v1beta/{parent=properties/*}/" + + "customMetrics:\rcustom_metric\022\351\001\n\022UpdateC" + + "ustomMetric\0228.google.analytics.admin.v1b" + + "eta.UpdateCustomMetricRequest\032+.google.a" + + "nalytics.admin.v1beta.CustomMetric\"l\332A\031c" + + "ustom_metric,update_mask\202\323\344\223\002J29/v1beta/" + + "{custom_metric.name=properties/*/customM" + + "etrics/*}:\rcustom_metric\022\304\001\n\021ListCustomM" + + "etrics\0227.google.analytics.admin.v1beta.L" + + "istCustomMetricsRequest\0328.google.analyti" + + "cs.admin.v1beta.ListCustomMetricsRespons" + + "e\"<\332A\006parent\202\323\344\223\002-\022+/v1beta/{parent=prop" + + "erties/*}/customMetrics\022\257\001\n\023ArchiveCusto" + + "mMetric\0229.google.analytics.admin.v1beta." + + "ArchiveCustomMetricRequest\032\026.google.prot" + + "obuf.Empty\"E\332A\004name\202\323\344\223\0028\"3/v1beta/{name" + + "=properties/*/customMetrics/*}:archive:\001" + + "*\022\261\001\n\017GetCustomMetric\0225.google.analytics" + + ".admin.v1beta.GetCustomMetricRequest\032+.g" + + "oogle.analytics.admin.v1beta.CustomMetri" + + "c\":\332A\004name\202\323\344\223\002-\022+/v1beta/{name=properti" + + "es/*/customMetrics/*}\022\322\001\n\030GetDataRetenti" + + "onSettings\022>.google.analytics.admin.v1be" + + "ta.GetDataRetentionSettingsRequest\0324.goo" + + "gle.analytics.admin.v1beta.DataRetention" + + "Settings\"@\332A\004name\202\323\344\223\0023\0221/v1beta/{name=p" + + "roperties/*/dataRetentionSettings}\022\251\002\n\033U" + + "pdateDataRetentionSettings\022A.google.anal" + + "ytics.admin.v1beta.UpdateDataRetentionSe" + + "ttingsRequest\0324.google.analytics.admin.v" + + "1beta.DataRetentionSettings\"\220\001\332A#data_re" + + "tention_settings,update_mask\202\323\344\223\002d2I/v1b" + + "eta/{data_retention_settings.name=proper" + + "ties/*/dataRetentionSettings}:\027data_rete" + + "ntion_settings\022\312\001\n\020CreateDataStream\0226.go" + + "ogle.analytics.admin.v1beta.CreateDataSt" + "reamRequest\032).google.analytics.admin.v1b" - + "eta.DataStream\"8\332A\004name\202\323\344\223\002+\022)/v1beta/{" - + "name=properties/*/dataStreams/*}\022\354\001\n\017Run" - + "AccessReport\0225.google.analytics.admin.v1" - + "beta.RunAccessReportRequest\0326.google.ana" - + "lytics.admin.v1beta.RunAccessReportRespo" - + "nse\"j\202\323\344\223\002d\"-/v1beta/{entity=properties/" - + "*}:runAccessReport:\001*Z0\"+/v1beta/{entity" - + "=accounts/*}:runAccessReport:\001*\032\204\001\312A\035ana" - + "lyticsadmin.googleapis.com\322Aahttps://www" - + ".googleapis.com/auth/analytics.edit,http" - + "s://www.googleapis.com/auth/analytics.re" - + "adonlyBy\n!com.google.analytics.admin.v1b" - + "etaB\023AnalyticsAdminProtoP\001Z=cloud.google" - + ".com/go/analytics/admin/apiv1beta/adminp" - + "b;adminpbb\006proto3" + + "eta.DataStream\"S\332A\022parent,data_stream\202\323\344" + + "\223\0028\")/v1beta/{parent=properties/*}/dataS" + + "treams:\013data_stream\022\234\001\n\020DeleteDataStream" + + "\0226.google.analytics.admin.v1beta.DeleteD" + + "ataStreamRequest\032\026.google.protobuf.Empty" + + "\"8\332A\004name\202\323\344\223\002+*)/v1beta/{name=propertie" + + "s/*/dataStreams/*}\022\333\001\n\020UpdateDataStream\022" + + "6.google.analytics.admin.v1beta.UpdateDa" + + "taStreamRequest\032).google.analytics.admin" + + ".v1beta.DataStream\"d\332A\027data_stream,updat" + + "e_mask\202\323\344\223\002D25/v1beta/{data_stream.name=" + + "properties/*/dataStreams/*}:\013data_stream" + + "\022\274\001\n\017ListDataStreams\0225.google.analytics." + + "admin.v1beta.ListDataStreamsRequest\0326.go" + + "ogle.analytics.admin.v1beta.ListDataStre" + + "amsResponse\":\332A\006parent\202\323\344\223\002+\022)/v1beta/{p" + + "arent=properties/*}/dataStreams\022\251\001\n\rGetD" + + "ataStream\0223.google.analytics.admin.v1bet" + + "a.GetDataStreamRequest\032).google.analytic" + + "s.admin.v1beta.DataStream\"8\332A\004name\202\323\344\223\002+" + + "\022)/v1beta/{name=properties/*/dataStreams" + + "/*}\022\354\001\n\017RunAccessReport\0225.google.analyti" + + "cs.admin.v1beta.RunAccessReportRequest\0326" + + ".google.analytics.admin.v1beta.RunAccess" + + "ReportResponse\"j\202\323\344\223\002d\"-/v1beta/{entity=" + + "properties/*}:runAccessReport:\001*Z0\"+/v1b" + + "eta/{entity=accounts/*}:runAccessReport:" + + "\001*\032\204\001\312A\035analyticsadmin.googleapis.com\322Aa" + + "https://www.googleapis.com/auth/analytic" + + "s.edit,https://www.googleapis.com/auth/a" + + "nalytics.readonlyBy\n!com.google.analytic" + + "s.admin.v1betaB\023AnalyticsAdminProtoP\001Z=c" + + "loud.google.com/go/analytics/admin/apiv1" + + "beta/adminpb;adminpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java index 5b61bd772959..64653d2dc83f 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java @@ -1154,11 +1154,11 @@ public com.google.protobuf.Parser getParserForType() { * * *
-   * Output only. Resource name of this conversion event.
+   * Identifier. Resource name of this conversion event.
    * Format: properties/{property}/conversionEvents/{conversion_event}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1179,11 +1179,11 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name of this conversion event.
+   * Identifier. Resource name of this conversion event.
    * Format: properties/{property}/conversionEvents/{conversion_event}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1959,11 +1959,11 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name of this conversion event.
+     * Identifier. Resource name of this conversion event.
      * Format: properties/{property}/conversionEvents/{conversion_event}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1983,11 +1983,11 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name of this conversion event.
+     * Identifier. Resource name of this conversion event.
      * Format: properties/{property}/conversionEvents/{conversion_event}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -2007,11 +2007,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name of this conversion event.
+     * Identifier. Resource name of this conversion event.
      * Format: properties/{property}/conversionEvents/{conversion_event}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -2030,11 +2030,11 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name of this conversion event.
+     * Identifier. Resource name of this conversion event.
      * Format: properties/{property}/conversionEvents/{conversion_event}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -2049,11 +2049,11 @@ public Builder clearName() { * * *
-     * Output only. Resource name of this conversion event.
+     * Identifier. Resource name of this conversion event.
      * Format: properties/{property}/conversionEvents/{conversion_event}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java index 8dc3f3fa2038..f835a0d376f6 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java @@ -30,11 +30,11 @@ public interface ConversionEventOrBuilder * * *
-   * Output only. Resource name of this conversion event.
+   * Identifier. Resource name of this conversion event.
    * Format: properties/{property}/conversionEvents/{conversion_event}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,11 +44,11 @@ public interface ConversionEventOrBuilder * * *
-   * Output only. Resource name of this conversion event.
+   * Identifier. Resource name of this conversion event.
    * Format: properties/{property}/conversionEvents/{conversion_event}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimension.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimension.java index 526331316dbe..e0196448d595 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimension.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimension.java @@ -277,11 +277,11 @@ private DimensionScope(int value) { * * *
-   * Output only. Resource name for this CustomDimension resource.
+   * Identifier. Resource name for this CustomDimension resource.
    * Format: properties/{property}/customDimensions/{customDimension}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -302,11 +302,11 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name for this CustomDimension resource.
+   * Identifier. Resource name for this CustomDimension resource.
    * Format: properties/{property}/customDimensions/{customDimension}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1021,11 +1021,11 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name for this CustomDimension resource.
+     * Identifier. Resource name for this CustomDimension resource.
      * Format: properties/{property}/customDimensions/{customDimension}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1045,11 +1045,11 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name for this CustomDimension resource.
+     * Identifier. Resource name for this CustomDimension resource.
      * Format: properties/{property}/customDimensions/{customDimension}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1069,11 +1069,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name for this CustomDimension resource.
+     * Identifier. Resource name for this CustomDimension resource.
      * Format: properties/{property}/customDimensions/{customDimension}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1092,11 +1092,11 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name for this CustomDimension resource.
+     * Identifier. Resource name for this CustomDimension resource.
      * Format: properties/{property}/customDimensions/{customDimension}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1111,11 +1111,11 @@ public Builder clearName() { * * *
-     * Output only. Resource name for this CustomDimension resource.
+     * Identifier. Resource name for this CustomDimension resource.
      * Format: properties/{property}/customDimensions/{customDimension}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionOrBuilder.java index beb357d9e747..06e57b52035c 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionOrBuilder.java @@ -30,11 +30,11 @@ public interface CustomDimensionOrBuilder * * *
-   * Output only. Resource name for this CustomDimension resource.
+   * Identifier. Resource name for this CustomDimension resource.
    * Format: properties/{property}/customDimensions/{customDimension}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,11 +44,11 @@ public interface CustomDimensionOrBuilder * * *
-   * Output only. Resource name for this CustomDimension resource.
+   * Identifier. Resource name for this CustomDimension resource.
    * Format: properties/{property}/customDimensions/{customDimension}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetric.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetric.java index 5ecd84685b4b..df7960c04b57 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetric.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetric.java @@ -762,11 +762,11 @@ private RestrictedMetricType(int value) { * * *
-   * Output only. Resource name for this CustomMetric resource.
+   * Identifier. Resource name for this CustomMetric resource.
    * Format: properties/{property}/customMetrics/{customMetric}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -787,11 +787,11 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name for this CustomMetric resource.
+   * Identifier. Resource name for this CustomMetric resource.
    * Format: properties/{property}/customMetrics/{customMetric}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1710,11 +1710,11 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name for this CustomMetric resource.
+     * Identifier. Resource name for this CustomMetric resource.
      * Format: properties/{property}/customMetrics/{customMetric}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1734,11 +1734,11 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name for this CustomMetric resource.
+     * Identifier. Resource name for this CustomMetric resource.
      * Format: properties/{property}/customMetrics/{customMetric}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1758,11 +1758,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name for this CustomMetric resource.
+     * Identifier. Resource name for this CustomMetric resource.
      * Format: properties/{property}/customMetrics/{customMetric}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1781,11 +1781,11 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name for this CustomMetric resource.
+     * Identifier. Resource name for this CustomMetric resource.
      * Format: properties/{property}/customMetrics/{customMetric}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1800,11 +1800,11 @@ public Builder clearName() { * * *
-     * Output only. Resource name for this CustomMetric resource.
+     * Identifier. Resource name for this CustomMetric resource.
      * Format: properties/{property}/customMetrics/{customMetric}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricOrBuilder.java index 625e80a00427..ef611f3b16f3 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricOrBuilder.java @@ -30,11 +30,11 @@ public interface CustomMetricOrBuilder * * *
-   * Output only. Resource name for this CustomMetric resource.
+   * Identifier. Resource name for this CustomMetric resource.
    * Format: properties/{property}/customMetrics/{customMetric}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,11 +44,11 @@ public interface CustomMetricOrBuilder * * *
-   * Output only. Resource name for this CustomMetric resource.
+   * Identifier. Resource name for this CustomMetric resource.
    * Format: properties/{property}/customMetrics/{customMetric}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettings.java index c5e6212c280e..d54999f0075d 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettings.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettings.java @@ -330,11 +330,11 @@ private RetentionDuration(int value) { * * *
-   * Output only. Resource name for this DataRetentionSetting resource.
+   * Identifier. Resource name for this DataRetentionSetting resource.
    * Format: properties/{property}/dataRetentionSettings
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -355,11 +355,11 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name for this DataRetentionSetting resource.
+   * Identifier. Resource name for this DataRetentionSetting resource.
    * Format: properties/{property}/dataRetentionSettings
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -881,11 +881,11 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name for this DataRetentionSetting resource.
+     * Identifier. Resource name for this DataRetentionSetting resource.
      * Format: properties/{property}/dataRetentionSettings
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -905,11 +905,11 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name for this DataRetentionSetting resource.
+     * Identifier. Resource name for this DataRetentionSetting resource.
      * Format: properties/{property}/dataRetentionSettings
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -929,11 +929,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name for this DataRetentionSetting resource.
+     * Identifier. Resource name for this DataRetentionSetting resource.
      * Format: properties/{property}/dataRetentionSettings
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -952,11 +952,11 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name for this DataRetentionSetting resource.
+     * Identifier. Resource name for this DataRetentionSetting resource.
      * Format: properties/{property}/dataRetentionSettings
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -971,11 +971,11 @@ public Builder clearName() { * * *
-     * Output only. Resource name for this DataRetentionSetting resource.
+     * Identifier. Resource name for this DataRetentionSetting resource.
      * Format: properties/{property}/dataRetentionSettings
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsOrBuilder.java index 06d985330c34..bf18b49fa049 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsOrBuilder.java @@ -30,11 +30,11 @@ public interface DataRetentionSettingsOrBuilder * * *
-   * Output only. Resource name for this DataRetentionSetting resource.
+   * Identifier. Resource name for this DataRetentionSetting resource.
    * Format: properties/{property}/dataRetentionSettings
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,11 +44,11 @@ public interface DataRetentionSettingsOrBuilder * * *
-   * Output only. Resource name for this DataRetentionSetting resource.
+   * Identifier. Resource name for this DataRetentionSetting resource.
    * Format: properties/{property}/dataRetentionSettings
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettings.java index afc8ab4bd8f2..2ab92e88e2e7 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettings.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettings.java @@ -80,12 +80,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Resource name.
+   * Identifier. Resource name.
    * Format: accounts/{account}/dataSharingSettings
    * Example: "accounts/1000/dataSharingSettings"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -106,12 +106,12 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name.
+   * Identifier. Resource name.
    * Format: accounts/{account}/dataSharingSettings
    * Example: "accounts/1000/dataSharingSettings"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -135,8 +135,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Allows Google support to access the data in order to help troubleshoot
-   * issues.
+   * Allows Google technical support representatives access to your Google
+   * Analytics data and account when necessary to provide service and find
+   * solutions to technical issues.
+   *
+   * This field maps to the "Technical support" field in the Google Analytics
+   * Admin UI.
    * 
* * bool sharing_with_google_support_enabled = 2; @@ -155,9 +159,15 @@ public boolean getSharingWithGoogleSupportEnabled() { * * *
-   * Allows Google sales teams that are assigned to the customer to access the
-   * data in order to suggest configuration changes to improve results.
-   * Sales team restrictions still apply when enabled.
+   * Allows Google access to your Google Analytics account data, including
+   * account usage and configuration data, product spending, and users
+   * associated with your Google Analytics account, so that Google can help you
+   * make the most of Google products, providing you with insights, offers,
+   * recommendations, and optimization tips across Google Analytics and other
+   * Google products for business.
+   *
+   * This field maps to the "Recommendations for your business" field in the
+   * Google Analytics Admin UI.
    * 
* * bool sharing_with_google_assigned_sales_enabled = 3; @@ -176,15 +186,18 @@ public boolean getSharingWithGoogleAssignedSalesEnabled() { * * *
-   * Allows any of Google sales to access the data in order to suggest
-   * configuration changes to improve results.
+   * Deprecated. This field is no longer used and always returns false.
    * 
* - * bool sharing_with_google_any_sales_enabled = 4; + * bool sharing_with_google_any_sales_enabled = 4 [deprecated = true]; * + * @deprecated + * google.analytics.admin.v1beta.DataSharingSettings.sharing_with_google_any_sales_enabled is + * deprecated. See google/analytics/admin/v1beta/resources.proto;l=561 * @return The sharingWithGoogleAnySalesEnabled. */ @java.lang.Override + @java.lang.Deprecated public boolean getSharingWithGoogleAnySalesEnabled() { return sharingWithGoogleAnySalesEnabled_; } @@ -197,6 +210,9 @@ public boolean getSharingWithGoogleAnySalesEnabled() { * *
    * Allows Google to use the data to improve other Google products or services.
+   *
+   * This fields maps to the "Google products & services" field in the Google
+   * Analytics Admin UI.
    * 
* * bool sharing_with_google_products_enabled = 5; @@ -215,7 +231,14 @@ public boolean getSharingWithGoogleProductsEnabled() { * * *
-   * Allows Google to share the data anonymously in aggregate form with others.
+   * Enable features like predictions, modeled data, and benchmarking that can
+   * provide you with richer business insights when you contribute aggregated
+   * measurement data. The data you share (including information about the
+   * property from which it is shared) is aggregated and de-identified before
+   * being used to generate business insights.
+   *
+   * This field maps to the "Modeling contributions & business insights" field
+   * in the Google Analytics Admin UI.
    * 
* * bool sharing_with_others_enabled = 6; @@ -675,12 +698,12 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name.
+     * Identifier. Resource name.
      * Format: accounts/{account}/dataSharingSettings
      * Example: "accounts/1000/dataSharingSettings"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -700,12 +723,12 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name.
+     * Identifier. Resource name.
      * Format: accounts/{account}/dataSharingSettings
      * Example: "accounts/1000/dataSharingSettings"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -725,12 +748,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name.
+     * Identifier. Resource name.
      * Format: accounts/{account}/dataSharingSettings
      * Example: "accounts/1000/dataSharingSettings"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -749,12 +772,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name.
+     * Identifier. Resource name.
      * Format: accounts/{account}/dataSharingSettings
      * Example: "accounts/1000/dataSharingSettings"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -769,12 +792,12 @@ public Builder clearName() { * * *
-     * Output only. Resource name.
+     * Identifier. Resource name.
      * Format: accounts/{account}/dataSharingSettings
      * Example: "accounts/1000/dataSharingSettings"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -796,8 +819,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Allows Google support to access the data in order to help troubleshoot
-     * issues.
+     * Allows Google technical support representatives access to your Google
+     * Analytics data and account when necessary to provide service and find
+     * solutions to technical issues.
+     *
+     * This field maps to the "Technical support" field in the Google Analytics
+     * Admin UI.
      * 
* * bool sharing_with_google_support_enabled = 2; @@ -813,8 +840,12 @@ public boolean getSharingWithGoogleSupportEnabled() { * * *
-     * Allows Google support to access the data in order to help troubleshoot
-     * issues.
+     * Allows Google technical support representatives access to your Google
+     * Analytics data and account when necessary to provide service and find
+     * solutions to technical issues.
+     *
+     * This field maps to the "Technical support" field in the Google Analytics
+     * Admin UI.
      * 
* * bool sharing_with_google_support_enabled = 2; @@ -834,8 +865,12 @@ public Builder setSharingWithGoogleSupportEnabled(boolean value) { * * *
-     * Allows Google support to access the data in order to help troubleshoot
-     * issues.
+     * Allows Google technical support representatives access to your Google
+     * Analytics data and account when necessary to provide service and find
+     * solutions to technical issues.
+     *
+     * This field maps to the "Technical support" field in the Google Analytics
+     * Admin UI.
      * 
* * bool sharing_with_google_support_enabled = 2; @@ -855,9 +890,15 @@ public Builder clearSharingWithGoogleSupportEnabled() { * * *
-     * Allows Google sales teams that are assigned to the customer to access the
-     * data in order to suggest configuration changes to improve results.
-     * Sales team restrictions still apply when enabled.
+     * Allows Google access to your Google Analytics account data, including
+     * account usage and configuration data, product spending, and users
+     * associated with your Google Analytics account, so that Google can help you
+     * make the most of Google products, providing you with insights, offers,
+     * recommendations, and optimization tips across Google Analytics and other
+     * Google products for business.
+     *
+     * This field maps to the "Recommendations for your business" field in the
+     * Google Analytics Admin UI.
      * 
* * bool sharing_with_google_assigned_sales_enabled = 3; @@ -873,9 +914,15 @@ public boolean getSharingWithGoogleAssignedSalesEnabled() { * * *
-     * Allows Google sales teams that are assigned to the customer to access the
-     * data in order to suggest configuration changes to improve results.
-     * Sales team restrictions still apply when enabled.
+     * Allows Google access to your Google Analytics account data, including
+     * account usage and configuration data, product spending, and users
+     * associated with your Google Analytics account, so that Google can help you
+     * make the most of Google products, providing you with insights, offers,
+     * recommendations, and optimization tips across Google Analytics and other
+     * Google products for business.
+     *
+     * This field maps to the "Recommendations for your business" field in the
+     * Google Analytics Admin UI.
      * 
* * bool sharing_with_google_assigned_sales_enabled = 3; @@ -895,9 +942,15 @@ public Builder setSharingWithGoogleAssignedSalesEnabled(boolean value) { * * *
-     * Allows Google sales teams that are assigned to the customer to access the
-     * data in order to suggest configuration changes to improve results.
-     * Sales team restrictions still apply when enabled.
+     * Allows Google access to your Google Analytics account data, including
+     * account usage and configuration data, product spending, and users
+     * associated with your Google Analytics account, so that Google can help you
+     * make the most of Google products, providing you with insights, offers,
+     * recommendations, and optimization tips across Google Analytics and other
+     * Google products for business.
+     *
+     * This field maps to the "Recommendations for your business" field in the
+     * Google Analytics Admin UI.
      * 
* * bool sharing_with_google_assigned_sales_enabled = 3; @@ -917,15 +970,18 @@ public Builder clearSharingWithGoogleAssignedSalesEnabled() { * * *
-     * Allows any of Google sales to access the data in order to suggest
-     * configuration changes to improve results.
+     * Deprecated. This field is no longer used and always returns false.
      * 
* - * bool sharing_with_google_any_sales_enabled = 4; + * bool sharing_with_google_any_sales_enabled = 4 [deprecated = true]; * + * @deprecated + * google.analytics.admin.v1beta.DataSharingSettings.sharing_with_google_any_sales_enabled + * is deprecated. See google/analytics/admin/v1beta/resources.proto;l=561 * @return The sharingWithGoogleAnySalesEnabled. */ @java.lang.Override + @java.lang.Deprecated public boolean getSharingWithGoogleAnySalesEnabled() { return sharingWithGoogleAnySalesEnabled_; } @@ -934,15 +990,18 @@ public boolean getSharingWithGoogleAnySalesEnabled() { * * *
-     * Allows any of Google sales to access the data in order to suggest
-     * configuration changes to improve results.
+     * Deprecated. This field is no longer used and always returns false.
      * 
* - * bool sharing_with_google_any_sales_enabled = 4; + * bool sharing_with_google_any_sales_enabled = 4 [deprecated = true]; * + * @deprecated + * google.analytics.admin.v1beta.DataSharingSettings.sharing_with_google_any_sales_enabled + * is deprecated. See google/analytics/admin/v1beta/resources.proto;l=561 * @param value The sharingWithGoogleAnySalesEnabled to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setSharingWithGoogleAnySalesEnabled(boolean value) { sharingWithGoogleAnySalesEnabled_ = value; @@ -955,14 +1014,17 @@ public Builder setSharingWithGoogleAnySalesEnabled(boolean value) { * * *
-     * Allows any of Google sales to access the data in order to suggest
-     * configuration changes to improve results.
+     * Deprecated. This field is no longer used and always returns false.
      * 
* - * bool sharing_with_google_any_sales_enabled = 4; + * bool sharing_with_google_any_sales_enabled = 4 [deprecated = true]; * + * @deprecated + * google.analytics.admin.v1beta.DataSharingSettings.sharing_with_google_any_sales_enabled + * is deprecated. See google/analytics/admin/v1beta/resources.proto;l=561 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearSharingWithGoogleAnySalesEnabled() { bitField0_ = (bitField0_ & ~0x00000008); sharingWithGoogleAnySalesEnabled_ = false; @@ -977,6 +1039,9 @@ public Builder clearSharingWithGoogleAnySalesEnabled() { * *
      * Allows Google to use the data to improve other Google products or services.
+     *
+     * This fields maps to the "Google products & services" field in the Google
+     * Analytics Admin UI.
      * 
* * bool sharing_with_google_products_enabled = 5; @@ -993,6 +1058,9 @@ public boolean getSharingWithGoogleProductsEnabled() { * *
      * Allows Google to use the data to improve other Google products or services.
+     *
+     * This fields maps to the "Google products & services" field in the Google
+     * Analytics Admin UI.
      * 
* * bool sharing_with_google_products_enabled = 5; @@ -1013,6 +1081,9 @@ public Builder setSharingWithGoogleProductsEnabled(boolean value) { * *
      * Allows Google to use the data to improve other Google products or services.
+     *
+     * This fields maps to the "Google products & services" field in the Google
+     * Analytics Admin UI.
      * 
* * bool sharing_with_google_products_enabled = 5; @@ -1032,7 +1103,14 @@ public Builder clearSharingWithGoogleProductsEnabled() { * * *
-     * Allows Google to share the data anonymously in aggregate form with others.
+     * Enable features like predictions, modeled data, and benchmarking that can
+     * provide you with richer business insights when you contribute aggregated
+     * measurement data. The data you share (including information about the
+     * property from which it is shared) is aggregated and de-identified before
+     * being used to generate business insights.
+     *
+     * This field maps to the "Modeling contributions & business insights" field
+     * in the Google Analytics Admin UI.
      * 
* * bool sharing_with_others_enabled = 6; @@ -1048,7 +1126,14 @@ public boolean getSharingWithOthersEnabled() { * * *
-     * Allows Google to share the data anonymously in aggregate form with others.
+     * Enable features like predictions, modeled data, and benchmarking that can
+     * provide you with richer business insights when you contribute aggregated
+     * measurement data. The data you share (including information about the
+     * property from which it is shared) is aggregated and de-identified before
+     * being used to generate business insights.
+     *
+     * This field maps to the "Modeling contributions & business insights" field
+     * in the Google Analytics Admin UI.
      * 
* * bool sharing_with_others_enabled = 6; @@ -1068,7 +1153,14 @@ public Builder setSharingWithOthersEnabled(boolean value) { * * *
-     * Allows Google to share the data anonymously in aggregate form with others.
+     * Enable features like predictions, modeled data, and benchmarking that can
+     * provide you with richer business insights when you contribute aggregated
+     * measurement data. The data you share (including information about the
+     * property from which it is shared) is aggregated and de-identified before
+     * being used to generate business insights.
+     *
+     * This field maps to the "Modeling contributions & business insights" field
+     * in the Google Analytics Admin UI.
      * 
* * bool sharing_with_others_enabled = 6; diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsOrBuilder.java index fdbe21868c1d..e9536302590b 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsOrBuilder.java @@ -30,12 +30,12 @@ public interface DataSharingSettingsOrBuilder * * *
-   * Output only. Resource name.
+   * Identifier. Resource name.
    * Format: accounts/{account}/dataSharingSettings
    * Example: "accounts/1000/dataSharingSettings"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface DataSharingSettingsOrBuilder * * *
-   * Output only. Resource name.
+   * Identifier. Resource name.
    * Format: accounts/{account}/dataSharingSettings
    * Example: "accounts/1000/dataSharingSettings"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -60,8 +60,12 @@ public interface DataSharingSettingsOrBuilder * * *
-   * Allows Google support to access the data in order to help troubleshoot
-   * issues.
+   * Allows Google technical support representatives access to your Google
+   * Analytics data and account when necessary to provide service and find
+   * solutions to technical issues.
+   *
+   * This field maps to the "Technical support" field in the Google Analytics
+   * Admin UI.
    * 
* * bool sharing_with_google_support_enabled = 2; @@ -74,9 +78,15 @@ public interface DataSharingSettingsOrBuilder * * *
-   * Allows Google sales teams that are assigned to the customer to access the
-   * data in order to suggest configuration changes to improve results.
-   * Sales team restrictions still apply when enabled.
+   * Allows Google access to your Google Analytics account data, including
+   * account usage and configuration data, product spending, and users
+   * associated with your Google Analytics account, so that Google can help you
+   * make the most of Google products, providing you with insights, offers,
+   * recommendations, and optimization tips across Google Analytics and other
+   * Google products for business.
+   *
+   * This field maps to the "Recommendations for your business" field in the
+   * Google Analytics Admin UI.
    * 
* * bool sharing_with_google_assigned_sales_enabled = 3; @@ -89,14 +99,17 @@ public interface DataSharingSettingsOrBuilder * * *
-   * Allows any of Google sales to access the data in order to suggest
-   * configuration changes to improve results.
+   * Deprecated. This field is no longer used and always returns false.
    * 
* - * bool sharing_with_google_any_sales_enabled = 4; + * bool sharing_with_google_any_sales_enabled = 4 [deprecated = true]; * + * @deprecated + * google.analytics.admin.v1beta.DataSharingSettings.sharing_with_google_any_sales_enabled is + * deprecated. See google/analytics/admin/v1beta/resources.proto;l=561 * @return The sharingWithGoogleAnySalesEnabled. */ + @java.lang.Deprecated boolean getSharingWithGoogleAnySalesEnabled(); /** @@ -104,6 +117,9 @@ public interface DataSharingSettingsOrBuilder * *
    * Allows Google to use the data to improve other Google products or services.
+   *
+   * This fields maps to the "Google products & services" field in the Google
+   * Analytics Admin UI.
    * 
* * bool sharing_with_google_products_enabled = 5; @@ -116,7 +132,14 @@ public interface DataSharingSettingsOrBuilder * * *
-   * Allows Google to share the data anonymously in aggregate form with others.
+   * Enable features like predictions, modeled data, and benchmarking that can
+   * provide you with richer business insights when you contribute aggregated
+   * measurement data. The data you share (including information about the
+   * property from which it is shared) is aggregated and de-identified before
+   * being used to generate business insights.
+   *
+   * This field maps to the "Modeling contributions & business insights" field
+   * in the Google Analytics Admin UI.
    * 
* * bool sharing_with_others_enabled = 6; diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStream.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStream.java index c32c737571aa..e54ae09174ea 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStream.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStream.java @@ -3307,12 +3307,12 @@ public com.google.analytics.admin.v1beta.DataStream.IosAppStreamData getIosAppSt * * *
-   * Output only. Resource name of this Data Stream.
+   * Identifier. Resource name of this Data Stream.
    * Format: properties/{property_id}/dataStreams/{stream_id}
    * Example: "properties/1000/dataStreams/2000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -3333,12 +3333,12 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name of this Data Stream.
+   * Identifier. Resource name of this Data Stream.
    * Format: properties/{property_id}/dataStreams/{stream_id}
    * Example: "properties/1000/dataStreams/2000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -4880,12 +4880,12 @@ public Builder clearIosAppStreamData() { * * *
-     * Output only. Resource name of this Data Stream.
+     * Identifier. Resource name of this Data Stream.
      * Format: properties/{property_id}/dataStreams/{stream_id}
      * Example: "properties/1000/dataStreams/2000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -4905,12 +4905,12 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name of this Data Stream.
+     * Identifier. Resource name of this Data Stream.
      * Format: properties/{property_id}/dataStreams/{stream_id}
      * Example: "properties/1000/dataStreams/2000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -4930,12 +4930,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name of this Data Stream.
+     * Identifier. Resource name of this Data Stream.
      * Format: properties/{property_id}/dataStreams/{stream_id}
      * Example: "properties/1000/dataStreams/2000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -4954,12 +4954,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name of this Data Stream.
+     * Identifier. Resource name of this Data Stream.
      * Format: properties/{property_id}/dataStreams/{stream_id}
      * Example: "properties/1000/dataStreams/2000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -4974,12 +4974,12 @@ public Builder clearName() { * * *
-     * Output only. Resource name of this Data Stream.
+     * Identifier. Resource name of this Data Stream.
      * Format: properties/{property_id}/dataStreams/{stream_id}
      * Example: "properties/1000/dataStreams/2000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamOrBuilder.java index 0bd738bd483d..d834ad7b4416 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamOrBuilder.java @@ -161,12 +161,12 @@ public interface DataStreamOrBuilder * * *
-   * Output only. Resource name of this Data Stream.
+   * Identifier. Resource name of this Data Stream.
    * Format: properties/{property_id}/dataStreams/{stream_id}
    * Example: "properties/1000/dataStreams/2000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -176,12 +176,12 @@ public interface DataStreamOrBuilder * * *
-   * Output only. Resource name of this Data Stream.
+   * Identifier. Resource name of this Data Stream.
    * Format: properties/{property_id}/dataStreams/{stream_id}
    * Example: "properties/1000/dataStreams/2000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLink.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLink.java index d115fbb36fbe..3486e19ee6c9 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLink.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLink.java @@ -81,10 +81,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Example format: properties/1234/firebaseLinks/5678
+   * Identifier. Example format: properties/1234/firebaseLinks/5678
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -105,10 +105,10 @@ public java.lang.String getName() { * * *
-   * Output only. Example format: properties/1234/firebaseLinks/5678
+   * Identifier. Example format: properties/1234/firebaseLinks/5678
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -625,10 +625,10 @@ public Builder mergeFrom( * * *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * Identifier. Example format: properties/1234/firebaseLinks/5678
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -648,10 +648,10 @@ public java.lang.String getName() { * * *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * Identifier. Example format: properties/1234/firebaseLinks/5678
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -671,10 +671,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * Identifier. Example format: properties/1234/firebaseLinks/5678
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -693,10 +693,10 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * Identifier. Example format: properties/1234/firebaseLinks/5678
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -711,10 +711,10 @@ public Builder clearName() { * * *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * Identifier. Example format: properties/1234/firebaseLinks/5678
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkOrBuilder.java index 30e504762d4a..b7add34cb06f 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkOrBuilder.java @@ -30,10 +30,10 @@ public interface FirebaseLinkOrBuilder * * *
-   * Output only. Example format: properties/1234/firebaseLinks/5678
+   * Identifier. Example format: properties/1234/firebaseLinks/5678
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -43,10 +43,10 @@ public interface FirebaseLinkOrBuilder * * *
-   * Output only. Example format: properties/1234/firebaseLinks/5678
+   * Identifier. Example format: properties/1234/firebaseLinks/5678
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLink.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLink.java index 67907d19fb9f..7b66e0a10fc0 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLink.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLink.java @@ -82,13 +82,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Format:
+   * Identifier. Format:
    * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
    *
    * Note: googleAdsLinkId is not the Google Ads customer ID.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -109,13 +109,13 @@ public java.lang.String getName() { * * *
-   * Output only. Format:
+   * Identifier. Format:
    * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
    *
    * Note: googleAdsLinkId is not the Google Ads customer ID.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -930,13 +930,13 @@ public Builder mergeFrom( * * *
-     * Output only. Format:
+     * Identifier. Format:
      * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
      *
      * Note: googleAdsLinkId is not the Google Ads customer ID.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -956,13 +956,13 @@ public java.lang.String getName() { * * *
-     * Output only. Format:
+     * Identifier. Format:
      * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
      *
      * Note: googleAdsLinkId is not the Google Ads customer ID.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -982,13 +982,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Format:
+     * Identifier. Format:
      * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
      *
      * Note: googleAdsLinkId is not the Google Ads customer ID.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1007,13 +1007,13 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Format:
+     * Identifier. Format:
      * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
      *
      * Note: googleAdsLinkId is not the Google Ads customer ID.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1028,13 +1028,13 @@ public Builder clearName() { * * *
-     * Output only. Format:
+     * Identifier. Format:
      * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
      *
      * Note: googleAdsLinkId is not the Google Ads customer ID.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkOrBuilder.java index 16dc55c0de42..f035e1cd9326 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkOrBuilder.java @@ -30,13 +30,13 @@ public interface GoogleAdsLinkOrBuilder * * *
-   * Output only. Format:
+   * Identifier. Format:
    * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
    *
    * Note: googleAdsLinkId is not the Google Ads customer ID.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -46,13 +46,13 @@ public interface GoogleAdsLinkOrBuilder * * *
-   * Output only. Format:
+   * Identifier. Format:
    * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
    *
    * Note: googleAdsLinkId is not the Google Ads customer ID.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequest.java index 1f4a45ed158c..0acb74324465 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequest.java @@ -77,13 +77,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The maximum number of AccountSummary resources to return. The service may
-   * return fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * Optional. The maximum number of AccountSummary resources to return. The
+   * service may return fewer than this value, even if there are additional
+   * pages. If unspecified, at most 50 resources will be returned. The maximum
+   * value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -101,13 +101,13 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListAccountSummaries` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccountSummaries`
-   * must match the call that provided the page token.
+   * Optional. A page token, received from a previous `ListAccountSummaries`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListAccountSummaries` must match the call
+   * that provided the page token.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -128,13 +128,13 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListAccountSummaries` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccountSummaries`
-   * must match the call that provided the page token.
+   * Optional. A page token, received from a previous `ListAccountSummaries`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListAccountSummaries` must match the call
+   * that provided the page token.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -493,13 +493,13 @@ public Builder mergeFrom( * * *
-     * The maximum number of AccountSummary resources to return. The service may
-     * return fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * Optional. The maximum number of AccountSummary resources to return. The
+     * service may return fewer than this value, even if there are additional
+     * pages. If unspecified, at most 50 resources will be returned. The maximum
+     * value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -512,13 +512,13 @@ public int getPageSize() { * * *
-     * The maximum number of AccountSummary resources to return. The service may
-     * return fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * Optional. The maximum number of AccountSummary resources to return. The
+     * service may return fewer than this value, even if there are additional
+     * pages. If unspecified, at most 50 resources will be returned. The maximum
+     * value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -535,13 +535,13 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of AccountSummary resources to return. The service may
-     * return fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * Optional. The maximum number of AccountSummary resources to return. The
+     * service may return fewer than this value, even if there are additional
+     * pages. If unspecified, at most 50 resources will be returned. The maximum
+     * value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -558,13 +558,13 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListAccountSummaries` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccountSummaries`
-     * must match the call that provided the page token.
+     * Optional. A page token, received from a previous `ListAccountSummaries`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListAccountSummaries` must match the call
+     * that provided the page token.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -584,13 +584,13 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListAccountSummaries` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccountSummaries`
-     * must match the call that provided the page token.
+     * Optional. A page token, received from a previous `ListAccountSummaries`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListAccountSummaries` must match the call
+     * that provided the page token.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -610,13 +610,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListAccountSummaries` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccountSummaries`
-     * must match the call that provided the page token.
+     * Optional. A page token, received from a previous `ListAccountSummaries`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListAccountSummaries` must match the call
+     * that provided the page token.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -635,13 +635,13 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListAccountSummaries` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccountSummaries`
-     * must match the call that provided the page token.
+     * Optional. A page token, received from a previous `ListAccountSummaries`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListAccountSummaries` must match the call
+     * that provided the page token.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -656,13 +656,13 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListAccountSummaries` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccountSummaries`
-     * must match the call that provided the page token.
+     * Optional. A page token, received from a previous `ListAccountSummaries`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListAccountSummaries` must match the call
+     * that provided the page token.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequestOrBuilder.java index d76cbaa070ad..cb2913a96b72 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequestOrBuilder.java @@ -30,13 +30,13 @@ public interface ListAccountSummariesRequestOrBuilder * * *
-   * The maximum number of AccountSummary resources to return. The service may
-   * return fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * Optional. The maximum number of AccountSummary resources to return. The
+   * service may return fewer than this value, even if there are additional
+   * pages. If unspecified, at most 50 resources will be returned. The maximum
+   * value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -46,13 +46,13 @@ public interface ListAccountSummariesRequestOrBuilder * * *
-   * A page token, received from a previous `ListAccountSummaries` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccountSummaries`
-   * must match the call that provided the page token.
+   * Optional. A page token, received from a previous `ListAccountSummaries`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListAccountSummaries` must match the call
+   * that provided the page token.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -62,13 +62,13 @@ public interface ListAccountSummariesRequestOrBuilder * * *
-   * A page token, received from a previous `ListAccountSummaries` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccountSummaries`
-   * must match the call that provided the page token.
+   * Optional. A page token, received from a previous `ListAccountSummaries`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListAccountSummaries` must match the call
+   * that provided the page token.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequest.java index bc739e9c9bc7..987c7e2eacb9 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequest.java @@ -77,13 +77,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. The maximum number of resources to return. The service may return
    * fewer than this value, even if there are additional pages.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -101,13 +101,13 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListAccounts` call.
+   * Optional. A page token, received from a previous `ListAccounts` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListAccounts` must
    * match the call that provided the page token.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -128,13 +128,13 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListAccounts` call.
+   * Optional. A page token, received from a previous `ListAccounts` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListAccounts` must
    * match the call that provided the page token.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -533,13 +533,13 @@ public Builder mergeFrom( * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -552,13 +552,13 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -575,13 +575,13 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -598,13 +598,13 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListAccounts` call.
+     * Optional. A page token, received from a previous `ListAccounts` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListAccounts` must
      * match the call that provided the page token.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -624,13 +624,13 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListAccounts` call.
+     * Optional. A page token, received from a previous `ListAccounts` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListAccounts` must
      * match the call that provided the page token.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -650,13 +650,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListAccounts` call.
+     * Optional. A page token, received from a previous `ListAccounts` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListAccounts` must
      * match the call that provided the page token.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -675,13 +675,13 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListAccounts` call.
+     * Optional. A page token, received from a previous `ListAccounts` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListAccounts` must
      * match the call that provided the page token.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -696,13 +696,13 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListAccounts` call.
+     * Optional. A page token, received from a previous `ListAccounts` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListAccounts` must
      * match the call that provided the page token.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequestOrBuilder.java index 7e96de060cd0..bb83518340f8 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequestOrBuilder.java @@ -30,13 +30,13 @@ public interface ListAccountsRequestOrBuilder * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. The maximum number of resources to return. The service may return
    * fewer than this value, even if there are additional pages.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -46,13 +46,13 @@ public interface ListAccountsRequestOrBuilder * * *
-   * A page token, received from a previous `ListAccounts` call.
+   * Optional. A page token, received from a previous `ListAccounts` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListAccounts` must
    * match the call that provided the page token.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -62,13 +62,13 @@ public interface ListAccountsRequestOrBuilder * * *
-   * A page token, received from a previous `ListAccounts` call.
+   * Optional. A page token, received from a previous `ListAccounts` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListAccounts` must
    * match the call that provided the page token.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequest.java index db4b45b3cd57..c04ec8e3c1ce 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequest.java @@ -137,12 +137,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of resources to return.
+   * Optional. The maximum number of resources to return.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -160,13 +160,13 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListConversionEvents` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListConversionEvents`
-   * must match the call that provided the page token.
+   * Optional. A page token, received from a previous `ListConversionEvents`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListConversionEvents` must match the call
+   * that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -187,13 +187,13 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListConversionEvents` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListConversionEvents`
-   * must match the call that provided the page token.
+   * Optional. A page token, received from a previous `ListConversionEvents`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListConversionEvents` must match the call
+   * that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -702,12 +702,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -720,12 +720,12 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -742,12 +742,12 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -764,13 +764,13 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListConversionEvents` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListConversionEvents`
-     * must match the call that provided the page token.
+     * Optional. A page token, received from a previous `ListConversionEvents`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListConversionEvents` must match the call
+     * that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -790,13 +790,13 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListConversionEvents` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListConversionEvents`
-     * must match the call that provided the page token.
+     * Optional. A page token, received from a previous `ListConversionEvents`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListConversionEvents` must match the call
+     * that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -816,13 +816,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListConversionEvents` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListConversionEvents`
-     * must match the call that provided the page token.
+     * Optional. A page token, received from a previous `ListConversionEvents`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListConversionEvents` must match the call
+     * that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -841,13 +841,13 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListConversionEvents` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListConversionEvents`
-     * must match the call that provided the page token.
+     * Optional. A page token, received from a previous `ListConversionEvents`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListConversionEvents` must match the call
+     * that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -862,13 +862,13 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListConversionEvents` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListConversionEvents`
-     * must match the call that provided the page token.
+     * Optional. A page token, received from a previous `ListConversionEvents`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListConversionEvents` must match the call
+     * that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequestOrBuilder.java index 75fa06bff867..303a183633e1 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequestOrBuilder.java @@ -62,12 +62,12 @@ public interface ListConversionEventsRequestOrBuilder * * *
-   * The maximum number of resources to return.
+   * Optional. The maximum number of resources to return.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -77,13 +77,13 @@ public interface ListConversionEventsRequestOrBuilder * * *
-   * A page token, received from a previous `ListConversionEvents` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListConversionEvents`
-   * must match the call that provided the page token.
+   * Optional. A page token, received from a previous `ListConversionEvents`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListConversionEvents` must match the call
+   * that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -93,13 +93,13 @@ public interface ListConversionEventsRequestOrBuilder * * *
-   * A page token, received from a previous `ListConversionEvents` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListConversionEvents`
-   * must match the call that provided the page token.
+   * Optional. A page token, received from a previous `ListConversionEvents`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListConversionEvents` must match the call
+   * that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequest.java index 6d1c3bd34279..91e99b18dbce 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequest.java @@ -135,12 +135,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of resources to return.
+   * Optional. The maximum number of resources to return.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200 (higher values will be coerced to the maximum).
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -158,14 +158,14 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListCustomDimensions` call.
-   * Provide this to retrieve the subsequent page.
+   * Optional. A page token, received from a previous `ListCustomDimensions`
+   * call. Provide this to retrieve the subsequent page.
    *
    * When paginating, all other parameters provided to `ListCustomDimensions`
    * must match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -186,14 +186,14 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListCustomDimensions` call.
-   * Provide this to retrieve the subsequent page.
+   * Optional. A page token, received from a previous `ListCustomDimensions`
+   * call. Provide this to retrieve the subsequent page.
    *
    * When paginating, all other parameters provided to `ListCustomDimensions`
    * must match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -697,12 +697,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200 (higher values will be coerced to the maximum).
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -715,12 +715,12 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200 (higher values will be coerced to the maximum).
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -737,12 +737,12 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200 (higher values will be coerced to the maximum).
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -759,14 +759,14 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
+     * Optional. A page token, received from a previous `ListCustomDimensions`
+     * call. Provide this to retrieve the subsequent page.
      *
      * When paginating, all other parameters provided to `ListCustomDimensions`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -786,14 +786,14 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
+     * Optional. A page token, received from a previous `ListCustomDimensions`
+     * call. Provide this to retrieve the subsequent page.
      *
      * When paginating, all other parameters provided to `ListCustomDimensions`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -813,14 +813,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
+     * Optional. A page token, received from a previous `ListCustomDimensions`
+     * call. Provide this to retrieve the subsequent page.
      *
      * When paginating, all other parameters provided to `ListCustomDimensions`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -839,14 +839,14 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
+     * Optional. A page token, received from a previous `ListCustomDimensions`
+     * call. Provide this to retrieve the subsequent page.
      *
      * When paginating, all other parameters provided to `ListCustomDimensions`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -861,14 +861,14 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
+     * Optional. A page token, received from a previous `ListCustomDimensions`
+     * call. Provide this to retrieve the subsequent page.
      *
      * When paginating, all other parameters provided to `ListCustomDimensions`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequestOrBuilder.java index ad7e39424549..9ca5d9fd8a7b 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequestOrBuilder.java @@ -60,12 +60,12 @@ public interface ListCustomDimensionsRequestOrBuilder * * *
-   * The maximum number of resources to return.
+   * Optional. The maximum number of resources to return.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200 (higher values will be coerced to the maximum).
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -75,14 +75,14 @@ public interface ListCustomDimensionsRequestOrBuilder * * *
-   * A page token, received from a previous `ListCustomDimensions` call.
-   * Provide this to retrieve the subsequent page.
+   * Optional. A page token, received from a previous `ListCustomDimensions`
+   * call. Provide this to retrieve the subsequent page.
    *
    * When paginating, all other parameters provided to `ListCustomDimensions`
    * must match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -92,14 +92,14 @@ public interface ListCustomDimensionsRequestOrBuilder * * *
-   * A page token, received from a previous `ListCustomDimensions` call.
-   * Provide this to retrieve the subsequent page.
+   * Optional. A page token, received from a previous `ListCustomDimensions`
+   * call. Provide this to retrieve the subsequent page.
    *
    * When paginating, all other parameters provided to `ListCustomDimensions`
    * must match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java index 9a5d24628d5b..fa79aaef40ab 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java @@ -139,13 +139,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. The maximum number of resources to return. The service may return
    * fewer than this value, even if there are additional pages.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -163,13 +163,13 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListFirebaseLinks` call.
+   * Optional. A page token, received from a previous `ListFirebaseLinks` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListFirebaseLinks` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -190,13 +190,13 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListFirebaseLinks` call.
+   * Optional. A page token, received from a previous `ListFirebaseLinks` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListFirebaseLinks` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -707,13 +707,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -726,13 +726,13 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -749,13 +749,13 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -772,13 +772,13 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Optional. A page token, received from a previous `ListFirebaseLinks` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListFirebaseLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -798,13 +798,13 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Optional. A page token, received from a previous `ListFirebaseLinks` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListFirebaseLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -824,13 +824,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Optional. A page token, received from a previous `ListFirebaseLinks` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListFirebaseLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -849,13 +849,13 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Optional. A page token, received from a previous `ListFirebaseLinks` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListFirebaseLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -870,13 +870,13 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Optional. A page token, received from a previous `ListFirebaseLinks` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListFirebaseLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java index ea61d3bc236f..0b186a4b2f74 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java @@ -64,13 +64,13 @@ public interface ListFirebaseLinksRequestOrBuilder * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. The maximum number of resources to return. The service may return
    * fewer than this value, even if there are additional pages.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -80,13 +80,13 @@ public interface ListFirebaseLinksRequestOrBuilder * * *
-   * A page token, received from a previous `ListFirebaseLinks` call.
+   * Optional. A page token, received from a previous `ListFirebaseLinks` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListFirebaseLinks` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -96,13 +96,13 @@ public interface ListFirebaseLinksRequestOrBuilder * * *
-   * A page token, received from a previous `ListFirebaseLinks` call.
+   * Optional. A page token, received from a previous `ListFirebaseLinks` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListFirebaseLinks` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequest.java index 69ee64e10c5e..1098b63c6b97 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequest.java @@ -135,12 +135,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of resources to return.
+   * Optional. The maximum number of resources to return.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200 (higher values will be coerced to the maximum).
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -158,14 +158,14 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListGoogleAdsLinks` call.
+   * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
    * Provide this to retrieve the subsequent page.
    *
    * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -186,14 +186,14 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListGoogleAdsLinks` call.
+   * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
    * Provide this to retrieve the subsequent page.
    *
    * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -694,12 +694,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200 (higher values will be coerced to the maximum).
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -712,12 +712,12 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200 (higher values will be coerced to the maximum).
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -734,12 +734,12 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200 (higher values will be coerced to the maximum).
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -756,14 +756,14 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
      * Provide this to retrieve the subsequent page.
      *
      * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -783,14 +783,14 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
      * Provide this to retrieve the subsequent page.
      *
      * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -810,14 +810,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
      * Provide this to retrieve the subsequent page.
      *
      * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -836,14 +836,14 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
      * Provide this to retrieve the subsequent page.
      *
      * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -858,14 +858,14 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
      * Provide this to retrieve the subsequent page.
      *
      * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequestOrBuilder.java index 695192660ee1..bd262b2e4f1a 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequestOrBuilder.java @@ -60,12 +60,12 @@ public interface ListGoogleAdsLinksRequestOrBuilder * * *
-   * The maximum number of resources to return.
+   * Optional. The maximum number of resources to return.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200 (higher values will be coerced to the maximum).
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -75,14 +75,14 @@ public interface ListGoogleAdsLinksRequestOrBuilder * * *
-   * A page token, received from a previous `ListGoogleAdsLinks` call.
+   * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
    * Provide this to retrieve the subsequent page.
    *
    * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -92,14 +92,14 @@ public interface ListGoogleAdsLinksRequestOrBuilder * * *
-   * A page token, received from a previous `ListGoogleAdsLinks` call.
+   * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
    * Provide this to retrieve the subsequent page.
    *
    * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequest.java index 4c15a3a9f46f..6896989d29ff 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequest.java @@ -137,12 +137,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of resources to return.
+   * Optional. The maximum number of resources to return.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -160,13 +160,13 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListKeyEvents` call.
+   * Optional. A page token, received from a previous `ListKeyEvents` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListKeyEvents`
    * must match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -187,13 +187,13 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListKeyEvents` call.
+   * Optional. A page token, received from a previous `ListKeyEvents` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListKeyEvents`
    * must match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -699,12 +699,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -717,12 +717,12 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -739,12 +739,12 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -761,13 +761,13 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListKeyEvents` call.
+     * Optional. A page token, received from a previous `ListKeyEvents` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListKeyEvents`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -787,13 +787,13 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListKeyEvents` call.
+     * Optional. A page token, received from a previous `ListKeyEvents` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListKeyEvents`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -813,13 +813,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListKeyEvents` call.
+     * Optional. A page token, received from a previous `ListKeyEvents` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListKeyEvents`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -838,13 +838,13 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListKeyEvents` call.
+     * Optional. A page token, received from a previous `ListKeyEvents` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListKeyEvents`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -859,13 +859,13 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListKeyEvents` call.
+     * Optional. A page token, received from a previous `ListKeyEvents` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListKeyEvents`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequestOrBuilder.java index 708847f236b9..9135771c73eb 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequestOrBuilder.java @@ -62,12 +62,12 @@ public interface ListKeyEventsRequestOrBuilder * * *
-   * The maximum number of resources to return.
+   * Optional. The maximum number of resources to return.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -77,13 +77,13 @@ public interface ListKeyEventsRequestOrBuilder * * *
-   * A page token, received from a previous `ListKeyEvents` call.
+   * Optional. A page token, received from a previous `ListKeyEvents` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListKeyEvents`
    * must match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -93,13 +93,13 @@ public interface ListKeyEventsRequestOrBuilder * * *
-   * A page token, received from a previous `ListKeyEvents` call.
+   * Optional. A page token, received from a previous `ListKeyEvents` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListKeyEvents`
    * must match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequest.java index 2ed397f8e111..32772e5f0e68 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequest.java @@ -141,12 +141,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of resources to return.
+   * Optional. The maximum number of resources to return.
    * If unspecified, at most 10 resources will be returned.
    * The maximum value is 10. Higher values will be coerced to the maximum.
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -164,13 +164,14 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListMeasurementProtocolSecrets`
-   * call. Provide this to retrieve the subsequent page. When paginating, all
-   * other parameters provided to `ListMeasurementProtocolSecrets` must match
-   * the call that provided the page token.
+   * Optional. A page token, received from a previous
+   * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
+   * subsequent page. When paginating, all other parameters provided to
+   * `ListMeasurementProtocolSecrets` must match the call that provided the page
+   * token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -191,13 +192,14 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListMeasurementProtocolSecrets`
-   * call. Provide this to retrieve the subsequent page. When paginating, all
-   * other parameters provided to `ListMeasurementProtocolSecrets` must match
-   * the call that provided the page token.
+   * Optional. A page token, received from a previous
+   * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
+   * subsequent page. When paginating, all other parameters provided to
+   * `ListMeasurementProtocolSecrets` must match the call that provided the page
+   * token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -719,12 +721,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 10 resources will be returned.
      * The maximum value is 10. Higher values will be coerced to the maximum.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -737,12 +739,12 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 10 resources will be returned.
      * The maximum value is 10. Higher values will be coerced to the maximum.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -759,12 +761,12 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 10 resources will be returned.
      * The maximum value is 10. Higher values will be coerced to the maximum.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -781,13 +783,14 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListMeasurementProtocolSecrets`
-     * call. Provide this to retrieve the subsequent page. When paginating, all
-     * other parameters provided to `ListMeasurementProtocolSecrets` must match
-     * the call that provided the page token.
+     * Optional. A page token, received from a previous
+     * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListMeasurementProtocolSecrets` must match the call that provided the page
+     * token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -807,13 +810,14 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListMeasurementProtocolSecrets`
-     * call. Provide this to retrieve the subsequent page. When paginating, all
-     * other parameters provided to `ListMeasurementProtocolSecrets` must match
-     * the call that provided the page token.
+     * Optional. A page token, received from a previous
+     * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListMeasurementProtocolSecrets` must match the call that provided the page
+     * token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -833,13 +837,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListMeasurementProtocolSecrets`
-     * call. Provide this to retrieve the subsequent page. When paginating, all
-     * other parameters provided to `ListMeasurementProtocolSecrets` must match
-     * the call that provided the page token.
+     * Optional. A page token, received from a previous
+     * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListMeasurementProtocolSecrets` must match the call that provided the page
+     * token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -858,13 +863,14 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListMeasurementProtocolSecrets`
-     * call. Provide this to retrieve the subsequent page. When paginating, all
-     * other parameters provided to `ListMeasurementProtocolSecrets` must match
-     * the call that provided the page token.
+     * Optional. A page token, received from a previous
+     * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListMeasurementProtocolSecrets` must match the call that provided the page
+     * token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -879,13 +885,14 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListMeasurementProtocolSecrets`
-     * call. Provide this to retrieve the subsequent page. When paginating, all
-     * other parameters provided to `ListMeasurementProtocolSecrets` must match
-     * the call that provided the page token.
+     * Optional. A page token, received from a previous
+     * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListMeasurementProtocolSecrets` must match the call that provided the page
+     * token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequestOrBuilder.java index c4b2c6a339ef..d1f643c8eae7 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequestOrBuilder.java @@ -64,12 +64,12 @@ public interface ListMeasurementProtocolSecretsRequestOrBuilder * * *
-   * The maximum number of resources to return.
+   * Optional. The maximum number of resources to return.
    * If unspecified, at most 10 resources will be returned.
    * The maximum value is 10. Higher values will be coerced to the maximum.
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -79,13 +79,14 @@ public interface ListMeasurementProtocolSecretsRequestOrBuilder * * *
-   * A page token, received from a previous `ListMeasurementProtocolSecrets`
-   * call. Provide this to retrieve the subsequent page. When paginating, all
-   * other parameters provided to `ListMeasurementProtocolSecrets` must match
-   * the call that provided the page token.
+   * Optional. A page token, received from a previous
+   * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
+   * subsequent page. When paginating, all other parameters provided to
+   * `ListMeasurementProtocolSecrets` must match the call that provided the page
+   * token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -95,13 +96,14 @@ public interface ListMeasurementProtocolSecretsRequestOrBuilder * * *
-   * A page token, received from a previous `ListMeasurementProtocolSecrets`
-   * call. Provide this to retrieve the subsequent page. When paginating, all
-   * other parameters provided to `ListMeasurementProtocolSecrets` must match
-   * the call that provided the page token.
+   * Optional. A page token, received from a previous
+   * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
+   * subsequent page. When paginating, all other parameters provided to
+   * `ListMeasurementProtocolSecrets` must match the call that provided the page
+   * token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequest.java index 5ae791789b2b..07a0c86993b9 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequest.java @@ -161,13 +161,13 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. The maximum number of resources to return. The service may return
    * fewer than this value, even if there are additional pages.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -185,13 +185,13 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListProperties` call.
+   * Optional. A page token, received from a previous `ListProperties` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListProperties` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -212,13 +212,13 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListProperties` call.
+   * Optional. A page token, received from a previous `ListProperties` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListProperties` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -827,13 +827,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -846,13 +846,13 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -869,13 +869,13 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -892,13 +892,13 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListProperties` call.
+     * Optional. A page token, received from a previous `ListProperties` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListProperties` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -918,13 +918,13 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListProperties` call.
+     * Optional. A page token, received from a previous `ListProperties` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListProperties` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -944,13 +944,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListProperties` call.
+     * Optional. A page token, received from a previous `ListProperties` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListProperties` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -969,13 +969,13 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListProperties` call.
+     * Optional. A page token, received from a previous `ListProperties` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListProperties` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -990,13 +990,13 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListProperties` call.
+     * Optional. A page token, received from a previous `ListProperties` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListProperties` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequestOrBuilder.java index 688d85d5598e..6ff2d8622b8e 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequestOrBuilder.java @@ -86,13 +86,13 @@ public interface ListPropertiesRequestOrBuilder * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. The maximum number of resources to return. The service may return
    * fewer than this value, even if there are additional pages.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -102,13 +102,13 @@ public interface ListPropertiesRequestOrBuilder * * *
-   * A page token, received from a previous `ListProperties` call.
+   * Optional. A page token, received from a previous `ListProperties` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListProperties` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -118,13 +118,13 @@ public interface ListPropertiesRequestOrBuilder * * *
-   * A page token, received from a previous `ListProperties` call.
+   * Optional. A page token, received from a previous `ListProperties` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListProperties` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecret.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecret.java index 0f7bde7a9142..8906a2e4c94a 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecret.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecret.java @@ -81,12 +81,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Resource name of this secret. This secret may be a child of
-   * any type of stream. Format:
+   * Identifier. Resource name of this secret. This secret may be a child of any
+   * type of stream. Format:
    * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -107,12 +107,12 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name of this secret. This secret may be a child of
-   * any type of stream. Format:
+   * Identifier. Resource name of this secret. This secret may be a child of any
+   * type of stream. Format:
    * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -604,12 +604,12 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
+     * Identifier. Resource name of this secret. This secret may be a child of any
+     * type of stream. Format:
      * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -629,12 +629,12 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
+     * Identifier. Resource name of this secret. This secret may be a child of any
+     * type of stream. Format:
      * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -654,12 +654,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
+     * Identifier. Resource name of this secret. This secret may be a child of any
+     * type of stream. Format:
      * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -678,12 +678,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
+     * Identifier. Resource name of this secret. This secret may be a child of any
+     * type of stream. Format:
      * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -698,12 +698,12 @@ public Builder clearName() { * * *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
+     * Identifier. Resource name of this secret. This secret may be a child of any
+     * type of stream. Format:
      * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretOrBuilder.java index b59ccee35f4e..07ca4ca3048b 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretOrBuilder.java @@ -30,12 +30,12 @@ public interface MeasurementProtocolSecretOrBuilder * * *
-   * Output only. Resource name of this secret. This secret may be a child of
-   * any type of stream. Format:
+   * Identifier. Resource name of this secret. This secret may be a child of any
+   * type of stream. Format:
    * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface MeasurementProtocolSecretOrBuilder * * *
-   * Output only. Resource name of this secret. This secret may be a child of
-   * any type of stream. Format:
+   * Identifier. Resource name of this secret. This secret may be a child of any
+   * type of stream. Format:
    * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java index d657c7570fb4..f78ca54feec1 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java @@ -88,12 +88,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Resource name of this property.
+   * Identifier. Resource name of this property.
    * Format: properties/{property_id}
    * Example: "properties/1000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -114,12 +114,12 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name of this property.
+   * Identifier. Resource name of this property.
    * Format: properties/{property_id}
    * Example: "properties/1000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1446,12 +1446,12 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name of this property.
+     * Identifier. Resource name of this property.
      * Format: properties/{property_id}
      * Example: "properties/1000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1471,12 +1471,12 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name of this property.
+     * Identifier. Resource name of this property.
      * Format: properties/{property_id}
      * Example: "properties/1000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1496,12 +1496,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name of this property.
+     * Identifier. Resource name of this property.
      * Format: properties/{property_id}
      * Example: "properties/1000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1520,12 +1520,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name of this property.
+     * Identifier. Resource name of this property.
      * Format: properties/{property_id}
      * Example: "properties/1000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1540,12 +1540,12 @@ public Builder clearName() { * * *
-     * Output only. Resource name of this property.
+     * Identifier. Resource name of this property.
      * Format: properties/{property_id}
      * Example: "properties/1000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java index a2b2524ec7eb..f2c93200639a 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java @@ -30,12 +30,12 @@ public interface PropertyOrBuilder * * *
-   * Output only. Resource name of this property.
+   * Identifier. Resource name of this property.
    * Format: properties/{property_id}
    * Example: "properties/1000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface PropertyOrBuilder * * *
-   * Output only. Resource name of this property.
+   * Identifier. Resource name of this property.
    * Format: properties/{property_id}
    * Example: "properties/1000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummary.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummary.java index eb23bd54c899..b7177a604d33 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummary.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummary.java @@ -281,6 +281,26 @@ public com.google.protobuf.ByteString getParentBytes() { } } + public static final int CAN_EDIT_FIELD_NUMBER = 5; + private boolean canEdit_ = false; + + /** + * + * + *
+   * If true, then the user has a Google Analytics role that permits them to
+   * edit the property.
+   * 
+ * + * bool can_edit = 5; + * + * @return The canEdit. + */ + @java.lang.Override + public boolean getCanEdit() { + return canEdit_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -308,6 +328,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, parent_); } + if (canEdit_ != false) { + output.writeBool(5, canEdit_); + } getUnknownFields().writeTo(output); } @@ -330,6 +353,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, parent_); } + if (canEdit_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, canEdit_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -350,6 +376,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDisplayName().equals(other.getDisplayName())) return false; if (propertyType_ != other.propertyType_) return false; if (!getParent().equals(other.getParent())) return false; + if (getCanEdit() != other.getCanEdit()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -369,6 +396,8 @@ public int hashCode() { hash = (53 * hash) + propertyType_; hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + CAN_EDIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCanEdit()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -513,6 +542,7 @@ public Builder clear() { displayName_ = ""; propertyType_ = 0; parent_ = ""; + canEdit_ = false; return this; } @@ -561,6 +591,9 @@ private void buildPartial0(com.google.analytics.admin.v1beta.PropertySummary res if (((from_bitField0_ & 0x00000008) != 0)) { result.parent_ = parent_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.canEdit_ = canEdit_; + } } @java.lang.Override @@ -594,6 +627,9 @@ public Builder mergeFrom(com.google.analytics.admin.v1beta.PropertySummary other bitField0_ |= 0x00000008; onChanged(); } + if (other.getCanEdit() != false) { + setCanEdit(other.getCanEdit()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -644,6 +680,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 40: + { + canEdit_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1121,6 +1163,65 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } + private boolean canEdit_; + + /** + * + * + *
+     * If true, then the user has a Google Analytics role that permits them to
+     * edit the property.
+     * 
+ * + * bool can_edit = 5; + * + * @return The canEdit. + */ + @java.lang.Override + public boolean getCanEdit() { + return canEdit_; + } + + /** + * + * + *
+     * If true, then the user has a Google Analytics role that permits them to
+     * edit the property.
+     * 
+ * + * bool can_edit = 5; + * + * @param value The canEdit to set. + * @return This builder for chaining. + */ + public Builder setCanEdit(boolean value) { + + canEdit_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * If true, then the user has a Google Analytics role that permits them to
+     * edit the property.
+     * 
+ * + * bool can_edit = 5; + * + * @return This builder for chaining. + */ + public Builder clearCanEdit() { + bitField0_ = (bitField0_ & ~0x00000010); + canEdit_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.PropertySummary) } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummaryOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummaryOrBuilder.java index 3b177221eadc..9ae5fa0eb801 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummaryOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummaryOrBuilder.java @@ -141,4 +141,18 @@ public interface PropertySummaryOrBuilder * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * If true, then the user has a Google Analytics role that permits them to
+   * edit the property.
+   * 
+ * + * bool can_edit = 5; + * + * @return The canEdit. + */ + boolean getCanEdit(); } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java index 3153eddd8455..c5ddc532c08c 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java @@ -142,9 +142,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "s.proto\022\035google.analytics.admin.v1beta\032\037" + "google/api/field_behavior.proto\032\031google/" + "api/resource.proto\032\037google/protobuf/time" - + "stamp.proto\032\036google/protobuf/wrappers.proto\"\344\002\n" + + "stamp.proto\032\036google/protobuf/wrappers.proto\"\367\002\n" + "\007Account\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\0224\n" + + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\031\n" @@ -152,19 +152,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013region_code\030\005 \001(\t\022\024\n" + "\007deleted\030\006 \001(\010B\003\340A\003\022T\n" + "\020gmp_organization\030\007 \001(\tB:\340A\003\372A4\n" - + "2marketingplatformadmin.googleapis.com/Organization:>\352A;\n" - + "%analyticsadmin.googleapis.com/Account\022\022accounts/{account}\"\266\005\n" + + "2marketingplatformadmin.googleapis.com/Organization:Q\352AN\n" + + "%analyticsadmin." + + "googleapis.com/Account\022\022accounts/{account}*\010accounts2\007account\"\314\005\n" + "\010Property\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022G\n\r" - + "property_type\030\016" - + " \001(\0162+.google.analytics.admin.v1beta.PropertyTypeB\003\340A\005\0224\n" + + "\004name\030\001 \001(\tB\003\340A\010\022G\n\r" + + "property_type\030\016 \001(\0162+.g" + + "oogle.analytics.admin.v1beta.PropertyTypeB\003\340A\005\0224\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + "\006parent\030\002 \001(\tB\003\340A\005\022\031\n" + "\014display_name\030\005 \001(\tB\003\340A\002\022J\n" - + "\021industry_category\030\006" - + " \001(\0162/.google.analytics.admin.v1beta.IndustryCategory\022\026\n" + + "\021industry_category\030\006 \001(\0162/.google.a" + + "nalytics.admin.v1beta.IndustryCategory\022\026\n" + "\ttime_zone\030\007 \001(\tB\003\340A\002\022\025\n\r" + "currency_code\030\010 \001(\t\022G\n\r" + "service_level\030\n" @@ -173,18 +174,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013expire_time\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022>\n" + "\007account\030\r" + " \001(\tB-\340A\005\372A\'\n" - + "%analyticsadmin.googleapis.com/Account:B\352A?\n" - + "&analyticsadmin.googleapis.com/Property\022\025properties/{property}\"\360\007\n\n" + + "%analyticsadmin.googleapis.com/Account:X\352AU\n" + + "&analyticsadmin.googleapis.com/Property\022\025properties/{property}*\n" + + "properties2\010property\"\211\010\n\n" + "DataStream\022R\n" - + "\017web_stream_data\030\006 \001(\01327.google.analytics.a" - + "dmin.v1beta.DataStream.WebStreamDataH\000\022a\n" - + "\027android_app_stream_data\030\007 \001(\0132>.google" - + ".analytics.admin.v1beta.DataStream.AndroidAppStreamDataH\000\022Y\n" + + "\017web_stream_data\030\006 \001(\01327.google.analytics." + + "admin.v1beta.DataStream.WebStreamDataH\000\022a\n" + + "\027android_app_stream_data\030\007 \001(\0132>.googl" + + "e.analytics.admin.v1beta.DataStream.AndroidAppStreamDataH\000\022Y\n" + "\023ios_app_stream_data\030\010" + " \001(\0132:.google.analytics.admin.v1beta.DataStream.IosAppStreamDataH\000\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022N\n" - + "\004type\030\002 \001(\01628.google.analytics" - + ".admin.v1beta.DataStream.DataStreamTypeB\006\340A\005\340A\002\022\024\n" + + "\004name\030\001 \001(\tB\003\340A\010\022N\n" + + "\004type\030\002 \001(\01628.google.analytic" + + "s.admin.v1beta.DataStream.DataStreamTypeB\006\340A\005\340A\002\022\024\n" + "\014display_name\030\003 \001(\t\0224\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\005" @@ -203,113 +205,119 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034DATA_STREAM_TYPE_UNSPECIFIED\020\000\022\023\n" + "\017WEB_DATA_STREAM\020\001\022\033\n" + "\027ANDROID_APP_DATA_STREAM\020\002\022\027\n" - + "\023IOS_APP_DATA_STREAM\020\003:^\352A[\n" - + "(analyticsadmin.googleapis.com/Data" - + "Stream\022/properties/{property}/dataStreams/{data_stream}B\r\n" - + "\013stream_data\"\323\001\n" + + "\023IOS_APP_DATA_STREAM\020\003:w\352At\n" + + "(analyticsadmin.googleapis.com/Dat" + + "aStream\022/properties/{property}/dataStreams/{data_stream}*\013dataStreams2\n" + + "dataStreamB\r\n" + + "\013stream_data\"\361\001\n" + "\014FirebaseLink\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\024\n" + "\007project\030\002 \001(\tB\003\340A\005\0224\n" + "\013create_time\030\003" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:d\352Aa\n" - + "*analyticsadmin.googleapis.com/FirebaseLink\0223propert" - + "ies/{property}/firebaseLinks/{firebase_link}\"\230\003\n\r" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\201\001\352A~\n" + + "*analyticsadmin.googleapi" + + "s.com/FirebaseLink\0223properties/{property}/firebaseLinks/{firebase_link}*\r" + + "firebaseLinks2\014firebaseLink\"\271\003\n\r" + "GoogleAdsLink\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\030\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\030\n" + "\013customer_id\030\003 \001(\tB\003\340A\005\022\037\n" + "\022can_manage_clients\030\004 \001(\010B\003\340A\003\022?\n" + "\033ads_personalization_enabled\030\005" + " \001(\0132\032.google.protobuf.BoolValue\0224\n" + "\013create_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\"\n" - + "\025creator_email_address\030\t \001(\tB\003\340A\003:h\352Ae\n" - + "+analyticsadmin.googleapis.com/GoogleAdsLink\022" - + "6properties/{property}/googleAdsLinks/{google_ads_link}\"\353\002\n" + + "\025creator_email_address\030\t \001(\tB\003\340A\003:\210\001\352A\204\001\n" + + "+analyticsadmin.googleapis.com/GoogleAdsLink\0226properties/{property}" + + "/googleAdsLinks/{google_ads_link}*\016googleAdsLinks2\r" + + "googleAdsLink\"\233\003\n" + "\023DataSharingSettings\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022+\n" + + "\004name\030\001 \001(\tB\003\340A\010\022+\n" + "#sharing_with_google_support_enabled\030\002 \001(\010\0222\n" - + "*sharing_with_google_assigned_sales_enabled\030\003 \001(\010\022-\n" - + "%sharing_with_google_any_sales_enabled\030\004 \001(\010\022,\n" + + "*sharing_with_google_assigned_sales_enabled\030\003 \001(\010\0221\n" + + "%sharing_with_google_any_sales_enabled\030\004 \001(\010B\002\030\001\022,\n" + "$sharing_with_google_products_enabled\030\005 \001(\010\022#\n" - + "\033sharing_with_others_enabled\030\006 \001(\010:^\352A[\n" - + "1analyticsadmin.googleapis.co" - + "m/DataSharingSettings\022&accounts/{account}/dataSharingSettings\"\224\002\n" - + "\016AccountSummary\022\014\n" - + "\004name\030\001 \001(\t\022;\n" + + "\033sharing_with_others_enabled\030\006 \001(\010:\211\001\352A\205\001\n" + + "1analyticsadmin.googleapis.com/DataSharingSettings\022&ac" + + "counts/{account}/dataSharingSettings*\023da" + + "taSharingSettings2\023dataSharingSettings\"\273\002\n" + + "\016AccountSummary\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022;\n" + "\007account\030\002 \001(\tB*\372A\'\n" + "%analyticsadmin.googleapis.com/Account\022\024\n" + "\014display_name\030\003 \001(\t\022J\n" - + "\022property_summaries\030\004" - + " \003(\0132..google.analytics.admin.v1beta.PropertySummary:U\352AR\n" - + ",analyticsadmin.googl" - + "eapis.com/AccountSummary\022\"accountSummaries/{account_summary}\"\272\001\n" + + "\022property_summaries\030\004 \003(\0132..google.ana" + + "lytics.admin.v1beta.PropertySummary:w\352At\n" + + ",analyticsadmin.googleapis.com/AccountS" + + "ummary\022\"accountSummaries/{account_summary}*\020accountSummaries2\016accountSummary\"\314\001\n" + "\017PropertySummary\022=\n" + "\010property\030\001 \001(\tB+\372A(\n" + "&analyticsadmin.googleapis.com/Property\022\024\n" + "\014display_name\030\002 \001(\t\022B\n\r" + "property_type\030\003 \001(\0162+.google.analytics.admin.v1beta.PropertyType\022\016\n" - + "\006parent\030\004 \001(\t\"\216\002\n" + + "\006parent\030\004 \001(\t\022\020\n" + + "\010can_edit\030\005 \001(\010\"\305\002\n" + "\031MeasurementProtocolSecret\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\031\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\031\n" - + "\014secret_value\030\003 \001(\tB\003\340A\003:\247\001\352A\243\001\n" - + "7analyticsadmin.googleapis.com/MeasurementProtocolSecret\022hproperties/{property}/" - + "dataStreams/{data_stream}/measurementPro" - + "tocolSecrets/{measurement_protocol_secret}\"\210\002\n" + + "\014secret_value\030\003 \001(\tB\003\340A\003:\336\001\352A\332\001\n" + + "7analyticsadmin.googleapis.com/MeasurementProt" + + "ocolSecret\022hproperties/{property}/dataStreams/{data_stream}/measurementProtocolS" + + "ecrets/{measurement_protocol_secret}*\032me" + + "asurementProtocolSecrets2\031measurementProtocolSecret\"\210\002\n" + "\022ChangeHistoryEvent\022\n\n" + "\002id\030\001 \001(\t\022/\n" + "\013change_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022<\n\n" + "actor_type\030\003 \001(\0162(.google.analytics.admin.v1beta.ActorType\022\030\n" + "\020user_actor_email\030\004 \001(\t\022\030\n" + "\020changes_filtered\030\005 \001(\010\022C\n" - + "\007changes\030\006" - + " \003(\01322.google.analytics.admin.v1beta.ChangeHistoryChange\"\252\007\n" + + "\007changes\030\006 \003(\01322.google.anal" + + "ytics.admin.v1beta.ChangeHistoryChange\"\252\007\n" + "\023ChangeHistoryChange\022\020\n" + "\010resource\030\001 \001(\t\0229\n" + "\006action\030\002 \001(\0162).google.analytics.admin.v1beta.ActionType\022h\n" - + "\026resource_before_change\030\003 \001" - + "(\0132H.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource\022g\n" - + "\025resource_after_change\030\004 \001(\0132H.google.ana" - + "lytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource\032\362\004\n" + + "\026resource_before_change\030\003 \001(\0132H.google.analytics.admin.v1b" + + "eta.ChangeHistoryChange.ChangeHistoryResource\022g\n" + + "\025resource_after_change\030\004 \001(\0132H.g" + + "oogle.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource\032\362\004\n" + "\025ChangeHistoryResource\0229\n" + "\007account\030\001 \001(\0132&.google.analytics.admin.v1beta.AccountH\000\022;\n" + "\010property\030\002 \001(\0132\'.google.analytics.admin.v1beta.PropertyH\000\022D\n\r" - + "firebase_link\030\006" - + " \001(\0132+.google.analytics.admin.v1beta.FirebaseLinkH\000\022G\n" - + "\017google_ads_link\030\007" - + " \001(\0132,.google.analytics.admin.v1beta.GoogleAdsLinkH\000\022J\n" + + "firebase_link\030\006 \001(\0132" + + "+.google.analytics.admin.v1beta.FirebaseLinkH\000\022G\n" + + "\017google_ads_link\030\007 \001(\0132,.google" + + ".analytics.admin.v1beta.GoogleAdsLinkH\000\022J\n" + "\020conversion_event\030\013" + " \001(\0132..google.analytics.admin.v1beta.ConversionEventH\000\022_\n" - + "\033measurement_protocol_secret\030\014 \001(\01328.google.analyti" - + "cs.admin.v1beta.MeasurementProtocolSecretH\000\022W\n" - + "\027data_retention_settings\030\017 \001(\01324.g" - + "oogle.analytics.admin.v1beta.DataRetentionSettingsH\000\022@\n" - + "\013data_stream\030\022 \001(\0132).google.analytics.admin.v1beta.DataStreamH\000B\n" - + "\n" - + "\010resource\"\336\005\n" + + "\033measurement_protocol_secret\030\014 \001(\01328.googl" + + "e.analytics.admin.v1beta.MeasurementProtocolSecretH\000\022W\n" + + "\027data_retention_settings\030\017" + + " \001(\01324.google.analytics.admin.v1beta.DataRetentionSettingsH\000\022@\n" + + "\013data_stream\030\022 \001(\0132).google.analytics.admin.v1beta.DataStreamH\000B\n\n" + + "\010resource\"\203\006\n" + "\017ConversionEvent\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\027\n\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\027\n\n" + "event_name\030\002 \001(\tB\003\340A\005\0224\n" + "\013create_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\026\n" + "\tdeletable\030\004 \001(\010B\003\340A\003\022\023\n" + "\006custom\030\005 \001(\010B\003\340A\003\022e\n" - + "\017counting_method\030\006 \001(\0162G" - + ".google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethodB\003\340A\001\022q\n" - + "\030default_conversion_value\030\007 \001(\0132E.google." - + "analytics.admin.v1beta.ConversionEvent.DefaultConversionValueB\003\340A\001H\000\210\001\001\032d\n" + + "\017counting_method\030\006 \001(\0162G.google.analytics.admin.v1beta." + + "ConversionEvent.ConversionCountingMethodB\003\340A\001\022q\n" + + "\030default_conversion_value\030\007 \001(\0132" + + "E.google.analytics.admin.v1beta.Conversi" + + "onEvent.DefaultConversionValueB\003\340A\001H\000\210\001\001\032d\n" + "\026DefaultConversionValue\022\022\n" - + "\005value\030\001 \001(\001H\000\210\001\001\022\032\n" - + "\r" + + "\005value\030\001 \001(\001H\000\210\001\001\022\032\n\r" + "currency_code\030\002 \001(\tH\001\210\001\001B\010\n" + "\006_valueB\020\n" + "\016_currency_code\"p\n" + "\030ConversionCountingMethod\022*\n" + "&CONVERSION_COUNTING_METHOD_UNSPECIFIED\020\000\022\022\n" + "\016ONCE_PER_EVENT\020\001\022\024\n" - + "\020ONCE_PER_SESSION\020\002:m\352Aj\n" - + "-analyticsadmin.googleapis.com/ConversionEvent\0229properties/{propert" - + "y}/conversionEvents/{conversion_event}B\033\n" + + "\020ONCE_PER_SESSION\020\002:\221\001\352A\215\001\n" + + "-analyticsadmin.googleapis.com/ConversionEvent\0229properti" + + "es/{property}/conversionEvents/{conversi" + + "on_event}*\020conversionEvents2\017conversionEventB\033\n" + "\031_default_conversion_value\"\325\004\n" + "\010KeyEvent\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\027\n\n" @@ -329,34 +337,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033COUNTING_METHOD_UNSPECIFIED\020\000\022\022\n" + "\016ONCE_PER_EVENT\020\001\022\024\n" + "\020ONCE_PER_SESSION\020\002:m\352Aj\n" - + "&analyticsadmin.googleapis.com/KeyEven" - + "t\022+properties/{property}/keyEvents/{key_event}*\tkeyEvents2\010keyEvent\"\273\003\n" + + "&analyticsadmin.googleapis.com/K" + + "eyEvent\022+properties/{property}/keyEvents/{key_event}*" + + "\tkeyEvents2\010keyEvent\"\340\003\n" + "\017CustomDimension\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\036\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + "\016parameter_name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n" + "\014display_name\030\003 \001(\tB\003\340A\002\022\030\n" + "\013description\030\004 \001(\tB\003\340A\001\022T\n" - + "\005scope\030\005" - + " \001(\0162=.google.analytics.admin.v1beta.CustomDimension.DimensionScopeB\006\340A\002\340A\005\022)\n" + + "\005scope\030\005 \001(\0162=.google.analytics.admin.v1" + + "beta.CustomDimension.DimensionScopeB\006\340A\002\340A\005\022)\n" + "\034disallow_ads_personalization\030\006 \001(\010B\003\340A\001\"P\n" + "\016DimensionScope\022\037\n" + "\033DIMENSION_SCOPE_UNSPECIFIED\020\000\022\t\n" + "\005EVENT\020\001\022\010\n" + "\004USER\020\002\022\010\n" - + "\004ITEM\020\003:m\352Aj\n" - + "-analyticsadmin.googleapis.com/C" - + "ustomDimension\0229properties/{property}/customDimensions/{custom_dimension}\"\302\006\n" + + "\004ITEM\020\003:\221\001\352A\215\001\n" + + "-analyticsadmin.googleapis.com/CustomDimension\0229properties/{prop" + + "erty}/customDimensions/{custom_dimension}*\020customDimensions2\017customDimension\"\340\006\n" + "\014CustomMetric\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\036\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + "\016parameter_name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n" + "\014display_name\030\003 \001(\tB\003\340A\002\022\030\n" + "\013description\030\004 \001(\tB\003\340A\001\022Z\n" - + "\020measurement_unit\030\005 \001(\0162;.google.analytics." - + "admin.v1beta.CustomMetric.MeasurementUnitB\003\340A\002\022N\n" - + "\005scope\030\006 \001(\01627.google.analytics" - + ".admin.v1beta.CustomMetric.MetricScopeB\006\340A\002\340A\005\022e\n" - + "\026restricted_metric_type\030\010 \003(\0162@" - + ".google.analytics.admin.v1beta.CustomMetric.RestrictedMetricTypeB\003\340A\001\"\267\001\n" + + "\020measurement_unit\030\005 \001(\0162;.google.analyti" + + "cs.admin.v1beta.CustomMetric.MeasurementUnitB\003\340A\002\022N\n" + + "\005scope\030\006 \001(\01627.google.analyt" + + "ics.admin.v1beta.CustomMetric.MetricScopeB\006\340A\002\340A\005\022e\n" + + "\026restricted_metric_type\030\010 \003(" + + "\0162@.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricTypeB\003\340A\001\"\267\001\n" + "\017MeasurementUnit\022 \n" + "\034MEASUREMENT_UNIT_UNSPECIFIED\020\000\022\014\n" + "\010STANDARD\020\001\022\014\n" @@ -376,15 +385,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024RestrictedMetricType\022&\n" + "\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tCOST_DATA\020\001\022\020\n" - + "\014REVENUE_DATA\020\002:d\352Aa\n" - + "*analyticsadmin.googleapis" - + ".com/CustomMetric\0223properties/{property}/customMetrics/{custom_metric}\"\260\004\n" + + "\014REVENUE_DATA\020\002:\201\001\352A~\n" + + "*analyticsadmin.google" + + "apis.com/CustomMetric\0223properties/{property}/customMetrics/{custom_metric}*\r" + + "customMetrics2\014customMetric\"\340\004\n" + "\025DataRetentionSettings\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022i\n" - + "\024event_data_retention\030\002 \001(\0162F.google.analy" - + "tics.admin.v1beta.DataRetentionSettings.RetentionDurationB\003\340A\002\022h\n" - + "\023user_data_retention\030\004 \001(\0162F.google.analytics.admin.v1b" - + "eta.DataRetentionSettings.RetentionDurationB\003\340A\002\022\'\n" + + "\004name\030\001 \001(\tB\003\340A\010\022i\n" + + "\024event_data_retention\030\002 \001(\0162F.google.analytics.ad" + + "min.v1beta.DataRetentionSettings.RetentionDurationB\003\340A\002\022h\n" + + "\023user_data_retention\030\004 \001(\0162F.google.analytics.admin.v1beta.Dat" + + "aRetentionSettings.RetentionDurationB\003\340A\002\022\'\n" + "\037reset_user_data_on_new_activity\030\003 \001(\010\"\236\001\n" + "\021RetentionDuration\022\"\n" + "\036RETENTION_DURATION_UNSPECIFIED\020\000\022\016\n\n" @@ -392,9 +402,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017FOURTEEN_MONTHS\020\003\022\025\n" + "\021TWENTY_SIX_MONTHS\020\004\022\027\n" + "\023THIRTY_EIGHT_MONTHS\020\005\022\020\n" - + "\014FIFTY_MONTHS\020\006:e\352Ab\n" - + "3analyticsadmin.googleap" - + "is.com/DataRetentionSettings\022+properties/{property}/dataRetentionSettings*\252\004\n" + + "\014FIFTY_MONTHS\020\006:\224\001\352A\220\001\n" + + "3analyticsadmin.googleapis.com/DataRetentionSettings\022+properties/{pro" + + "perty}/dataRetentionSettings*\025dataRetentionSettings2\025dataRetentionSettings*\252\004\n" + "\020IndustryCategory\022!\n" + "\035INDUSTRY_CATEGORY_UNSPECIFIED\020\000\022\016\n\n" + "AUTOMOTIVE\020\001\022#\n" @@ -462,10 +472,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026PROPERTY_TYPE_ORDINARY\020\001\022\035\n" + "\031PROPERTY_TYPE_SUBPROPERTY\020\002\022\030\n" + "\024PROPERTY_TYPE_ROLLUP\020\003B\311\001\n" - + "!com.google.analytics.admin.v1betaB\016ResourcesProtoP\001Z=cloud.goog" - + "le.com/go/analytics/admin/apiv1beta/adminpb;adminpb\352AR\n" - + "2marketingplatformadmin.googleapis.com/Organization\022\034organization" - + "s/{organization}b\006proto3" + + "!com.google.analytics.admin.v1betaB\016ResourcesProtoP\001Z=cloud.goo" + + "gle.com/go/analytics/admin/apiv1beta/adminpb;adminpb\352AR\n" + + "2marketingplatformadmin.googleapis.com/Organization\022\034organizatio" + + "ns/{organization}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -599,7 +609,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_PropertySummary_descriptor, new java.lang.String[] { - "Property", "DisplayName", "PropertyType", "Parent", + "Property", "DisplayName", "PropertyType", "Parent", "CanEdit", }); internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_descriptor = getDescriptor().getMessageType(8); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/access_report.proto b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/access_report.proto index 38c25d7cbb94..b73ebc29d774 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/access_report.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/access_report.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/analytics_admin.proto b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/analytics_admin.proto index 7f61587d964d..78ec8e40db36 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/analytics_admin.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/analytics_admin.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -736,17 +736,17 @@ message GetAccountRequest { // Request message for ListAccounts RPC. message ListAccountsRequest { - // The maximum number of resources to return. The service may return + // Optional. The maximum number of resources to return. The service may return // fewer than this value, even if there are additional pages. // If unspecified, at most 50 resources will be returned. // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 1; + int32 page_size = 1 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListAccounts` call. + // Optional. A page token, received from a previous `ListAccounts` call. // Provide this to retrieve the subsequent page. // When paginating, all other parameters provided to `ListAccounts` must // match the call that provided the page token. - string page_token = 2; + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; // Whether to include soft-deleted (ie: "trashed") Accounts in the // results. Accounts can be inspected to determine whether they are deleted or @@ -840,17 +840,17 @@ message ListPropertiesRequest { // ``` string filter = 1 [(google.api.field_behavior) = REQUIRED]; - // The maximum number of resources to return. The service may return + // Optional. The maximum number of resources to return. The service may return // fewer than this value, even if there are additional pages. // If unspecified, at most 50 resources will be returned. // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListProperties` call. + // Optional. A page token, received from a previous `ListProperties` call. // Provide this to retrieve the subsequent page. // When paginating, all other parameters provided to `ListProperties` must // match the call that provided the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; // Whether to include soft-deleted (ie: "trashed") Properties in the // results. Properties can be inspected to determine whether they are deleted @@ -944,17 +944,17 @@ message ListFirebaseLinksRequest { } ]; - // The maximum number of resources to return. The service may return + // Optional. The maximum number of resources to return. The service may return // fewer than this value, even if there are additional pages. // If unspecified, at most 50 resources will be returned. // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListFirebaseLinks` call. + // Optional. A page token, received from a previous `ListFirebaseLinks` call. // Provide this to retrieve the subsequent page. // When paginating, all other parameters provided to `ListFirebaseLinks` must // match the call that provided the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListFirebaseLinks RPC @@ -1017,17 +1017,17 @@ message ListGoogleAdsLinksRequest { } ]; - // The maximum number of resources to return. + // Optional. The maximum number of resources to return. // If unspecified, at most 50 resources will be returned. // The maximum value is 200 (higher values will be coerced to the maximum). - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListGoogleAdsLinks` call. + // Optional. A page token, received from a previous `ListGoogleAdsLinks` call. // Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to `ListGoogleAdsLinks` must // match the call that provided the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListGoogleAdsLinks RPC. @@ -1056,17 +1056,17 @@ message GetDataSharingSettingsRequest { // Request message for ListAccountSummaries RPC. message ListAccountSummariesRequest { - // The maximum number of AccountSummary resources to return. The service may - // return fewer than this value, even if there are additional pages. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 1; + // Optional. The maximum number of AccountSummary resources to return. The + // service may return fewer than this value, even if there are additional + // pages. If unspecified, at most 50 resources will be returned. The maximum + // value is 200; (higher values will be coerced to the maximum) + int32 page_size = 1 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListAccountSummaries` call. - // Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `ListAccountSummaries` - // must match the call that provided the page token. - string page_token = 2; + // Optional. A page token, received from a previous `ListAccountSummaries` + // call. Provide this to retrieve the subsequent page. When paginating, all + // other parameters provided to `ListAccountSummaries` must match the call + // that provided the page token. + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListAccountSummaries RPC. @@ -1244,16 +1244,17 @@ message ListMeasurementProtocolSecretsRequest { } ]; - // The maximum number of resources to return. + // Optional. The maximum number of resources to return. // If unspecified, at most 10 resources will be returned. // The maximum value is 10. Higher values will be coerced to the maximum. - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListMeasurementProtocolSecrets` - // call. Provide this to retrieve the subsequent page. When paginating, all - // other parameters provided to `ListMeasurementProtocolSecrets` must match - // the call that provided the page token. - string page_token = 3; + // Optional. A page token, received from a previous + // `ListMeasurementProtocolSecrets` call. Provide this to retrieve the + // subsequent page. When paginating, all other parameters provided to + // `ListMeasurementProtocolSecrets` must match the call that provided the page + // token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListMeasurementProtocolSecret RPC @@ -1332,16 +1333,16 @@ message ListConversionEventsRequest { } ]; - // The maximum number of resources to return. + // Optional. The maximum number of resources to return. // If unspecified, at most 50 resources will be returned. // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListConversionEvents` call. - // Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `ListConversionEvents` - // must match the call that provided the page token. - string page_token = 3; + // Optional. A page token, received from a previous `ListConversionEvents` + // call. Provide this to retrieve the subsequent page. When paginating, all + // other parameters provided to `ListConversionEvents` must match the call + // that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListConversionEvents RPC. @@ -1420,16 +1421,16 @@ message ListKeyEventsRequest { } ]; - // The maximum number of resources to return. + // Optional. The maximum number of resources to return. // If unspecified, at most 50 resources will be returned. // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListKeyEvents` call. + // Optional. A page token, received from a previous `ListKeyEvents` call. // Provide this to retrieve the subsequent page. // When paginating, all other parameters provided to `ListKeyEvents` // must match the call that provided the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListKeyEvents RPC. @@ -1478,17 +1479,17 @@ message ListCustomDimensionsRequest { } ]; - // The maximum number of resources to return. + // Optional. The maximum number of resources to return. // If unspecified, at most 50 resources will be returned. // The maximum value is 200 (higher values will be coerced to the maximum). - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListCustomDimensions` call. - // Provide this to retrieve the subsequent page. + // Optional. A page token, received from a previous `ListCustomDimensions` + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to `ListCustomDimensions` // must match the call that provided the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListCustomDimensions RPC. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/resources.proto b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/resources.proto index 7908fa764755..58fa6f965f34 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/resources.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/resources.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -225,12 +225,14 @@ message Account { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/Account" pattern: "accounts/{account}" + plural: "accounts" + singular: "account" }; - // Output only. Resource name of this account. + // Identifier. Resource name of this account. // Format: accounts/{account} // Example: "accounts/100" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Time when this account was originally created. google.protobuf.Timestamp create_time = 2 @@ -266,12 +268,14 @@ message Property { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/Property" pattern: "properties/{property}" + plural: "properties" + singular: "property" }; - // Output only. Resource name of this property. + // Identifier. Resource name of this property. // Format: properties/{property_id} // Example: "properties/1000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. The property type for this Property resource. When creating a // property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then @@ -351,6 +355,8 @@ message DataStream { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/DataStream" pattern: "properties/{property}/dataStreams/{data_stream}" + plural: "dataStreams" + singular: "dataStream" }; // Data specific to web streams. @@ -425,10 +431,10 @@ message DataStream { IosAppStreamData ios_app_stream_data = 8; } - // Output only. Resource name of this Data Stream. + // Identifier. Resource name of this Data Stream. // Format: properties/{property_id}/dataStreams/{stream_id} // Example: "properties/1000/dataStreams/2000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Immutable. The type of this DataStream resource. DataStreamType type = 2 [ @@ -457,10 +463,12 @@ message FirebaseLink { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/FirebaseLink" pattern: "properties/{property}/firebaseLinks/{firebase_link}" + plural: "firebaseLinks" + singular: "firebaseLink" }; - // Output only. Example format: properties/1234/firebaseLinks/5678 - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Identifier. Example format: properties/1234/firebaseLinks/5678 + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. Firebase project resource name. When creating a FirebaseLink, // you may provide this resource name using either a project number or project @@ -481,13 +489,15 @@ message GoogleAdsLink { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/GoogleAdsLink" pattern: "properties/{property}/googleAdsLinks/{google_ads_link}" + plural: "googleAdsLinks" + singular: "googleAdsLink" }; - // Output only. Format: + // Identifier. Format: // properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} // // Note: googleAdsLinkId is not the Google Ads customer ID. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. Google Ads customer ID. string customer_id = 3 [(google.api.field_behavior) = IMMUTABLE]; @@ -520,30 +530,51 @@ message DataSharingSettings { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/DataSharingSettings" pattern: "accounts/{account}/dataSharingSettings" + plural: "dataSharingSettings" + singular: "dataSharingSettings" }; - // Output only. Resource name. + // Identifier. Resource name. // Format: accounts/{account}/dataSharingSettings // Example: "accounts/1000/dataSharingSettings" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - // Allows Google support to access the data in order to help troubleshoot - // issues. + // Allows Google technical support representatives access to your Google + // Analytics data and account when necessary to provide service and find + // solutions to technical issues. + // + // This field maps to the "Technical support" field in the Google Analytics + // Admin UI. bool sharing_with_google_support_enabled = 2; - // Allows Google sales teams that are assigned to the customer to access the - // data in order to suggest configuration changes to improve results. - // Sales team restrictions still apply when enabled. + // Allows Google access to your Google Analytics account data, including + // account usage and configuration data, product spending, and users + // associated with your Google Analytics account, so that Google can help you + // make the most of Google products, providing you with insights, offers, + // recommendations, and optimization tips across Google Analytics and other + // Google products for business. + // + // This field maps to the "Recommendations for your business" field in the + // Google Analytics Admin UI. bool sharing_with_google_assigned_sales_enabled = 3; - // Allows any of Google sales to access the data in order to suggest - // configuration changes to improve results. - bool sharing_with_google_any_sales_enabled = 4; + // Deprecated. This field is no longer used and always returns false. + bool sharing_with_google_any_sales_enabled = 4 [deprecated = true]; // Allows Google to use the data to improve other Google products or services. + // + // This fields maps to the "Google products & services" field in the Google + // Analytics Admin UI. bool sharing_with_google_products_enabled = 5; - // Allows Google to share the data anonymously in aggregate form with others. + // Enable features like predictions, modeled data, and benchmarking that can + // provide you with richer business insights when you contribute aggregated + // measurement data. The data you share (including information about the + // property from which it is shared) is aggregated and de-identified before + // being used to generate business insights. + // + // This field maps to the "Modeling contributions & business insights" field + // in the Google Analytics Admin UI. bool sharing_with_others_enabled = 6; } @@ -553,12 +584,14 @@ message AccountSummary { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/AccountSummary" pattern: "accountSummaries/{account_summary}" + plural: "accountSummaries" + singular: "accountSummary" }; - // Resource name for this account summary. + // Identifier. Resource name for this account summary. // Format: accountSummaries/{account_id} // Example: "accountSummaries/1000" - string name = 1; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Resource name of account referred to by this account summary // Format: accounts/{account_id} @@ -595,6 +628,10 @@ message PropertySummary { // Format: accounts/{account}, properties/{property} // Example: "accounts/100", "properties/200" string parent = 4; + + // If true, then the user has a Google Analytics role that permits them to + // edit the property. + bool can_edit = 5; } // A secret value used for sending hits to Measurement Protocol. @@ -602,12 +639,14 @@ message MeasurementProtocolSecret { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" pattern: "properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" + plural: "measurementProtocolSecrets" + singular: "measurementProtocolSecret" }; - // Output only. Resource name of this secret. This secret may be a child of - // any type of stream. Format: + // Identifier. Resource name of this secret. This secret may be a child of any + // type of stream. Format: // properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Human-readable display name for this secret. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; @@ -698,6 +737,8 @@ message ConversionEvent { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/ConversionEvent" pattern: "properties/{property}/conversionEvents/{conversion_event}" + plural: "conversionEvents" + singular: "conversionEvent" }; // Defines a default value/currency for a conversion event. Both value and @@ -728,9 +769,9 @@ message ConversionEvent { ONCE_PER_SESSION = 2; } - // Output only. Resource name of this conversion event. + // Identifier. Resource name of this conversion event. // Format: properties/{property}/conversionEvents/{conversion_event} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. The event name for this conversion event. // Examples: 'click', 'purchase' @@ -837,6 +878,8 @@ message CustomDimension { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/CustomDimension" pattern: "properties/{property}/customDimensions/{custom_dimension}" + plural: "customDimensions" + singular: "customDimension" }; // Valid values for the scope of this dimension. @@ -854,9 +897,9 @@ message CustomDimension { ITEM = 3; } - // Output only. Resource name for this CustomDimension resource. + // Identifier. Resource name for this CustomDimension resource. // Format: properties/{property}/customDimensions/{customDimension} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Immutable. Tagging parameter name for this custom dimension. // @@ -905,6 +948,8 @@ message CustomMetric { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/CustomMetric" pattern: "properties/{property}/customMetrics/{custom_metric}" + plural: "customMetrics" + singular: "customMetric" }; // Possible types of representing the custom metric's value. @@ -968,9 +1013,9 @@ message CustomMetric { REVENUE_DATA = 2; } - // Output only. Resource name for this CustomMetric resource. + // Identifier. Resource name for this CustomMetric resource. // Format: properties/{property}/customMetrics/{customMetric} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Immutable. Tagging name for this custom metric. // @@ -1016,6 +1061,8 @@ message DataRetentionSettings { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/DataRetentionSettings" pattern: "properties/{property}/dataRetentionSettings" + plural: "dataRetentionSettings" + singular: "dataRetentionSettings" }; // Valid values for the data retention duration. @@ -1042,9 +1089,9 @@ message DataRetentionSettings { FIFTY_MONTHS = 6; } - // Output only. Resource name for this DataRetentionSetting resource. + // Identifier. Resource name for this DataRetentionSetting resource. // Format: properties/{property}/dataRetentionSettings - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. The length of time that event-level data is retained. RetentionDuration event_data_retention = 2 diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/AsyncUpdateReportingIdentitySettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/AsyncUpdateReportingIdentitySettings.java new file mode 100644 index 000000000000..fa45b3832e93 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/AsyncUpdateReportingIdentitySettings.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingIdentitySettings_async] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ReportingIdentitySettings; +import com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest; +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateReportingIdentitySettings { + + public static void main(String[] args) throws Exception { + asyncUpdateReportingIdentitySettings(); + } + + public static void asyncUpdateReportingIdentitySettings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + UpdateReportingIdentitySettingsRequest request = + UpdateReportingIdentitySettingsRequest.newBuilder() + .setReportingIdentitySettings(ReportingIdentitySettings.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.updateReportingIdentitySettingsCallable().futureCall(request); + // Do something. + ReportingIdentitySettings response = future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingIdentitySettings_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/SyncUpdateReportingIdentitySettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/SyncUpdateReportingIdentitySettings.java new file mode 100644 index 000000000000..4ba3da6dc896 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/SyncUpdateReportingIdentitySettings.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingIdentitySettings_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ReportingIdentitySettings; +import com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateReportingIdentitySettings { + + public static void main(String[] args) throws Exception { + syncUpdateReportingIdentitySettings(); + } + + public static void syncUpdateReportingIdentitySettings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + UpdateReportingIdentitySettingsRequest request = + UpdateReportingIdentitySettingsRequest.newBuilder() + .setReportingIdentitySettings(ReportingIdentitySettings.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ReportingIdentitySettings response = + analyticsAdminServiceClient.updateReportingIdentitySettings(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingIdentitySettings_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/SyncUpdateReportingIdentitySettingsReportingidentitysettingsFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/SyncUpdateReportingIdentitySettingsReportingidentitysettingsFieldmask.java new file mode 100644 index 000000000000..d50bfb614ad2 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/SyncUpdateReportingIdentitySettingsReportingidentitysettingsFieldmask.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingIdentitySettings_ReportingidentitysettingsFieldmask_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ReportingIdentitySettings; +import com.google.protobuf.FieldMask; + +public class SyncUpdateReportingIdentitySettingsReportingidentitysettingsFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateReportingIdentitySettingsReportingidentitysettingsFieldmask(); + } + + public static void syncUpdateReportingIdentitySettingsReportingidentitysettingsFieldmask() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + ReportingIdentitySettings reportingIdentitySettings = + ReportingIdentitySettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + ReportingIdentitySettings response = + analyticsAdminServiceClient.updateReportingIdentitySettings( + reportingIdentitySettings, updateMask); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingIdentitySettings_ReportingidentitysettingsFieldmask_sync] diff --git a/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json b/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json index 6f7a87548ae4..6f64a62796b8 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json +++ b/java-dataproc/google-cloud-dataproc/src/main/resources/META-INF/native-image/com.google.cloud.dataproc.v1/reflect-config.json @@ -980,6 +980,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataproc.v1.ConfidentialInstanceConfig$ConfidentialInstanceType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest", "queryAllDeclaredConstructors": true, diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java index 47f7b52a582d..6dbf904a1848 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ClustersProto.java @@ -84,6 +84,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GceClusterConfig_ResourceManagerTagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GceClusterConfig_ResourceManagerTagsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -366,7 +370,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020EncryptionConfig\022 \n" + "\023gce_pd_kms_key_name\030\001 \001(\tB\003\340A\001\022:\n" + "\007kms_key\030\002 \001(\tB)\340A\001\372A#\n" - + "!cloudkms.googleapis.com/CryptoKey\"\272\007\n" + + "!cloudkms.googleapis.com/CryptoKey\"\337\010\n" + "\020GceClusterConfig\022\025\n" + "\010zone_uri\030\001 \001(\tB\003\340A\001\022\030\n" + "\013network_uri\030\002 \001(\tB\003\340A\001\022\033\n" @@ -386,9 +390,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030shielded_instance_config\030\016" + " \001(\01320.google.cloud.dataproc.v1.ShieldedInstanceConfigB\003\340A\001\022_\n" + "\034confidential_instance_config\030\017 \001(\01324.google.cloud.datap" - + "roc.v1.ConfidentialInstanceConfigB\003\340A\001\032/\n\r" + + "roc.v1.ConfidentialInstanceConfigB\003\340A\001\022g\n" + + "\025resource_manager_tags\030\020 \003(\0132C.google.c" + + "loud.dataproc.v1.GceClusterConfig.ResourceManagerTagsEntryB\003\340A\001\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032:\n" + + "\030ResourceManagerTagsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\203\001\n" + "\027PrivateIpv6GoogleAccess\022*\n" + "&PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED\020\000\022\033\n" @@ -405,32 +414,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\010B\003\340A\001H\002\210\001\001B\025\n" + "\023_enable_secure_bootB\016\n" + "\014_enable_vtpmB\036\n" - + "\034_enable_integrity_monitoring\"F\n" - + "\032ConfidentialInstanceConfig\022(\n" - + "\033enable_confidential_compute\030\001 \001(\010B\003\340A\001\"\353\006\n" + + "\034_enable_integrity_monitoring\"\247\002\n" + + "\032ConfidentialInstanceConfig\022*\n" + + "\033enable_confidential_compute\030\001 \001(\010B\005\030\001\340A\001\022v\n" + + "\032confidential_instance_type\030\002 \001(\0162M.google.cloud.da" + + "taproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceTypeB\003\340A\001\"e\n" + + "\030ConfidentialInstanceType\022*\n" + + "&CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED\020\000\022\007\n" + + "\003SEV\020\001\022\013\n" + + "\007SEV_SNP\020\002\022\007\n" + + "\003TDX\020\003\"\353\006\n" + "\023InstanceGroupConfig\022\032\n\r" + "num_instances\030\001 \001(\005B\003\340A\001\022\033\n" + "\016instance_names\030\002 \003(\tB\003\340A\003\022M\n" - + "\023instance_references\030\013" - + " \003(\0132+.google.cloud.dataproc.v1.InstanceReferenceB\003\340A\003\022\026\n" + + "\023instance_references\030\013 \003(\0132" + + "+.google.cloud.dataproc.v1.InstanceReferenceB\003\340A\003\022\026\n" + "\timage_uri\030\003 \001(\tB\003\340A\001\022\035\n" + "\020machine_type_uri\030\004 \001(\tB\003\340A\001\022>\n" + "\013disk_config\030\005" + " \001(\0132$.google.cloud.dataproc.v1.DiskConfigB\003\340A\001\022\033\n" + "\016is_preemptible\030\006 \001(\010B\003\340A\003\022Y\n" + "\016preemptibility\030\n" - + " \001(\0162<.google." - + "cloud.dataproc.v1.InstanceGroupConfig.PreemptibilityB\003\340A\001\022O\n" - + "\024managed_group_config\030\007" - + " \001(\0132,.google.cloud.dataproc.v1.ManagedGroupConfigB\003\340A\003\022F\n" - + "\014accelerators\030\010 \003(\013" - + "2+.google.cloud.dataproc.v1.AcceleratorConfigB\003\340A\001\022\035\n" + + " \001(\0162<.google.cloud.dat" + + "aproc.v1.InstanceGroupConfig.PreemptibilityB\003\340A\001\022O\n" + + "\024managed_group_config\030\007 \001(\0132," + + ".google.cloud.dataproc.v1.ManagedGroupConfigB\003\340A\003\022F\n" + + "\014accelerators\030\010 \003(\0132+.google" + + ".cloud.dataproc.v1.AcceleratorConfigB\003\340A\001\022\035\n" + "\020min_cpu_platform\030\t \001(\tB\003\340A\001\022\036\n" + "\021min_num_instances\030\014 \001(\005B\003\340A\001\022]\n" + "\033instance_flexibility_policy\030\r" + " \001(\01323.google.cloud.dataproc.v1.InstanceFlexibilityPolicyB\003\340A\001\022D\n" - + "\016startup_config\030\016 \001(\0132\'.googl" - + "e.cloud.dataproc.v1.StartupConfigB\003\340A\001\"`\n" + + "\016startup_config\030\016" + + " \001(\0132\'.google.cloud.dataproc.v1.StartupConfigB\003\340A\001\"`\n" + "\016Preemptibility\022\036\n" + "\032PREEMPTIBILITY_UNSPECIFIED\020\000\022\023\n" + "\017NON_PREEMPTIBLE\020\001\022\017\n" @@ -450,12 +466,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033instance_group_manager_name\030\002 \001(\tB\003\340A\003\022\'\n" + "\032instance_group_manager_uri\030\003 \001(\tB\003\340A\003\"\345\005\n" + "\031InstanceFlexibilityPolicy\022m\n" - + "\026provisioning_model_mix\030\001 \001(\0132H.goo" - + "gle.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMixB\003\340A\001\022k\n" - + "\027instance_selection_list\030\002 \003(\0132E.google.clou" - + "d.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelectionB\003\340A\001\022t\n" - + "\032instance_selection_results\030\003 \003(\0132K.google.cloud.datapr" - + "oc.v1.InstanceFlexibilityPolicy.InstanceSelectionResultB\003\340A\003\032\274\001\n" + + "\026provisioning_model_mix\030\001 \001(\0132H.google.cloud" + + ".dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMixB\003\340A\001\022k\n" + + "\027instance_selection_list\030\002 \003(\0132E.google.cloud.datapro" + + "c.v1.InstanceFlexibilityPolicy.InstanceSelectionB\003\340A\001\022t\n" + + "\032instance_selection_results\030\003 \003(\0132K.google.cloud.dataproc.v1.Ins" + + "tanceFlexibilityPolicy.InstanceSelectionResultB\003\340A\003\032\274\001\n" + "\024ProvisioningModelMix\022(\n" + "\026standard_capacity_base\030\001 \001(\005B\003\340A\001H\000\210\001\001\0226\n" + "$standard_capacity_percent_above_base\030\002" @@ -467,7 +483,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004rank\030\002 \001(\005B\003\340A\001\032s\n" + "\027InstanceSelectionResult\022\036\n" + "\014machine_type\030\001 \001(\tB\003\340A\003H\000\210\001\001\022\032\n" - + "\010vm_count\030\002 \001(\005B\003\340A\003H\001\210\001\001B\017\n\r" + + "\010vm_count\030\002 \001(\005B\003\340A\003H\001\210\001\001B\017\n" + + "\r" + "_machine_typeB\013\n" + "\t_vm_count\"L\n" + "\021AcceleratorConfig\022\034\n" @@ -491,31 +508,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\t\022<\n" + "\005roles\030\002" + " \003(\0162(.google.cloud.dataproc.v1.NodeGroup.RoleB\003\340A\002\022M\n" - + "\021node_group_config\030\003" - + " \001(\0132-.google.cloud.dataproc.v1.InstanceGroupConfigB\003\340A\001\022D\n" - + "\006labels\030\004 \003(\0132/.g" - + "oogle.cloud.dataproc.v1.NodeGroup.LabelsEntryB\003\340A\001\032-\n" + + "\021node_group_config\030\003 \001(\0132" + + "-.google.cloud.dataproc.v1.InstanceGroupConfigB\003\340A\001\022D\n" + + "\006labels\030\004 \003(\0132/.google.clo" + + "ud.dataproc.v1.NodeGroup.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r" - + "\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"(\n" + "\004Role\022\024\n" - + "\020ROLE_UNSPECIFIED\020\000\022\n\n" + + "\020ROLE_UNSPECIFIED\020\000\022\n" + + "\n" + "\006DRIVER\020\001:v\352As\n" - + "!dataproc.googleapis.com/NodeGroup\022Nprojects/{project}/" - + "regions/{region}/clusters/{cluster}/nodeGroups/{node_group}\"s\n" + + "!dataproc.googleapis.com/NodeGroup\022Nprojects/{project}/regions/{" + + "region}/clusters/{cluster}/nodeGroups/{node_group}\"s\n" + "\030NodeInitializationAction\022\034\n" + "\017executable_file\030\001 \001(\tB\003\340A\002\0229\n" + "\021execution_timeout\030\002" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\326\003\n\r" + "ClusterStatus\022A\n" - + "\005state\030\001" - + " \001(\0162-.google.cloud.dataproc.v1.ClusterStatus.StateB\003\340A\003\022\026\n" + + "\005state\030\001 \001(\016" + + "2-.google.cloud.dataproc.v1.ClusterStatus.StateB\003\340A\003\022\026\n" + "\006detail\030\002 \001(\tB\006\340A\003\340A\001\0229\n" + "\020state_start_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022G\n" - + "\010substate\030\004 \001" - + "(\01620.google.cloud.dataproc.v1.ClusterStatus.SubstateB\003\340A\003\"\247\001\n" + + "\010substate\030\004 \001(\01620.goog" + + "le.cloud.dataproc.v1.ClusterStatus.SubstateB\003\340A\003\"\247\001\n" + "\005State\022\013\n" + "\007UNKNOWN\020\000\022\014\n" + "\010CREATING\020\001\022\013\n" @@ -536,8 +553,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016SecurityConfig\022F\n" + "\017kerberos_config\030\001" + " \001(\0132(.google.cloud.dataproc.v1.KerberosConfigB\003\340A\001\022F\n" - + "\017identity_config\030\002" - + " \001(\0132(.google.cloud.dataproc.v1.IdentityConfigB\003\340A\001\"\220\004\n" + + "\017identity_config\030\002 \001(\0132(.g" + + "oogle.cloud.dataproc.v1.IdentityConfigB\003\340A\001\"\220\004\n" + "\016KerberosConfig\022\034\n" + "\017enable_kerberos\030\001 \001(\010B\003\340A\001\022(\n" + "\033root_principal_password_uri\030\002 \001(\tB\003\340A\001\022\030\n" @@ -557,16 +574,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022tgt_lifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n" + "\005realm\030\017 \001(\tB\003\340A\001\"\306\001\n" + "\016IdentityConfig\022r\n" - + "\034user_service_account_mapping\030\001 \003(\013" - + "2G.google.cloud.dataproc.v1.IdentityConf" - + "ig.UserServiceAccountMappingEntryB\003\340A\002\032@\n" + + "\034user_service_account_mapping\030\001 \003(\0132G.google" + + ".cloud.dataproc.v1.IdentityConfig.UserServiceAccountMappingEntryB\003\340A\002\032@\n" + "\036UserServiceAccountMappingEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\371\001\n" + "\016SoftwareConfig\022\032\n\r" + "image_version\030\001 \001(\tB\003\340A\001\022Q\n\n" - + "properties\030\002" - + " \003(\01328.google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntryB\003\340A\001\022E\n" + + "properties\030\002 \003" + + "(\01328.google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntryB\003\340A\001\022E\n" + "\023optional_components\030\003" + " \003(\0162#.google.cloud.dataproc.v1.ComponentB\003\340A\001\0321\n" + "\017PropertiesEntry\022\013\n" @@ -592,10 +608,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032dataproc_metastore_service\030\001 \001(\tB(\340A\002\372A\"\n" + " metastore.googleapis.com/Service\"\232\002\n" + "\016ClusterMetrics\022O\n" - + "\014hdfs_metrics\030\001 \003(\01329.google.cloud.datap" - + "roc.v1.ClusterMetrics.HdfsMetricsEntry\022O\n" - + "\014yarn_metrics\030\002 \003(\01329.google.cloud.data" - + "proc.v1.ClusterMetrics.YarnMetricsEntry\0322\n" + + "\014hdfs_metrics\030\001" + + " \003(\01329.google.cloud.dataproc.v1.ClusterMetrics.HdfsMetricsEntry\022O\n" + + "\014yarn_metrics\030\002" + + " \003(\01329.google.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry\0322\n" + "\020HdfsMetricsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\003:\0028\001\0322\n" @@ -603,11 +619,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\003:\0028\001\"\235\003\n" + "\024DataprocMetricConfig\022K\n" - + "\007metrics\030\001 \003(\01325.google.cloud" - + ".dataproc.v1.DataprocMetricConfig.MetricB\003\340A\002\032\200\001\n" + + "\007metrics\030\001" + + " \003(\01325.google.cloud.dataproc.v1.DataprocMetricConfig.MetricB\003\340A\002\032\200\001\n" + "\006Metric\022W\n\r" - + "metric_source\030\001 \001(\0162" - + ";.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSourceB\003\340A\002\022\035\n" + + "metric_source\030\001 \001(\0162;.google." + + "cloud.dataproc.v1.DataprocMetricConfig.MetricSourceB\003\340A\002\022\035\n" + "\020metric_overrides\030\002 \003(\tB\003\340A\001\"\264\001\n" + "\014MetricSource\022\035\n" + "\031METRIC_SOURCE_UNSPECIFIED\020\000\022\035\n" @@ -622,11 +638,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024CreateClusterRequest\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006region\030\003 \001(\tB\003\340A\002\0227\n" - + "\007cluster\030\002" - + " \001(\0132!.google.cloud.dataproc.v1.ClusterB\003\340A\002\022\027\n\n" + + "\007cluster\030\002 \001(\0132!" + + ".google.cloud.dataproc.v1.ClusterB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\022V\n" - + " action_on_failed_primary_workers\030\005 \001(\0162\'.goo" - + "gle.cloud.dataproc.v1.FailureActionB\003\340A\001\"\256\002\n" + + " action_on_failed_primary_workers\030\005" + + " \001(\0162\'.google.cloud.dataproc.v1.FailureActionB\003\340A\001\"\256\002\n" + "\024UpdateClusterRequest\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006region\030\005 \001(\tB\003\340A\002\022\031\n" @@ -643,8 +659,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014cluster_name\030\003 \001(\tB\003\340A\002\022\031\n" + "\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\n" + "request_id\030\005 \001(\tB\003\340A\001\"\222\001\n" - + "\023StartClusterRequest\022\027\n" - + "\n" + + "\023StartClusterRequest\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006region\030\002 \001(\tB\003\340A\002\022\031\n" + "\014cluster_name\030\003 \001(\tB\003\340A\002\022\031\n" @@ -675,8 +690,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\003 \001(\tB\003\340A\002\022\031\n" + "\014cluster_name\030\002 \001(\tB\003\340A\002\022\034\n" + "\017tarball_gcs_dir\030\004 \001(\tB\003\340A\001\022[\n" - + "\016tarball_access\030\005 \001(\0162>.google.cloud.dataproc.v1." - + "DiagnoseClusterRequest.TarballAccessB\003\340A\001\0226\n" + + "\016tarball_access\030\005 " + + "\001(\0162>.google.cloud.dataproc.v1.DiagnoseClusterRequest.TarballAccessB\003\340A\001\0226\n" + "\022diagnosis_interval\030\006" + " \001(\0132\025.google.type.IntervalB\003\340A\001\022\021\n" + "\004jobs\030\n" @@ -689,8 +704,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026DiagnoseClusterResults\022\027\n\n" + "output_uri\030\001 \001(\tB\003\340A\003\"\370\001\n" + "\023ReservationAffinity\022Y\n" - + "\030consume_reservation_type\030\001" - + " \001(\01622.google.cloud.dataproc.v1.ReservationAffinity.TypeB\003\340A\001\022\020\n" + + "\030consume_reservation_type\030\001 \001(\01622.g" + + "oogle.cloud.dataproc.v1.ReservationAffinity.TypeB\003\340A\001\022\020\n" + "\003key\030\002 \001(\tB\003\340A\001\022\023\n" + "\006values\030\003 \003(\tB\003\340A\001\"_\n" + "\004Type\022\024\n" @@ -699,53 +714,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017ANY_RESERVATION\020\002\022\030\n" + "\024SPECIFIC_RESERVATION\020\0032\344\020\n" + "\021ClusterController\022\200\002\n\r" - + "CreateCluster\022..google.cloud.dataproc.v1.CreateClusterR" - + "equest\032\035.google.longrunning.Operation\"\237\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.C" - + "lusterOperationMetadata\332A\031project_id,reg" - + "ion,cluster\202\323\344\223\002>\"3/v1/projects/{project" - + "_id}/regions/{region}/clusters:\007cluster\022\250\002\n\r" - + "UpdateCluster\022..google.cloud.datapro" - + "c.v1.UpdateClusterRequest\032\035.google.longrunning.Operation\"\307\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMetada" - + "ta\332A2project_id,region,cluster_name,clus" - + "ter,update_mask\202\323\344\223\002M2B/v1/projects/{pro" - + "ject_id}/regions/{region}/clusters/{cluster_name}:\007cluster\022\356\001\n" - + "\013StopCluster\022,.goo" - + "gle.cloud.dataproc.v1.StopClusterRequest\032\035.google.longrunning.Operation\"\221\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.Cluster" - + "OperationMetadata\202\323\344\223\002L\"G/v1/projects/{p" - + "roject_id}/regions/{region}/clusters/{cluster_name}:stop:\001*\022\361\001\n" - + "\014StartCluster\022-.google.cloud.dataproc.v1.StartClusterRequ" - + "est\032\035.google.longrunning.Operation\"\222\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.Clus" - + "terOperationMetadata\202\323\344\223\002M\"H/v1/projects" - + "/{project_id}/regions/{region}/clusters/{cluster_name}:start:\001*\022\231\002\n\r" - + "DeleteCluster\022..google.cloud.dataproc.v1.DeleteClust" - + "erRequest\032\035.google.longrunning.Operation\"\270\001\312AJ\n" - + "\025google.protobuf.Empty\0221google.cloud.dataproc.v1.ClusterOperationMetadata" - + "\332A\036project_id,region,cluster_name\202\323\344\223\002D*" - + "B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\022\311\001\n\n" - + "GetCluster\022+.google.cloud.dataproc.v1.GetCluster" - + "Request\032!.google.cloud.dataproc.v1.Clust" - + "er\"k\332A\036project_id,region,cluster_name\202\323\344" - + "\223\002D\022B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\022\331\001\n" - + "\014ListClusters\022-.google.cloud.dataproc.v1.List" - + "ClustersRequest\032..google.cloud.dataproc." - + "v1.ListClustersResponse\"j\332A\021project_id,r" - + "egion\332A\030project_id,region,filter\202\323\344\223\0025\0223" - + "/v1/projects/{project_id}/regions/{region}/clusters\022\252\002\n" - + "\017DiagnoseCluster\0220.google" - + ".cloud.dataproc.v1.DiagnoseClusterRequest\032\035.google.longrunning.Operation\"\305\001\312AK\n" - + "\026DiagnoseClusterResults\0221google.cloud.dat" - + "aproc.v1.ClusterOperationMetadata\332A\036proj" - + "ect_id,region,cluster_name\202\323\344\223\002P\"K/v1/pr" - + "ojects/{project_id}/regions/{region}/clu" - + "sters/{cluster_name}:diagnose:\001*\032K\312A\027dat" - + "aproc.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformBl\n" + + "CreateCluster\022..google.c" + + "loud.dataproc.v1.CreateClusterRequest\032\035.google.longrunning.Operation\"\237\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOpe" + + "rationMetadata\332A\031project_id,region,clust" + + "er\202\323\344\223\002>\"3/v1/projects/{project_id}/regions/{region}/clusters:\007cluster\022\250\002\n\r" + + "UpdateCluster\022..google.cloud.dataproc.v1.Upda" + + "teClusterRequest\032\035.google.longrunning.Operation\"\307\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMetadata\332A2proj" + + "ect_id,region,cluster_name,cluster,updat" + + "e_mask\202\323\344\223\002M2B/v1/projects/{project_id}/" + + "regions/{region}/clusters/{cluster_name}:\007cluster\022\356\001\n" + + "\013StopCluster\022,.google.cloud" + + ".dataproc.v1.StopClusterRequest\032\035.google.longrunning.Operation\"\221\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperation" + + "Metadata\202\323\344\223\002L\"G/v1/projects/{project_id" + + "}/regions/{region}/clusters/{cluster_name}:stop:\001*\022\361\001\n" + + "\014StartCluster\022-.google.clo" + + "ud.dataproc.v1.StartClusterRequest\032\035.google.longrunning.Operation\"\222\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperat" + + "ionMetadata\202\323\344\223\002M\"H/v1/projects/{project" + + "_id}/regions/{region}/clusters/{cluster_name}:start:\001*\022\231\002\n\r" + + "DeleteCluster\022..googl" + + "e.cloud.dataproc.v1.DeleteClusterRequest\032\035.google.longrunning.Operation\"\270\001\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.datap" + + "roc.v1.ClusterOperationMetadata\332A\036projec" + + "t_id,region,cluster_name\202\323\344\223\002D*B/v1/proj" + + "ects/{project_id}/regions/{region}/clusters/{cluster_name}\022\311\001\n\n" + + "GetCluster\022+.google.cloud.dataproc.v1.GetClusterRequest\032!" + + ".google.cloud.dataproc.v1.Cluster\"k\332A\036pr" + + "oject_id,region,cluster_name\202\323\344\223\002D\022B/v1/" + + "projects/{project_id}/regions/{region}/clusters/{cluster_name}\022\331\001\n" + + "\014ListClusters\022-.google.cloud.dataproc.v1.ListClustersR" + + "equest\032..google.cloud.dataproc.v1.ListCl" + + "ustersResponse\"j\332A\021project_id,region\332A\030p" + + "roject_id,region,filter\202\323\344\223\0025\0223/v1/proje" + + "cts/{project_id}/regions/{region}/clusters\022\252\002\n" + + "\017DiagnoseCluster\0220.google.cloud.da" + + "taproc.v1.DiagnoseClusterRequest\032\035.google.longrunning.Operation\"\305\001\312AK\n" + + "\026DiagnoseClusterResults\0221google.cloud.dataproc.v1." + + "ClusterOperationMetadata\332A\036project_id,re" + + "gion,cluster_name\202\323\344\223\002P\"K/v1/projects/{p" + + "roject_id}/regions/{region}/clusters/{cl" + + "uster_name}:diagnose:\001*\032K\312A\027dataproc.goo" + + "gleapis.com\322A.https://www.googleapis.com/auth/cloud-platformBl\n" + "\034com.google.cloud.dataproc.v1B\r" - + "ClustersProtoP\001Z;cloud.google.com/go/dataproc/v2/apiv1/da" - + "taprocpb;dataprocpbb\006proto3" + + "ClustersProtoP\001Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;" + + "dataprocpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -884,6 +899,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeGroupAffinity", "ShieldedInstanceConfig", "ConfidentialInstanceConfig", + "ResourceManagerTags", }); internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor = internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor.getNestedType(0); @@ -893,6 +909,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_GceClusterConfig_ResourceManagerTagsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor.getNestedType(1); + internal_static_google_cloud_dataproc_v1_GceClusterConfig_ResourceManagerTagsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GceClusterConfig_ResourceManagerTagsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor = getDescriptor().getMessageType(8); internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable = @@ -915,7 +939,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor, new java.lang.String[] { - "EnableConfidentialCompute", + "EnableConfidentialCompute", "ConfidentialInstanceType", }); internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor = getDescriptor().getMessageType(11); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java index 7f4cda28774f..04b1e1538bbb 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java @@ -25,7 +25,7 @@ * *
  * Confidential Instance Config for clusters using [Confidential
- * VMs](https://cloud.google.com/compute/confidential-vm/docs)
+ * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs)
  * 
* * Protobuf type {@code google.cloud.dataproc.v1.ConfidentialInstanceConfig} @@ -52,7 +52,9 @@ private ConfidentialInstanceConfig(com.google.protobuf.GeneratedMessage.Builder< super(builder); } - private ConfidentialInstanceConfig() {} + private ConfidentialInstanceConfig() { + confidentialInstanceType_ = 0; + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.ClustersProto @@ -69,6 +71,212 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder.class); } + /** + * + * + *
+   * The type of Confidential Compute technology as per [Confidential Computing
+   * types](https://cloud.google.com/confidential-computing/confidential-vm/docs/create-a-confidential-vm-instance#create-instance).
+   * New values may be added in the future.
+   * 
+ * + * Protobuf enum {@code + * google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType} + */ + public enum ConfidentialInstanceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Confidential Instance Type is not specified.
+     * 
+ * + * CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED = 0; + */ + CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * [AMD Secure Encrypted
+     * Virtualization](https://cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview#amd_sev)
+     * 
+ * + * SEV = 1; + */ + SEV(1), + /** + * + * + *
+     * [AMD Secure Encrypted Virtualization-Secure Nested
+     * Paging](https://cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview#amd_sev-snp)
+     * 
+ * + * SEV_SNP = 2; + */ + SEV_SNP(2), + /** + * + * + *
+     * [Intel Trust Domain
+     * Extensions](https://cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview#intel_tdx)
+     * 
+ * + * TDX = 3; + */ + TDX(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConfidentialInstanceType"); + } + + /** + * + * + *
+     * Confidential Instance Type is not specified.
+     * 
+ * + * CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED = 0; + */ + public static final int CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * [AMD Secure Encrypted
+     * Virtualization](https://cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview#amd_sev)
+     * 
+ * + * SEV = 1; + */ + public static final int SEV_VALUE = 1; + + /** + * + * + *
+     * [AMD Secure Encrypted Virtualization-Secure Nested
+     * Paging](https://cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview#amd_sev-snp)
+     * 
+ * + * SEV_SNP = 2; + */ + public static final int SEV_SNP_VALUE = 2; + + /** + * + * + *
+     * [Intel Trust Domain
+     * Extensions](https://cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview#intel_tdx)
+     * 
+ * + * TDX = 3; + */ + public static final int TDX_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConfidentialInstanceType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ConfidentialInstanceType forNumber(int value) { + switch (value) { + case 0: + return CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED; + case 1: + return SEV; + case 2: + return SEV_SNP; + case 3: + return TDX; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ConfidentialInstanceType findValueByNumber(int number) { + return ConfidentialInstanceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ConfidentialInstanceType[] VALUES = values(); + + public static ConfidentialInstanceType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ConfidentialInstanceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType) + } + public static final int ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER = 1; private boolean enableConfidentialCompute_ = false; @@ -76,19 +284,70 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Optional. Defines whether the instance should have confidential compute
-   * enabled.
+   * Optional. Deprecated: Use 'confidential_instance_type' instead.
+   * Defines whether the instance should have confidential compute enabled.
    * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool enable_confidential_compute = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.dataproc.v1.ConfidentialInstanceConfig.enable_confidential_compute is + * deprecated. See google/cloud/dataproc/v1/clusters.proto;l=678 * @return The enableConfidentialCompute. */ @java.lang.Override + @java.lang.Deprecated public boolean getEnableConfidentialCompute() { return enableConfidentialCompute_; } + public static final int CONFIDENTIAL_INSTANCE_TYPE_FIELD_NUMBER = 2; + private int confidentialInstanceType_ = 0; + + /** + * + * + *
+   * Optional. Defines the type of Confidential Compute technology to use.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType confidential_instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confidentialInstanceType. + */ + @java.lang.Override + public int getConfidentialInstanceTypeValue() { + return confidentialInstanceType_; + } + + /** + * + * + *
+   * Optional. Defines the type of Confidential Compute technology to use.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType confidential_instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confidentialInstanceType. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType + getConfidentialInstanceType() { + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType result = + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType.forNumber( + confidentialInstanceType_); + return result == null + ? com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType + .UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -106,6 +365,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableConfidentialCompute_ != false) { output.writeBool(1, enableConfidentialCompute_); } + if (confidentialInstanceType_ + != com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType + .CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, confidentialInstanceType_); + } getUnknownFields().writeTo(output); } @@ -118,6 +383,12 @@ public int getSerializedSize() { if (enableConfidentialCompute_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableConfidentialCompute_); } + if (confidentialInstanceType_ + != com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType + .CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, confidentialInstanceType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -135,6 +406,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.ConfidentialInstanceConfig) obj; if (getEnableConfidentialCompute() != other.getEnableConfidentialCompute()) return false; + if (confidentialInstanceType_ != other.confidentialInstanceType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -148,6 +420,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableConfidentialCompute()); + hash = (37 * hash) + CONFIDENTIAL_INSTANCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + confidentialInstanceType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -255,7 +529,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * *
    * Confidential Instance Config for clusters using [Confidential
-   * VMs](https://cloud.google.com/compute/confidential-vm/docs)
+   * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs)
    * 
* * Protobuf type {@code google.cloud.dataproc.v1.ConfidentialInstanceConfig} @@ -291,6 +565,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; enableConfidentialCompute_ = false; + confidentialInstanceType_ = 0; return this; } @@ -330,6 +605,9 @@ private void buildPartial0(com.google.cloud.dataproc.v1.ConfidentialInstanceConf if (((from_bitField0_ & 0x00000001) != 0)) { result.enableConfidentialCompute_ = enableConfidentialCompute_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.confidentialInstanceType_ = confidentialInstanceType_; + } } @java.lang.Override @@ -348,6 +626,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ConfidentialInstanceConfig if (other.getEnableConfidentialCompute() != false) { setEnableConfidentialCompute(other.getEnableConfidentialCompute()); } + if (other.confidentialInstanceType_ != 0) { + setConfidentialInstanceTypeValue(other.getConfidentialInstanceTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -380,6 +661,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 16: + { + confidentialInstanceType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -405,15 +692,20 @@ public Builder mergeFrom( * * *
-     * Optional. Defines whether the instance should have confidential compute
-     * enabled.
+     * Optional. Deprecated: Use 'confidential_instance_type' instead.
+     * Defines whether the instance should have confidential compute enabled.
      * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool enable_confidential_compute = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.dataproc.v1.ConfidentialInstanceConfig.enable_confidential_compute + * is deprecated. See google/cloud/dataproc/v1/clusters.proto;l=678 * @return The enableConfidentialCompute. */ @java.lang.Override + @java.lang.Deprecated public boolean getEnableConfidentialCompute() { return enableConfidentialCompute_; } @@ -422,15 +714,20 @@ public boolean getEnableConfidentialCompute() { * * *
-     * Optional. Defines whether the instance should have confidential compute
-     * enabled.
+     * Optional. Deprecated: Use 'confidential_instance_type' instead.
+     * Defines whether the instance should have confidential compute enabled.
      * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool enable_confidential_compute = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.dataproc.v1.ConfidentialInstanceConfig.enable_confidential_compute + * is deprecated. See google/cloud/dataproc/v1/clusters.proto;l=678 * @param value The enableConfidentialCompute to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setEnableConfidentialCompute(boolean value) { enableConfidentialCompute_ = value; @@ -443,14 +740,19 @@ public Builder setEnableConfidentialCompute(boolean value) { * * *
-     * Optional. Defines whether the instance should have confidential compute
-     * enabled.
+     * Optional. Deprecated: Use 'confidential_instance_type' instead.
+     * Defines whether the instance should have confidential compute enabled.
      * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool enable_confidential_compute = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.dataproc.v1.ConfidentialInstanceConfig.enable_confidential_compute + * is deprecated. See google/cloud/dataproc/v1/clusters.proto;l=678 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearEnableConfidentialCompute() { bitField0_ = (bitField0_ & ~0x00000001); enableConfidentialCompute_ = false; @@ -458,6 +760,117 @@ public Builder clearEnableConfidentialCompute() { return this; } + private int confidentialInstanceType_ = 0; + + /** + * + * + *
+     * Optional. Defines the type of Confidential Compute technology to use.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType confidential_instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confidentialInstanceType. + */ + @java.lang.Override + public int getConfidentialInstanceTypeValue() { + return confidentialInstanceType_; + } + + /** + * + * + *
+     * Optional. Defines the type of Confidential Compute technology to use.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType confidential_instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for confidentialInstanceType to set. + * @return This builder for chaining. + */ + public Builder setConfidentialInstanceTypeValue(int value) { + confidentialInstanceType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Defines the type of Confidential Compute technology to use.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType confidential_instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confidentialInstanceType. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType + getConfidentialInstanceType() { + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType result = + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType + .forNumber(confidentialInstanceType_); + return result == null + ? com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Defines the type of Confidential Compute technology to use.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType confidential_instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The confidentialInstanceType to set. + * @return This builder for chaining. + */ + public Builder setConfidentialInstanceType( + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + confidentialInstanceType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Defines the type of Confidential Compute technology to use.
+     * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType confidential_instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearConfidentialInstanceType() { + bitField0_ = (bitField0_ & ~0x00000002); + confidentialInstanceType_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ConfidentialInstanceConfig) } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java index d50f9df843af..23b4550b525e 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java @@ -30,13 +30,49 @@ public interface ConfidentialInstanceConfigOrBuilder * * *
-   * Optional. Defines whether the instance should have confidential compute
-   * enabled.
+   * Optional. Deprecated: Use 'confidential_instance_type' instead.
+   * Defines whether the instance should have confidential compute enabled.
    * 
* - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool enable_confidential_compute = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.dataproc.v1.ConfidentialInstanceConfig.enable_confidential_compute is + * deprecated. See google/cloud/dataproc/v1/clusters.proto;l=678 * @return The enableConfidentialCompute. */ + @java.lang.Deprecated boolean getEnableConfidentialCompute(); + + /** + * + * + *
+   * Optional. Defines the type of Confidential Compute technology to use.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType confidential_instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confidentialInstanceType. + */ + int getConfidentialInstanceTypeValue(); + + /** + * + * + *
+   * Optional. Defines the type of Confidential Compute technology to use.
+   * 
+ * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType confidential_instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confidentialInstanceType. + */ + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType + getConfidentialInstanceType(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java index b8b57d164b39..62d37a307b88 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java @@ -74,6 +74,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 5: return internalGetMetadata(); + case 16: + return internalGetResourceManagerTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -1199,7 +1201,7 @@ public com.google.cloud.dataproc.v1.ShieldedInstanceConfig getShieldedInstanceCo * *
    * Optional. Confidential Instance Config for clusters using [Confidential
-   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+   * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
    * 
* * @@ -1218,7 +1220,7 @@ public boolean hasConfidentialInstanceConfig() { * *
    * Optional. Confidential Instance Config for clusters using [Confidential
-   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+   * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
    * 
* * @@ -1239,7 +1241,7 @@ public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getConfidentialIn * *
    * Optional. Confidential Instance Config for clusters using [Confidential
-   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+   * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
    * 
* * @@ -1254,6 +1256,137 @@ public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getConfidentialIn : confidentialInstanceConfig_; } + public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 16; + + private static final class ResourceManagerTagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_GceClusterConfig_ResourceManagerTagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField resourceManagerTags_; + + private com.google.protobuf.MapField + internalGetResourceManagerTags() { + if (resourceManagerTags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceManagerTagsDefaultEntryHolder.defaultEntry); + } + return resourceManagerTags_; + } + + public int getResourceManagerTagsCount() { + return internalGetResourceManagerTags().getMap().size(); + } + + /** + * + * + *
+   * Optional. [Resource manager tags]
+   * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
+   * to add to all instances (see [Use secure tags]
+   * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
+   * 
+ * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsResourceManagerTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetResourceManagerTags().getMap().containsKey(key); + } + + /** Use {@link #getResourceManagerTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResourceManagerTags() { + return getResourceManagerTagsMap(); + } + + /** + * + * + *
+   * Optional. [Resource manager tags]
+   * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
+   * to add to all instances (see [Use secure tags]
+   * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
+   * 
+ * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getResourceManagerTagsMap() { + return internalGetResourceManagerTags().getMap(); + } + + /** + * + * + *
+   * Optional. [Resource manager tags]
+   * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
+   * to add to all instances (see [Use secure tags]
+   * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
+   * 
+ * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getResourceManagerTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourceManagerTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. [Resource manager tags]
+   * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
+   * to add to all instances (see [Use secure tags]
+   * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
+   * 
+ * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getResourceManagerTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourceManagerTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1309,6 +1442,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(15, getConfidentialInstanceConfig()); } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetResourceManagerTags(), + ResourceManagerTagsDefaultEntryHolder.defaultEntry, + 16); getUnknownFields().writeTo(output); } @@ -1381,6 +1519,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 15, getConfidentialInstanceConfig()); } + for (java.util.Map.Entry entry : + internalGetResourceManagerTags().getMap().entrySet()) { + com.google.protobuf.MapEntry resourceManagerTags__ = + ResourceManagerTagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, resourceManagerTags__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1426,6 +1574,8 @@ public boolean equals(final java.lang.Object obj) { if (!getConfidentialInstanceConfig().equals(other.getConfidentialInstanceConfig())) return false; } + if (!internalGetResourceManagerTags().equals(other.internalGetResourceManagerTags())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1479,6 +1629,10 @@ public int hashCode() { hash = (37 * hash) + CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfidentialInstanceConfig().hashCode(); } + if (!internalGetResourceManagerTags().getMap().isEmpty()) { + hash = (37 * hash) + RESOURCE_MANAGER_TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetResourceManagerTags().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1605,6 +1759,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 5: return internalGetMetadata(); + case 16: + return internalGetResourceManagerTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -1616,6 +1772,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi switch (number) { case 5: return internalGetMutableMetadata(); + case 16: + return internalGetMutableResourceManagerTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -1683,6 +1841,7 @@ public Builder clear() { confidentialInstanceConfigBuilder_.dispose(); confidentialInstanceConfigBuilder_ = null; } + internalGetMutableResourceManagerTags().clear(); return this; } @@ -1779,6 +1938,10 @@ private void buildPartial0(com.google.cloud.dataproc.v1.GceClusterConfig result) : confidentialInstanceConfigBuilder_.build(); to_bitField0_ |= 0x00000010; } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.resourceManagerTags_ = internalGetResourceManagerTags(); + result.resourceManagerTags_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -1854,6 +2017,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GceClusterConfig other) { if (other.hasConfidentialInstanceConfig()) { mergeConfidentialInstanceConfig(other.getConfidentialInstanceConfig()); } + internalGetMutableResourceManagerTags().mergeFrom(other.internalGetResourceManagerTags()); + bitField0_ |= 0x00002000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1972,6 +2137,19 @@ public Builder mergeFrom( bitField0_ |= 0x00001000; break; } // case 122 + case 130: + { + com.google.protobuf.MapEntry + resourceManagerTags__ = + input.readMessage( + ResourceManagerTagsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableResourceManagerTags() + .getMutableMap() + .put(resourceManagerTags__.getKey(), resourceManagerTags__.getValue()); + bitField0_ |= 0x00002000; + break; + } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4231,7 +4409,7 @@ public Builder clearShieldedInstanceConfig() { * *
      * Optional. Confidential Instance Config for clusters using [Confidential
-     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+     * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
      * 
* * @@ -4249,7 +4427,7 @@ public boolean hasConfidentialInstanceConfig() { * *
      * Optional. Confidential Instance Config for clusters using [Confidential
-     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+     * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
      * 
* * @@ -4273,7 +4451,7 @@ public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getConfidentialIn * *
      * Optional. Confidential Instance Config for clusters using [Confidential
-     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+     * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
      * 
* * @@ -4300,7 +4478,7 @@ public Builder setConfidentialInstanceConfig( * *
      * Optional. Confidential Instance Config for clusters using [Confidential
-     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+     * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
      * 
* * @@ -4324,7 +4502,7 @@ public Builder setConfidentialInstanceConfig( * *
      * Optional. Confidential Instance Config for clusters using [Confidential
-     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+     * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
      * 
* * @@ -4357,7 +4535,7 @@ public Builder mergeConfidentialInstanceConfig( * *
      * Optional. Confidential Instance Config for clusters using [Confidential
-     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+     * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
      * 
* * @@ -4380,7 +4558,7 @@ public Builder clearConfidentialInstanceConfig() { * *
      * Optional. Confidential Instance Config for clusters using [Confidential
-     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+     * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
      * 
* * @@ -4399,7 +4577,7 @@ public Builder clearConfidentialInstanceConfig() { * *
      * Optional. Confidential Instance Config for clusters using [Confidential
-     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+     * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
      * 
* * @@ -4422,7 +4600,7 @@ public Builder clearConfidentialInstanceConfig() { * *
      * Optional. Confidential Instance Config for clusters using [Confidential
-     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+     * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
      * 
* * @@ -4446,6 +4624,220 @@ public Builder clearConfidentialInstanceConfig() { return confidentialInstanceConfigBuilder_; } + private com.google.protobuf.MapField resourceManagerTags_; + + private com.google.protobuf.MapField + internalGetResourceManagerTags() { + if (resourceManagerTags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceManagerTagsDefaultEntryHolder.defaultEntry); + } + return resourceManagerTags_; + } + + private com.google.protobuf.MapField + internalGetMutableResourceManagerTags() { + if (resourceManagerTags_ == null) { + resourceManagerTags_ = + com.google.protobuf.MapField.newMapField( + ResourceManagerTagsDefaultEntryHolder.defaultEntry); + } + if (!resourceManagerTags_.isMutable()) { + resourceManagerTags_ = resourceManagerTags_.copy(); + } + bitField0_ |= 0x00002000; + onChanged(); + return resourceManagerTags_; + } + + public int getResourceManagerTagsCount() { + return internalGetResourceManagerTags().getMap().size(); + } + + /** + * + * + *
+     * Optional. [Resource manager tags]
+     * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
+     * to add to all instances (see [Use secure tags]
+     * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
+     * 
+ * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsResourceManagerTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetResourceManagerTags().getMap().containsKey(key); + } + + /** Use {@link #getResourceManagerTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResourceManagerTags() { + return getResourceManagerTagsMap(); + } + + /** + * + * + *
+     * Optional. [Resource manager tags]
+     * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
+     * to add to all instances (see [Use secure tags]
+     * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
+     * 
+ * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getResourceManagerTagsMap() { + return internalGetResourceManagerTags().getMap(); + } + + /** + * + * + *
+     * Optional. [Resource manager tags]
+     * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
+     * to add to all instances (see [Use secure tags]
+     * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
+     * 
+ * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getResourceManagerTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourceManagerTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. [Resource manager tags]
+     * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
+     * to add to all instances (see [Use secure tags]
+     * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
+     * 
+ * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getResourceManagerTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourceManagerTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearResourceManagerTags() { + bitField0_ = (bitField0_ & ~0x00002000); + internalGetMutableResourceManagerTags().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. [Resource manager tags]
+     * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
+     * to add to all instances (see [Use secure tags]
+     * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
+     * 
+ * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeResourceManagerTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableResourceManagerTags().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableResourceManagerTags() { + bitField0_ |= 0x00002000; + return internalGetMutableResourceManagerTags().getMutableMap(); + } + + /** + * + * + *
+     * Optional. [Resource manager tags]
+     * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
+     * to add to all instances (see [Use secure tags]
+     * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
+     * 
+ * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putResourceManagerTags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableResourceManagerTags().getMutableMap().put(key, value); + bitField0_ |= 0x00002000; + return this; + } + + /** + * + * + *
+     * Optional. [Resource manager tags]
+     * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
+     * to add to all instances (see [Use secure tags]
+     * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
+     * 
+ * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllResourceManagerTags( + java.util.Map values) { + internalGetMutableResourceManagerTags().getMutableMap().putAll(values); + bitField0_ |= 0x00002000; + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GceClusterConfig) } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java index 1cacc3e006af..c85e93697bea 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java @@ -670,7 +670,7 @@ java.lang.String getMetadataOrDefault( * *
    * Optional. Confidential Instance Config for clusters using [Confidential
-   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+   * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
    * 
* * @@ -686,7 +686,7 @@ java.lang.String getMetadataOrDefault( * *
    * Optional. Confidential Instance Config for clusters using [Confidential
-   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+   * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
    * 
* * @@ -702,7 +702,7 @@ java.lang.String getMetadataOrDefault( * *
    * Optional. Confidential Instance Config for clusters using [Confidential
-   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
+   * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
    * 
* * @@ -711,4 +711,92 @@ java.lang.String getMetadataOrDefault( */ com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder(); + + /** + * + * + *
+   * Optional. [Resource manager tags]
+   * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
+   * to add to all instances (see [Use secure tags]
+   * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
+   * 
+ * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getResourceManagerTagsCount(); + + /** + * + * + *
+   * Optional. [Resource manager tags]
+   * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
+   * to add to all instances (see [Use secure tags]
+   * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
+   * 
+ * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsResourceManagerTags(java.lang.String key); + + /** Use {@link #getResourceManagerTagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getResourceManagerTags(); + + /** + * + * + *
+   * Optional. [Resource manager tags]
+   * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
+   * to add to all instances (see [Use secure tags]
+   * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
+   * 
+ * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getResourceManagerTagsMap(); + + /** + * + * + *
+   * Optional. [Resource manager tags]
+   * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
+   * to add to all instances (see [Use secure tags]
+   * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
+   * 
+ * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getResourceManagerTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. [Resource manager tags]
+   * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
+   * to add to all instances (see [Use secure tags]
+   * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
+   * 
+ * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getResourceManagerTagsOrThrow(java.lang.String key); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto index f1bc59a225e6..984f3ebbdadc 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/proto/google/cloud/dataproc/v1/clusters.proto @@ -608,9 +608,16 @@ message GceClusterConfig { [(google.api.field_behavior) = OPTIONAL]; // Optional. Confidential Instance Config for clusters using [Confidential - // VMs](https://cloud.google.com/compute/confidential-vm/docs). + // VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs). ConfidentialInstanceConfig confidential_instance_config = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. [Resource manager tags] + // (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing) + // to add to all instances (see [Use secure tags] + // (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)). + map resource_manager_tags = 16 + [(google.api.field_behavior) = OPTIONAL]; } // Node Group Affinity for clusters using sole-tenant node groups. @@ -645,11 +652,36 @@ message ShieldedInstanceConfig { } // Confidential Instance Config for clusters using [Confidential -// VMs](https://cloud.google.com/compute/confidential-vm/docs) +// VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs) message ConfidentialInstanceConfig { - // Optional. Defines whether the instance should have confidential compute - // enabled. - bool enable_confidential_compute = 1 [(google.api.field_behavior) = OPTIONAL]; + // The type of Confidential Compute technology as per [Confidential Computing + // types](https://cloud.google.com/confidential-computing/confidential-vm/docs/create-a-confidential-vm-instance#create-instance). + // New values may be added in the future. + enum ConfidentialInstanceType { + // Confidential Instance Type is not specified. + CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED = 0; + + // [AMD Secure Encrypted + // Virtualization](https://cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview#amd_sev) + SEV = 1; + + // [AMD Secure Encrypted Virtualization-Secure Nested + // Paging](https://cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview#amd_sev-snp) + SEV_SNP = 2; + + // [Intel Trust Domain + // Extensions](https://cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview#intel_tdx) + TDX = 3; + } + + // Optional. Deprecated: Use 'confidential_instance_type' instead. + // Defines whether the instance should have confidential compute enabled. + bool enable_confidential_compute = 1 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. Defines the type of Confidential Compute technology to use. + ConfidentialInstanceType confidential_instance_type = 2 + [(google.api.field_behavior) = OPTIONAL]; } // The config settings for Compute Engine resources in diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java index d237807d65cd..9fbffc7c1103 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java @@ -279,8 +279,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1714,9 +1713,8 @@ public final GenerativeSettings updateGenerativeSettings( * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1760,9 +1758,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1806,9 +1803,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java index 654777b5f0c4..f1fbdb7df2d0 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java @@ -107,8 +107,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -524,9 +523,8 @@ public final UnaryCallable getChangelogCallable( * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -570,9 +568,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -617,9 +614,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java index 8c3598221f4e..4b64b46d9214 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java @@ -109,8 +109,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -548,9 +547,8 @@ public final UnaryCallable getDeploymentCallab * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -594,9 +592,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -641,9 +638,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java index 9a815f8a3321..620ad2b93891 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java @@ -205,8 +205,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1209,9 +1208,8 @@ public final UnaryCallable importEntityType * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1255,9 +1253,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1302,9 +1299,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java index 23ccbee3a8e7..92ea117bc1ca 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java @@ -253,8 +253,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1787,9 +1786,8 @@ public final UnaryCallable deployFlowCallable() { * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1833,9 +1831,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1880,9 +1877,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesClient.java index 8dab5dcbf8a5..3fed534b9dd9 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesClient.java @@ -166,8 +166,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -916,9 +915,8 @@ public final UnaryCallable updateExampleCallable( * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -962,9 +960,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1008,9 +1005,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java index 66be0e03ba36..1ce4a085af46 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java @@ -205,8 +205,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1235,9 +1234,8 @@ public final UnaryCallable stopExperimentCall * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1281,9 +1279,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1328,9 +1325,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java index 57899f3802a9..4f4b513f3f8c 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java @@ -266,8 +266,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1676,9 +1675,8 @@ public final UnaryCallable exportFlowCallable() { * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1722,9 +1720,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1768,9 +1765,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsClient.java index 794f8891e8bc..5105787d3d87 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsClient.java @@ -165,8 +165,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -913,9 +912,8 @@ public final UnaryCallable deleteGeneratorCallabl * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -959,9 +957,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1006,9 +1003,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java index c994f0a5f8ee..874593460980 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java @@ -207,8 +207,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1217,9 +1216,8 @@ public final UnaryCallable exportIntentsCallabl * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1263,9 +1261,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1309,9 +1306,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java index 53337d1ace27..bcd4b31f542e 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java @@ -168,8 +168,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -940,9 +939,8 @@ public final UnaryCallable deletePageCallable() { * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -986,9 +984,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1032,9 +1029,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksClient.java index a2a15b5f36f3..a8119025355b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksClient.java @@ -299,8 +299,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1919,9 +1918,8 @@ public final UnaryCallable deletePlaybookVe * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1965,9 +1963,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2011,9 +2008,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java index 7ad44b3aebc0..feae18a6d3f3 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java @@ -169,8 +169,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -977,9 +976,8 @@ public final void deleteSecuritySettings(DeleteSecuritySettingsRequest request) * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1024,9 +1022,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1072,9 +1069,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java index 0e571ecf81e7..7cf37ee8183c 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java @@ -169,8 +169,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1009,9 +1008,8 @@ public final void deleteSessionEntityType(DeleteSessionEntityTypeRequest request * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1055,9 +1053,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1102,9 +1099,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java index 850c8e7ed79a..bbc5804c39ff 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java @@ -160,8 +160,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -666,9 +665,8 @@ public final AnswerFeedback submitAnswerFeedback(SubmitAnswerFeedbackRequest req * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -712,9 +710,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -758,9 +755,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java index 43dd27191f69..ff2d0dba9e00 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java @@ -292,8 +292,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1888,9 +1887,8 @@ public final UnaryCallable getTestCase * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1934,9 +1932,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1980,9 +1977,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java index f86af4ad0fea..ed0e4c39f789 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java @@ -262,8 +262,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1636,9 +1635,8 @@ public final RestoreToolVersionResponse restoreToolVersion(RestoreToolVersionReq * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1682,9 +1680,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1728,9 +1725,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java index 375754d68145..fc578661736b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java @@ -175,8 +175,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1163,9 +1162,8 @@ public final void deleteTransitionRouteGroup(DeleteTransitionRouteGroupRequest r * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1210,9 +1208,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1258,9 +1255,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java index 00958e9104e8..3ada2dcfa4a7 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java @@ -216,8 +216,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1392,9 +1391,8 @@ public final CompareVersionsResponse compareVersions(CompareVersionsRequest requ * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1438,9 +1436,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1484,9 +1481,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java index 95294db20806..bc126836dafe 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java @@ -165,8 +165,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -893,9 +892,8 @@ public final UnaryCallable deleteWebhookCallable() * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -939,9 +937,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -985,9 +982,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java index d3aa9430db7d..75e1de3c5e0a 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java @@ -279,8 +279,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1715,9 +1714,8 @@ public final GenerativeSettings updateGenerativeSettings( * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1761,9 +1759,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1807,9 +1804,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java index 5da2bf417658..5e7928cbe348 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java @@ -109,8 +109,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -527,9 +526,8 @@ public final UnaryCallable getChangelogCallable( * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -573,9 +571,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -620,9 +617,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistoryClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistoryClient.java index 0354ba305357..e843cb6ce573 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistoryClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistoryClient.java @@ -130,8 +130,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -683,9 +682,8 @@ public final UnaryCallable deleteConversationC * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -729,9 +727,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -776,9 +773,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java index 516534f6b4e4..700448b4b1cd 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java @@ -110,8 +110,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -550,9 +549,8 @@ public final UnaryCallable getDeploymentCallab * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -596,9 +594,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -643,9 +640,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java index 0f5b43633956..a08a31ecd8dd 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java @@ -204,8 +204,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1197,9 +1196,8 @@ public final UnaryCallable importEntityType * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1243,9 +1241,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1290,9 +1287,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java index 5230585990f6..7d85549ead37 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java @@ -253,8 +253,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1793,9 +1792,8 @@ public final UnaryCallable deployFlowCallable() { * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1839,9 +1837,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1886,9 +1883,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesClient.java index 5fc01b9a17d0..89494c0b834b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesClient.java @@ -167,8 +167,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -918,9 +917,8 @@ public final UnaryCallable updateExampleCallable( * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -964,9 +962,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1010,9 +1007,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java index dcf41b27540f..1134e1eae4d8 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java @@ -206,8 +206,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1237,9 +1236,8 @@ public final UnaryCallable stopExperimentCall * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1283,9 +1281,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1330,9 +1327,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java index fa4c53d7788c..c7209edb21a2 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java @@ -266,8 +266,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1677,9 +1676,8 @@ public final UnaryCallable exportFlowCallable() { * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1723,9 +1721,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1769,9 +1766,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsClient.java index f4ee0f01d038..2f31eb6e0a28 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsClient.java @@ -167,8 +167,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -916,9 +915,8 @@ public final UnaryCallable deleteGeneratorCallabl * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -962,9 +960,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1009,9 +1006,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java index 3d43cf54872f..3440802b59fc 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java @@ -207,8 +207,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1224,9 +1223,8 @@ public final UnaryCallable exportIntentsCallabl * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1270,9 +1268,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1316,9 +1313,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java index 52e68125e739..397b606d13c2 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java @@ -166,8 +166,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -906,9 +905,8 @@ public final UnaryCallable deletePageCallable() { * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -952,9 +950,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -998,9 +995,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClient.java index 4dc7c4e875d1..bce643339ef5 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClient.java @@ -300,8 +300,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1921,9 +1920,8 @@ public final UnaryCallable deletePlaybookVe * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1967,9 +1965,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2013,9 +2010,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java index 1ac82caced29..8a5f319f3c8f 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java @@ -170,8 +170,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -983,9 +982,8 @@ public final void deleteSecuritySettings(DeleteSecuritySettingsRequest request) * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1030,9 +1028,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1078,9 +1075,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java index 901612ffb983..c6741957c499 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java @@ -170,8 +170,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1011,9 +1010,8 @@ public final void deleteSessionEntityType(DeleteSessionEntityTypeRequest request * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1057,9 +1055,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1104,9 +1101,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java index 21ce784cebd3..185f805805df 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java @@ -161,8 +161,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -668,9 +667,8 @@ public final AnswerFeedback submitAnswerFeedback(SubmitAnswerFeedbackRequest req * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -714,9 +712,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -760,9 +757,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java index 83964b72542f..08ce55ee3056 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java @@ -293,8 +293,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1896,9 +1895,8 @@ public final UnaryCallable getTestCase * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1942,9 +1940,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1988,9 +1985,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClient.java index 40d7f4d614dd..984941792be5 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClient.java @@ -282,8 +282,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1770,9 +1769,8 @@ public final RestoreToolVersionResponse restoreToolVersion(RestoreToolVersionReq * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1816,9 +1814,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1862,9 +1859,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java index 0edee41fedd3..7ee4df84f68b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java @@ -176,8 +176,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1168,9 +1167,8 @@ public final void deleteTransitionRouteGroup(DeleteTransitionRouteGroupRequest r * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1215,9 +1213,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1263,9 +1260,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java index 9e27db6e267e..71e53f98f23b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java @@ -216,8 +216,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1400,9 +1399,8 @@ public final CompareVersionsResponse compareVersions(CompareVersionsRequest requ * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1446,9 +1444,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1492,9 +1489,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java index 4ae643a5d6eb..21aecb0fd513 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java @@ -166,8 +166,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -895,9 +894,8 @@ public final UnaryCallable deleteWebhookCallable() * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -941,9 +939,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -987,9 +984,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled 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 99ec78961e49..4496f895b473 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 @@ -135,20 +135,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\035SSML_VOICE_GENDER_UNSPECIFIED\020\000\022\032\n\026SSM" + "L_VOICE_GENDER_MALE\020\001\022\034\n\030SSML_VOICE_GEND" + "ER_FEMALE\020\002\022\035\n\031SSML_VOICE_GENDER_NEUTRAL" - + "\020\003*\214\002\n\023OutputAudioEncoding\022%\n!OUTPUT_AUD" + + "\020\003*\220\002\n\023OutputAudioEncoding\022%\n!OUTPUT_AUD" + "IO_ENCODING_UNSPECIFIED\020\000\022#\n\037OUTPUT_AUDI" - + "O_ENCODING_LINEAR_16\020\001\022\035\n\031OUTPUT_AUDIO_E" - + "NCODING_MP3\020\002\022%\n!OUTPUT_AUDIO_ENCODING_M" - + "P3_64_KBPS\020\004\022\"\n\036OUTPUT_AUDIO_ENCODING_OG" - + "G_OPUS\020\003\022\037\n\033OUTPUT_AUDIO_ENCODING_MULAW\020" - + "\005\022\036\n\032OUTPUT_AUDIO_ENCODING_ALAW\020\006B\213\002\n!co" - + "m.google.cloud.dialogflow.cx.v3B\020AudioCo" - + "nfigProtoP\001Z1cloud.google.com/go/dialogf" - + "low/cx/apiv3/cxpb;cxpb\242\002\002DF\252\002\035Google.Clo" - + "ud.Dialogflow.Cx.V3\352\002!Google::Cloud::Dia" - + "logflow::CX::V3\352AU\n\033automl.googleapis.co" - + "m/Model\0226projects/{project}/locations/{l" - + "ocation}/models/{model}b\006proto3" + + "O_ENCODING_LINEAR_16\020\001\022!\n\031OUTPUT_AUDIO_E" + + "NCODING_MP3\020\002\032\002\010\001\022%\n!OUTPUT_AUDIO_ENCODI" + + "NG_MP3_64_KBPS\020\004\022\"\n\036OUTPUT_AUDIO_ENCODIN" + + "G_OGG_OPUS\020\003\022\037\n\033OUTPUT_AUDIO_ENCODING_MU" + + "LAW\020\005\022\036\n\032OUTPUT_AUDIO_ENCODING_ALAW\020\006B\213\002" + + "\n!com.google.cloud.dialogflow.cx.v3B\020Aud" + + "ioConfigProtoP\001Z1cloud.google.com/go/dia" + + "logflow/cx/apiv3/cxpb;cxpb\242\002\002DF\252\002\035Google" + + ".Cloud.Dialogflow.Cx.V3\352\002!Google::Cloud:" + + ":Dialogflow::CX::V3\352AU\n\033automl.googleapi" + + "s.com/Model\0226projects/{project}/location" + + "s/{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/DetectIntentResponseView.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponseView.java index fd0300b81376..1af76bae74de 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponseView.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponseView.java @@ -59,6 +59,11 @@ public enum DetectIntentResponseView implements com.google.protobuf.ProtocolMess * Basic response view omits the following fields: * - * [QueryResult.diagnostic_info][google.cloud.dialogflow.cx.v3.QueryResult.diagnostic_info] + * - [QueryResult.generative_info][] + * - + * [QueryResult.trace_blocks][google.cloud.dialogflow.cx.v3.QueryResult.trace_blocks] + * - + * [QueryResult.data_store_connection_signals][google.cloud.dialogflow.cx.v3.QueryResult.data_store_connection_signals] * * * DETECT_INTENT_RESPONSE_VIEW_BASIC = 2; @@ -118,6 +123,11 @@ public enum DetectIntentResponseView implements com.google.protobuf.ProtocolMess * Basic response view omits the following fields: * - * [QueryResult.diagnostic_info][google.cloud.dialogflow.cx.v3.QueryResult.diagnostic_info] + * - [QueryResult.generative_info][] + * - + * [QueryResult.trace_blocks][google.cloud.dialogflow.cx.v3.QueryResult.trace_blocks] + * - + * [QueryResult.data_store_connection_signals][google.cloud.dialogflow.cx.v3.QueryResult.data_store_connection_signals] * * * DETECT_INTENT_RESPONSE_VIEW_BASIC = 2; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/OutputAudioEncoding.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/OutputAudioEncoding.java index 51b027002c2e..0ee0799935c1 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/OutputAudioEncoding.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/OutputAudioEncoding.java @@ -57,11 +57,12 @@ public enum OutputAudioEncoding implements com.google.protobuf.ProtocolMessageEn * * *

-   * MP3 audio at 32kbps.
+   * MP3 audio at 64kbps.
    * 
* - * OUTPUT_AUDIO_ENCODING_MP3 = 2; + * OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; */ + @java.lang.Deprecated OUTPUT_AUDIO_ENCODING_MP3(2), /** * @@ -148,12 +149,12 @@ public enum OutputAudioEncoding implements com.google.protobuf.ProtocolMessageEn * * *
-   * MP3 audio at 32kbps.
+   * MP3 audio at 64kbps.
    * 
* - * OUTPUT_AUDIO_ENCODING_MP3 = 2; + * OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; */ - public static final int OUTPUT_AUDIO_ENCODING_MP3_VALUE = 2; + @java.lang.Deprecated public static final int OUTPUT_AUDIO_ENCODING_MP3_VALUE = 2; /** * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/audio_config.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/audio_config.proto index c29a088c3040..8c17ea3b261a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/audio_config.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/audio_config.proto @@ -314,8 +314,8 @@ enum OutputAudioEncoding { // LINT: LEGACY_NAMES OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1; - // MP3 audio at 32kbps. - OUTPUT_AUDIO_ENCODING_MP3 = 2; + // MP3 audio at 64kbps. + OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; // MP3 audio at 64kbps. // LINT: LEGACY_NAMES 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 bf7a6f42f352..498d06d63a2c 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 @@ -1406,6 +1406,11 @@ enum DetectIntentResponseView { // Basic response view omits the following fields: // - // [QueryResult.diagnostic_info][google.cloud.dialogflow.cx.v3.QueryResult.diagnostic_info] + // - [QueryResult.generative_info][] + // - + // [QueryResult.trace_blocks][google.cloud.dialogflow.cx.v3.QueryResult.trace_blocks] + // - + // [QueryResult.data_store_connection_signals][google.cloud.dialogflow.cx.v3.QueryResult.data_store_connection_signals] DETECT_INTENT_RESPONSE_VIEW_BASIC = 2; // Default response view omits the following fields: diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AudioConfigProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AudioConfigProto.java index b0a7db5ef0fa..7a37ea9333e2 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AudioConfigProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AudioConfigProto.java @@ -136,21 +136,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "mlVoiceGender\022!\n\035SSML_VOICE_GENDER_UNSPE" + "CIFIED\020\000\022\032\n\026SSML_VOICE_GENDER_MALE\020\001\022\034\n\030" + "SSML_VOICE_GENDER_FEMALE\020\002\022\035\n\031SSML_VOICE" - + "_GENDER_NEUTRAL\020\003*\214\002\n\023OutputAudioEncodin" + + "_GENDER_NEUTRAL\020\003*\220\002\n\023OutputAudioEncodin" + "g\022%\n!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\020\000" - + "\022#\n\037OUTPUT_AUDIO_ENCODING_LINEAR_16\020\001\022\035\n" - + "\031OUTPUT_AUDIO_ENCODING_MP3\020\002\022%\n!OUTPUT_A" - + "UDIO_ENCODING_MP3_64_KBPS\020\004\022\"\n\036OUTPUT_AU" - + "DIO_ENCODING_OGG_OPUS\020\003\022\037\n\033OUTPUT_AUDIO_" - + "ENCODING_MULAW\020\005\022\036\n\032OUTPUT_AUDIO_ENCODIN" - + "G_ALAW\020\006B\237\002\n&com.google.cloud.dialogflow" - + ".cx.v3beta1B\020AudioConfigProtoP\001Z6cloud.g" - + "oogle.com/go/dialogflow/cx/apiv3beta1/cx" - + "pb;cxpb\242\002\002DF\252\002\"Google.Cloud.Dialogflow.C" - + "x.V3Beta1\352\002&Google::Cloud::Dialogflow::C" - + "X::V3beta1\352AU\n\033automl.googleapis.com/Mod" - + "el\0226projects/{project}/locations/{locati" - + "on}/models/{model}b\006proto3" + + "\022#\n\037OUTPUT_AUDIO_ENCODING_LINEAR_16\020\001\022!\n" + + "\031OUTPUT_AUDIO_ENCODING_MP3\020\002\032\002\010\001\022%\n!OUTP" + + "UT_AUDIO_ENCODING_MP3_64_KBPS\020\004\022\"\n\036OUTPU" + + "T_AUDIO_ENCODING_OGG_OPUS\020\003\022\037\n\033OUTPUT_AU" + + "DIO_ENCODING_MULAW\020\005\022\036\n\032OUTPUT_AUDIO_ENC" + + "ODING_ALAW\020\006B\237\002\n&com.google.cloud.dialog" + + "flow.cx.v3beta1B\020AudioConfigProtoP\001Z6clo" + + "ud.google.com/go/dialogflow/cx/apiv3beta" + + "1/cxpb;cxpb\242\002\002DF\252\002\"Google.Cloud.Dialogfl" + + "ow.Cx.V3Beta1\352\002&Google::Cloud::Dialogflo" + + "w::CX::V3beta1\352AU\n\033automl.googleapis.com" + + "/Model\0226projects/{project}/locations/{lo" + + "cation}/models/{model}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponseView.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponseView.java index b2611ec562e9..d86aba442b39 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponseView.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponseView.java @@ -61,6 +61,10 @@ public enum DetectIntentResponseView implements com.google.protobuf.ProtocolMess * [QueryResult.diagnostic_info][google.cloud.dialogflow.cx.v3beta1.QueryResult.diagnostic_info] * - * [QueryResult.generative_info][google.cloud.dialogflow.cx.v3beta1.QueryResult.generative_info] + * - + * [QueryResult.trace_blocks][google.cloud.dialogflow.cx.v3beta1.QueryResult.trace_blocks] + * - + * [QueryResult.data_store_connection_signals][google.cloud.dialogflow.cx.v3beta1.QueryResult.data_store_connection_signals] * * * DETECT_INTENT_RESPONSE_VIEW_BASIC = 2; @@ -122,6 +126,10 @@ public enum DetectIntentResponseView implements com.google.protobuf.ProtocolMess * [QueryResult.diagnostic_info][google.cloud.dialogflow.cx.v3beta1.QueryResult.diagnostic_info] * - * [QueryResult.generative_info][google.cloud.dialogflow.cx.v3beta1.QueryResult.generative_info] + * - + * [QueryResult.trace_blocks][google.cloud.dialogflow.cx.v3beta1.QueryResult.trace_blocks] + * - + * [QueryResult.data_store_connection_signals][google.cloud.dialogflow.cx.v3beta1.QueryResult.data_store_connection_signals] * * * DETECT_INTENT_RESPONSE_VIEW_BASIC = 2; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/OutputAudioEncoding.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/OutputAudioEncoding.java index 894e4222acf3..301ddd72d535 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/OutputAudioEncoding.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/OutputAudioEncoding.java @@ -57,11 +57,12 @@ public enum OutputAudioEncoding implements com.google.protobuf.ProtocolMessageEn * * *
-   * MP3 audio at 32kbps.
+   * MP3 audio at 64kbps.
    * 
* - * OUTPUT_AUDIO_ENCODING_MP3 = 2; + * OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; */ + @java.lang.Deprecated OUTPUT_AUDIO_ENCODING_MP3(2), /** * @@ -148,12 +149,12 @@ public enum OutputAudioEncoding implements com.google.protobuf.ProtocolMessageEn * * *
-   * MP3 audio at 32kbps.
+   * MP3 audio at 64kbps.
    * 
* - * OUTPUT_AUDIO_ENCODING_MP3 = 2; + * OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; */ - public static final int OUTPUT_AUDIO_ENCODING_MP3_VALUE = 2; + @java.lang.Deprecated public static final int OUTPUT_AUDIO_ENCODING_MP3_VALUE = 2; /** * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/audio_config.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/audio_config.proto index 7a93fb1d6653..9ae05c99f8f3 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/audio_config.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/audio_config.proto @@ -314,8 +314,8 @@ enum OutputAudioEncoding { // LINT: LEGACY_NAMES OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1; - // MP3 audio at 32kbps. - OUTPUT_AUDIO_ENCODING_MP3 = 2; + // MP3 audio at 64kbps. + OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; // MP3 audio at 64kbps. // LINT: LEGACY_NAMES diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto index d0d5ec02200c..e87990b0f12f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto @@ -1443,6 +1443,10 @@ enum DetectIntentResponseView { // [QueryResult.diagnostic_info][google.cloud.dialogflow.cx.v3beta1.QueryResult.diagnostic_info] // - // [QueryResult.generative_info][google.cloud.dialogflow.cx.v3beta1.QueryResult.generative_info] + // - + // [QueryResult.trace_blocks][google.cloud.dialogflow.cx.v3beta1.QueryResult.trace_blocks] + // - + // [QueryResult.data_store_connection_signals][google.cloud.dialogflow.cx.v3beta1.QueryResult.data_store_connection_signals] DETECT_INTENT_RESPONSE_VIEW_BASIC = 2; // Default response view omits the following fields: diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java index 1865fe2a86f3..fff95f531bc1 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java @@ -257,8 +257,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1812,9 +1811,8 @@ public final ValidationResult getValidationResult(GetValidationResultRequest req * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1858,9 +1856,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1904,9 +1901,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java index 529cb3afe1a4..a8e230a22daf 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java @@ -110,8 +110,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -541,9 +540,8 @@ public final UnaryCallable updateAnswer * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -587,9 +585,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -634,9 +631,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java index 0c3b0c5b53f4..efb9926790f7 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java @@ -186,8 +186,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1078,9 +1077,8 @@ public final UnaryCallable deleteAllContextsCal * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1124,9 +1122,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1170,9 +1167,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java index 334c3ed866c7..a2a3946785d3 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java @@ -179,8 +179,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1164,9 +1163,8 @@ public final ListConversationDatasetsPagedResponse listConversationDatasets( * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1211,9 +1209,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1259,9 +1256,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java index 3cce465d6dfe..493a30746911 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java @@ -245,8 +245,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1590,9 +1589,8 @@ public final ListConversationModelEvaluationsPagedResponse listConversationModel * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1636,9 +1634,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1683,9 +1680,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java index 1b004e718765..6b120b235c23 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java @@ -224,8 +224,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1664,9 +1663,8 @@ public final void deleteConversationProfile(DeleteConversationProfileRequest req * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1711,9 +1709,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1759,9 +1756,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java index 4e9f777a93c3..cb02762be056 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java @@ -273,8 +273,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1954,9 +1953,8 @@ public final GenerateSuggestionsResponse generateSuggestions(GenerateSuggestions * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2000,9 +1998,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2047,9 +2044,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java index e82c366ed258..8f2e0ee35787 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java @@ -239,8 +239,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1752,9 +1751,8 @@ public final UnaryCallable exportDocumentCalla * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1798,9 +1796,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1844,9 +1841,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceClient.java index 076cadadc67f..ee0ba9093770 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceClient.java @@ -113,8 +113,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -536,9 +535,8 @@ public final UnaryCallable getEncrypti * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -583,9 +581,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -631,9 +628,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java index ac34fe16dc17..2d70add01ac6 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java @@ -296,8 +296,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -2710,9 +2709,8 @@ public final UnaryCallable batchDeleteEnt * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2756,9 +2754,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2803,9 +2800,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java index b2ff195f4a8a..03c70f71af32 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java @@ -165,8 +165,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -834,9 +833,8 @@ public final GetEnvironmentHistoryPagedResponse getEnvironmentHistory( * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -880,9 +878,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -927,9 +924,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java index 2fea4c43a379..85a5074fd732 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java @@ -106,8 +106,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -445,9 +444,8 @@ public final UnaryCallable updateFulfillm * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -491,9 +489,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -538,9 +535,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsClient.java index baa94027c703..c5462b6fe0f7 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsClient.java @@ -155,8 +155,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -937,9 +936,8 @@ public final void deleteGeneratorEvaluation(DeleteGeneratorEvaluationRequest req * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -984,9 +982,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1032,9 +1029,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsClient.java index 1006649c04aa..629bded86d05 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsClient.java @@ -170,8 +170,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -927,9 +926,8 @@ public final UnaryCallable updateGeneratorCal * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -973,9 +971,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1020,9 +1017,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java index 91469ac7b216..e87d5f093d28 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java @@ -229,8 +229,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1858,9 +1857,8 @@ public final UnaryCallable batchDeleteInte * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1904,9 +1902,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1950,9 +1947,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java index dcad96966805..5ba85e67b312 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java @@ -169,8 +169,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1001,9 +1000,8 @@ public final KnowledgeBase updateKnowledgeBase(UpdateKnowledgeBaseRequest reques * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1047,9 +1045,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1094,9 +1091,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java index 1c4f2e224e28..89b31fc595bd 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java @@ -255,8 +255,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1788,9 +1787,8 @@ public final SuggestKnowledgeAssistResponse suggestKnowledgeAssist( * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1834,9 +1832,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1881,9 +1878,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java index 1d242260d5f5..e49c9543aa02 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java @@ -176,8 +176,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1090,9 +1089,8 @@ public final void deleteSessionEntityType(DeleteSessionEntityTypeRequest request * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1136,9 +1134,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1183,9 +1180,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java index f959485f41c0..a837a392626c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java @@ -106,8 +106,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -494,9 +493,8 @@ public final UnaryCallable detectInte * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -540,9 +538,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -586,9 +583,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksClient.java index 655e68435be5..76259569f728 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksClient.java @@ -166,8 +166,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -892,9 +891,8 @@ public final UnaryCallable updateSipTrunkCallab * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -938,9 +936,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -984,9 +981,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsClient.java index 16d8192d8710..b8525c442a8d 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsClient.java @@ -168,8 +168,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -909,9 +908,8 @@ public final UnaryCallable updateToolCallable() { * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -955,9 +953,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1001,9 +998,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java index eac319a2bee0..f5fb8141d8dd 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java @@ -167,8 +167,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -924,9 +923,8 @@ public final UnaryCallable deleteVersionCallable() * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -970,9 +968,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1016,9 +1013,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java index a1d9016b8c9c..53d497339e11 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java @@ -256,8 +256,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1812,9 +1811,8 @@ public final ValidationResult getValidationResult(GetValidationResultRequest req * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1858,9 +1856,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1904,9 +1901,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java index e2053860f98f..0cad54abdc68 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java @@ -125,8 +125,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -614,9 +613,8 @@ public final UnaryCallable updateAnswer * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -660,9 +658,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -707,9 +704,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java index 83942101a190..bcbf00c7d973 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java @@ -188,8 +188,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1157,9 +1156,8 @@ public final UnaryCallable deleteAllContextsCal * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1203,9 +1201,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1249,9 +1246,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java index 4f43c5d878fc..a53df4cb19fd 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java @@ -224,8 +224,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1649,9 +1648,8 @@ public final void deleteConversationProfile(DeleteConversationProfileRequest req * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1696,9 +1694,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1744,9 +1741,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java index b3ba35035005..d925a04ce2e5 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java @@ -290,8 +290,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -2114,9 +2113,8 @@ public final GenerateSuggestionsResponse generateSuggestions(GenerateSuggestions * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2160,9 +2158,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2207,9 +2204,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java index 1cd765c617fe..42a63a591ebd 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java @@ -228,8 +228,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1732,9 +1731,8 @@ public final UnaryCallable reloadDocumentCalla * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1778,9 +1776,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1824,9 +1821,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceClient.java index 9132a17ebc25..7d94d8ba0b12 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceClient.java @@ -113,8 +113,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -537,9 +536,8 @@ public final UnaryCallable getEncrypti * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -584,9 +582,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -632,9 +629,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java index c2baf76d7358..0d20bb1576c3 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java @@ -299,8 +299,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -2799,9 +2798,8 @@ public final UnaryCallable batchDeleteEnt * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2845,9 +2843,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2892,9 +2889,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java index 64a7b01939e3..c5d35af91d63 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java @@ -167,8 +167,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -837,9 +836,8 @@ public final GetEnvironmentHistoryPagedResponse getEnvironmentHistory( * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -883,9 +881,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -930,9 +927,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java index 7f079a0bd964..3e1fa83d2bc2 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java @@ -108,8 +108,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -450,9 +449,8 @@ public final UnaryCallable updateFulfillm * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -496,9 +494,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -543,9 +540,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java index bae33359a342..b8edc1bd752e 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java @@ -155,8 +155,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -938,9 +937,8 @@ public final void deleteGeneratorEvaluation(DeleteGeneratorEvaluationRequest req * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -985,9 +983,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1033,9 +1030,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClient.java index 53de3a85af25..2dbe7b6e8c0d 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClient.java @@ -171,8 +171,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -929,9 +928,8 @@ public final UnaryCallable updateGeneratorCal * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -975,9 +973,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1022,9 +1019,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java index a8fda931343c..57715f91f14e 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java @@ -231,8 +231,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1946,9 +1945,8 @@ public final UnaryCallable batchDeleteInte * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1992,9 +1990,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2038,9 +2035,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java index 8305f3471e01..ba9dfbbd4959 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java @@ -176,8 +176,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1105,9 +1104,8 @@ public final KnowledgeBase updateKnowledgeBase(UpdateKnowledgeBaseRequest reques * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1151,9 +1149,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1198,9 +1195,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java index 244aaa9456ed..6f75d04c1e4c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java @@ -301,8 +301,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -2132,9 +2131,8 @@ public final CompileSuggestionResponse compileSuggestion(CompileSuggestionReques * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2178,9 +2176,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2225,9 +2222,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClient.java index 0bb78e93ec1e..68ec09d61972 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClient.java @@ -149,8 +149,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -858,9 +857,8 @@ public final PhoneNumber undeletePhoneNumber(UndeletePhoneNumberRequest request) * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -904,9 +902,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -951,9 +948,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java index f186ab41e280..d3504e20d18e 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java @@ -177,8 +177,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -1136,9 +1135,8 @@ public final void deleteSessionEntityType(DeleteSessionEntityTypeRequest request * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1182,9 +1180,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1229,9 +1226,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java index c9bda589f8de..12cc883c309f 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java @@ -107,8 +107,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -504,9 +503,8 @@ public final UnaryCallable detectInte * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -550,9 +548,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -596,9 +593,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksClient.java index b76d81766279..4a1e627db526 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksClient.java @@ -167,8 +167,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -894,9 +893,8 @@ public final UnaryCallable updateSipTrunkCallab * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -940,9 +938,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -986,9 +983,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java index b97defe0a0be..c2aa759d225b 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java @@ -169,8 +169,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -911,9 +910,8 @@ public final UnaryCallable updateToolCallable() { * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -957,9 +955,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1003,9 +1000,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java index b49737579b00..e261e584a99c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java @@ -168,8 +168,7 @@ * *

ListLocations *

Lists information about the supported locations for this service. - *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

* **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

@@ -921,9 +920,8 @@ public final UnaryCallable deleteVersionCallable() * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -967,9 +965,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1013,9 +1010,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

* **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2/reflect-config.json b/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2/reflect-config.json index 9fca4cc73f03..42e4f821b263 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2/reflect-config.json +++ b/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2/reflect-config.json @@ -5327,6 +5327,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer$AdditionalSuggestedQueryResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer$AdditionalSuggestedQueryResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer$Builder", "queryAllDeclaredConstructors": true, @@ -5354,6 +5372,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer$KnowledgeAnswer$EventSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer$KnowledgeAnswer$EventSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer$KnowledgeAnswer$FaqSource", "queryAllDeclaredConstructors": true, @@ -5426,6 +5462,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer$SuggestedQuery$SearchContext", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer$SuggestedQuery$SearchContext$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo", "queryAllDeclaredConstructors": true, @@ -5471,6 +5525,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo$QueryGenerationDebugInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo$QueryGenerationDebugInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo$QueryGenerationFailureReason", "queryAllDeclaredConstructors": true, @@ -7073,6 +7145,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2.SipConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.SipConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2.SipTrunk", "queryAllDeclaredConstructors": true, diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2beta1/reflect-config.json b/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2beta1/reflect-config.json index c0a815309d27..e2243105db6c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2beta1/reflect-config.json +++ b/java-dialogflow/google-cloud-dialogflow/src/main/resources/META-INF/native-image/com.google.cloud.dialogflow.v2beta1/reflect-config.json @@ -1340,6 +1340,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest$TurnInput$ToolResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest$TurnInput$ToolResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest$TurnInput$ToolResponses", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest$TurnInput$ToolResponses$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse", "queryAllDeclaredConstructors": true, @@ -1376,6 +1412,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse$ToolCall", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse$ToolCall$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse$ToolCalls", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse$ToolCalls$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse$TurnComplete", "queryAllDeclaredConstructors": true, @@ -3788,24 +3860,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$ConversationModelConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$ConversationModelConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$ConversationProcessConfig", "queryAllDeclaredConstructors": true, @@ -5426,6 +5480,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$AdditionalSuggestedQueryResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$AdditionalSuggestedQueryResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$Builder", "queryAllDeclaredConstructors": true, @@ -5453,6 +5525,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer$EventSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer$EventSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer$FaqSource", "queryAllDeclaredConstructors": true, @@ -5525,6 +5615,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$SuggestedQuery$SearchContext", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$SuggestedQuery$SearchContext$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo", "queryAllDeclaredConstructors": true, @@ -5570,6 +5678,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo$QueryGenerationDebugInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo$QueryGenerationDebugInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo$QueryGenerationFailureReason", "queryAllDeclaredConstructors": true, @@ -7307,6 +7433,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2beta1.SipConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.SipConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2beta1.SipTrunk", "queryAllDeclaredConstructors": true, diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientHttpJsonTest.java index f2dda47935f0..7e3801ceb185 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientHttpJsonTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientHttpJsonTest.java @@ -260,6 +260,7 @@ public void getConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -326,6 +327,7 @@ public void getConversationProfileTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -388,6 +390,7 @@ public void createConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -453,6 +456,7 @@ public void createConversationProfileTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -518,6 +522,7 @@ public void createConversationProfileTest3() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -583,6 +588,7 @@ public void updateConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -607,6 +613,7 @@ public void updateConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -658,6 +665,7 @@ public void updateConversationProfileExceptionTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -774,6 +782,7 @@ public void setSuggestionFeatureConfigTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -844,6 +853,7 @@ public void setSuggestionFeatureConfigTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -926,6 +936,7 @@ public void clearSuggestionFeatureConfigTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -996,6 +1007,7 @@ public void clearSuggestionFeatureConfigTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientTest.java index a6ba961b9b1d..e79abd105797 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientTest.java @@ -252,6 +252,7 @@ public void getConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -313,6 +314,7 @@ public void getConversationProfileTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -370,6 +372,7 @@ public void createConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -431,6 +434,7 @@ public void createConversationProfileTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -492,6 +496,7 @@ public void createConversationProfileTest3() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -553,6 +558,7 @@ public void updateConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -688,6 +694,7 @@ public void setSuggestionFeatureConfigTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -754,6 +761,7 @@ public void setSuggestionFeatureConfigTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -834,6 +842,7 @@ public void clearSuggestionFeatureConfigTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -900,6 +909,7 @@ public void clearSuggestionFeatureConfigTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientHttpJsonTest.java index 257dedf6eb43..8273fe3be79e 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientHttpJsonTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientHttpJsonTest.java @@ -1111,6 +1111,8 @@ public void suggestKnowledgeAssistTest() throws Exception { .setKnowledgeAssistAnswer(KnowledgeAssistAnswer.newBuilder().build()) .setLatestMessage("latestMessage-1424305536") .setContextSize(1116903569) + .addAllAdditionalSuggestedQueryResults( + new ArrayList()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java index c1d7ba44aa3c..a57f496a1f75 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java @@ -1068,6 +1068,8 @@ public void suggestKnowledgeAssistTest() throws Exception { .setKnowledgeAssistAnswer(KnowledgeAssistAnswer.newBuilder().build()) .setLatestMessage("latestMessage-1424305536") .setContextSize(1116903569) + .addAllAdditionalSuggestedQueryResults( + new ArrayList()) .build(); mockParticipants.addResponse(expectedResponse); diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientHttpJsonTest.java index e86e200b272b..ec8ea6409bcf 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientHttpJsonTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientHttpJsonTest.java @@ -261,6 +261,7 @@ public void getConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -328,6 +329,7 @@ public void getConversationProfileTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -391,6 +393,7 @@ public void createConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -457,6 +460,7 @@ public void createConversationProfileTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -523,6 +527,7 @@ public void createConversationProfileTest3() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -589,6 +594,7 @@ public void updateConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -614,6 +620,7 @@ public void updateConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -666,6 +673,7 @@ public void updateConversationProfileExceptionTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -783,6 +791,7 @@ public void setSuggestionFeatureConfigTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -854,6 +863,7 @@ public void setSuggestionFeatureConfigTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -937,6 +947,7 @@ public void clearSuggestionFeatureConfigTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -1008,6 +1019,7 @@ public void clearSuggestionFeatureConfigTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientTest.java index f33ab4cbf1b8..06f9be0c205c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientTest.java @@ -253,6 +253,7 @@ public void getConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -315,6 +316,7 @@ public void getConversationProfileTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -373,6 +375,7 @@ public void createConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -435,6 +438,7 @@ public void createConversationProfileTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -497,6 +501,7 @@ public void createConversationProfileTest3() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -559,6 +564,7 @@ public void updateConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -695,6 +701,7 @@ public void setSuggestionFeatureConfigTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -762,6 +769,7 @@ public void setSuggestionFeatureConfigTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -843,6 +851,7 @@ public void clearSuggestionFeatureConfigTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -910,6 +919,7 @@ public void clearSuggestionFeatureConfigTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientHttpJsonTest.java index 1bee2a45b9e1..28c0d310539a 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientHttpJsonTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientHttpJsonTest.java @@ -1111,6 +1111,8 @@ public void suggestKnowledgeAssistTest() throws Exception { .setKnowledgeAssistAnswer(KnowledgeAssistAnswer.newBuilder().build()) .setLatestMessage("latestMessage-1424305536") .setContextSize(1116903569) + .addAllAdditionalSuggestedQueryResults( + new ArrayList()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java index 52736ec0d5b3..78996790aa35 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java @@ -1117,6 +1117,8 @@ public void suggestKnowledgeAssistTest() throws Exception { .setKnowledgeAssistAnswer(KnowledgeAssistAnswer.newBuilder().build()) .setLatestMessage("latestMessage-1424305536") .setContextSize(1116903569) + .addAllAdditionalSuggestedQueryResults( + new ArrayList()) .build(); mockParticipants.addResponse(expectedResponse); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java index 93f4ebed744e..0016486bf8f8 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java @@ -199,22 +199,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035SSML_VOICE_GENDER_UNSPECIFIED\020\000\022\032\n" + "\026SSML_VOICE_GENDER_MALE\020\001\022\034\n" + "\030SSML_VOICE_GENDER_FEMALE\020\002\022\035\n" - + "\031SSML_VOICE_GENDER_NEUTRAL\020\003*\214\002\n" + + "\031SSML_VOICE_GENDER_NEUTRAL\020\003*\220\002\n" + "\023OutputAudioEncoding\022%\n" + "!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\020\000\022#\n" - + "\037OUTPUT_AUDIO_ENCODING_LINEAR_16\020\001\022\035\n" - + "\031OUTPUT_AUDIO_ENCODING_MP3\020\002\022%\n" + + "\037OUTPUT_AUDIO_ENCODING_LINEAR_16\020\001\022!\n" + + "\031OUTPUT_AUDIO_ENCODING_MP3\020\002\032\002\010\001\022%\n" + "!OUTPUT_AUDIO_ENCODING_MP3_64_KBPS\020\004\022\"\n" + "\036OUTPUT_AUDIO_ENCODING_OGG_OPUS\020\003\022\037\n" + "\033OUTPUT_AUDIO_ENCODING_MULAW\020\005\022\036\n" + "\032OUTPUT_AUDIO_ENCODING_ALAW\020\006B\323\002\n" - + "\036com.google.cloud.dialogflow.v2B\020AudioConfigProtoP\001Z>clo" - + "ud.google.com/go/dialogflow/apiv2/dialog" - + "flowpb;dialogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352AU\n" - + "\033automl.googleapis.com/" - + "Model\0226projects/{project}/locations/{location}/models/{model}\352Ab\n" - + "\037speech.googleapis.com/PhraseSet\022?projects/{project}/lo" - + "cations/{location}/phraseSets/{phrase_set}b\006proto3" + + "\036com.google.cloud.dialogflow.v2B\020AudioConfigProtoP\001Z" + + ">cloud.google.com/go/dialogflow/apiv2/di" + + "alogflowpb;dialogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352AU\n" + + "\033automl.googleapis." + + "com/Model\0226projects/{project}/locations/{location}/models/{model}\352Ab\n" + + "\037speech.googleapis.com/PhraseSet\022?projects/{project" + + "}/locations/{location}/phraseSets/{phrase_set}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppProto.java index cbe55897c7de..f729386235ad 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppProto.java @@ -53,21 +53,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n(google/cloud/dialogflow/v2/ces_app.pro" + "\n" + + "(google/cloud/dialogflow/v2/ces_app.pro" + "to\022\032google.cloud.dialogflow.v2\032\037google/a" + "pi/field_behavior.proto\032\031google/api/reso" - + "urce.proto\032%google/cloud/dialogflow/v2/t" - + "ool.proto\"\236\001\n\nCesAppSpec\022/\n\007ces_app\030\001 \001(" - + "\tB\036\340A\001\372A\030\n\026ces.googleapis.com/App\022_\n\030con" - + "firmation_requirement\030\002 \001(\01628.google.clo" - + "ud.dialogflow.v2.Tool.ConfirmationRequir" - + "ementB\003\340A\001B\340\001\n\036com.google.cloud.dialogfl" - + "ow.v2B\013CesAppProtoP\001Z>cloud.google.com/g" - + "o/dialogflow/apiv2/dialogflowpb;dialogfl" - + "owpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A" - + "L\n\026ces.googleapis.com/App\0222projects/{pro" - + "ject}/locations/{location}/apps/{app}b\006p" - + "roto3" + + "urce.proto\032%google/cloud/dialogflow/v2/tool.proto\"\222\002\n\n" + + "CesAppSpec\022/\n" + + "\007ces_app\030\001 \001(\tB\036\340A\001\372A\030\n" + + "\026ces.googleapis.com/App\022_\n" + + "\030confirmation_requirement\030\002 \001(\01628.google.clo" + + "ud.dialogflow.v2.Tool.ConfirmationRequirementB\003\340A\001\022#\n" + + "\021proactive_enabled\030\003 \001(\010B\003\340A\001H\000\210\001\001\022\"\n" + + "\020reactive_enabled\030\004 \001(\010B\003\340A\001H\001\210\001\001B\024\n" + + "\022_proactive_enabledB\023\n" + + "\021_reactive_enabledB\340\001\n" + + "\036com.google.cloud.dialogflow.v2B\013CesAppProtoP\001Z>cloud.google.com/go/di" + + "alogflow/apiv2/dialogflowpb;dialogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352AL\n" + + "\026ces.googleapis.com/App\0222projects/{project" + + "}/locations/{location}/apps/{app}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -83,7 +86,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_CesAppSpec_descriptor, new java.lang.String[] { - "CesApp", "ConfirmationRequirement", + "CesApp", "ConfirmationRequirement", "ProactiveEnabled", "ReactiveEnabled", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpec.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpec.java index 6b27b0255070..17fe486c3d7a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpec.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpec.java @@ -71,6 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.v2.CesAppSpec.Builder.class); } + private int bitField0_; public static final int CES_APP_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -174,6 +175,88 @@ public com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement getConfirmati : result; } + public static final int PROACTIVE_ENABLED_FIELD_NUMBER = 3; + private boolean proactiveEnabled_ = false; + + /** + * + * + *

+   * Optional. Only applicable for CompanionAgent.
+   * Indicates whether the ces app is enabled in proactive mode.
+   * At least one of `proactive_enabled` or `reactive_enabled` should be
+   * true; otherwise, the ces app will be ignored.
+   * 
+ * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the proactiveEnabled field is set. + */ + @java.lang.Override + public boolean hasProactiveEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Only applicable for CompanionAgent.
+   * Indicates whether the ces app is enabled in proactive mode.
+   * At least one of `proactive_enabled` or `reactive_enabled` should be
+   * true; otherwise, the ces app will be ignored.
+   * 
+ * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proactiveEnabled. + */ + @java.lang.Override + public boolean getProactiveEnabled() { + return proactiveEnabled_; + } + + public static final int REACTIVE_ENABLED_FIELD_NUMBER = 4; + private boolean reactiveEnabled_ = false; + + /** + * + * + *
+   * Optional. Only applicable for CompanionAgent.
+   * Indicates whether the ces app is enabled in reactive mode.
+   * At least one of `proactive_enabled` or `reactive_enabled` should be
+   * true; otherwise, the ces app will be ignored.
+   * 
+ * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the reactiveEnabled field is set. + */ + @java.lang.Override + public boolean hasReactiveEnabled() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Only applicable for CompanionAgent.
+   * Indicates whether the ces app is enabled in reactive mode.
+   * At least one of `proactive_enabled` or `reactive_enabled` should be
+   * true; otherwise, the ces app will be ignored.
+   * 
+ * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reactiveEnabled. + */ + @java.lang.Override + public boolean getReactiveEnabled() { + return reactiveEnabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -197,6 +280,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(2, confirmationRequirement_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(3, proactiveEnabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(4, reactiveEnabled_); + } getUnknownFields().writeTo(output); } @@ -215,6 +304,12 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, confirmationRequirement_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, proactiveEnabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reactiveEnabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -233,6 +328,14 @@ public boolean equals(final java.lang.Object obj) { if (!getCesApp().equals(other.getCesApp())) return false; if (confirmationRequirement_ != other.confirmationRequirement_) return false; + if (hasProactiveEnabled() != other.hasProactiveEnabled()) return false; + if (hasProactiveEnabled()) { + if (getProactiveEnabled() != other.getProactiveEnabled()) return false; + } + if (hasReactiveEnabled() != other.hasReactiveEnabled()) return false; + if (hasReactiveEnabled()) { + if (getReactiveEnabled() != other.getReactiveEnabled()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -248,6 +351,14 @@ public int hashCode() { hash = (53 * hash) + getCesApp().hashCode(); hash = (37 * hash) + CONFIRMATION_REQUIREMENT_FIELD_NUMBER; hash = (53 * hash) + confirmationRequirement_; + if (hasProactiveEnabled()) { + hash = (37 * hash) + PROACTIVE_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProactiveEnabled()); + } + if (hasReactiveEnabled()) { + hash = (37 * hash) + REACTIVE_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReactiveEnabled()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -390,6 +501,8 @@ public Builder clear() { bitField0_ = 0; cesApp_ = ""; confirmationRequirement_ = 0; + proactiveEnabled_ = false; + reactiveEnabled_ = false; return this; } @@ -432,6 +545,16 @@ private void buildPartial0(com.google.cloud.dialogflow.v2.CesAppSpec result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.confirmationRequirement_ = confirmationRequirement_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.proactiveEnabled_ = proactiveEnabled_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.reactiveEnabled_ = reactiveEnabled_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -454,6 +577,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.CesAppSpec other) { if (other.confirmationRequirement_ != 0) { setConfirmationRequirementValue(other.getConfirmationRequirementValue()); } + if (other.hasProactiveEnabled()) { + setProactiveEnabled(other.getProactiveEnabled()); + } + if (other.hasReactiveEnabled()) { + setReactiveEnabled(other.getReactiveEnabled()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -492,6 +621,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 24: + { + proactiveEnabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + reactiveEnabled_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -747,6 +888,174 @@ public Builder clearConfirmationRequirement() { return this; } + private boolean proactiveEnabled_; + + /** + * + * + *
+     * Optional. Only applicable for CompanionAgent.
+     * Indicates whether the ces app is enabled in proactive mode.
+     * At least one of `proactive_enabled` or `reactive_enabled` should be
+     * true; otherwise, the ces app will be ignored.
+     * 
+ * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the proactiveEnabled field is set. + */ + @java.lang.Override + public boolean hasProactiveEnabled() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Only applicable for CompanionAgent.
+     * Indicates whether the ces app is enabled in proactive mode.
+     * At least one of `proactive_enabled` or `reactive_enabled` should be
+     * true; otherwise, the ces app will be ignored.
+     * 
+ * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proactiveEnabled. + */ + @java.lang.Override + public boolean getProactiveEnabled() { + return proactiveEnabled_; + } + + /** + * + * + *
+     * Optional. Only applicable for CompanionAgent.
+     * Indicates whether the ces app is enabled in proactive mode.
+     * At least one of `proactive_enabled` or `reactive_enabled` should be
+     * true; otherwise, the ces app will be ignored.
+     * 
+ * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The proactiveEnabled to set. + * @return This builder for chaining. + */ + public Builder setProactiveEnabled(boolean value) { + + proactiveEnabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Only applicable for CompanionAgent.
+     * Indicates whether the ces app is enabled in proactive mode.
+     * At least one of `proactive_enabled` or `reactive_enabled` should be
+     * true; otherwise, the ces app will be ignored.
+     * 
+ * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProactiveEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + proactiveEnabled_ = false; + onChanged(); + return this; + } + + private boolean reactiveEnabled_; + + /** + * + * + *
+     * Optional. Only applicable for CompanionAgent.
+     * Indicates whether the ces app is enabled in reactive mode.
+     * At least one of `proactive_enabled` or `reactive_enabled` should be
+     * true; otherwise, the ces app will be ignored.
+     * 
+ * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the reactiveEnabled field is set. + */ + @java.lang.Override + public boolean hasReactiveEnabled() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Only applicable for CompanionAgent.
+     * Indicates whether the ces app is enabled in reactive mode.
+     * At least one of `proactive_enabled` or `reactive_enabled` should be
+     * true; otherwise, the ces app will be ignored.
+     * 
+ * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reactiveEnabled. + */ + @java.lang.Override + public boolean getReactiveEnabled() { + return reactiveEnabled_; + } + + /** + * + * + *
+     * Optional. Only applicable for CompanionAgent.
+     * Indicates whether the ces app is enabled in reactive mode.
+     * At least one of `proactive_enabled` or `reactive_enabled` should be
+     * true; otherwise, the ces app will be ignored.
+     * 
+ * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The reactiveEnabled to set. + * @return This builder for chaining. + */ + public Builder setReactiveEnabled(boolean value) { + + reactiveEnabled_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Only applicable for CompanionAgent.
+     * Indicates whether the ces app is enabled in reactive mode.
+     * At least one of `proactive_enabled` or `reactive_enabled` should be
+     * true; otherwise, the ces app will be ignored.
+     * 
+ * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReactiveEnabled() { + bitField0_ = (bitField0_ & ~0x00000008); + reactiveEnabled_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.CesAppSpec) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpecOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpecOrBuilder.java index ec85a9bb4949..4807e5cd1c9a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpecOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpecOrBuilder.java @@ -87,4 +87,68 @@ public interface CesAppSpecOrBuilder * @return The confirmationRequirement. */ com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement getConfirmationRequirement(); + + /** + * + * + *
+   * Optional. Only applicable for CompanionAgent.
+   * Indicates whether the ces app is enabled in proactive mode.
+   * At least one of `proactive_enabled` or `reactive_enabled` should be
+   * true; otherwise, the ces app will be ignored.
+   * 
+ * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the proactiveEnabled field is set. + */ + boolean hasProactiveEnabled(); + + /** + * + * + *
+   * Optional. Only applicable for CompanionAgent.
+   * Indicates whether the ces app is enabled in proactive mode.
+   * At least one of `proactive_enabled` or `reactive_enabled` should be
+   * true; otherwise, the ces app will be ignored.
+   * 
+ * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proactiveEnabled. + */ + boolean getProactiveEnabled(); + + /** + * + * + *
+   * Optional. Only applicable for CompanionAgent.
+   * Indicates whether the ces app is enabled in reactive mode.
+   * At least one of `proactive_enabled` or `reactive_enabled` should be
+   * true; otherwise, the ces app will be ignored.
+   * 
+ * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the reactiveEnabled field is set. + */ + boolean hasReactiveEnabled(); + + /** + * + * + *
+   * Optional. Only applicable for CompanionAgent.
+   * Indicates whether the ces app is enabled in reactive mode.
+   * At least one of `proactive_enabled` or `reactive_enabled` should be
+   * true; otherwise, the ces app will be ignored.
+   * 
+ * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reactiveEnabled. + */ + boolean getReactiveEnabled(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfile.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfile.java index f6bcc316cda6..29e299d1ffa8 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfile.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfile.java @@ -832,6 +832,65 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } + public static final int SIP_CONFIG_FIELD_NUMBER = 16; + private com.google.cloud.dialogflow.v2.SipConfig sipConfig_; + + /** + * + * + *
+   * Optional. Configuration for SIP connections.
+   * 
+ * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sipConfig field is set. + */ + @java.lang.Override + public boolean hasSipConfig() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+   * Optional. Configuration for SIP connections.
+   * 
+ * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sipConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.SipConfig getSipConfig() { + return sipConfig_ == null + ? com.google.cloud.dialogflow.v2.SipConfig.getDefaultInstance() + : sipConfig_; + } + + /** + * + * + *
+   * Optional. Configuration for SIP connections.
+   * 
+ * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.SipConfigOrBuilder getSipConfigOrBuilder() { + return sipConfig_ == null + ? com.google.cloud.dialogflow.v2.SipConfig.getDefaultInstance() + : sipConfig_; + } + public static final int TIME_ZONE_FIELD_NUMBER = 14; @SuppressWarnings("serial") @@ -965,7 +1024,7 @@ public com.google.protobuf.ByteString getSecuritySettingsBytes() { */ @java.lang.Override public boolean hasTtsConfig() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -1065,6 +1124,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessage.writeString(output, 14, timeZone_); } if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(16, getSipConfig()); + } + if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(18, getTtsConfig()); } if (((bitField0_ & 0x00000100) != 0)) { @@ -1128,6 +1190,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessage.computeStringSize(14, timeZone_); } if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getSipConfig()); + } + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getTtsConfig()); } if (((bitField0_ & 0x00000100) != 0)) { @@ -1199,6 +1264,10 @@ public boolean equals(final java.lang.Object obj) { if (!getSttConfig().equals(other.getSttConfig())) return false; } if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (hasSipConfig() != other.hasSipConfig()) return false; + if (hasSipConfig()) { + if (!getSipConfig().equals(other.getSipConfig())) return false; + } if (!getTimeZone().equals(other.getTimeZone())) return false; if (!getSecuritySettings().equals(other.getSecuritySettings())) return false; if (hasTtsConfig() != other.hasTtsConfig()) return false; @@ -1262,6 +1331,10 @@ public int hashCode() { } hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); + if (hasSipConfig()) { + hash = (37 * hash) + SIP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSipConfig().hashCode(); + } hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; hash = (53 * hash) + getTimeZone().hashCode(); hash = (37 * hash) + SECURITY_SETTINGS_FIELD_NUMBER; @@ -1421,6 +1494,7 @@ private void maybeForceBuilderInitialization() { internalGetNewMessageEventNotificationConfigFieldBuilder(); internalGetNewRecognitionResultNotificationConfigFieldBuilder(); internalGetSttConfigFieldBuilder(); + internalGetSipConfigFieldBuilder(); internalGetTtsConfigFieldBuilder(); } } @@ -1482,6 +1556,11 @@ public Builder clear() { sttConfigBuilder_ = null; } languageCode_ = ""; + sipConfig_ = null; + if (sipConfigBuilder_ != null) { + sipConfigBuilder_.dispose(); + sipConfigBuilder_ = null; + } timeZone_ = ""; securitySettings_ = ""; ttsConfig_ = null; @@ -1595,14 +1674,18 @@ private void buildPartial0(com.google.cloud.dialogflow.v2.ConversationProfile re result.languageCode_ = languageCode_; } if (((from_bitField0_ & 0x00002000) != 0)) { - result.timeZone_ = timeZone_; + result.sipConfig_ = sipConfigBuilder_ == null ? sipConfig_ : sipConfigBuilder_.build(); + to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00004000) != 0)) { - result.securitySettings_ = securitySettings_; + result.timeZone_ = timeZone_; } if (((from_bitField0_ & 0x00008000) != 0)) { + result.securitySettings_ = securitySettings_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { result.ttsConfig_ = ttsConfigBuilder_ == null ? ttsConfig_ : ttsConfigBuilder_.build(); - to_bitField0_ |= 0x00000400; + to_bitField0_ |= 0x00000800; } result.bitField0_ |= to_bitField0_; } @@ -1666,14 +1749,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.ConversationProfile othe bitField0_ |= 0x00001000; onChanged(); } + if (other.hasSipConfig()) { + mergeSipConfig(other.getSipConfig()); + } if (!other.getTimeZone().isEmpty()) { timeZone_ = other.timeZone_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } if (!other.getSecuritySettings().isEmpty()) { securitySettings_ = other.securitySettings_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } if (other.hasTtsConfig()) { @@ -1792,20 +1878,27 @@ public Builder mergeFrom( case 106: { securitySettings_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 106 case 114: { timeZone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 114 + case 130: + { + input.readMessage( + internalGetSipConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 130 case 146: { input.readMessage( internalGetTtsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 146 case 170: @@ -4378,6 +4471,218 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dialogflow.v2.SipConfig sipConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.SipConfig, + com.google.cloud.dialogflow.v2.SipConfig.Builder, + com.google.cloud.dialogflow.v2.SipConfigOrBuilder> + sipConfigBuilder_; + + /** + * + * + *
+     * Optional. Configuration for SIP connections.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sipConfig field is set. + */ + public boolean hasSipConfig() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
+     * Optional. Configuration for SIP connections.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sipConfig. + */ + public com.google.cloud.dialogflow.v2.SipConfig getSipConfig() { + if (sipConfigBuilder_ == null) { + return sipConfig_ == null + ? com.google.cloud.dialogflow.v2.SipConfig.getDefaultInstance() + : sipConfig_; + } else { + return sipConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Configuration for SIP connections.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSipConfig(com.google.cloud.dialogflow.v2.SipConfig value) { + if (sipConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sipConfig_ = value; + } else { + sipConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for SIP connections.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSipConfig(com.google.cloud.dialogflow.v2.SipConfig.Builder builderForValue) { + if (sipConfigBuilder_ == null) { + sipConfig_ = builderForValue.build(); + } else { + sipConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for SIP connections.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSipConfig(com.google.cloud.dialogflow.v2.SipConfig value) { + if (sipConfigBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && sipConfig_ != null + && sipConfig_ != com.google.cloud.dialogflow.v2.SipConfig.getDefaultInstance()) { + getSipConfigBuilder().mergeFrom(value); + } else { + sipConfig_ = value; + } + } else { + sipConfigBuilder_.mergeFrom(value); + } + if (sipConfig_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for SIP connections.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSipConfig() { + bitField0_ = (bitField0_ & ~0x00002000); + sipConfig_ = null; + if (sipConfigBuilder_ != null) { + sipConfigBuilder_.dispose(); + sipConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for SIP connections.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.SipConfig.Builder getSipConfigBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return internalGetSipConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Configuration for SIP connections.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.SipConfigOrBuilder getSipConfigOrBuilder() { + if (sipConfigBuilder_ != null) { + return sipConfigBuilder_.getMessageOrBuilder(); + } else { + return sipConfig_ == null + ? com.google.cloud.dialogflow.v2.SipConfig.getDefaultInstance() + : sipConfig_; + } + } + + /** + * + * + *
+     * Optional. Configuration for SIP connections.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.SipConfig, + com.google.cloud.dialogflow.v2.SipConfig.Builder, + com.google.cloud.dialogflow.v2.SipConfigOrBuilder> + internalGetSipConfigFieldBuilder() { + if (sipConfigBuilder_ == null) { + sipConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.SipConfig, + com.google.cloud.dialogflow.v2.SipConfig.Builder, + com.google.cloud.dialogflow.v2.SipConfigOrBuilder>( + getSipConfig(), getParentForChildren(), isClean()); + sipConfig_ = null; + } + return sipConfigBuilder_; + } + private java.lang.Object timeZone_ = ""; /** @@ -4449,7 +4754,7 @@ public Builder setTimeZone(java.lang.String value) { throw new NullPointerException(); } timeZone_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4469,7 +4774,7 @@ public Builder setTimeZone(java.lang.String value) { */ public Builder clearTimeZone() { timeZone_ = getDefaultInstance().getTimeZone(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -4494,7 +4799,7 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); timeZone_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4570,7 +4875,7 @@ public Builder setSecuritySettings(java.lang.String value) { throw new NullPointerException(); } securitySettings_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4590,7 +4895,7 @@ public Builder setSecuritySettings(java.lang.String value) { */ public Builder clearSecuritySettings() { securitySettings_ = getDefaultInstance().getSecuritySettings(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -4615,7 +4920,7 @@ public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); securitySettings_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4642,7 +4947,7 @@ public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) { * @return Whether the ttsConfig field is set. */ public boolean hasTtsConfig() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -4690,7 +4995,7 @@ public Builder setTtsConfig(com.google.cloud.dialogflow.v2.SynthesizeSpeechConfi } else { ttsConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4714,7 +5019,7 @@ public Builder setTtsConfig( } else { ttsConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4733,7 +5038,7 @@ public Builder setTtsConfig( */ public Builder mergeTtsConfig(com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig value) { if (ttsConfigBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && ttsConfig_ != null && ttsConfig_ != com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig.getDefaultInstance()) { @@ -4745,7 +5050,7 @@ public Builder mergeTtsConfig(com.google.cloud.dialogflow.v2.SynthesizeSpeechCon ttsConfigBuilder_.mergeFrom(value); } if (ttsConfig_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -4764,7 +5069,7 @@ public Builder mergeTtsConfig(com.google.cloud.dialogflow.v2.SynthesizeSpeechCon * .google.cloud.dialogflow.v2.SynthesizeSpeechConfig tts_config = 18; */ public Builder clearTtsConfig() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); ttsConfig_ = null; if (ttsConfigBuilder_ != null) { ttsConfigBuilder_.dispose(); @@ -4787,7 +5092,7 @@ public Builder clearTtsConfig() { * .google.cloud.dialogflow.v2.SynthesizeSpeechConfig tts_config = 18; */ public com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig.Builder getTtsConfigBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return internalGetTtsConfigFieldBuilder().getBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileOrBuilder.java index 32e204385458..f51389286732 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileOrBuilder.java @@ -547,6 +547,49 @@ public interface ConversationProfileOrBuilder */ com.google.protobuf.ByteString getLanguageCodeBytes(); + /** + * + * + *
+   * Optional. Configuration for SIP connections.
+   * 
+ * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sipConfig field is set. + */ + boolean hasSipConfig(); + + /** + * + * + *
+   * Optional. Configuration for SIP connections.
+   * 
+ * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sipConfig. + */ + com.google.cloud.dialogflow.v2.SipConfig getSipConfig(); + + /** + * + * + *
+   * Optional. Configuration for SIP connections.
+   * 
+ * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.SipConfigOrBuilder getSipConfigOrBuilder(); + /** * * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java index 0ca9d892264d..57632c2050ea 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java @@ -148,6 +148,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2_LoggingConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_LoggingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_SipConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_SipConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2_SuggestionFeature_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -189,7 +193,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ations.proto\032\036google/protobuf/duration.p" + "roto\032\033google/protobuf/empty.proto\032 googl" + "e/protobuf/field_mask.proto\032\037google/prot" - + "obuf/timestamp.proto\"\331\t\n\023ConversationPro" + + "obuf/timestamp.proto\"\231\n\n\023ConversationPro" + "file\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\t" + "B\003\340A\002\0224\n\013create_time\030\013 \001(\0132\032.google.prot" + "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\014 \001(\013" @@ -211,261 +215,273 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oud.dialogflow.v2.NotificationConfigB\003\340A" + "\001\022B\n\nstt_config\030\t \001(\0132..google.cloud.dia" + "logflow.v2.SpeechToTextConfig\022\025\n\rlanguag" - + "e_code\030\n \001(\t\022\021\n\ttime_zone\030\016 \001(\t\022L\n\021secur" - + "ity_settings\030\r \001(\tB1\372A.\n,dialogflow.goog" - + "leapis.com/CXSecuritySettings\022F\n\ntts_con" - + "fig\030\022 \001(\01322.google.cloud.dialogflow.v2.S" - + "ynthesizeSpeechConfig:\310\001\352A\304\001\n-dialogflow" - + ".googleapis.com/ConversationProfile\022>pro" - + "jects/{project}/conversationProfiles/{co" - + "nversation_profile}\022Sprojects/{project}/" - + "locations/{location}/conversationProfile" - + "s/{conversation_profile}\"\217\001\n\037ListConvers" - + "ationProfilesRequest\022E\n\006parent\030\001 \001(\tB5\340A" - + "\002\372A/\022-dialogflow.googleapis.com/Conversa" - + "tionProfile\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\"\213\001\n ListConversationProfilesR" - + "esponse\022N\n\025conversation_profiles\030\001 \003(\0132/" - + ".google.cloud.dialogflow.v2.Conversation" - + "Profile\022\027\n\017next_page_token\030\002 \001(\t\"d\n\035GetC" - + "onversationProfileRequest\022C\n\004name\030\001 \001(\tB" - + "5\340A\002\372A/\n-dialogflow.googleapis.com/Conve" - + "rsationProfile\"\275\001\n CreateConversationPro" - + "fileRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-dia" - + "logflow.googleapis.com/ConversationProfi" - + "le\022R\n\024conversation_profile\030\002 \001(\0132/.googl" - + "e.cloud.dialogflow.v2.ConversationProfil" - + "eB\003\340A\002\"\254\001\n UpdateConversationProfileRequ" - + "est\022R\n\024conversation_profile\030\001 \001(\0132/.goog" - + "le.cloud.dialogflow.v2.ConversationProfi" - + "leB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.pr" - + "otobuf.FieldMaskB\003\340A\002\"g\n DeleteConversat" - + "ionProfileRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-dialogflow.googleapis.com/ConversationP" - + "rofile\"\203\001\n\024AutomatedAgentConfig\0226\n\005agent" - + "\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.googleapis.co" - + "m/Agent\0223\n\013session_ttl\030\003 \001(\0132\031.google.pr" - + "otobuf.DurationB\003\340A\001\"\362\035\n\031HumanAgentAssis" - + "tantConfig\022K\n\023notification_config\030\002 \001(\0132" - + "..google.cloud.dialogflow.v2.Notificatio" - + "nConfig\022m\n\035human_agent_suggestion_config" - + "\030\003 \001(\0132F.google.cloud.dialogflow.v2.Huma" - + "nAgentAssistantConfig.SuggestionConfig\022j" - + "\n\032end_user_suggestion_config\030\004 \001(\0132F.goo" - + "gle.cloud.dialogflow.v2.HumanAgentAssist" - + "antConfig.SuggestionConfig\022l\n\027message_an" - + "alysis_config\030\005 \001(\0132K.google.cloud.dialo" - + "gflow.v2.HumanAgentAssistantConfig.Messa" - + "geAnalysisConfig\032H\n\031SuggestionTriggerSet" - + "tings\022\024\n\014no_smalltalk\030\001 \001(\010\022\025\n\ronly_end_" - + "user\030\002 \001(\010\032\365\006\n\027SuggestionFeatureConfig\022I" - + "\n\022suggestion_feature\030\005 \001(\0132-.google.clou" - + "d.dialogflow.v2.SuggestionFeature\022%\n\035ena" - + "ble_event_based_suggestion\030\003 \001(\010\022(\n\033disa" - + "ble_agent_query_logging\030\016 \001(\010B\003\340A\001\0223\n&en" - + "able_query_suggestion_when_no_answer\030\017 \001" - + "(\010B\003\340A\001\0220\n#enable_conversation_augmented" - + "_query\030\020 \001(\010B\003\340A\001\022)\n\034enable_query_sugges" - + "tion_only\030\021 \001(\010B\003\340A\001\022\'\n\032enable_response_" - + "debug_info\030\022 \001(\010B\003\340A\001\022B\n\014rai_settings\030\023 " - + "\001(\0132\'.google.cloud.dialogflow.v2.RaiSett" - + "ingsB\003\340A\001\022t\n\033suggestion_trigger_settings" - + "\030\n \001(\0132O.google.cloud.dialogflow.v2.Huma" - + "nAgentAssistantConfig.SuggestionTriggerS" - + "ettings\022a\n\014query_config\030\006 \001(\0132K.google.c" - + "loud.dialogflow.v2.HumanAgentAssistantCo" - + "nfig.SuggestionQueryConfig\022p\n\031conversati" - + "on_model_config\030\007 \001(\0132M.google.cloud.dia" - + "logflow.v2.HumanAgentAssistantConfig.Con" - + "versationModelConfig\022t\n\033conversation_pro" - + "cess_config\030\010 \001(\0132O.google.cloud.dialogf" - + "low.v2.HumanAgentAssistantConfig.Convers" - + "ationProcessConfig\032\235\003\n\020SuggestionConfig\022" - + "f\n\017feature_configs\030\002 \003(\0132M.google.cloud." - + "dialogflow.v2.HumanAgentAssistantConfig." - + "SuggestionFeatureConfig\022\"\n\032group_suggest" - + "ion_responses\030\003 \001(\010\022?\n\ngenerators\030\004 \003(\tB" - + "+\340A\001\372A%\n#dialogflow.googleapis.com/Gener" - + "ator\0228\n+disable_high_latency_features_sy" - + "nc_delivery\030\005 \001(\010B\003\340A\001\022.\n!skip_empty_eve" - + "nt_based_suggestion\030\006 \001(\010B\003\340A\001\022-\n use_un" - + "redacted_conversation_data\030\010 \001(\010B\003\340A\001\022#\n" - + "\026enable_async_tool_call\030\t \001(\010B\003\340A\001\032\231\r\n\025S" - + "uggestionQueryConfig\022\213\001\n\033knowledge_base_" - + "query_source\030\001 \001(\0132d.google.cloud.dialog" + + "e_code\030\n \001(\t\022>\n\nsip_config\030\020 \001(\0132%.googl" + + "e.cloud.dialogflow.v2.SipConfigB\003\340A\001\022\021\n\t" + + "time_zone\030\016 \001(\t\022L\n\021security_settings\030\r \001" + + "(\tB1\372A.\n,dialogflow.googleapis.com/CXSec" + + "uritySettings\022F\n\ntts_config\030\022 \001(\01322.goog" + + "le.cloud.dialogflow.v2.SynthesizeSpeechC" + + "onfig:\310\001\352A\304\001\n-dialogflow.googleapis.com/" + + "ConversationProfile\022>projects/{project}/" + + "conversationProfiles/{conversation_profi" + + "le}\022Sprojects/{project}/locations/{locat" + + "ion}/conversationProfiles/{conversation_" + + "profile}\"\217\001\n\037ListConversationProfilesReq" + + "uest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-dialogflow" + + ".googleapis.com/ConversationProfile\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\213\001\n L" + + "istConversationProfilesResponse\022N\n\025conve" + + "rsation_profiles\030\001 \003(\0132/.google.cloud.di" + + "alogflow.v2.ConversationProfile\022\027\n\017next_" + + "page_token\030\002 \001(\t\"d\n\035GetConversationProfi" + + "leRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-dialogf" + + "low.googleapis.com/ConversationProfile\"\275" + + "\001\n CreateConversationProfileRequest\022E\n\006p" + + "arent\030\001 \001(\tB5\340A\002\372A/\022-dialogflow.googleap" + + "is.com/ConversationProfile\022R\n\024conversati" + + "on_profile\030\002 \001(\0132/.google.cloud.dialogfl" + + "ow.v2.ConversationProfileB\003\340A\002\"\254\001\n Updat" + + "eConversationProfileRequest\022R\n\024conversat" + + "ion_profile\030\001 \001(\0132/.google.cloud.dialogf" + + "low.v2.ConversationProfileB\003\340A\002\0224\n\013updat" + + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + + "B\003\340A\002\"g\n DeleteConversationProfileReques" + + "t\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-dialogflow.goog" + + "leapis.com/ConversationProfile\"\203\001\n\024Autom" + + "atedAgentConfig\0226\n\005agent\030\001 \001(\tB\'\340A\002\372A!\n\037" + + "dialogflow.googleapis.com/Agent\0223\n\013sessi" + + "on_ttl\030\003 \001(\0132\031.google.protobuf.DurationB" + + "\003\340A\001\"\356\036\n\031HumanAgentAssistantConfig\022K\n\023no" + + "tification_config\030\002 \001(\0132..google.cloud.d" + + "ialogflow.v2.NotificationConfig\022m\n\035human" + + "_agent_suggestion_config\030\003 \001(\0132F.google." + + "cloud.dialogflow.v2.HumanAgentAssistantC" + + "onfig.SuggestionConfig\022j\n\032end_user_sugge" + + "stion_config\030\004 \001(\0132F.google.cloud.dialog" + "flow.v2.HumanAgentAssistantConfig.Sugges" - + "tionQueryConfig.KnowledgeBaseQuerySource" - + "H\000\022\200\001\n\025document_query_source\030\002 \001(\0132_.goo" + + "tionConfig\022l\n\027message_analysis_config\030\005 " + + "\001(\0132K.google.cloud.dialogflow.v2.HumanAg" + + "entAssistantConfig.MessageAnalysisConfig" + + "\032H\n\031SuggestionTriggerSettings\022\024\n\014no_smal" + + "ltalk\030\001 \001(\010\022\025\n\ronly_end_user\030\002 \001(\010\032\361\007\n\027S" + + "uggestionFeatureConfig\022I\n\022suggestion_fea" + + "ture\030\005 \001(\0132-.google.cloud.dialogflow.v2." + + "SuggestionFeature\022%\n\035enable_event_based_" + + "suggestion\030\003 \001(\010\022(\n\033disable_agent_query_" + + "logging\030\016 \001(\010B\003\340A\001\0223\n&enable_query_sugge" + + "stion_when_no_answer\030\017 \001(\010B\003\340A\001\0220\n#enabl" + + "e_conversation_augmented_query\030\020 \001(\010B\003\340A" + + "\001\022)\n\034enable_query_suggestion_only\030\021 \001(\010B" + + "\003\340A\001\022\'\n\032enable_response_debug_info\030\022 \001(\010" + + "B\003\340A\001\022B\n\014rai_settings\030\023 \001(\0132\'.google.clo" + + "ud.dialogflow.v2.RaiSettingsB\003\340A\001\022O\n\030sug" + + "gestion_trigger_event\030\024 \001(\0162(.google.clo" + + "ud.dialogflow.v2.TriggerEventB\003\340A\001\022)\n\034di" + + "sable_query_search_context\030\025 \001(\010B\003\340A\001\022t\n" + + "\033suggestion_trigger_settings\030\n \001(\0132O.goo" + "gle.cloud.dialogflow.v2.HumanAgentAssist" - + "antConfig.SuggestionQueryConfig.Document" - + "QuerySourceH\000\022\204\001\n\027dialogflow_query_sourc" - + "e\030\003 \001(\0132a.google.cloud.dialogflow.v2.Hum" - + "anAgentAssistantConfig.SuggestionQueryCo" - + "nfig.DialogflowQuerySourceH\000\022\023\n\013max_resu" - + "lts\030\004 \001(\005\022\034\n\024confidence_threshold\030\005 \001(\002\022" - + "\202\001\n\027context_filter_settings\030\007 \001(\0132a.goog" - + "le.cloud.dialogflow.v2.HumanAgentAssista" - + "ntConfig.SuggestionQueryConfig.ContextFi" - + "lterSettings\022k\n\010sections\030\010 \001(\0132T.google." - + "cloud.dialogflow.v2.HumanAgentAssistantC" - + "onfig.SuggestionQueryConfig.SectionsB\003\340A" - + "\001\022\031\n\014context_size\030\t \001(\005B\003\340A\001\032d\n\030Knowledg" - + "eBaseQuerySource\022H\n\017knowledge_bases\030\001 \003(" - + "\tB/\340A\002\372A)\n\'dialogflow.googleapis.com/Kno" - + "wledgeBase\032T\n\023DocumentQuerySource\022=\n\tdoc" - + "uments\030\001 \003(\tB*\340A\002\372A$\n\"dialogflow.googlea" - + "pis.com/Document\032\276\002\n\025DialogflowQuerySour" - + "ce\0226\n\005agent\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.go" - + "ogleapis.com/Agent\022\234\001\n\027human_agent_side_" - + "config\030\003 \001(\0132v.google.cloud.dialogflow.v" - + "2.HumanAgentAssistantConfig.SuggestionQu" - + "eryConfig.DialogflowQuerySource.HumanAge" - + "ntSideConfigB\003\340A\001\032N\n\024HumanAgentSideConfi" - + "g\0226\n\005agent\030\001 \001(\tB\'\340A\001\372A!\n\037dialogflow.goo" - + "gleapis.com/Agent\032v\n\025ContextFilterSettin" - + "gs\022\035\n\025drop_handoff_messages\030\001 \001(\010\022#\n\033dro" - + "p_virtual_agent_messages\030\002 \001(\010\022\031\n\021drop_i" - + "vr_messages\030\003 \001(\010\032\242\002\n\010Sections\022w\n\rsectio" - + "n_types\030\001 \003(\0162`.google.cloud.dialogflow." - + "v2.HumanAgentAssistantConfig.SuggestionQ" - + "ueryConfig.Sections.SectionType\"\234\001\n\013Sect" - + "ionType\022\034\n\030SECTION_TYPE_UNSPECIFIED\020\000\022\r\n" - + "\tSITUATION\020\001\022\n\n\006ACTION\020\002\022\016\n\nRESOLUTION\020\003" - + "\022\033\n\027REASON_FOR_CANCELLATION\020\004\022\031\n\025CUSTOME" - + "R_SATISFACTION\020\005\022\014\n\010ENTITIES\020\006B\016\n\014query_" - + "source\032z\n\027ConversationModelConfig\022?\n\005mod" - + "el\030\001 \001(\tB0\372A-\n+dialogflow.googleapis.com" - + "/ConversationModel\022\036\n\026baseline_model_ver" - + "sion\030\010 \001(\t\032;\n\031ConversationProcessConfig\022" - + "\036\n\026recent_sentences_count\030\002 \001(\005\032\207\001\n\025Mess" - + "ageAnalysisConfig\022 \n\030enable_entity_extra" - + "ction\030\002 \001(\010\022!\n\031enable_sentiment_analysis" - + "\030\003 \001(\010\022)\n\034enable_sentiment_analysis_v3\030\005" - + " \001(\010B\003\340A\001\"\304\003\n\027HumanAgentHandoffConfig\022b\n" - + "\022live_person_config\030\001 \001(\0132D.google.cloud" - + ".dialogflow.v2.HumanAgentHandoffConfig.L" - + "ivePersonConfigH\000\022u\n\034salesforce_live_age" - + "nt_config\030\002 \001(\0132M.google.cloud.dialogflo" - + "w.v2.HumanAgentHandoffConfig.SalesforceL" - + "iveAgentConfigH\000\032/\n\020LivePersonConfig\022\033\n\016" - + "account_number\030\001 \001(\tB\003\340A\002\032\213\001\n\031Salesforce" - + "LiveAgentConfig\022\034\n\017organization_id\030\001 \001(\t" - + "B\003\340A\002\022\032\n\rdeployment_id\030\002 \001(\tB\003\340A\002\022\026\n\tbut" - + "ton_id\030\003 \001(\tB\003\340A\002\022\034\n\017endpoint_domain\030\004 \001" - + "(\tB\003\340A\002B\017\n\ragent_service\"\277\001\n\022Notificatio" - + "nConfig\022\r\n\005topic\030\001 \001(\t\022T\n\016message_format" - + "\030\002 \001(\0162<.google.cloud.dialogflow.v2.Noti" - + "ficationConfig.MessageFormat\"D\n\rMessageF" - + "ormat\022\036\n\032MESSAGE_FORMAT_UNSPECIFIED\020\000\022\t\n" - + "\005PROTO\020\001\022\010\n\004JSON\020\002\"3\n\rLoggingConfig\022\"\n\032e" - + "nable_stackdriver_logging\030\003 \001(\010\"\362\001\n\021Sugg" - + "estionFeature\022@\n\004type\030\001 \001(\01622.google.clo" - + "ud.dialogflow.v2.SuggestionFeature.Type\"" - + "\232\001\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\026\n\022ARTICL" - + "E_SUGGESTION\020\001\022\007\n\003FAQ\020\002\022\017\n\013SMART_REPLY\020\003" - + "\022\036\n\032CONVERSATION_SUMMARIZATION\020\010\022\024\n\020KNOW" - + "LEDGE_SEARCH\020\016\022\024\n\020KNOWLEDGE_ASSIST\020\017\"\212\002\n" - + "!SetSuggestionFeatureConfigRequest\022!\n\024co" - + "nversation_profile\030\001 \001(\tB\003\340A\002\022K\n\020partici" - + "pant_role\030\002 \001(\0162,.google.cloud.dialogflo" - + "w.v2.Participant.RoleB\003\340A\002\022u\n\031suggestion" - + "_feature_config\030\003 \001(\0132M.google.cloud.dia" + + "antConfig.SuggestionTriggerSettings\022a\n\014q" + + "uery_config\030\006 \001(\0132K.google.cloud.dialogf" + + "low.v2.HumanAgentAssistantConfig.Suggest" + + "ionQueryConfig\022p\n\031conversation_model_con" + + "fig\030\007 \001(\0132M.google.cloud.dialogflow.v2.H" + + "umanAgentAssistantConfig.ConversationMod" + + "elConfig\022t\n\033conversation_process_config\030" + + "\010 \001(\0132O.google.cloud.dialogflow.v2.Human" + + "AgentAssistantConfig.ConversationProcess" + + "Config\032\235\003\n\020SuggestionConfig\022f\n\017feature_c" + + "onfigs\030\002 \003(\0132M.google.cloud.dialogflow.v" + + "2.HumanAgentAssistantConfig.SuggestionFe" + + "atureConfig\022\"\n\032group_suggestion_response" + + "s\030\003 \001(\010\022?\n\ngenerators\030\004 \003(\tB+\340A\001\372A%\n#dia" + + "logflow.googleapis.com/Generator\0228\n+disa" + + "ble_high_latency_features_sync_delivery\030" + + "\005 \001(\010B\003\340A\001\022.\n!skip_empty_event_based_sug" + + "gestion\030\006 \001(\010B\003\340A\001\022-\n use_unredacted_con" + + "versation_data\030\010 \001(\010B\003\340A\001\022#\n\026enable_asyn" + + "c_tool_call\030\t \001(\010B\003\340A\001\032\231\r\n\025SuggestionQue" + + "ryConfig\022\213\001\n\033knowledge_base_query_source" + + "\030\001 \001(\0132d.google.cloud.dialogflow.v2.Huma" + + "nAgentAssistantConfig.SuggestionQueryCon" + + "fig.KnowledgeBaseQuerySourceH\000\022\200\001\n\025docum" + + "ent_query_source\030\002 \001(\0132_.google.cloud.di" + + "alogflow.v2.HumanAgentAssistantConfig.Su" + + "ggestionQueryConfig.DocumentQuerySourceH" + + "\000\022\204\001\n\027dialogflow_query_source\030\003 \001(\0132a.go" + + "ogle.cloud.dialogflow.v2.HumanAgentAssis" + + "tantConfig.SuggestionQueryConfig.Dialogf" + + "lowQuerySourceH\000\022\023\n\013max_results\030\004 \001(\005\022\034\n" + + "\024confidence_threshold\030\005 \001(\002\022\202\001\n\027context_" + + "filter_settings\030\007 \001(\0132a.google.cloud.dia" + "logflow.v2.HumanAgentAssistantConfig.Sug" - + "gestionFeatureConfigB\003\340A\002\"\357\001\n#ClearSugge" - + "stionFeatureConfigRequest\022!\n\024conversatio" - + "n_profile\030\001 \001(\tB\003\340A\002\022K\n\020participant_role" - + "\030\002 \001(\0162,.google.cloud.dialogflow.v2.Part" - + "icipant.RoleB\003\340A\002\022X\n\027suggestion_feature_" - + "type\030\003 \001(\01622.google.cloud.dialogflow.v2." - + "SuggestionFeature.TypeB\003\340A\002\"\243\002\n+SetSugge" - + "stionFeatureConfigOperationMetadata\022\034\n\024c" - + "onversation_profile\030\001 \001(\t\022K\n\020participant" - + "_role\030\002 \001(\0162,.google.cloud.dialogflow.v2" - + ".Participant.RoleB\003\340A\002\022X\n\027suggestion_fea" - + "ture_type\030\003 \001(\01622.google.cloud.dialogflo" - + "w.v2.SuggestionFeature.TypeB\003\340A\002\022/\n\013crea" - + "te_time\030\004 \001(\0132\032.google.protobuf.Timestam" - + "p\"\245\002\n-ClearSuggestionFeatureConfigOperat" - + "ionMetadata\022\034\n\024conversation_profile\030\001 \001(" - + "\t\022K\n\020participant_role\030\002 \001(\0162,.google.clo" - + "ud.dialogflow.v2.Participant.RoleB\003\340A\002\022X" - + "\n\027suggestion_feature_type\030\003 \001(\01622.google" - + ".cloud.dialogflow.v2.SuggestionFeature.T" - + "ypeB\003\340A\002\022/\n\013create_time\030\004 \001(\0132\032.google.p" - + "rotobuf.Timestamp2\263\024\n\024ConversationProfil" - + "es\022\220\002\n\030ListConversationProfiles\022;.google" - + ".cloud.dialogflow.v2.ListConversationPro" - + "filesRequest\032<.google.cloud.dialogflow.v" - + "2.ListConversationProfilesResponse\"y\332A\006p" - + "arent\202\323\344\223\002j\022,/v2/{parent=projects/*}/con" - + "versationProfilesZ:\0228/v2/{parent=project" - + "s/*/locations/*}/conversationProfiles\022\375\001" - + "\n\026GetConversationProfile\0229.google.cloud." - + "dialogflow.v2.GetConversationProfileRequ" + + "gestionQueryConfig.ContextFilterSettings" + + "\022k\n\010sections\030\010 \001(\0132T.google.cloud.dialog" + + "flow.v2.HumanAgentAssistantConfig.Sugges" + + "tionQueryConfig.SectionsB\003\340A\001\022\031\n\014context" + + "_size\030\t \001(\005B\003\340A\001\032d\n\030KnowledgeBaseQuerySo" + + "urce\022H\n\017knowledge_bases\030\001 \003(\tB/\340A\002\372A)\n\'d" + + "ialogflow.googleapis.com/KnowledgeBase\032T" + + "\n\023DocumentQuerySource\022=\n\tdocuments\030\001 \003(\t" + + "B*\340A\002\372A$\n\"dialogflow.googleapis.com/Docu" + + "ment\032\276\002\n\025DialogflowQuerySource\0226\n\005agent\030" + + "\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.googleapis.com" + + "/Agent\022\234\001\n\027human_agent_side_config\030\003 \001(\013" + + "2v.google.cloud.dialogflow.v2.HumanAgent" + + "AssistantConfig.SuggestionQueryConfig.Di" + + "alogflowQuerySource.HumanAgentSideConfig" + + "B\003\340A\001\032N\n\024HumanAgentSideConfig\0226\n\005agent\030\001" + + " \001(\tB\'\340A\001\372A!\n\037dialogflow.googleapis.com/" + + "Agent\032v\n\025ContextFilterSettings\022\035\n\025drop_h" + + "andoff_messages\030\001 \001(\010\022#\n\033drop_virtual_ag" + + "ent_messages\030\002 \001(\010\022\031\n\021drop_ivr_messages\030" + + "\003 \001(\010\032\242\002\n\010Sections\022w\n\rsection_types\030\001 \003(" + + "\0162`.google.cloud.dialogflow.v2.HumanAgen" + + "tAssistantConfig.SuggestionQueryConfig.S" + + "ections.SectionType\"\234\001\n\013SectionType\022\034\n\030S" + + "ECTION_TYPE_UNSPECIFIED\020\000\022\r\n\tSITUATION\020\001" + + "\022\n\n\006ACTION\020\002\022\016\n\nRESOLUTION\020\003\022\033\n\027REASON_F" + + "OR_CANCELLATION\020\004\022\031\n\025CUSTOMER_SATISFACTI" + + "ON\020\005\022\014\n\010ENTITIES\020\006B\016\n\014query_source\032z\n\027Co" + + "nversationModelConfig\022?\n\005model\030\001 \001(\tB0\372A" + + "-\n+dialogflow.googleapis.com/Conversatio" + + "nModel\022\036\n\026baseline_model_version\030\010 \001(\t\032;" + + "\n\031ConversationProcessConfig\022\036\n\026recent_se" + + "ntences_count\030\002 \001(\005\032\207\001\n\025MessageAnalysisC" + + "onfig\022 \n\030enable_entity_extraction\030\002 \001(\010\022" + + "!\n\031enable_sentiment_analysis\030\003 \001(\010\022)\n\034en" + + "able_sentiment_analysis_v3\030\005 \001(\010B\003\340A\001\"\304\003" + + "\n\027HumanAgentHandoffConfig\022b\n\022live_person" + + "_config\030\001 \001(\0132D.google.cloud.dialogflow." + + "v2.HumanAgentHandoffConfig.LivePersonCon" + + "figH\000\022u\n\034salesforce_live_agent_config\030\002 " + + "\001(\0132M.google.cloud.dialogflow.v2.HumanAg" + + "entHandoffConfig.SalesforceLiveAgentConf" + + "igH\000\032/\n\020LivePersonConfig\022\033\n\016account_numb" + + "er\030\001 \001(\tB\003\340A\002\032\213\001\n\031SalesforceLiveAgentCon" + + "fig\022\034\n\017organization_id\030\001 \001(\tB\003\340A\002\022\032\n\rdep" + + "loyment_id\030\002 \001(\tB\003\340A\002\022\026\n\tbutton_id\030\003 \001(\t" + + "B\003\340A\002\022\034\n\017endpoint_domain\030\004 \001(\tB\003\340A\002B\017\n\ra" + + "gent_service\"\277\001\n\022NotificationConfig\022\r\n\005t" + + "opic\030\001 \001(\t\022T\n\016message_format\030\002 \001(\0162<.goo" + + "gle.cloud.dialogflow.v2.NotificationConf" + + "ig.MessageFormat\"D\n\rMessageFormat\022\036\n\032MES" + + "SAGE_FORMAT_UNSPECIFIED\020\000\022\t\n\005PROTO\020\001\022\010\n\004" + + "JSON\020\002\"3\n\rLoggingConfig\022\"\n\032enable_stackd" + + "river_logging\030\003 \001(\010\"\250\002\n\tSipConfig\022&\n\036cre" + + "ate_conversation_on_the_fly\030\001 \001(\010\022\026\n\016ina" + + "ctive_start\030\003 \001(\010\022?\n\034max_audio_recording" + + "_duration\030\004 \001(\0132\031.google.protobuf.Durati" + + "on\022\'\n\037allow_virtual_agent_interaction\030\005 " + + "\001(\010\022!\n\031keep_conversation_running\030\006 \001(\010\022%" + + "\n\035copy_inbound_call_leg_headers\030\010 \003(\t\022\'\n" + + "\037ignore_reinvite_media_direction\030\t \001(\010\"\362" + + "\001\n\021SuggestionFeature\022@\n\004type\030\001 \001(\01622.goo" + + "gle.cloud.dialogflow.v2.SuggestionFeatur" + + "e.Type\"\232\001\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\026\n" + + "\022ARTICLE_SUGGESTION\020\001\022\007\n\003FAQ\020\002\022\017\n\013SMART_" + + "REPLY\020\003\022\036\n\032CONVERSATION_SUMMARIZATION\020\010\022" + + "\024\n\020KNOWLEDGE_SEARCH\020\016\022\024\n\020KNOWLEDGE_ASSIS" + + "T\020\017\"\212\002\n!SetSuggestionFeatureConfigReques" + + "t\022!\n\024conversation_profile\030\001 \001(\tB\003\340A\002\022K\n\020" + + "participant_role\030\002 \001(\0162,.google.cloud.di" + + "alogflow.v2.Participant.RoleB\003\340A\002\022u\n\031sug" + + "gestion_feature_config\030\003 \001(\0132M.google.cl" + + "oud.dialogflow.v2.HumanAgentAssistantCon" + + "fig.SuggestionFeatureConfigB\003\340A\002\"\357\001\n#Cle" + + "arSuggestionFeatureConfigRequest\022!\n\024conv" + + "ersation_profile\030\001 \001(\tB\003\340A\002\022K\n\020participa" + + "nt_role\030\002 \001(\0162,.google.cloud.dialogflow." + + "v2.Participant.RoleB\003\340A\002\022X\n\027suggestion_f" + + "eature_type\030\003 \001(\01622.google.cloud.dialogf" + + "low.v2.SuggestionFeature.TypeB\003\340A\002\"\243\002\n+S" + + "etSuggestionFeatureConfigOperationMetada" + + "ta\022\034\n\024conversation_profile\030\001 \001(\t\022K\n\020part" + + "icipant_role\030\002 \001(\0162,.google.cloud.dialog" + + "flow.v2.Participant.RoleB\003\340A\002\022X\n\027suggest" + + "ion_feature_type\030\003 \001(\01622.google.cloud.di" + + "alogflow.v2.SuggestionFeature.TypeB\003\340A\002\022" + + "/\n\013create_time\030\004 \001(\0132\032.google.protobuf.T" + + "imestamp\"\245\002\n-ClearSuggestionFeatureConfi" + + "gOperationMetadata\022\034\n\024conversation_profi" + + "le\030\001 \001(\t\022K\n\020participant_role\030\002 \001(\0162,.goo" + + "gle.cloud.dialogflow.v2.Participant.Role" + + "B\003\340A\002\022X\n\027suggestion_feature_type\030\003 \001(\01622" + + ".google.cloud.dialogflow.v2.SuggestionFe" + + "ature.TypeB\003\340A\002\022/\n\013create_time\030\004 \001(\0132\032.g" + + "oogle.protobuf.Timestamp2\263\024\n\024Conversatio" + + "nProfiles\022\220\002\n\030ListConversationProfiles\022;" + + ".google.cloud.dialogflow.v2.ListConversa" + + "tionProfilesRequest\032<.google.cloud.dialo" + + "gflow.v2.ListConversationProfilesRespons" + + "e\"y\332A\006parent\202\323\344\223\002j\022,/v2/{parent=projects" + + "/*}/conversationProfilesZ:\0228/v2/{parent=" + + "projects/*/locations/*}/conversationProf" + + "iles\022\375\001\n\026GetConversationProfile\0229.google" + + ".cloud.dialogflow.v2.GetConversationProf" + + "ileRequest\032/.google.cloud.dialogflow.v2." + + "ConversationProfile\"w\332A\004name\202\323\344\223\002j\022,/v2/" + + "{name=projects/*/conversationProfiles/*}" + + "Z:\0228/v2/{name=projects/*/locations/*/con" + + "versationProfiles/*}\022\310\002\n\031CreateConversat" + + "ionProfile\022<.google.cloud.dialogflow.v2." + + "CreateConversationProfileRequest\032/.googl" + + "e.cloud.dialogflow.v2.ConversationProfil" + + "e\"\273\001\332A\033parent,conversation_profile\202\323\344\223\002\226" + + "\001\",/v2/{parent=projects/*}/conversationP" + + "rofiles:\024conversation_profileZP\"8/v2/{pa" + + "rent=projects/*/locations/*}/conversatio" + + "nProfiles:\024conversation_profile\022\367\002\n\031Upda" + + "teConversationProfile\022<.google.cloud.dia" + + "logflow.v2.UpdateConversationProfileRequ" + "est\032/.google.cloud.dialogflow.v2.Convers" - + "ationProfile\"w\332A\004name\202\323\344\223\002j\022,/v2/{name=p" - + "rojects/*/conversationProfiles/*}Z:\0228/v2" - + "/{name=projects/*/locations/*/conversati" - + "onProfiles/*}\022\310\002\n\031CreateConversationProf" - + "ile\022<.google.cloud.dialogflow.v2.CreateC" - + "onversationProfileRequest\032/.google.cloud" - + ".dialogflow.v2.ConversationProfile\"\273\001\332A\033" - + "parent,conversation_profile\202\323\344\223\002\226\001\",/v2/" - + "{parent=projects/*}/conversationProfiles" - + ":\024conversation_profileZP\"8/v2/{parent=pr" - + "ojects/*/locations/*}/conversationProfil" - + "es:\024conversation_profile\022\367\002\n\031UpdateConve" - + "rsationProfile\022<.google.cloud.dialogflow" - + ".v2.UpdateConversationProfileRequest\032/.g" - + "oogle.cloud.dialogflow.v2.ConversationPr" - + "ofile\"\352\001\332A conversation_profile,update_m" - + "ask\202\323\344\223\002\300\0012A/v2/{conversation_profile.na" - + "me=projects/*/conversationProfiles/*}:\024c" - + "onversation_profileZe2M/v2/{conversation" - + "_profile.name=projects/*/locations/*/con" - + "versationProfiles/*}:\024conversation_profi" - + "le\022\352\001\n\031DeleteConversationProfile\022<.googl" - + "e.cloud.dialogflow.v2.DeleteConversation" - + "ProfileRequest\032\026.google.protobuf.Empty\"w" - + "\332A\004name\202\323\344\223\002j*,/v2/{name=projects/*/conv" - + "ersationProfiles/*}Z:*8/v2/{name=project" - + "s/*/locations/*/conversationProfiles/*}\022" - + "\350\003\n\032SetSuggestionFeatureConfig\022=.google." - + "cloud.dialogflow.v2.SetSuggestionFeature" - + "ConfigRequest\032\035.google.longrunning.Opera" - + "tion\"\353\002\312AB\n\023ConversationProfile\022+SetSugg" - + "estionFeatureConfigOperationMetadata\332A\024c" - + "onversation_profile\332A?conversation_profi" - + "le,participant_role,suggestion_feature_c" - + "onfig\202\323\344\223\002\306\001\"W/v2/{conversation_profile=" - + "projects/*/conversationProfiles/*}:setSu" - + "ggestionFeatureConfig:\001*Zh\"c/v2/{convers" - + "ation_profile=projects/*/locations/*/con" - + "versationProfiles/*}:setSuggestionFeatur" - + "eConfig:\001*\022\360\003\n\034ClearSuggestionFeatureCon" - + "fig\022?.google.cloud.dialogflow.v2.ClearSu" - + "ggestionFeatureConfigRequest\032\035.google.lo" - + "ngrunning.Operation\"\357\002\312AD\n\023ConversationP" - + "rofile\022-ClearSuggestionFeatureConfigOper" - + "ationMetadata\332A\024conversation_profile\332A=c" - + "onversation_profile,participant_role,sug" - + "gestion_feature_type\202\323\344\223\002\312\001\"Y/v2/{conver" - + "sation_profile=projects/*/conversationPr" - + "ofiles/*}:clearSuggestionFeatureConfig:\001" - + "*Zj\"e/v2/{conversation_profile=projects/" - + "*/locations/*/conversationProfiles/*}:cl" - + "earSuggestionFeatureConfig:\001*\032x\312A\031dialog" - + "flow.googleapis.com\322AYhttps://www.google" - + "apis.com/auth/cloud-platform,https://www" - + ".googleapis.com/auth/dialogflowB\235\002\n\036com." - + "google.cloud.dialogflow.v2B\030Conversation" - + "ProfileProtoP\001Z>cloud.google.com/go/dial" - + "ogflow/apiv2/dialogflowpb;dialogflowpb\242\002" - + "\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A|\n,dia" - + "logflow.googleapis.com/CXSecuritySetting" - + "s\022Lprojects/{project}/locations/{locatio" - + "n}/securitySettings/{security_settings}b" - + "\006proto3" + + "ationProfile\"\352\001\332A conversation_profile,u" + + "pdate_mask\202\323\344\223\002\300\0012A/v2/{conversation_pro" + + "file.name=projects/*/conversationProfile" + + "s/*}:\024conversation_profileZe2M/v2/{conve" + + "rsation_profile.name=projects/*/location" + + "s/*/conversationProfiles/*}:\024conversatio" + + "n_profile\022\352\001\n\031DeleteConversationProfile\022" + + "<.google.cloud.dialogflow.v2.DeleteConve" + + "rsationProfileRequest\032\026.google.protobuf." + + "Empty\"w\332A\004name\202\323\344\223\002j*,/v2/{name=projects" + + "/*/conversationProfiles/*}Z:*8/v2/{name=" + + "projects/*/locations/*/conversationProfi" + + "les/*}\022\350\003\n\032SetSuggestionFeatureConfig\022=." + + "google.cloud.dialogflow.v2.SetSuggestion" + + "FeatureConfigRequest\032\035.google.longrunnin" + + "g.Operation\"\353\002\312AB\n\023ConversationProfile\022+" + + "SetSuggestionFeatureConfigOperationMetad" + + "ata\332A\024conversation_profile\332A?conversatio" + + "n_profile,participant_role,suggestion_fe" + + "ature_config\202\323\344\223\002\306\001\"W/v2/{conversation_p" + + "rofile=projects/*/conversationProfiles/*" + + "}:setSuggestionFeatureConfig:\001*Zh\"c/v2/{" + + "conversation_profile=projects/*/location" + + "s/*/conversationProfiles/*}:setSuggestio" + + "nFeatureConfig:\001*\022\360\003\n\034ClearSuggestionFea" + + "tureConfig\022?.google.cloud.dialogflow.v2." + + "ClearSuggestionFeatureConfigRequest\032\035.go" + + "ogle.longrunning.Operation\"\357\002\312AD\n\023Conver" + + "sationProfile\022-ClearSuggestionFeatureCon" + + "figOperationMetadata\332A\024conversation_prof" + + "ile\332A=conversation_profile,participant_r" + + "ole,suggestion_feature_type\202\323\344\223\002\312\001\"Y/v2/" + + "{conversation_profile=projects/*/convers" + + "ationProfiles/*}:clearSuggestionFeatureC" + + "onfig:\001*Zj\"e/v2/{conversation_profile=pr" + + "ojects/*/locations/*/conversationProfile" + + "s/*}:clearSuggestionFeatureConfig:\001*\032x\312A" + + "\031dialogflow.googleapis.com\322AYhttps://www" + + ".googleapis.com/auth/cloud-platform,http" + + "s://www.googleapis.com/auth/dialogflowB\235" + + "\002\n\036com.google.cloud.dialogflow.v2B\030Conve" + + "rsationProfileProtoP\001Z>cloud.google.com/" + + "go/dialogflow/apiv2/dialogflowpb;dialogf" + + "lowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352" + + "A|\n,dialogflow.googleapis.com/CXSecurity" + + "Settings\022Lprojects/{project}/locations/{" + + "location}/securitySettings/{security_set" + + "tings}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -503,6 +519,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NewRecognitionResultNotificationConfig", "SttConfig", "LanguageCode", + "SipConfig", "TimeZone", "SecuritySettings", "TtsConfig", @@ -598,6 +615,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableQuerySuggestionOnly", "EnableResponseDebugInfo", "RaiSettings", + "SuggestionTriggerEvent", + "DisableQuerySearchContext", "SuggestionTriggerSettings", "QueryConfig", "ConversationModelConfig", @@ -758,8 +777,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "EnableStackdriverLogging", }); - internal_static_google_cloud_dialogflow_v2_SuggestionFeature_descriptor = + internal_static_google_cloud_dialogflow_v2_SipConfig_descriptor = getDescriptor().getMessageType(12); + internal_static_google_cloud_dialogflow_v2_SipConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_SipConfig_descriptor, + new java.lang.String[] { + "CreateConversationOnTheFly", + "InactiveStart", + "MaxAudioRecordingDuration", + "AllowVirtualAgentInteraction", + "KeepConversationRunning", + "CopyInboundCallLegHeaders", + "IgnoreReinviteMediaDirection", + }); + internal_static_google_cloud_dialogflow_v2_SuggestionFeature_descriptor = + getDescriptor().getMessageType(13); internal_static_google_cloud_dialogflow_v2_SuggestionFeature_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SuggestionFeature_descriptor, @@ -767,7 +800,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", }); internal_static_google_cloud_dialogflow_v2_SetSuggestionFeatureConfigRequest_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(14); internal_static_google_cloud_dialogflow_v2_SetSuggestionFeatureConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SetSuggestionFeatureConfigRequest_descriptor, @@ -775,7 +808,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationProfile", "ParticipantRole", "SuggestionFeatureConfig", }); internal_static_google_cloud_dialogflow_v2_ClearSuggestionFeatureConfigRequest_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(15); internal_static_google_cloud_dialogflow_v2_ClearSuggestionFeatureConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_ClearSuggestionFeatureConfigRequest_descriptor, @@ -783,7 +816,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationProfile", "ParticipantRole", "SuggestionFeatureType", }); internal_static_google_cloud_dialogflow_v2_SetSuggestionFeatureConfigOperationMetadata_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(16); internal_static_google_cloud_dialogflow_v2_SetSuggestionFeatureConfigOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SetSuggestionFeatureConfigOperationMetadata_descriptor, @@ -791,7 +824,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationProfile", "ParticipantRole", "SuggestionFeatureType", "CreateTime", }); internal_static_google_cloud_dialogflow_v2_ClearSuggestionFeatureConfigOperationMetadata_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(17); internal_static_google_cloud_dialogflow_v2_ClearSuggestionFeatureConfigOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_ClearSuggestionFeatureConfigOperationMetadata_descriptor, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java index fe7459b38375..a6207c3f1837 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java @@ -551,7 +551,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\01321.google.cloud.dialogflow.v2.SearchKnowledgeAnswer\022\027\n" + "\017rewritten_query\030\003 \001(\t\022Y\n" + "\033search_knowledge_debug_info\030\004 \001(\01324." - + "google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo\"\316\003\n" + + "google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo\"\347\003\n" + "\025SearchKnowledgeAnswer\022\016\n" + "\006answer\030\001 \001(\t\022Q\n" + "\013answer_type\030\002 \001(\0162<.goo" @@ -564,12 +564,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005title\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\017\n" + "\007snippet\030\003 \001(\t\022)\n" - + "\010metadata\030\005 \001(\0132\027.google.protobuf.Struct\"N\n\n" + + "\010metadata\030\005 \001(\0132\027.google.protobuf.Struct\"g\n\n" + "AnswerType\022\033\n" + "\027ANSWER_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003FAQ\020\001\022\016\n\n" + "GENERATIVE\020\002\022\n\n" - + "\006INTENT\020\003\"\354\001\n" + + "\006INTENT\020\003\022\014\n" + + "\010PLAYBOOK\020\004\022\t\n" + + "\005EVENT\020\005\"\354\001\n" + "\032GenerateSuggestionsRequest\022D\n" + "\014conversation\030\001 \001(\tB.\340A\002\372A(\n" + "&dialogflow.googleapis.com/Conversation\022A\n" @@ -578,79 +580,76 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016trigger_events\030\003" + " \003(\0162(.google.cloud.dialogflow.v2.TriggerEventB\003\340A\0012\246\032\n\r" + "Conversations\022\214\002\n" - + "\022CreateConversation\0225.google.cloud.dialogflow.v2.CreateConversa" - + "tionRequest\032(.google.cloud.dialogflow.v2" - + ".Conversation\"\224\001\332A\023parent,conversation\202\323" - + "\344\223\002x\"%/v2/{parent=projects/*}/conversati" - + "ons:\014conversationZA\"1/v2/{parent=project" - + "s/*/locations/*}/conversations:\014conversation\022\355\001\n" - + "\021ListConversations\0224.google.cloud.dialogflow.v2.ListConversationsRequest" - + "\0325.google.cloud.dialogflow.v2.ListConver" - + "sationsResponse\"k\332A\006parent\202\323\344\223\002\\\022%/v2/{p" - + "arent=projects/*}/conversationsZ3\0221/v2/{" - + "parent=projects/*/locations/*}/conversations\022\332\001\n" - + "\017GetConversation\0222.google.cloud.dialogflow.v2.GetConversationRequest\032(.g" - + "oogle.cloud.dialogflow.v2.Conversation\"i" - + "\332A\004name\202\323\344\223\002\\\022%/v2/{name=projects/*/conv" - + "ersations/*}Z3\0221/v2/{name=projects/*/locations/*/conversations/*}\022\375\001\n" - + "\024CompleteConversation\0227.google.cloud.dialogflow.v2." - + "CompleteConversationRequest\032(.google.clo" - + "ud.dialogflow.v2.Conversation\"\201\001\332A\004name\202" - + "\323\344\223\002t\"./v2/{name=projects/*/conversation" - + "s/*}:complete:\001*Z?\":/v2/{name=projects/*" - + "/locations/*/conversations/*}:complete:\001*\022\222\002\n" - + "\027IngestContextReferences\022:.google.cloud.dialogflow.v2.IngestContextReferenc" - + "esRequest\032;.google.cloud.dialogflow.v2.I" - + "ngestContextReferencesResponse\"~\332A\037conve" - + "rsation,context_references\202\323\344\223\002V\"Q/v2/{c" - + "onversation=projects/*/locations/*/conve" - + "rsations/*}:ingestContextReferences:\001*\022\365\001\n" - + "\014ListMessages\022/.google.cloud.dialogflo" - + "w.v2.ListMessagesRequest\0320.google.cloud." - + "dialogflow.v2.ListMessagesResponse\"\201\001\332A\006" - + "parent\202\323\344\223\002r\0220/v2/{parent=projects/*/con" - + "versations/*}/messagesZ>\022.google.cloud.dialogflow.v2.SuggestConversationSummaryResp" - + "onse\"\326\001\332A\014conversation\202\323\344\223\002\300\001\"T/v2/{conv" - + "ersation=projects/*/conversations/*}/suggestions:suggestConversationSummary:\001*Ze" - + "\"`/v2/{conversation=projects/*/locations" - + "/*/conversations/*}/suggestions:suggestConversationSummary:\001*\022\335\002\n" - + "\030GenerateStatelessSummary\022;.google.cloud.dialogflow.v2." - + "GenerateStatelessSummaryRequest\032<.google.cloud.dialogflow.v2.GenerateStatelessSu" - + "mmaryResponse\"\305\001\202\323\344\223\002\276\001\"S/v2/{stateless_" - + "conversation.parent=projects/*}/suggestions:generateStatelessSummary:\001*Zd\"_/v2/{" - + "stateless_conversation.parent=projects/*" - + "/locations/*}/suggestions:generateStatelessSummary:\001*\022\353\001\n" - + "\033GenerateStatelessSuggestion\022>.google.cloud.dialogflow.v2.Gener" - + "ateStatelessSuggestionRequest\032?.google.cloud.dialogflow.v2.GenerateStatelessSugg" - + "estionResponse\"K\202\323\344\223\002E\"@/v2/{parent=proj" - + "ects/*/locations/*}/statelessSuggestion:generate:\001*\022\256\003\n" - + "\017SearchKnowledge\0222.google.cloud.dialogflow.v2.SearchKnowledgeRequ" - + "est\0323.google.cloud.dialogflow.v2.SearchK" - + "nowledgeResponse\"\261\002\202\323\344\223\002\252\002\"3/v2/{parent=" - + "projects/*}/suggestions:searchKnowledge:\001*ZD\"?/v2/{parent=projects/*/locations/*" - + "}/suggestions:searchKnowledge:\001*ZN\"I/v2/{conversation=projects/*/conversations/*" - + "}/suggestions:searchKnowledge:\001*ZZ\"U/v2/{conversation=projects/*/locations/*/con" - + "versations/*}/suggestions:searchKnowledge:\001*\022\273\002\n" - + "\023GenerateSuggestions\0226.google.cloud.dialogflow.v2.GenerateSuggestionsReq" - + "uest\0327.google.cloud.dialogflow.v2.Genera" - + "teSuggestionsResponse\"\262\001\332A\014conversation\202" - + "\323\344\223\002\234\001\"B/v2/{conversation=projects/*/con" - + "versations/*}/suggestions:generate:\001*ZS\"N/v2/{conversation=projects/*/locations/" - + "*/conversations/*}/suggestions:generate:" - + "\001*\032x\312A\031dialogflow.googleapis.com\322AYhttps" - + "://www.googleapis.com/auth/cloud-platfor" - + "m,https://www.googleapis.com/auth/dialogflowB\275\003\n" - + "\036com.google.cloud.dialogflow.v2B\021ConversationProtoP\001Z>cloud.google.com/g" - + "o/dialogflow/apiv2/dialogflowpb;dialogfl" - + "owpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A\305\001\n" - + "(discoveryengine.googleapis.com/DataStore\022Xprojects/{project}/locations/{loca" - + "tion}/collections/{collection}/dataStores/{data_store}\022?projects/{project}/locat" - + "ions/{location}/dataStores/{data_store}\352AZ\n" - + "\027ces.googleapis.com/Tool\022?projects/{project}/locations/{location}/apps/{app}/" - + "tools/{tool}b\006proto3" + + "\022CreateConversation\0225.google.cloud.dia" + + "logflow.v2.CreateConversationRequest\032(.g" + + "oogle.cloud.dialogflow.v2.Conversation\"\224" + + "\001\332A\023parent,conversation\202\323\344\223\002x\"%/v2/{pare" + + "nt=projects/*}/conversations:\014conversati" + + "onZA\"1/v2/{parent=projects/*/locations/*}/conversations:\014conversation\022\355\001\n" + + "\021ListConversations\0224.google.cloud.dialogflow.v2" + + ".ListConversationsRequest\0325.google.cloud.dialogflow.v2.ListConversationsResponse" + + "\"k\332A\006parent\202\323\344\223\002\\\022%/v2/{parent=projects/" + + "*}/conversationsZ3\0221/v2/{parent=projects/*/locations/*}/conversations\022\332\001\n" + + "\017GetConversation\0222.google.cloud.dialogflow.v2.G" + + "etConversationRequest\032(.google.cloud.dia" + + "logflow.v2.Conversation\"i\332A\004name\202\323\344\223\002\\\022%" + + "/v2/{name=projects/*/conversations/*}Z3\022" + + "1/v2/{name=projects/*/locations/*/conversations/*}\022\375\001\n" + + "\024CompleteConversation\0227.google.cloud.dialogflow.v2.CompleteConvers" + + "ationRequest\032(.google.cloud.dialogflow.v" + + "2.Conversation\"\201\001\332A\004name\202\323\344\223\002t\"./v2/{nam" + + "e=projects/*/conversations/*}:complete:\001" + + "*Z?\":/v2/{name=projects/*/locations/*/conversations/*}:complete:\001*\022\222\002\n" + + "\027IngestContextReferences\022:.google.cloud.dialogflow" + + ".v2.IngestContextReferencesRequest\032;.google.cloud.dialogflow.v2.IngestContextRef" + + "erencesResponse\"~\332A\037conversation,context" + + "_references\202\323\344\223\002V\"Q/v2/{conversation=pro" + + "jects/*/locations/*/conversations/*}:ingestContextReferences:\001*\022\365\001\n" + + "\014ListMessages\022/.google.cloud.dialogflow.v2.ListMessag" + + "esRequest\0320.google.cloud.dialogflow.v2.L" + + "istMessagesResponse\"\201\001\332A\006parent\202\323\344\223\002r\0220/" + + "v2/{parent=projects/*/conversations/*}/m" + + "essagesZ>\022.google.cloud.dialogflow.v2.Sugge" + + "stConversationSummaryResponse\"\326\001\332A\014conve" + + "rsation\202\323\344\223\002\300\001\"T/v2/{conversation=projec" + + "ts/*/conversations/*}/suggestions:suggestConversationSummary:\001*Ze\"`/v2/{conversa" + + "tion=projects/*/locations/*/conversation" + + "s/*}/suggestions:suggestConversationSummary:\001*\022\335\002\n" + + "\030GenerateStatelessSummary\022;.google.cloud.dialogflow.v2.GenerateStatele" + + "ssSummaryRequest\032<.google.cloud.dialogfl" + + "ow.v2.GenerateStatelessSummaryResponse\"\305" + + "\001\202\323\344\223\002\276\001\"S/v2/{stateless_conversation.pa" + + "rent=projects/*}/suggestions:generateStatelessSummary:\001*Zd\"_/v2/{stateless_conve" + + "rsation.parent=projects/*/locations/*}/s" + + "uggestions:generateStatelessSummary:\001*\022\353\001\n" + + "\033GenerateStatelessSuggestion\022>.google.cloud.dialogflow.v2.GenerateStatelessSug" + + "gestionRequest\032?.google.cloud.dialogflow.v2.GenerateStatelessSuggestionResponse\"" + + "K\202\323\344\223\002E\"@/v2/{parent=projects/*/locations/*}/statelessSuggestion:generate:\001*\022\256\003\n" + + "\017SearchKnowledge\0222.google.cloud.dialogfl" + + "ow.v2.SearchKnowledgeRequest\0323.google.cloud.dialogflow.v2.SearchKnowledgeRespons" + + "e\"\261\002\202\323\344\223\002\252\002\"3/v2/{parent=projects/*}/sug" + + "gestions:searchKnowledge:\001*ZD\"?/v2/{parent=projects/*/locations/*}/suggestions:s" + + "earchKnowledge:\001*ZN\"I/v2/{conversation=projects/*/conversations/*}/suggestions:s" + + "earchKnowledge:\001*ZZ\"U/v2/{conversation=p" + + "rojects/*/locations/*/conversations/*}/suggestions:searchKnowledge:\001*\022\273\002\n" + + "\023GenerateSuggestions\0226.google.cloud.dialogflow." + + "v2.GenerateSuggestionsRequest\0327.google.cloud.dialogflow.v2.GenerateSuggestionsRe" + + "sponse\"\262\001\332A\014conversation\202\323\344\223\002\234\001\"B/v2/{co" + + "nversation=projects/*/conversations/*}/suggestions:generate:\001*ZS\"N/v2/{conversat" + + "ion=projects/*/locations/*/conversations" + + "/*}/suggestions:generate:\001*\032x\312A\031dialogfl" + + "ow.googleapis.com\322AYhttps://www.googleap" + + "is.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\275\003\n" + + "\036com.google.cloud.dialogflow.v2B\021ConversationPr" + + "otoP\001Z>cloud.google.com/go/dialogflow/ap" + + "iv2/dialogflowpb;dialogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A\305\001\n" + + "(discoveryengine.googleapis.com/DataStore\022Xprojects/" + + "{project}/locations/{location}/collections/{collection}/dataStores/{data_store}\022" + + "?projects/{project}/locations/{location}/dataStores/{data_store}\352AZ\n" + + "\027ces.googleapis.com/Tool\022?projects/{project}/locatio" + + "ns/{location}/apps/{app}/tools/{tool}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java index 67cca5aa60a6..fba4c240e063 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java @@ -911,6 +911,65 @@ public interface SuggestionFeatureConfigOrBuilder */ com.google.cloud.dialogflow.v2.RaiSettingsOrBuilder getRaiSettingsOrBuilder(); + /** + * + * + *
+     * Optional. The trigger event for suggestion.
+     * If unspecified, it will be `CUSTOMER_MESSAGE`.
+     * Supported features: KNOWLEDGE_ASSIST
+     * For KNOWLEDGE_ASSIST, these four trigger events are supported:
+     * 1. TRIGGER_EVENT_UNSPECIFIED
+     * 2. END_OF_UTTERANCE
+     * 3. CUSTOMER_MESSAGE
+     * 4. AGENT_MESSAGE
+     * 
+ * + * + * .google.cloud.dialogflow.v2.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for suggestionTriggerEvent. + */ + int getSuggestionTriggerEventValue(); + + /** + * + * + *
+     * Optional. The trigger event for suggestion.
+     * If unspecified, it will be `CUSTOMER_MESSAGE`.
+     * Supported features: KNOWLEDGE_ASSIST
+     * For KNOWLEDGE_ASSIST, these four trigger events are supported:
+     * 1. TRIGGER_EVENT_UNSPECIFIED
+     * 2. END_OF_UTTERANCE
+     * 3. CUSTOMER_MESSAGE
+     * 4. AGENT_MESSAGE
+     * 
+ * + * + * .google.cloud.dialogflow.v2.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The suggestionTriggerEvent. + */ + com.google.cloud.dialogflow.v2.TriggerEvent getSuggestionTriggerEvent(); + + /** + * + * + *
+     * Optional. If true, disable appending available search context to the
+     * search query. Supported features: KNOWLEDGE_ASSIST
+     * 
+ * + * bool disable_query_search_context = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableQuerySearchContext. + */ + boolean getDisableQuerySearchContext(); + /** * * @@ -1128,7 +1187,9 @@ private SuggestionFeatureConfig(com.google.protobuf.GeneratedMessage.Builder super(builder); } - private SuggestionFeatureConfig() {} + private SuggestionFeatureConfig() { + suggestionTriggerEvent_ = 0; + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2.ConversationProfileProto @@ -1401,6 +1462,82 @@ public com.google.cloud.dialogflow.v2.RaiSettingsOrBuilder getRaiSettingsOrBuild : raiSettings_; } + public static final int SUGGESTION_TRIGGER_EVENT_FIELD_NUMBER = 20; + private int suggestionTriggerEvent_ = 0; + + /** + * + * + *
+     * Optional. The trigger event for suggestion.
+     * If unspecified, it will be `CUSTOMER_MESSAGE`.
+     * Supported features: KNOWLEDGE_ASSIST
+     * For KNOWLEDGE_ASSIST, these four trigger events are supported:
+     * 1. TRIGGER_EVENT_UNSPECIFIED
+     * 2. END_OF_UTTERANCE
+     * 3. CUSTOMER_MESSAGE
+     * 4. AGENT_MESSAGE
+     * 
+ * + * + * .google.cloud.dialogflow.v2.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for suggestionTriggerEvent. + */ + @java.lang.Override + public int getSuggestionTriggerEventValue() { + return suggestionTriggerEvent_; + } + + /** + * + * + *
+     * Optional. The trigger event for suggestion.
+     * If unspecified, it will be `CUSTOMER_MESSAGE`.
+     * Supported features: KNOWLEDGE_ASSIST
+     * For KNOWLEDGE_ASSIST, these four trigger events are supported:
+     * 1. TRIGGER_EVENT_UNSPECIFIED
+     * 2. END_OF_UTTERANCE
+     * 3. CUSTOMER_MESSAGE
+     * 4. AGENT_MESSAGE
+     * 
+ * + * + * .google.cloud.dialogflow.v2.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The suggestionTriggerEvent. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.TriggerEvent getSuggestionTriggerEvent() { + com.google.cloud.dialogflow.v2.TriggerEvent result = + com.google.cloud.dialogflow.v2.TriggerEvent.forNumber(suggestionTriggerEvent_); + return result == null ? com.google.cloud.dialogflow.v2.TriggerEvent.UNRECOGNIZED : result; + } + + public static final int DISABLE_QUERY_SEARCH_CONTEXT_FIELD_NUMBER = 21; + private boolean disableQuerySearchContext_ = false; + + /** + * + * + *
+     * Optional. If true, disable appending available search context to the
+     * search query. Supported features: KNOWLEDGE_ASSIST
+     * 
+ * + * bool disable_query_search_context = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableQuerySearchContext. + */ + @java.lang.Override + public boolean getDisableQuerySearchContext() { + return disableQuerySearchContext_; + } + public static final int SUGGESTION_TRIGGER_SETTINGS_FIELD_NUMBER = 10; private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestionTriggerSettings_; @@ -1715,6 +1852,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(19, getRaiSettings()); } + if (suggestionTriggerEvent_ + != com.google.cloud.dialogflow.v2.TriggerEvent.TRIGGER_EVENT_UNSPECIFIED.getNumber()) { + output.writeEnum(20, suggestionTriggerEvent_); + } + if (disableQuerySearchContext_ != false) { + output.writeBool(21, disableQuerySearchContext_); + } getUnknownFields().writeTo(output); } @@ -1773,6 +1917,14 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getRaiSettings()); } + if (suggestionTriggerEvent_ + != com.google.cloud.dialogflow.v2.TriggerEvent.TRIGGER_EVENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, suggestionTriggerEvent_); + } + if (disableQuerySearchContext_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(21, disableQuerySearchContext_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1807,6 +1959,8 @@ public boolean equals(final java.lang.Object obj) { if (hasRaiSettings()) { if (!getRaiSettings().equals(other.getRaiSettings())) return false; } + if (suggestionTriggerEvent_ != other.suggestionTriggerEvent_) return false; + if (getDisableQuerySearchContext() != other.getDisableQuerySearchContext()) return false; if (hasSuggestionTriggerSettings() != other.hasSuggestionTriggerSettings()) return false; if (hasSuggestionTriggerSettings()) { if (!getSuggestionTriggerSettings().equals(other.getSuggestionTriggerSettings())) @@ -1861,6 +2015,10 @@ public int hashCode() { hash = (37 * hash) + RAI_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getRaiSettings().hashCode(); } + hash = (37 * hash) + SUGGESTION_TRIGGER_EVENT_FIELD_NUMBER; + hash = (53 * hash) + suggestionTriggerEvent_; + hash = (37 * hash) + DISABLE_QUERY_SEARCH_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableQuerySearchContext()); if (hasSuggestionTriggerSettings()) { hash = (37 * hash) + SUGGESTION_TRIGGER_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getSuggestionTriggerSettings().hashCode(); @@ -2059,6 +2217,8 @@ public Builder clear() { raiSettingsBuilder_.dispose(); raiSettingsBuilder_ = null; } + suggestionTriggerEvent_ = 0; + disableQuerySearchContext_ = false; suggestionTriggerSettings_ = null; if (suggestionTriggerSettingsBuilder_ != null) { suggestionTriggerSettingsBuilder_.dispose(); @@ -2154,25 +2314,31 @@ private void buildPartial0( to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000100) != 0)) { + result.suggestionTriggerEvent_ = suggestionTriggerEvent_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.disableQuerySearchContext_ = disableQuerySearchContext_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { result.suggestionTriggerSettings_ = suggestionTriggerSettingsBuilder_ == null ? suggestionTriggerSettings_ : suggestionTriggerSettingsBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.queryConfig_ = queryConfigBuilder_ == null ? queryConfig_ : queryConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.conversationModelConfig_ = conversationModelConfigBuilder_ == null ? conversationModelConfig_ : conversationModelConfigBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.conversationProcessConfig_ = conversationProcessConfigBuilder_ == null ? conversationProcessConfig_ @@ -2225,6 +2391,12 @@ public Builder mergeFrom( if (other.hasRaiSettings()) { mergeRaiSettings(other.getRaiSettings()); } + if (other.suggestionTriggerEvent_ != 0) { + setSuggestionTriggerEventValue(other.getSuggestionTriggerEventValue()); + } + if (other.getDisableQuerySearchContext() != false) { + setDisableQuerySearchContext(other.getDisableQuerySearchContext()); + } if (other.hasSuggestionTriggerSettings()) { mergeSuggestionTriggerSettings(other.getSuggestionTriggerSettings()); } @@ -2280,7 +2452,7 @@ public Builder mergeFrom( { input.readMessage( internalGetQueryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; break; } // case 50 case 58: @@ -2288,7 +2460,7 @@ public Builder mergeFrom( input.readMessage( internalGetConversationModelConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; break; } // case 58 case 66: @@ -2296,7 +2468,7 @@ public Builder mergeFrom( input.readMessage( internalGetConversationProcessConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; break; } // case 66 case 82: @@ -2304,7 +2476,7 @@ public Builder mergeFrom( input.readMessage( internalGetSuggestionTriggerSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; break; } // case 82 case 112: @@ -2344,6 +2516,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 154 + case 160: + { + suggestionTriggerEvent_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 160 + case 168: + { + disableQuerySearchContext_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 168 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3195,6 +3379,208 @@ public com.google.cloud.dialogflow.v2.RaiSettingsOrBuilder getRaiSettingsOrBuild return raiSettingsBuilder_; } + private int suggestionTriggerEvent_ = 0; + + /** + * + * + *
+       * Optional. The trigger event for suggestion.
+       * If unspecified, it will be `CUSTOMER_MESSAGE`.
+       * Supported features: KNOWLEDGE_ASSIST
+       * For KNOWLEDGE_ASSIST, these four trigger events are supported:
+       * 1. TRIGGER_EVENT_UNSPECIFIED
+       * 2. END_OF_UTTERANCE
+       * 3. CUSTOMER_MESSAGE
+       * 4. AGENT_MESSAGE
+       * 
+ * + * + * .google.cloud.dialogflow.v2.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for suggestionTriggerEvent. + */ + @java.lang.Override + public int getSuggestionTriggerEventValue() { + return suggestionTriggerEvent_; + } + + /** + * + * + *
+       * Optional. The trigger event for suggestion.
+       * If unspecified, it will be `CUSTOMER_MESSAGE`.
+       * Supported features: KNOWLEDGE_ASSIST
+       * For KNOWLEDGE_ASSIST, these four trigger events are supported:
+       * 1. TRIGGER_EVENT_UNSPECIFIED
+       * 2. END_OF_UTTERANCE
+       * 3. CUSTOMER_MESSAGE
+       * 4. AGENT_MESSAGE
+       * 
+ * + * + * .google.cloud.dialogflow.v2.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for suggestionTriggerEvent to set. + * @return This builder for chaining. + */ + public Builder setSuggestionTriggerEventValue(int value) { + suggestionTriggerEvent_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The trigger event for suggestion.
+       * If unspecified, it will be `CUSTOMER_MESSAGE`.
+       * Supported features: KNOWLEDGE_ASSIST
+       * For KNOWLEDGE_ASSIST, these four trigger events are supported:
+       * 1. TRIGGER_EVENT_UNSPECIFIED
+       * 2. END_OF_UTTERANCE
+       * 3. CUSTOMER_MESSAGE
+       * 4. AGENT_MESSAGE
+       * 
+ * + * + * .google.cloud.dialogflow.v2.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The suggestionTriggerEvent. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.TriggerEvent getSuggestionTriggerEvent() { + com.google.cloud.dialogflow.v2.TriggerEvent result = + com.google.cloud.dialogflow.v2.TriggerEvent.forNumber(suggestionTriggerEvent_); + return result == null ? com.google.cloud.dialogflow.v2.TriggerEvent.UNRECOGNIZED : result; + } + + /** + * + * + *
+       * Optional. The trigger event for suggestion.
+       * If unspecified, it will be `CUSTOMER_MESSAGE`.
+       * Supported features: KNOWLEDGE_ASSIST
+       * For KNOWLEDGE_ASSIST, these four trigger events are supported:
+       * 1. TRIGGER_EVENT_UNSPECIFIED
+       * 2. END_OF_UTTERANCE
+       * 3. CUSTOMER_MESSAGE
+       * 4. AGENT_MESSAGE
+       * 
+ * + * + * .google.cloud.dialogflow.v2.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The suggestionTriggerEvent to set. + * @return This builder for chaining. + */ + public Builder setSuggestionTriggerEvent(com.google.cloud.dialogflow.v2.TriggerEvent value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + suggestionTriggerEvent_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The trigger event for suggestion.
+       * If unspecified, it will be `CUSTOMER_MESSAGE`.
+       * Supported features: KNOWLEDGE_ASSIST
+       * For KNOWLEDGE_ASSIST, these four trigger events are supported:
+       * 1. TRIGGER_EVENT_UNSPECIFIED
+       * 2. END_OF_UTTERANCE
+       * 3. CUSTOMER_MESSAGE
+       * 4. AGENT_MESSAGE
+       * 
+ * + * + * .google.cloud.dialogflow.v2.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSuggestionTriggerEvent() { + bitField0_ = (bitField0_ & ~0x00000100); + suggestionTriggerEvent_ = 0; + onChanged(); + return this; + } + + private boolean disableQuerySearchContext_; + + /** + * + * + *
+       * Optional. If true, disable appending available search context to the
+       * search query. Supported features: KNOWLEDGE_ASSIST
+       * 
+ * + * bool disable_query_search_context = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableQuerySearchContext. + */ + @java.lang.Override + public boolean getDisableQuerySearchContext() { + return disableQuerySearchContext_; + } + + /** + * + * + *
+       * Optional. If true, disable appending available search context to the
+       * search query. Supported features: KNOWLEDGE_ASSIST
+       * 
+ * + * bool disable_query_search_context = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The disableQuerySearchContext to set. + * @return This builder for chaining. + */ + public Builder setDisableQuerySearchContext(boolean value) { + + disableQuerySearchContext_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. If true, disable appending available search context to the
+       * search query. Supported features: KNOWLEDGE_ASSIST
+       * 
+ * + * bool disable_query_search_context = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDisableQuerySearchContext() { + bitField0_ = (bitField0_ & ~0x00000200); + disableQuerySearchContext_ = false; + onChanged(); + return this; + } + private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestionTriggerSettings_; private com.google.protobuf.SingleFieldBuilder< @@ -3221,7 +3607,7 @@ public com.google.cloud.dialogflow.v2.RaiSettingsOrBuilder getRaiSettingsOrBuild * @return Whether the suggestionTriggerSettings field is set. */ public boolean hasSuggestionTriggerSettings() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -3275,7 +3661,7 @@ public Builder setSuggestionTriggerSettings( } else { suggestionTriggerSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3301,7 +3687,7 @@ public Builder setSuggestionTriggerSettings( } else { suggestionTriggerSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3323,7 +3709,7 @@ public Builder mergeSuggestionTriggerSettings( com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings value) { if (suggestionTriggerSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000400) != 0) && suggestionTriggerSettings_ != null && suggestionTriggerSettings_ != com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig @@ -3336,7 +3722,7 @@ public Builder mergeSuggestionTriggerSettings( suggestionTriggerSettingsBuilder_.mergeFrom(value); } if (suggestionTriggerSettings_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -3356,7 +3742,7 @@ public Builder mergeSuggestionTriggerSettings( *
*/ public Builder clearSuggestionTriggerSettings() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); suggestionTriggerSettings_ = null; if (suggestionTriggerSettingsBuilder_ != null) { suggestionTriggerSettingsBuilder_.dispose(); @@ -3382,7 +3768,7 @@ public Builder clearSuggestionTriggerSettings() { public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings .Builder getSuggestionTriggerSettingsBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return internalGetSuggestionTriggerSettingsFieldBuilder().getBuilder(); } @@ -3472,7 +3858,7 @@ public Builder clearSuggestionTriggerSettings() { * @return Whether the queryConfig field is set. */ public boolean hasQueryConfig() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -3521,7 +3907,7 @@ public Builder setQueryConfig( } else { queryConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3545,7 +3931,7 @@ public Builder setQueryConfig( } else { queryConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3564,7 +3950,7 @@ public Builder setQueryConfig( public Builder mergeQueryConfig( com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig value) { if (queryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000800) != 0) && queryConfig_ != null && queryConfig_ != com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig @@ -3577,7 +3963,7 @@ public Builder mergeQueryConfig( queryConfigBuilder_.mergeFrom(value); } if (queryConfig_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -3595,7 +3981,7 @@ public Builder mergeQueryConfig( *
*/ public Builder clearQueryConfig() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000800); queryConfig_ = null; if (queryConfigBuilder_ != null) { queryConfigBuilder_.dispose(); @@ -3618,7 +4004,7 @@ public Builder clearQueryConfig() { */ public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.Builder getQueryConfigBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return internalGetQueryConfigFieldBuilder().getBuilder(); } @@ -3702,7 +4088,7 @@ public Builder clearQueryConfig() { * @return Whether the conversationModelConfig field is set. */ public boolean hasConversationModelConfig() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -3751,7 +4137,7 @@ public Builder setConversationModelConfig( } else { conversationModelConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3775,7 +4161,7 @@ public Builder setConversationModelConfig( } else { conversationModelConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3794,7 +4180,7 @@ public Builder setConversationModelConfig( public Builder mergeConversationModelConfig( com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig value) { if (conversationModelConfigBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00001000) != 0) && conversationModelConfig_ != null && conversationModelConfig_ != com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig @@ -3807,7 +4193,7 @@ public Builder mergeConversationModelConfig( conversationModelConfigBuilder_.mergeFrom(value); } if (conversationModelConfig_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -3825,7 +4211,7 @@ public Builder mergeConversationModelConfig( *
*/ public Builder clearConversationModelConfig() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00001000); conversationModelConfig_ = null; if (conversationModelConfigBuilder_ != null) { conversationModelConfigBuilder_.dispose(); @@ -3849,7 +4235,7 @@ public Builder clearConversationModelConfig() { public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig .Builder getConversationModelConfigBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return internalGetConversationModelConfigFieldBuilder().getBuilder(); } @@ -3934,7 +4320,7 @@ public Builder clearConversationModelConfig() { * @return Whether the conversationProcessConfig field is set. */ public boolean hasConversationProcessConfig() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -3984,7 +4370,7 @@ public Builder setConversationProcessConfig( } else { conversationProcessConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4008,7 +4394,7 @@ public Builder setConversationProcessConfig( } else { conversationProcessConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4028,7 +4414,7 @@ public Builder mergeConversationProcessConfig( com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationProcessConfig value) { if (conversationProcessConfigBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00002000) != 0) && conversationProcessConfig_ != null && conversationProcessConfig_ != com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig @@ -4041,7 +4427,7 @@ public Builder mergeConversationProcessConfig( conversationProcessConfigBuilder_.mergeFrom(value); } if (conversationProcessConfig_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -4059,7 +4445,7 @@ public Builder mergeConversationProcessConfig( * */ public Builder clearConversationProcessConfig() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00002000); conversationProcessConfig_ = null; if (conversationProcessConfigBuilder_ != null) { conversationProcessConfigBuilder_.dispose(); @@ -4083,7 +4469,7 @@ public Builder clearConversationProcessConfig() { public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationProcessConfig .Builder getConversationProcessConfigBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); return internalGetConversationProcessConfigFieldBuilder().getBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswer.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswer.java index 0fe3e83e9a37..6a6836953d7c 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswer.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswer.java @@ -100,6 +100,79 @@ public interface SuggestedQueryOrBuilder * @return The bytes for queryText. */ com.google.protobuf.ByteString getQueryTextBytes(); + + /** + * + * + *
+     * Optional. The search contexts for the query.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext> + getSearchContextsList(); + + /** + * + * + *
+     * Optional. The search contexts for the query.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + getSearchContexts(int index); + + /** + * + * + *
+     * Optional. The search contexts for the query.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSearchContextsCount(); + + /** + * + * + *
+     * Optional. The search contexts for the query.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder> + getSearchContextsOrBuilderList(); + + /** + * + * + *
+     * Optional. The search contexts for the query.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContextOrBuilder + getSearchContextsOrBuilder(int index); } /** @@ -134,6 +207,7 @@ private SuggestedQuery(com.google.protobuf.GeneratedMessage.Builder builder) private SuggestedQuery() { queryText_ = ""; + searchContexts_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -151,3040 +225,6914 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.Builder.class); } - public static final int QUERY_TEXT_FIELD_NUMBER = 1; + public interface SearchContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object queryText_ = ""; + /** + * + * + *
+       * Optional. The key of the search context, e.g. "application name".
+       * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The key. + */ + java.lang.String getKey(); - /** - * - * - *
-     * Suggested query text.
-     * 
- * - * string query_text = 1; - * - * @return The queryText. - */ - @java.lang.Override - public java.lang.String getQueryText() { - java.lang.Object ref = queryText_; - 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(); - queryText_ = s; - return s; - } + /** + * + * + *
+       * Optional. The key of the search context, e.g. "application name".
+       * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
+       * Optional. The value of the search context, e.g. "DesignApp".
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + * + * + *
+       * Optional. The value of the search context, e.g. "DesignApp".
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); } /** * * *
-     * Suggested query text.
+     * Search context is information useful for knowledge search that helps
+     * enrich the query.
+     * Example:
+     * search_context {
+     * key: "application name"
+     * value: "DesignApp"
+     * }
      * 
* - * string query_text = 1; - * - * @return The bytes for queryText. + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext} */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryTextBytes() { - java.lang.Object ref = queryText_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - queryText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } + public static final class SearchContext extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + SearchContextOrBuilder { + private static final long serialVersionUID = 0L; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryText_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, queryText_); + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchContext"); } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + // Use SearchContext.newBuilder() to construct. + private SearchContext(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryText_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, queryText_); + private SearchContext() { + key_ = ""; + value_ = ""; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor; } - if (!(obj instanceof com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery)) { - return super.equals(obj); + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder.class); } - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery other = - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) obj; - if (!getQueryText().equals(other.getQueryText())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static final int KEY_FIELD_NUMBER = 1; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + + /** + * + * + *
+       * Optional. The key of the search context, e.g. "application name".
+       * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + 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(); + key_ = s; + return s; + } } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUERY_TEXT_FIELD_NUMBER; - hash = (53 * hash) + getQueryText().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
+       * Optional. The key of the search context, e.g. "application name".
+       * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int VALUE_FIELD_NUMBER = 2; - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-     * Represents a suggested query.
-     * 
- * - * Protobuf type {@code google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_descriptor; + /** + * + * + *
+       * Optional. The value of the search context, e.g. "DesignApp".
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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(); + value_ = s; + return s; + } } + /** + * + * + *
+       * Optional. The value of the search context, e.g. "DesignApp".
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for value. + */ @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.class, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.Builder.class); + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - // Construct using - // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + private byte memoizedIsInitialized = -1; @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - queryText_ = ""; - return this; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_descriptor; + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, key_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, value_); + } + getUnknownFields().writeTo(output); } @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery - .getDefaultInstance(); + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, key_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, value_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery build() { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - return result; + if (!(obj + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext other = + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) obj; + + if (!getKey().equals(other.getKey())) return false; + if (!getValue().equals(other.getValue())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery buildPartial() { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery result = - new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery(this); - if (bitField0_ != 0) { - buildPartial0(result); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - onBuilt(); - return result; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - private void buildPartial0( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.queryText_ = queryText_; - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) { - return mergeFrom( - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) other); - } else { - super.mergeFrom(other); - return this; - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery other) { - if (other - == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery - .getDefaultInstance()) return this; - if (!other.getQueryText().isEmpty()) { - queryText_ = other.queryText_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public final boolean isInitialized() { - return true; + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - queryText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - private int bitField0_; + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private java.lang.Object queryText_ = ""; + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
-       * Suggested query text.
-       * 
- * - * string query_text = 1; - * - * @return The queryText. - */ - public java.lang.String getQueryText() { - java.lang.Object ref = queryText_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - queryText_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - /** - * - * - *
-       * Suggested query text.
-       * 
- * - * string query_text = 1; - * - * @return The bytes for queryText. - */ - public com.google.protobuf.ByteString getQueryTextBytes() { - java.lang.Object ref = queryText_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - queryText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - /** - * - * - *
-       * Suggested query text.
-       * 
- * - * string query_text = 1; - * - * @param value The queryText to set. - * @return This builder for chaining. - */ - public Builder setQueryText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - queryText_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - /** - * - * - *
-       * Suggested query text.
-       * 
- * - * string query_text = 1; - * - * @return This builder for chaining. - */ - public Builder clearQueryText() { - queryText_ = getDefaultInstance().getQueryText(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * * *
-       * Suggested query text.
+       * Search context is information useful for knowledge search that helps
+       * enrich the query.
+       * Example:
+       * search_context {
+       * key: "application name"
+       * value: "DesignApp"
+       * }
        * 
* - * string query_text = 1; - * - * @param value The bytes for queryText to set. - * @return This builder for chaining. + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext} */ - public Builder setQueryTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor; } - checkByteStringIsUtf8(value); - queryText_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder.class); + } - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) - private static final com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery - DEFAULT_INSTANCE; + // Construct using + // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext.newBuilder() + private Builder() {} - static { - DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery(); - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = ""; + value_ = ""; + return this; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SuggestedQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .getDefaultInstance(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + build() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public interface KnowledgeAnswerOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + buildPartial() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - /** - * - * - *
-     * The piece of text from the `source` that answers this suggested query.
-     * 
- * - * string answer_text = 1; - * - * @return The answerText. - */ - java.lang.String getAnswerText(); + private void buildPartial0( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + } - /** - * - * - *
-     * The piece of text from the `source` that answers this suggested query.
-     * 
- * - * string answer_text = 1; - * - * @return The bytes for answerText. - */ - com.google.protobuf.ByteString getAnswerTextBytes(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * - * - *
-     * Populated if the prediction came from FAQ.
-     * 
- * - * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; - * - * - * @return Whether the faqSource field is set. - */ - boolean hasFaqSource(); + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + other) { + if (other + == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
-     * Populated if the prediction came from FAQ.
-     * 
- * - * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; - * - * - * @return The faqSource. - */ - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource getFaqSource(); + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * - * - *
-     * Populated if the prediction came from FAQ.
-     * 
- * - * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; - * - */ - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceOrBuilder - getFaqSourceOrBuilder(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } - /** - * - * - *
-     * Populated if the prediction was Generative.
-     * 
- * - * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; - * - * - * @return Whether the generativeSource field is set. - */ - boolean hasGenerativeSource(); + private int bitField0_; - /** - * - * - *
-     * Populated if the prediction was Generative.
-     * 
- * - * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; - * - * - * @return The generativeSource. - */ - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - getGenerativeSource(); + private java.lang.Object key_ = ""; - /** - * - * - *
-     * Populated if the prediction was Generative.
-     * 
- * - * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; - * - */ - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceOrBuilder - getGenerativeSourceOrBuilder(); + /** + * + * + *
+         * Optional. The key of the search context, e.g. "application name".
+         * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.SourceCase getSourceCase(); - } + /** + * + * + *
+         * Optional. The key of the search context, e.g. "application name".
+         * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * - * - *
-   * Represents an answer from Knowledge. Currently supports FAQ and Generative
-   * answers.
-   * 
- * - * Protobuf type {@code google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer} - */ - public static final class KnowledgeAnswer extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) - KnowledgeAnswerOrBuilder { - private static final long serialVersionUID = 0L; + /** + * + * + *
+         * Optional. The key of the search context, e.g. "application name".
+         * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "KnowledgeAnswer"); - } + /** + * + * + *
+         * Optional. The key of the search context, e.g. "application name".
+         * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - // Use KnowledgeAnswer.newBuilder() to construct. - private KnowledgeAnswer(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + /** + * + * + *
+         * Optional. The key of the search context, e.g. "application name".
+         * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - private KnowledgeAnswer() { - answerText_ = ""; - } + private java.lang.Object value_ = ""; - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; - } + /** + * + * + *
+         * Optional. The value of the search context, e.g. "DesignApp".
+         * 
+ * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.class, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.Builder.class); - } + /** + * + * + *
+         * Optional. The value of the search context, e.g. "DesignApp".
+         * 
+ * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public interface FaqSourceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+         * Optional. The value of the search context, e.g. "DesignApp".
+         * 
+ * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - /** - * - * - *
-       * The corresponding FAQ question.
-       * 
- * - * string question = 2; - * - * @return The question. - */ - java.lang.String getQuestion(); + /** + * + * + *
+         * Optional. The value of the search context, e.g. "DesignApp".
+         * 
+ * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } - /** - * - * - *
-       * The corresponding FAQ question.
-       * 
- * - * string question = 2; - * - * @return The bytes for question. - */ - com.google.protobuf.ByteString getQuestionBytes(); - } + /** + * + * + *
+         * Optional. The value of the search context, e.g. "DesignApp".
+         * 
+ * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - /** - * - * - *
-     * Details about source of FAQ answer.
-     * 
- * - * Protobuf type {@code - * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource} - */ - public static final class FaqSource extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - FaqSourceOrBuilder { - private static final long serialVersionUID = 0L; + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + private static final com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + DEFAULT_INSTANCE; static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "FaqSource"); + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext(); } - // Use FaqSource.newBuilder() to construct. - private FaqSource(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + getDefaultInstance() { + return DEFAULT_INSTANCE; } - private FaqSource() { - question_ = ""; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .class, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .Builder.class); + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - public static final int QUESTION_FIELD_NUMBER = 2; + public static final int QUERY_TEXT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object question_ = ""; + @SuppressWarnings("serial") + private volatile java.lang.Object queryText_ = ""; - /** - * - * - *
-       * The corresponding FAQ question.
-       * 
- * - * string question = 2; - * - * @return The question. - */ - @java.lang.Override - public java.lang.String getQuestion() { - java.lang.Object ref = question_; - 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(); - question_ = s; - return s; - } + /** + * + * + *
+     * Suggested query text.
+     * 
+ * + * string query_text = 1; + * + * @return The queryText. + */ + @java.lang.Override + public java.lang.String getQueryText() { + java.lang.Object ref = queryText_; + 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(); + queryText_ = s; + return s; } + } - /** - * - * - *
-       * The corresponding FAQ question.
-       * 
- * - * string question = 2; - * - * @return The bytes for question. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQuestionBytes() { - java.lang.Object ref = question_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - question_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + /** + * + * + *
+     * Suggested query text.
+     * 
+ * + * string query_text = 1; + * + * @return The bytes for queryText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryTextBytes() { + java.lang.Object ref = queryText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - private byte memoizedIsInitialized = -1; + public static final int SEARCH_CONTEXTS_FIELD_NUMBER = 4; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext> + searchContexts_; - memoizedIsInitialized = 1; - return true; - } + /** + * + * + *
+     * Optional. The search contexts for the query.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext> + getSearchContextsList() { + return searchContexts_; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, question_); - } - getUnknownFields().writeTo(output); - } + /** + * + * + *
+     * Optional. The search contexts for the query.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder> + getSearchContextsOrBuilderList() { + return searchContexts_; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * + * + *
+     * Optional. The search contexts for the query.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSearchContextsCount() { + return searchContexts_.size(); + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, question_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * + * + *
+     * Optional. The search contexts for the query.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + getSearchContexts(int index) { + return searchContexts_.get(index); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource)) { - return super.equals(obj); - } - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource other = - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) obj; + /** + * + * + *
+     * Optional. The search contexts for the query.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder + getSearchContextsOrBuilder(int index) { + return searchContexts_.get(index); + } - if (!getQuestion().equals(other.getQuestion())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUESTION_FIELD_NUMBER; - hash = (53 * hash) + getQuestion().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + memoizedIsInitialized = 1; + return true; + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, queryText_); } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + for (int i = 0; i < searchContexts_.size(); i++) { + output.writeMessage(4, searchContexts_.get(i)); } + getUnknownFields().writeTo(output); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, queryText_); } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + for (int i = 0; i < searchContexts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, searchContexts_.get(i)); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + if (!(obj instanceof com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery)) { + return super.equals(obj); } + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery other = + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) obj; - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + if (!getQueryText().equals(other.getQueryText())) return false; + if (!getSearchContextsList().equals(other.getSearchContextsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getQueryText().hashCode(); + if (getSearchContextsCount() > 0) { + hash = (37 * hash) + SEARCH_CONTEXTS_FIELD_NUMBER; + hash = (53 * hash) + getSearchContextsList().hashCode(); } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Represents a suggested query.
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_descriptor; } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.Builder.class); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + // Construct using + // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); } - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + queryText_ = ""; + if (searchContextsBuilder_ == null) { + searchContexts_ = java.util.Collections.emptyList(); + } else { + searchContexts_ = null; + searchContextsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; } @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_descriptor; } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance(); } - /** - * - * - *
-       * Details about source of FAQ answer.
-       * 
- * - * Protobuf type {@code - * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery build() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .class, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .Builder.class); + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery buildPartial() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } - // Construct using - // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery result) { + if (searchContextsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + searchContexts_ = java.util.Collections.unmodifiableList(searchContexts_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.searchContexts_ = searchContexts_; + } else { + result.searchContexts_ = searchContextsBuilder_.build(); } + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - question_ = ""; - return this; + private void buildPartial0( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.queryText_ = queryText_; } + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) other); + } else { + super.mergeFrom(other); + return this; } + } - @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance(); + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery other) { + if (other + == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance()) return this; + if (!other.getQueryText().isEmpty()) { + queryText_ = other.queryText_; + bitField0_ |= 0x00000001; + onChanged(); } - - @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - build() { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + if (searchContextsBuilder_ == null) { + if (!other.searchContexts_.isEmpty()) { + if (searchContexts_.isEmpty()) { + searchContexts_ = other.searchContexts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSearchContextsIsMutable(); + searchContexts_.addAll(other.searchContexts_); + } + onChanged(); } - return result; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - buildPartial() { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource result = - new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource( - this); - if (bitField0_ != 0) { - buildPartial0(result); + } else { + if (!other.searchContexts_.isEmpty()) { + if (searchContextsBuilder_.isEmpty()) { + searchContextsBuilder_.dispose(); + searchContextsBuilder_ = null; + searchContexts_ = other.searchContexts_; + bitField0_ = (bitField0_ & ~0x00000002); + searchContextsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSearchContextsFieldBuilder() + : null; + } else { + searchContextsBuilder_.addAllMessages(other.searchContexts_); + } } - onBuilt(); - return result; } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - private void buildPartial0( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.question_ = question_; - } - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) { - return mergeFrom( - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - other); - } else { - super.mergeFrom(other); - return this; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } - - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource other) { - if (other - == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance()) return this; - if (!other.getQuestion().isEmpty()) { - question_ = other.question_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + queryText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 34: + { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + m = + input.readMessage( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext.parser(), + extensionRegistry); + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + searchContexts_.add(m); + } else { + searchContextsBuilder_.addMessage(m); + } + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { onChanged(); - return this; - } + } // finally + return this; + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + private int bitField0_; - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - question_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + private java.lang.Object queryText_ = ""; + + /** + * + * + *
+       * Suggested query text.
+       * 
+ * + * string query_text = 1; + * + * @return The queryText. + */ + public java.lang.String getQueryText() { + java.lang.Object ref = queryText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryText_ = s; + return s; + } else { + return (java.lang.String) ref; } + } - private int bitField0_; + /** + * + * + *
+       * Suggested query text.
+       * 
+ * + * string query_text = 1; + * + * @return The bytes for queryText. + */ + public com.google.protobuf.ByteString getQueryTextBytes() { + java.lang.Object ref = queryText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private java.lang.Object question_ = ""; - - /** - * - * - *
-         * The corresponding FAQ question.
-         * 
- * - * string question = 2; - * - * @return The question. - */ - public java.lang.String getQuestion() { - java.lang.Object ref = question_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - question_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-         * The corresponding FAQ question.
-         * 
- * - * string question = 2; - * - * @return The bytes for question. - */ - public com.google.protobuf.ByteString getQuestionBytes() { - java.lang.Object ref = question_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - question_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-         * The corresponding FAQ question.
-         * 
- * - * string question = 2; - * - * @param value The question to set. - * @return This builder for chaining. - */ - public Builder setQuestion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - question_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-         * The corresponding FAQ question.
-         * 
- * - * string question = 2; - * - * @return This builder for chaining. - */ - public Builder clearQuestion() { - question_ = getDefaultInstance().getQuestion(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-         * The corresponding FAQ question.
-         * 
- * - * string question = 2; - * - * @param value The bytes for question to set. - * @return This builder for chaining. - */ - public Builder setQuestionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - question_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + /** + * + * + *
+       * Suggested query text.
+       * 
+ * + * string query_text = 1; + * + * @param value The queryText to set. + * @return This builder for chaining. + */ + public Builder setQueryText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - private static final com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource(); + queryText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - getDefaultInstance() { - return DEFAULT_INSTANCE; + /** + * + * + *
+       * Suggested query text.
+       * 
+ * + * string query_text = 1; + * + * @return This builder for chaining. + */ + public Builder clearQueryText() { + queryText_ = getDefaultInstance().getQueryText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaqSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; + /** + * + * + *
+       * Suggested query text.
+       * 
+ * + * string query_text = 1; + * + * @param value The bytes for queryText to set. + * @return This builder for chaining. + */ + public Builder setQueryTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext> + searchContexts_ = java.util.Collections.emptyList(); - @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + private void ensureSearchContextsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + searchContexts_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext>(searchContexts_); + bitField0_ |= 0x00000002; + } } - } - public interface GenerativeSourceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) - com.google.protobuf.MessageOrBuilder { + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder> + searchContextsBuilder_; /** * * *
-       * All snippets used for this Generative Prediction, with their source URI
-       * and data.
+       * Optional. The search contexts for the query.
        * 
* * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - java.util.List< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet> - getSnippetsList(); + public java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext> + getSearchContextsList() { + if (searchContextsBuilder_ == null) { + return java.util.Collections.unmodifiableList(searchContexts_); + } else { + return searchContextsBuilder_.getMessageList(); + } + } /** * * *
-       * All snippets used for this Generative Prediction, with their source URI
-       * and data.
+       * Optional. The search contexts for the query.
        * 
* * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet - getSnippets(int index); + public int getSearchContextsCount() { + if (searchContextsBuilder_ == null) { + return searchContexts_.size(); + } else { + return searchContextsBuilder_.getCount(); + } + } /** * * *
-       * All snippets used for this Generative Prediction, with their source URI
-       * and data.
+       * Optional. The search contexts for the query.
        * 
* * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - int getSnippetsCount(); + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + getSearchContexts(int index) { + if (searchContextsBuilder_ == null) { + return searchContexts_.get(index); + } else { + return searchContextsBuilder_.getMessage(index); + } + } /** * * *
-       * All snippets used for this Generative Prediction, with their source URI
-       * and data.
+       * Optional. The search contexts for the query.
        * 
* * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - java.util.List< - ? extends - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder> - getSnippetsOrBuilderList(); - + public Builder setSearchContexts( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext value) { + if (searchContextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchContextsIsMutable(); + searchContexts_.set(index, value); + onChanged(); + } else { + searchContextsBuilder_.setMessage(index, value); + } + return this; + } + /** * * *
-       * All snippets used for this Generative Prediction, with their source URI
-       * and data.
+       * Optional. The search contexts for the query.
        * 
* * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .SnippetOrBuilder - getSnippetsOrBuilder(int index); - } - - /** - * - * - *
-     * Details about source of Generative answer.
-     * 
- * - * Protobuf type {@code - * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource} - */ - public static final class GenerativeSource extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) - GenerativeSourceOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "GenerativeSource"); - } - - // Use GenerativeSource.newBuilder() to construct. - private GenerativeSource(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + public Builder setSearchContexts( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext.Builder + builderForValue) { + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + searchContexts_.set(index, builderForValue.build()); + onChanged(); + } else { + searchContextsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } - private GenerativeSource() { - snippets_ = java.util.Collections.emptyList(); + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSearchContexts( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext value) { + if (searchContextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchContextsIsMutable(); + searchContexts_.add(value); + onChanged(); + } else { + searchContextsBuilder_.addMessage(value); + } + return this; } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSearchContexts( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext value) { + if (searchContextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchContextsIsMutable(); + searchContexts_.add(index, value); + onChanged(); + } else { + searchContextsBuilder_.addMessage(index, value); + } + return this; } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.class, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Builder.class); + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSearchContexts( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext.Builder + builderForValue) { + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + searchContexts_.add(builderForValue.build()); + onChanged(); + } else { + searchContextsBuilder_.addMessage(builderForValue.build()); + } + return this; } - public interface SnippetOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-         * URI the data is sourced from.
-         * 
- * - * string uri = 2; - * - * @return The uri. - */ - java.lang.String getUri(); - - /** - * - * - *
-         * URI the data is sourced from.
-         * 
- * - * string uri = 2; - * - * @return The bytes for uri. - */ - com.google.protobuf.ByteString getUriBytes(); - - /** - * - * - *
-         * Text taken from that URI.
-         * 
- * - * string text = 3; - * - * @return The text. - */ - java.lang.String getText(); - - /** - * - * - *
-         * Text taken from that URI.
-         * 
- * - * string text = 3; - * - * @return The bytes for text. - */ - com.google.protobuf.ByteString getTextBytes(); - - /** - * - * - *
-         * Title of the document.
-         * 
- * - * string title = 4; - * - * @return The title. - */ - java.lang.String getTitle(); - - /** - * - * - *
-         * Title of the document.
-         * 
- * - * string title = 4; - * - * @return The bytes for title. - */ - com.google.protobuf.ByteString getTitleBytes(); - - /** - * - * - *
-         * Metadata of the document.
-         * 
- * - * .google.protobuf.Struct metadata = 5; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - - /** - * - * - *
-         * Metadata of the document.
-         * 
- * - * .google.protobuf.Struct metadata = 5; - * - * @return The metadata. - */ - com.google.protobuf.Struct getMetadata(); - - /** - * - * - *
-         * Metadata of the document.
-         * 
- * - * .google.protobuf.Struct metadata = 5; - */ - com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSearchContexts( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext.Builder + builderForValue) { + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + searchContexts_.add(index, builderForValue.build()); + onChanged(); + } else { + searchContextsBuilder_.addMessage(index, builderForValue.build()); + } + return this; } /** * * *
-       * Snippet Source for a Generative Prediction.
+       * Optional. The search contexts for the query.
        * 
* - * Protobuf type {@code - * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet} + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public static final class Snippet extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) - SnippetOrBuilder { - private static final long serialVersionUID = 0L; + public Builder addAllSearchContexts( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext> + values) { + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, searchContexts_); + onChanged(); + } else { + searchContextsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSearchContexts() { + if (searchContextsBuilder_ == null) { + searchContexts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + searchContextsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSearchContexts(int index) { + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + searchContexts_.remove(index); + onChanged(); + } else { + searchContextsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder + getSearchContextsBuilder(int index) { + return internalGetSearchContextsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder + getSearchContextsOrBuilder(int index) { + if (searchContextsBuilder_ == null) { + return searchContexts_.get(index); + } else { + return searchContextsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder> + getSearchContextsOrBuilderList() { + if (searchContextsBuilder_ != null) { + return searchContextsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(searchContexts_); + } + } + + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder + addSearchContextsBuilder() { + return internalGetSearchContextsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .getDefaultInstance()); + } + + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder + addSearchContextsBuilder(int index) { + return internalGetSearchContextsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .getDefaultInstance()); + } + + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder> + getSearchContextsBuilderList() { + return internalGetSearchContextsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder> + internalGetSearchContextsFieldBuilder() { + if (searchContextsBuilder_ == null) { + searchContextsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder>( + searchContexts_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + searchContexts_ = null; + } + return searchContextsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) + private static final com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery(); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuggestedQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AdditionalSuggestedQueryResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. The suggested query based on the context.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the suggestedQuery field is set. + */ + boolean hasSuggestedQuery(); + + /** + * + * + *
+     * Output only. The suggested query based on the context.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The suggestedQuery. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery getSuggestedQuery(); + + /** + * + * + *
+     * Output only. The suggested query based on the context.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQueryOrBuilder + getSuggestedQueryOrBuilder(); + + /** + * + * + *
+     * Output only. The name of the answer record.
+     * Format: `projects/<Project ID>/locations/<Location
+     * ID>/answerRecords/<Answer Record ID>`
+     * 
+ * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The answerRecord. + */ + java.lang.String getAnswerRecord(); + + /** + * + * + *
+     * Output only. The name of the answer record.
+     * Format: `projects/<Project ID>/locations/<Location
+     * ID>/answerRecords/<Answer Record ID>`
+     * 
+ * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for answerRecord. + */ + com.google.protobuf.ByteString getAnswerRecordBytes(); + } + + /** + * + * + *
+   * Represents a single suggested query result.
+   * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult} + */ + public static final class AdditionalSuggestedQueryResult + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + AdditionalSuggestedQueryResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AdditionalSuggestedQueryResult"); + } + + // Use AdditionalSuggestedQueryResult.newBuilder() to construct. + private AdditionalSuggestedQueryResult( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AdditionalSuggestedQueryResult() { + answerRecord_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder.class); + } + + private int bitField0_; + public static final int SUGGESTED_QUERY_FIELD_NUMBER = 1; + private com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggestedQuery_; + + /** + * + * + *
+     * Output only. The suggested query based on the context.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the suggestedQuery field is set. + */ + @java.lang.Override + public boolean hasSuggestedQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. The suggested query based on the context.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The suggestedQuery. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery getSuggestedQuery() { + return suggestedQuery_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.getDefaultInstance() + : suggestedQuery_; + } + + /** + * + * + *
+     * Output only. The suggested query based on the context.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQueryOrBuilder + getSuggestedQueryOrBuilder() { + return suggestedQuery_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.getDefaultInstance() + : suggestedQuery_; + } + + public static final int ANSWER_RECORD_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object answerRecord_ = ""; + + /** + * + * + *
+     * Output only. The name of the answer record.
+     * Format: `projects/<Project ID>/locations/<Location
+     * ID>/answerRecords/<Answer Record ID>`
+     * 
+ * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The answerRecord. + */ + @java.lang.Override + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + 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(); + answerRecord_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The name of the answer record.
+     * Format: `projects/<Project ID>/locations/<Location
+     * ID>/answerRecords/<Answer Record ID>`
+     * 
+ * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for answerRecord. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSuggestedQuery()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, answerRecord_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSuggestedQuery()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, answerRecord_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult other = + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) obj; + + if (hasSuggestedQuery() != other.hasSuggestedQuery()) return false; + if (hasSuggestedQuery()) { + if (!getSuggestedQuery().equals(other.getSuggestedQuery())) return false; + } + if (!getAnswerRecord().equals(other.getAnswerRecord())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSuggestedQuery()) { + hash = (37 * hash) + SUGGESTED_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getSuggestedQuery().hashCode(); + } + hash = (37 * hash) + ANSWER_RECORD_FIELD_NUMBER; + hash = (53 * hash) + getAnswerRecord().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Represents a single suggested query result.
+     * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSuggestedQueryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + suggestedQuery_ = null; + if (suggestedQueryBuilder_ != null) { + suggestedQueryBuilder_.dispose(); + suggestedQueryBuilder_ = null; + } + answerRecord_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + build() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + buildPartial() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.suggestedQuery_ = + suggestedQueryBuilder_ == null ? suggestedQuery_ : suggestedQueryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.answerRecord_ = answerRecord_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + other) { + if (other + == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .getDefaultInstance()) return this; + if (other.hasSuggestedQuery()) { + mergeSuggestedQuery(other.getSuggestedQuery()); + } + if (!other.getAnswerRecord().isEmpty()) { + answerRecord_ = other.answerRecord_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetSuggestedQueryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 42: + { + answerRecord_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggestedQuery_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQueryOrBuilder> + suggestedQueryBuilder_; + + /** + * + * + *
+       * Output only. The suggested query based on the context.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the suggestedQuery field is set. + */ + public boolean hasSuggestedQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Output only. The suggested query based on the context.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The suggestedQuery. + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + getSuggestedQuery() { + if (suggestedQueryBuilder_ == null) { + return suggestedQuery_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance() + : suggestedQuery_; + } else { + return suggestedQueryBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Output only. The suggested query based on the context.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSuggestedQuery( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery value) { + if (suggestedQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + suggestedQuery_ = value; + } else { + suggestedQueryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The suggested query based on the context.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSuggestedQuery( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.Builder + builderForValue) { + if (suggestedQueryBuilder_ == null) { + suggestedQuery_ = builderForValue.build(); + } else { + suggestedQueryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The suggested query based on the context.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSuggestedQuery( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery value) { + if (suggestedQueryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && suggestedQuery_ != null + && suggestedQuery_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance()) { + getSuggestedQueryBuilder().mergeFrom(value); + } else { + suggestedQuery_ = value; + } + } else { + suggestedQueryBuilder_.mergeFrom(value); + } + if (suggestedQuery_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Output only. The suggested query based on the context.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSuggestedQuery() { + bitField0_ = (bitField0_ & ~0x00000001); + suggestedQuery_ = null; + if (suggestedQueryBuilder_ != null) { + suggestedQueryBuilder_.dispose(); + suggestedQueryBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The suggested query based on the context.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.Builder + getSuggestedQueryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetSuggestedQueryFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Output only. The suggested query based on the context.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQueryOrBuilder + getSuggestedQueryOrBuilder() { + if (suggestedQueryBuilder_ != null) { + return suggestedQueryBuilder_.getMessageOrBuilder(); + } else { + return suggestedQuery_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance() + : suggestedQuery_; + } + } + + /** + * + * + *
+       * Output only. The suggested query based on the context.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQueryOrBuilder> + internalGetSuggestedQueryFieldBuilder() { + if (suggestedQueryBuilder_ == null) { + suggestedQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQueryOrBuilder>( + getSuggestedQuery(), getParentForChildren(), isClean()); + suggestedQuery_ = null; + } + return suggestedQueryBuilder_; + } + + private java.lang.Object answerRecord_ = ""; + + /** + * + * + *
+       * Output only. The name of the answer record.
+       * Format: `projects/<Project ID>/locations/<Location
+       * ID>/answerRecords/<Answer Record ID>`
+       * 
+ * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The answerRecord. + */ + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerRecord_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The name of the answer record.
+       * Format: `projects/<Project ID>/locations/<Location
+       * ID>/answerRecords/<Answer Record ID>`
+       * 
+ * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for answerRecord. + */ + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The name of the answer record.
+       * Format: `projects/<Project ID>/locations/<Location
+       * ID>/answerRecords/<Answer Record ID>`
+       * 
+ * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecord(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + answerRecord_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The name of the answer record.
+       * Format: `projects/<Project ID>/locations/<Location
+       * ID>/answerRecords/<Answer Record ID>`
+       * 
+ * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAnswerRecord() { + answerRecord_ = getDefaultInstance().getAnswerRecord(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The name of the answer record.
+       * Format: `projects/<Project ID>/locations/<Location
+       * ID>/answerRecords/<Answer Record ID>`
+       * 
+ * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerRecord_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + private static final com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult(); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdditionalSuggestedQueryResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface KnowledgeAnswerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The piece of text from the `source` that answers this suggested query.
+     * 
+ * + * string answer_text = 1; + * + * @return The answerText. + */ + java.lang.String getAnswerText(); + + /** + * + * + *
+     * The piece of text from the `source` that answers this suggested query.
+     * 
+ * + * string answer_text = 1; + * + * @return The bytes for answerText. + */ + com.google.protobuf.ByteString getAnswerTextBytes(); + + /** + * + * + *
+     * Populated if the prediction came from FAQ.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + * + * @return Whether the faqSource field is set. + */ + boolean hasFaqSource(); + + /** + * + * + *
+     * Populated if the prediction came from FAQ.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + * + * @return The faqSource. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource getFaqSource(); + + /** + * + * + *
+     * Populated if the prediction came from FAQ.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceOrBuilder + getFaqSourceOrBuilder(); + + /** + * + * + *
+     * Populated if the prediction was Generative.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + * + * @return Whether the generativeSource field is set. + */ + boolean hasGenerativeSource(); + + /** + * + * + *
+     * Populated if the prediction was Generative.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + * + * @return The generativeSource. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getGenerativeSource(); + + /** + * + * + *
+     * Populated if the prediction was Generative.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceOrBuilder + getGenerativeSourceOrBuilder(); + + /** + * + * + *
+     * Populated if the prediction was from Playbook.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + * + * @return Whether the playbookSource field is set. + */ + boolean hasPlaybookSource(); + + /** + * + * + *
+     * Populated if the prediction was from Playbook.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + * + * @return The playbookSource. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getPlaybookSource(); + + /** + * + * + *
+     * Populated if the prediction was from Playbook.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceOrBuilder + getPlaybookSourceOrBuilder(); + + /** + * + * + *
+     * Populated if the prediction was from an event.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + * + * @return Whether the eventSource field is set. + */ + boolean hasEventSource(); + + /** + * + * + *
+     * Populated if the prediction was from an event.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + * + * @return The eventSource. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + getEventSource(); + + /** + * + * + *
+     * Populated if the prediction was from an event.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSourceOrBuilder + getEventSourceOrBuilder(); + + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.SourceCase getSourceCase(); + } + + /** + * + * + *
+   * Represents an answer from Knowledge. Currently supports FAQ and Generative
+   * answers.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer} + */ + public static final class KnowledgeAnswer extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) + KnowledgeAnswerOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "KnowledgeAnswer"); + } + + // Use KnowledgeAnswer.newBuilder() to construct. + private KnowledgeAnswer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private KnowledgeAnswer() { + answerText_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.Builder.class); + } + + public interface FaqSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The corresponding FAQ question.
+       * 
+ * + * string question = 2; + * + * @return The question. + */ + java.lang.String getQuestion(); + + /** + * + * + *
+       * The corresponding FAQ question.
+       * 
+ * + * string question = 2; + * + * @return The bytes for question. + */ + com.google.protobuf.ByteString getQuestionBytes(); + } + + /** + * + * + *
+     * Details about source of FAQ answer.
+     * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource} + */ + public static final class FaqSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + FaqSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FaqSource"); + } + + // Use FaqSource.newBuilder() to construct. + private FaqSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FaqSource() { + question_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .Builder.class); + } + + public static final int QUESTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object question_ = ""; + + /** + * + * + *
+       * The corresponding FAQ question.
+       * 
+ * + * string question = 2; + * + * @return The question. + */ + @java.lang.Override + public java.lang.String getQuestion() { + java.lang.Object ref = question_; + 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(); + question_ = s; + return s; + } + } + + /** + * + * + *
+       * The corresponding FAQ question.
+       * 
+ * + * string question = 2; + * + * @return The bytes for question. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQuestionBytes() { + java.lang.Object ref = question_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + question_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, question_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, question_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource other = + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) obj; + + if (!getQuestion().equals(other.getQuestion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUESTION_FIELD_NUMBER; + hash = (53 * hash) + getQuestion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Details about source of FAQ answer.
+       * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + question_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + build() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + buildPartial() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.question_ = question_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource other) { + if (other + == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance()) return this; + if (!other.getQuestion().isEmpty()) { + question_ = other.question_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + question_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object question_ = ""; + + /** + * + * + *
+         * The corresponding FAQ question.
+         * 
+ * + * string question = 2; + * + * @return The question. + */ + public java.lang.String getQuestion() { + java.lang.Object ref = question_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + question_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * The corresponding FAQ question.
+         * 
+ * + * string question = 2; + * + * @return The bytes for question. + */ + public com.google.protobuf.ByteString getQuestionBytes() { + java.lang.Object ref = question_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + question_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * The corresponding FAQ question.
+         * 
+ * + * string question = 2; + * + * @param value The question to set. + * @return This builder for chaining. + */ + public Builder setQuestion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + question_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * The corresponding FAQ question.
+         * 
+ * + * string question = 2; + * + * @return This builder for chaining. + */ + public Builder clearQuestion() { + question_ = getDefaultInstance().getQuestion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * The corresponding FAQ question.
+         * 
+ * + * string question = 2; + * + * @param value The bytes for question to set. + * @return This builder for chaining. + */ + public Builder setQuestionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + question_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + private static final com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource(); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaqSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GenerativeSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * All snippets used for this Generative Prediction, with their source URI
+       * and data.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet> + getSnippetsList(); + + /** + * + * + *
+       * All snippets used for this Generative Prediction, with their source URI
+       * and data.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet + getSnippets(int index); + + /** + * + * + *
+       * All snippets used for this Generative Prediction, with their source URI
+       * and data.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + int getSnippetsCount(); + + /** + * + * + *
+       * All snippets used for this Generative Prediction, with their source URI
+       * and data.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder> + getSnippetsOrBuilderList(); + + /** + * + * + *
+       * All snippets used for this Generative Prediction, with their source URI
+       * and data.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .SnippetOrBuilder + getSnippetsOrBuilder(int index); + } + + /** + * + * + *
+     * Details about source of Generative answer.
+     * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource} + */ + public static final class GenerativeSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + GenerativeSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GenerativeSource"); + } + + // Use GenerativeSource.newBuilder() to construct. + private GenerativeSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerativeSource() { + snippets_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder.class); + } + + public interface SnippetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * URI the data is sourced from.
+         * 
+ * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
+         * URI the data is sourced from.
+         * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+         * Text taken from that URI.
+         * 
+ * + * string text = 3; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
+         * Text taken from that URI.
+         * 
+ * + * string text = 3; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
+         * Title of the document.
+         * 
+ * + * string title = 4; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
+         * Title of the document.
+         * 
+ * + * string title = 4; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+         * Metadata of the document.
+         * 
+ * + * .google.protobuf.Struct metadata = 5; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + + /** + * + * + *
+         * Metadata of the document.
+         * 
+ * + * .google.protobuf.Struct metadata = 5; + * + * @return The metadata. + */ + com.google.protobuf.Struct getMetadata(); + + /** + * + * + *
+         * Metadata of the document.
+         * 
+ * + * .google.protobuf.Struct metadata = 5; + */ + com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); + } + + /** + * + * + *
+       * Snippet Source for a Generative Prediction.
+       * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet} + */ + public static final class Snippet extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) + SnippetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Snippet"); + } + + // Use Snippet.newBuilder() to construct. + private Snippet(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Snippet() { + uri_ = ""; + text_ = ""; + title_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder.class); + } + + private int bitField0_; + public static final int URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
+         * URI the data is sourced from.
+         * 
+ * + * string uri = 2; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + + /** + * + * + *
+         * URI the data is sourced from.
+         * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEXT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + + /** + * + * + *
+         * Text taken from that URI.
+         * 
+ * + * string text = 3; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } + } + + /** + * + * + *
+         * Text taken from that URI.
+         * 
+ * + * string text = 3; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
+         * Title of the document.
+         * 
+ * + * string title = 4; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
+         * Title of the document.
+         * 
+ * + * string title = 4; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 5; + private com.google.protobuf.Struct metadata_; + + /** + * + * + *
+         * Metadata of the document.
+         * 
+ * + * .google.protobuf.Struct metadata = 5; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+         * Metadata of the document.
+         * 
+ * + * .google.protobuf.Struct metadata = 5; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.protobuf.Struct getMetadata() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + + /** + * + * + *
+         * Metadata of the document.
+         * 
+ * + * .google.protobuf.Struct metadata = 5; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, text_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, title_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, text_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, title_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + other = + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet) + obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getText().equals(other.getText())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+         * Snippet Source for a Generative Prediction.
+         * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .SnippetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + text_ = ""; + title_ = ""; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + build() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + buildPartial() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.text_ = text_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.title_ = title_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + other) { + if (other + == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getText().isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uri_ = ""; + + /** + * + * + *
+           * URI the data is sourced from.
+           * 
+ * + * string uri = 2; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+           * URI the data is sourced from.
+           * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+           * URI the data is sourced from.
+           * 
+ * + * string uri = 2; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+           * URI the data is sourced from.
+           * 
+ * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+           * URI the data is sourced from.
+           * 
+ * + * string uri = 2; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object text_ = ""; + + /** + * + * + *
+           * Text taken from that URI.
+           * 
+ * + * string text = 3; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+           * Text taken from that URI.
+           * 
+ * + * string text = 3; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+           * Text taken from that URI.
+           * 
+ * + * string text = 3; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+           * Text taken from that URI.
+           * 
+ * + * string text = 3; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+           * Text taken from that URI.
+           * 
+ * + * string text = 3; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
+           * Title of the document.
+           * 
+ * + * string title = 4; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+           * Title of the document.
+           * 
+ * + * string title = 4; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+           * Title of the document.
+           * 
+ * + * string title = 4; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+           * Title of the document.
+           * 
+ * + * string title = 4; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+           * Title of the document.
+           * 
+ * + * string title = 4; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Struct metadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + metadataBuilder_; + + /** + * + * + *
+           * Metadata of the document.
+           * 
+ * + * .google.protobuf.Struct metadata = 5; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+           * Metadata of the document.
+           * 
+ * + * .google.protobuf.Struct metadata = 5; + * + * @return The metadata. + */ + public com.google.protobuf.Struct getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+           * Metadata of the document.
+           * 
+ * + * .google.protobuf.Struct metadata = 5; + */ + public Builder setMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+           * Metadata of the document.
+           * 
+ * + * .google.protobuf.Struct metadata = 5; + */ + public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "Snippet"); - } + /** + * + * + *
+           * Metadata of the document.
+           * 
+ * + * .google.protobuf.Struct metadata = 5; + */ + public Builder mergeMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } - // Use Snippet.newBuilder() to construct. - private Snippet(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + /** + * + * + *
+           * Metadata of the document.
+           * 
+ * + * .google.protobuf.Struct metadata = 5; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000008); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } - private Snippet() { - uri_ = ""; - text_ = ""; - title_ = ""; - } + /** + * + * + *
+           * Metadata of the document.
+           * 
+ * + * .google.protobuf.Struct metadata = 5; + */ + public com.google.protobuf.Struct.Builder getMetadataBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetMetadataFieldBuilder().getBuilder(); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; - } + /** + * + * + *
+           * Metadata of the document.
+           * 
+ * + * .google.protobuf.Struct metadata = 5; + */ + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : metadata_; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.class, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder.class); - } + /** + * + * + *
+           * Metadata of the document.
+           * 
+ * + * .google.protobuf.Struct metadata = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } - private int bitField0_; - public static final int URI_FIELD_NUMBER = 2; + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) + } - @SuppressWarnings("serial") - private volatile java.lang.Object uri_ = ""; + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) + private static final com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + DEFAULT_INSTANCE; - /** - * - * - *
-         * URI the data is sourced from.
-         * 
- * - * string uri = 2; - * - * @return The uri. - */ - @java.lang.Override - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet(); } - /** - * - * - *
-         * URI the data is sourced from.
-         * 
- * - * string uri = 2; - * - * @return The bytes for uri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + getDefaultInstance() { + return DEFAULT_INSTANCE; } - public static final int TEXT_FIELD_NUMBER = 3; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Snippet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @SuppressWarnings("serial") - private volatile java.lang.Object text_ = ""; + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * - * - *
-         * Text taken from that URI.
-         * 
- * - * string text = 3; - * - * @return The text. - */ @java.lang.Override - public java.lang.String getText() { - java.lang.Object ref = text_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - text_ = s; - return s; - } + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - /** - * - * - *
-         * Text taken from that URI.
-         * 
- * - * string text = 3; - * - * @return The bytes for text. - */ @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - public static final int TITLE_FIELD_NUMBER = 4; + public static final int SNIPPETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object title_ = ""; + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet> + snippets_; - /** - * - * - *
-         * Title of the document.
-         * 
- * - * string title = 4; - * - * @return The title. - */ - @java.lang.Override - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } + /** + * + * + *
+       * All snippets used for this Generative Prediction, with their source URI
+       * and data.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet> + getSnippetsList() { + return snippets_; + } - /** - * - * - *
-         * Title of the document.
-         * 
- * - * string title = 4; - * - * @return The bytes for title. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
+       * All snippets used for this Generative Prediction, with their source URI
+       * and data.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder> + getSnippetsOrBuilderList() { + return snippets_; + } - public static final int METADATA_FIELD_NUMBER = 5; - private com.google.protobuf.Struct metadata_; + /** + * + * + *
+       * All snippets used for this Generative Prediction, with their source URI
+       * and data.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + @java.lang.Override + public int getSnippetsCount() { + return snippets_.size(); + } - /** - * - * - *
-         * Metadata of the document.
-         * 
- * - * .google.protobuf.Struct metadata = 5; - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) != 0); + /** + * + * + *
+       * All snippets used for this Generative Prediction, with their source URI
+       * and data.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + getSnippets(int index) { + return snippets_.get(index); + } + + /** + * + * + *
+       * All snippets used for this Generative Prediction, with their source URI
+       * and data.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .SnippetOrBuilder + getSnippetsOrBuilder(int index) { + return snippets_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < snippets_.size(); i++) { + output.writeMessage(1, snippets_.get(i)); } + getUnknownFields().writeTo(output); + } - /** - * - * - *
-         * Metadata of the document.
-         * 
- * - * .google.protobuf.Struct metadata = 5; - * - * @return The metadata. - */ - @java.lang.Override - public com.google.protobuf.Struct getMetadata() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < snippets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, snippets_.get(i)); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
-         * Metadata of the document.
-         * 
- * - * .google.protobuf.Struct metadata = 5; - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource)) { + return super.equals(obj); } + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + other = + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + obj; - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + if (!getSnippetsList().equals(other.getSnippetsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - memoizedIsInitialized = 1; - return true; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, text_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, title_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getMetadata()); - } - getUnknownFields().writeTo(output); + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSnippetsCount() > 0) { + hash = (37 * hash) + SNIPPETS_FIELD_NUMBER; + hash = (53 * hash) + getSnippetsList().hashCode(); } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, text_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, title_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMetadata()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet)) { - return super.equals(obj); - } - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - other = - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet) - obj; + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - if (!getUri().equals(other.getUri())) return false; - if (!getText().equals(other.getText())) return false; - if (!getTitle().equals(other.getTitle())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - hash = (37 * hash) + TEXT_FIELD_NUMBER; - hash = (53 * hash) + getText().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
+       * Details about source of Generative answer.
+       * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder.class); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + // Construct using + // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.newBuilder() + private Builder() {} - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); } @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (snippetsBuilder_ == null) { + snippets_ = java.util.Collections.emptyList(); + } else { + snippets_ = null; + snippetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; } - /** - * - * - *
-         * Snippet Source for a Generative Prediction.
-         * 
- * - * Protobuf type {@code - * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .SnippetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.class, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder.class); - } - - // Construct using - // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetMetadataFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - uri_ = ""; - text_ = ""; - title_ = ""; - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - build() { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - buildPartial() { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - result = - new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.uri_ = uri_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.text_ = text_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.title_ = title_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet) { - return mergeFrom( - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet) - other); - } else { - super.mergeFrom(other); - return this; - } - } + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); + } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - other) { - if (other - == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.getDefaultInstance()) return this; - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getText().isEmpty()) { - text_ = other.text_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + build() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - @java.lang.Override - public final boolean isInitialized() { - return true; + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + buildPartial() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + result) { + if (snippetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + snippets_ = java.util.Collections.unmodifiableList(snippets_); + bitField0_ = (bitField0_ & ~0x00000001); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: - { - text_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: - { - title_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - input.readMessage( - internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + result.snippets_ = snippets_; + } else { + result.snippets_ = snippetsBuilder_.build(); } + } - private int bitField0_; - - private java.lang.Object uri_ = ""; + private void buildPartial0( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + result) { + int from_bitField0_ = bitField0_; + } - /** - * - * - *
-           * URI the data is sourced from.
-           * 
- * - * string uri = 2; - * - * @return The uri. - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + other); + } else { + super.mergeFrom(other); + return this; } + } - /** - * - * - *
-           * URI the data is sourced from.
-           * 
- * - * string uri = 2; - * - * @return The bytes for uri. - */ - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + other) { + if (other + == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance()) return this; + if (snippetsBuilder_ == null) { + if (!other.snippets_.isEmpty()) { + if (snippets_.isEmpty()) { + snippets_ = other.snippets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSnippetsIsMutable(); + snippets_.addAll(other.snippets_); + } + onChanged(); + } + } else { + if (!other.snippets_.isEmpty()) { + if (snippetsBuilder_.isEmpty()) { + snippetsBuilder_.dispose(); + snippetsBuilder_ = null; + snippets_ = other.snippets_; + bitField0_ = (bitField0_ & ~0x00000001); + snippetsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSnippetsFieldBuilder() + : null; + } else { + snippetsBuilder_.addAllMessages(other.snippets_); + } } } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
-           * URI the data is sourced from.
-           * 
- * - * string uri = 2; - * - * @param value The uri to set. - * @return This builder for chaining. - */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - uri_ = value; - bitField0_ |= 0x00000001; + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + m = + input.readMessage( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.parser(), + extensionRegistry); + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + snippets_.add(m); + } else { + snippetsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { onChanged(); - return this; - } + } // finally + return this; + } - /** - * - * - *
-           * URI the data is sourced from.
-           * 
- * - * string uri = 2; - * - * @return This builder for chaining. - */ - public Builder clearUri() { - uri_ = getDefaultInstance().getUri(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } + private int bitField0_; - /** - * - * - *
-           * URI the data is sourced from.
-           * 
- * - * string uri = 2; - * - * @param value The bytes for uri to set. - * @return This builder for chaining. - */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - uri_ = value; + private java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet> + snippets_ = java.util.Collections.emptyList(); + + private void ensureSnippetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + snippets_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet>(snippets_); bitField0_ |= 0x00000001; - onChanged(); - return this; } + } - private java.lang.Object text_ = ""; + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder> + snippetsBuilder_; - /** - * - * - *
-           * Text taken from that URI.
-           * 
- * - * string text = 3; - * - * @return The text. - */ - public java.lang.String getText() { - java.lang.Object ref = text_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - text_ = s; - return s; - } else { - return (java.lang.String) ref; - } + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet> + getSnippetsList() { + if (snippetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(snippets_); + } else { + return snippetsBuilder_.getMessageList(); } + } - /** - * - * - *
-           * Text taken from that URI.
-           * 
- * - * string text = 3; - * - * @return The bytes for text. - */ - public com.google.protobuf.ByteString getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public int getSnippetsCount() { + if (snippetsBuilder_ == null) { + return snippets_.size(); + } else { + return snippetsBuilder_.getCount(); } + } - /** - * - * - *
-           * Text taken from that URI.
-           * 
- * - * string text = 3; - * - * @param value The text to set. - * @return This builder for chaining. - */ - public Builder setText(java.lang.String value) { + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + getSnippets(int index) { + if (snippetsBuilder_ == null) { + return snippets_.get(index); + } else { + return snippetsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder setSnippets( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + value) { + if (snippetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - text_ = value; - bitField0_ |= 0x00000002; + ensureSnippetsIsMutable(); + snippets_.set(index, value); + onChanged(); + } else { + snippetsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder setSnippets( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet.Builder + builderForValue) { + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + snippets_.set(index, builderForValue.build()); onChanged(); - return this; + } else { + snippetsBuilder_.setMessage(index, builderForValue.build()); } + return this; + } - /** - * - * - *
-           * Text taken from that URI.
-           * 
- * - * string text = 3; - * - * @return This builder for chaining. - */ - public Builder clearText() { - text_ = getDefaultInstance().getText(); - bitField0_ = (bitField0_ & ~0x00000002); + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder addSnippets( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + value) { + if (snippetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSnippetsIsMutable(); + snippets_.add(value); onChanged(); - return this; + } else { + snippetsBuilder_.addMessage(value); } + return this; + } - /** - * - * - *
-           * Text taken from that URI.
-           * 
- * - * string text = 3; - * - * @param value The bytes for text to set. - * @return This builder for chaining. - */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder addSnippets( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + value) { + if (snippetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - text_ = value; - bitField0_ |= 0x00000002; + ensureSnippetsIsMutable(); + snippets_.add(index, value); onChanged(); - return this; + } else { + snippetsBuilder_.addMessage(index, value); } + return this; + } - private java.lang.Object title_ = ""; - - /** - * - * - *
-           * Title of the document.
-           * 
- * - * string title = 4; - * - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder addSnippets( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet.Builder + builderForValue) { + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + snippets_.add(builderForValue.build()); + onChanged(); + } else { + snippetsBuilder_.addMessage(builderForValue.build()); } + return this; + } - /** - * - * - *
-           * Title of the document.
-           * 
- * - * string title = 4; - * - * @return The bytes for title. - */ - public com.google.protobuf.ByteString getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder addSnippets( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet.Builder + builderForValue) { + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + snippets_.add(index, builderForValue.build()); + onChanged(); + } else { + snippetsBuilder_.addMessage(index, builderForValue.build()); } + return this; + } - /** - * - * - *
-           * Title of the document.
-           * 
- * - * string title = 4; - * - * @param value The title to set. - * @return This builder for chaining. - */ - public Builder setTitle(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - title_ = value; - bitField0_ |= 0x00000004; + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder addAllSnippets( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet> + values) { + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snippets_); onChanged(); - return this; + } else { + snippetsBuilder_.addAllMessages(values); } + return this; + } - /** - * - * - *
-           * Title of the document.
-           * 
- * - * string title = 4; - * - * @return This builder for chaining. - */ - public Builder clearTitle() { - title_ = getDefaultInstance().getTitle(); - bitField0_ = (bitField0_ & ~0x00000004); + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder clearSnippets() { + if (snippetsBuilder_ == null) { + snippets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); - return this; + } else { + snippetsBuilder_.clear(); } + return this; + } - /** - * - * - *
-           * Title of the document.
-           * 
- * - * string title = 4; - * - * @param value The bytes for title to set. - * @return This builder for chaining. - */ - public Builder setTitleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - title_ = value; - bitField0_ |= 0x00000004; + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder removeSnippets(int index) { + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + snippets_.remove(index); onChanged(); - return this; + } else { + snippetsBuilder_.remove(index); } + return this; + } - private com.google.protobuf.Struct metadata_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - metadataBuilder_; + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet.Builder + getSnippetsBuilder(int index) { + return internalGetSnippetsFieldBuilder().getBuilder(index); + } - /** - * - * - *
-           * Metadata of the document.
-           * 
- * - * .google.protobuf.Struct metadata = 5; - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000008) != 0); + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .SnippetOrBuilder + getSnippetsOrBuilder(int index) { + if (snippetsBuilder_ == null) { + return snippets_.get(index); + } else { + return snippetsBuilder_.getMessageOrBuilder(index); } + } - /** - * - * - *
-           * Metadata of the document.
-           * 
- * - * .google.protobuf.Struct metadata = 5; - * - * @return The metadata. - */ - public com.google.protobuf.Struct getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : metadata_; - } else { - return metadataBuilder_.getMessage(); - } + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder> + getSnippetsOrBuilderList() { + if (snippetsBuilder_ != null) { + return snippetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(snippets_); } + } - /** - * - * - *
-           * Metadata of the document.
-           * 
- * - * .google.protobuf.Struct metadata = 5; - */ - public Builder setMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - } else { - metadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet.Builder + addSnippetsBuilder() { + return internalGetSnippetsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.getDefaultInstance()); + } - /** - * - * - *
-           * Metadata of the document.
-           * 
- * - * .google.protobuf.Struct metadata = 5; - */ - public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet.Builder + addSnippetsBuilder(int index) { + return internalGetSnippetsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.getDefaultInstance()); + } + + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder> + getSnippetsBuilderList() { + return internalGetSnippetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder> + internalGetSnippetsFieldBuilder() { + if (snippetsBuilder_ == null) { + snippetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder>( + snippets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + snippets_ = null; } + return snippetsBuilder_; + } - /** - * - * - *
-           * Metadata of the document.
-           * 
- * - * .google.protobuf.Struct metadata = 5; - */ - public Builder mergeMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && metadata_ != null - && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { - getMetadataBuilder().mergeFrom(value); - } else { - metadata_ = value; + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + private static final com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource(); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); } - } else { - metadataBuilder_.mergeFrom(value); - } - if (metadata_ != null) { - bitField0_ |= 0x00000008; - onChanged(); + return builder.buildPartial(); } - return this; - } + }; - /** - * - * - *
-           * Metadata of the document.
-           * 
- * - * .google.protobuf.Struct metadata = 5; - */ - public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000008); - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - onChanged(); - return this; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * - * - *
-           * Metadata of the document.
-           * 
- * - * .google.protobuf.Struct metadata = 5; - */ - public com.google.protobuf.Struct.Builder getMetadataBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetMetadataFieldBuilder().getBuilder(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * - * - *
-           * Metadata of the document.
-           * 
- * - * .google.protobuf.Struct metadata = 5; - */ - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : metadata_; - } - } + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - /** - * - * - *
-           * Metadata of the document.
-           * 
- * - * .google.protobuf.Struct metadata = 5; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - internalGetMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } + public interface EventSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) + com.google.protobuf.MessageOrBuilder { - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) - } + /** + * + * + *
+       * Name of the triggered event.
+       * 
+ * + * string event = 1; + * + * @return The event. + */ + java.lang.String getEvent(); - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) - private static final com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - DEFAULT_INSTANCE; + /** + * + * + *
+       * Name of the triggered event.
+       * 
+ * + * string event = 1; + * + * @return The bytes for event. + */ + com.google.protobuf.ByteString getEventBytes(); - static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet(); - } + /** + * + * + *
+       * Sources used in event fulfillment.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; + * + * + * @return Whether the snippets field is set. + */ + boolean hasSnippets(); - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * + * + *
+       * Sources used in event fulfillment.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; + * + * + * @return The snippets. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getSnippets(); - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Snippet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + /** + * + * + *
+       * Sources used in event fulfillment.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceOrBuilder + getSnippetsOrBuilder(); + } + + /** + * + * + *
+     * Details about source of Event answer.
+     * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource} + */ + public static final class EventSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) + EventSourceOrBuilder { + private static final long serialVersionUID = 0L; - public static com.google.protobuf.Parser parser() { - return PARSER; - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EventSource"); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // Use EventSource.newBuilder() to construct. + private EventSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private EventSource() { + event_ = ""; } - public static final int SNIPPETS_FIELD_NUMBER = 1; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .Builder.class); + } + + private int bitField0_; + public static final int EVENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet> - snippets_; + private volatile java.lang.Object event_ = ""; /** * * *
-       * All snippets used for this Generative Prediction, with their source URI
-       * and data.
+       * Name of the triggered event.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * string event = 1; + * + * @return The event. */ @java.lang.Override - public java.util.List< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet> - getSnippetsList() { - return snippets_; + public java.lang.String getEvent() { + java.lang.Object ref = event_; + 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(); + event_ = s; + return s; + } } /** * * *
-       * All snippets used for this Generative Prediction, with their source URI
-       * and data.
+       * Name of the triggered event.
        * 
* - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * string event = 1; + * + * @return The bytes for event. */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder> - getSnippetsOrBuilderList() { - return snippets_; + public com.google.protobuf.ByteString getEventBytes() { + java.lang.Object ref = event_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + event_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + public static final int SNIPPETS_FIELD_NUMBER = 2; + private com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + snippets_; + /** * * *
-       * All snippets used for this Generative Prediction, with their source URI
-       * and data.
+       * Sources used in event fulfillment.
        * 
* * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * + * + * @return Whether the snippets field is set. */ @java.lang.Override - public int getSnippetsCount() { - return snippets_.size(); + public boolean hasSnippets() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
-       * All snippets used for this Generative Prediction, with their source URI
-       * and data.
+       * Sources used in event fulfillment.
        * 
* * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * + * + * @return The snippets. */ @java.lang.Override public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - getSnippets(int index) { - return snippets_.get(index); + getSnippets() { + return snippets_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .getDefaultInstance() + : snippets_; } /** * * *
-       * All snippets used for this Generative Prediction, with their source URI
-       * and data.
+       * Sources used in event fulfillment.
        * 
* * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .SnippetOrBuilder - getSnippetsOrBuilder(int index) { - return snippets_.get(index); + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getSnippetsOrBuilder() { + return snippets_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .getDefaultInstance() + : snippets_; } private byte memoizedIsInitialized = -1; @@ -3201,8 +7149,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < snippets_.size(); i++) { - output.writeMessage(1, snippets_.get(i)); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(event_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, event_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSnippets()); } getUnknownFields().writeTo(output); } @@ -3213,8 +7164,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (int i = 0; i < snippets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, snippets_.get(i)); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(event_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, event_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSnippets()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3228,17 +7182,17 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource)) { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - other = - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) - obj; + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource other = + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) obj; - if (!getSnippetsList().equals(other.getSnippetsList())) return false; + if (!getEvent().equals(other.getEvent())) return false; + if (hasSnippets() != other.hasSnippets()) return false; + if (hasSnippets()) { + if (!getSnippets().equals(other.getSnippets())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3250,39 +7204,37 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getSnippetsCount() > 0) { + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); + if (hasSnippets()) { hash = (37 * hash) + SNIPPETS_FIELD_NUMBER; - hash = (53 * hash) + getSnippetsList().hashCode(); + hash = (53 * hash) + getSnippets().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3290,27 +7242,23 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3319,14 +7267,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3335,14 +7281,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3361,7 +7305,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -3382,75 +7326,83 @@ protected Builder newBuilderForType( * * *
-       * Details about source of Generative answer.
+       * Details about source of Event answer.
        * 
* * Protobuf type {@code - * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource} + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder { + .EventSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_fieldAccessorTable + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.class, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Builder.class); + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .Builder.class); } // Construct using - // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.newBuilder() - private Builder() {} + // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSnippetsFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - if (snippetsBuilder_ == null) { - snippets_ = java.util.Collections.emptyList(); - } else { - snippets_ = null; - snippetsBuilder_.clear(); + event_ = ""; + snippets_ = null; + if (snippetsBuilder_ != null) { + snippetsBuilder_.dispose(); + snippetsBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource build() { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - result = buildPartial(); + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3458,13 +7410,11 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource buildPartial() { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - result = - new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource(this); - buildPartialRepeatedFields(result); + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource( + this); if (bitField0_ != 0) { buildPartial0(result); } @@ -3472,74 +7422,48 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return result; } - private void buildPartialRepeatedFields( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - result) { - if (snippetsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - snippets_ = java.util.Collections.unmodifiableList(snippets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.snippets_ = snippets_; - } else { - result.snippets_ = snippetsBuilder_.build(); - } - } - private void buildPartial0( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.event_ = event_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.snippets_ = snippetsBuilder_ == null ? snippets_ : snippetsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) { return mergeFrom( - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - other) { - if (other - == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance()) return this; - if (snippetsBuilder_ == null) { - if (!other.snippets_.isEmpty()) { - if (snippets_.isEmpty()) { - snippets_ = other.snippets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSnippetsIsMutable(); - snippets_.addAll(other.snippets_); - } - onChanged(); - } - } else { - if (!other.snippets_.isEmpty()) { - if (snippetsBuilder_.isEmpty()) { - snippetsBuilder_.dispose(); - snippetsBuilder_ = null; - snippets_ = other.snippets_; - bitField0_ = (bitField0_ & ~0x00000001); - snippetsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetSnippetsFieldBuilder() - : null; - } else { - snippetsBuilder_.addAllMessages(other.snippets_); - } - } + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + other) { + if (other + == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .getDefaultInstance()) return this; + if (!other.getEvent().isEmpty()) { + event_ = other.event_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSnippets()) { + mergeSnippets(other.getSnippets()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -3569,21 +7493,17 @@ public Builder mergeFrom( break; case 10: { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - m = - input.readMessage( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.parser(), - extensionRegistry); - if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - snippets_.add(m); - } else { - snippetsBuilder_.addMessage(m); - } + event_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + input.readMessage( + internalGetSnippetsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3603,70 +7523,28 @@ public Builder mergeFrom( private int bitField0_; - private java.util.List< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet> - snippets_ = java.util.Collections.emptyList(); - - private void ensureSnippetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - snippets_ = - new java.util.ArrayList< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet>(snippets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder> - snippetsBuilder_; + private java.lang.Object event_ = ""; /** * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Name of the triggered event.
          * 
* - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * - */ - public java.util.List< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet> - getSnippetsList() { - if (snippetsBuilder_ == null) { - return java.util.Collections.unmodifiableList(snippets_); - } else { - return snippetsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
-         * 
+ * string event = 1; * - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * @return The event. */ - public int getSnippetsCount() { - if (snippetsBuilder_ == null) { - return snippets_.size(); + public java.lang.String getEvent() { + java.lang.Object ref = event_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + event_ = s; + return s; } else { - return snippetsBuilder_.getCount(); + return (java.lang.String) ref; } } @@ -3674,107 +7552,44 @@ public int getSnippetsCount() { * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Name of the triggered event.
          * 
* - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * - */ - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - getSnippets(int index) { - if (snippetsBuilder_ == null) { - return snippets_.get(index); - } else { - return snippetsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
-         * 
+ * string event = 1; * - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * @return The bytes for event. */ - public Builder setSnippets( - int index, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - value) { - if (snippetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnippetsIsMutable(); - snippets_.set(index, value); - onChanged(); + public com.google.protobuf.ByteString getEventBytes() { + java.lang.Object ref = event_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + event_ = b; + return b; } else { - snippetsBuilder_.setMessage(index, value); + return (com.google.protobuf.ByteString) ref; } - return this; } /** * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Name of the triggered event.
          * 
* - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * - */ - public Builder setSnippets( - int index, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet.Builder - builderForValue) { - if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - snippets_.set(index, builderForValue.build()); - onChanged(); - } else { - snippetsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
-         * 
+ * string event = 1; * - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * @param value The event to set. + * @return This builder for chaining. */ - public Builder addSnippets( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - value) { - if (snippetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnippetsIsMutable(); - snippets_.add(value); - onChanged(); - } else { - snippetsBuilder_.addMessage(value); + public Builder setEvent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + event_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } @@ -3782,55 +7597,17 @@ public Builder addSnippets( * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Name of the triggered event.
          * 
* - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * - */ - public Builder addSnippets( - int index, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - value) { - if (snippetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnippetsIsMutable(); - snippets_.add(index, value); - onChanged(); - } else { - snippetsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
-         * 
+ * string event = 1; * - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * @return This builder for chaining. */ - public Builder addSnippets( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet.Builder - builderForValue) { - if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - snippets_.add(builderForValue.build()); - onChanged(); - } else { - snippetsBuilder_.addMessage(builderForValue.build()); - } + public Builder clearEvent() { + event_ = getDefaultInstance().getEvent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } @@ -3838,100 +7615,103 @@ public Builder addSnippets( * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Name of the triggered event.
          * 
* - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * string event = 1; + * + * @param value The bytes for event to set. + * @return This builder for chaining. */ - public Builder addSnippets( - int index, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet.Builder - builderForValue) { - if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - snippets_.add(index, builderForValue.build()); - onChanged(); - } else { - snippetsBuilder_.addMessage(index, builderForValue.build()); + public Builder setEventBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + event_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } + private com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + snippets_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder> + snippetsBuilder_; + /** * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Sources used in event fulfillment.
          * 
* * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * + * + * @return Whether the snippets field is set. */ - public Builder addAllSnippets( - java.lang.Iterable< - ? extends - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet> - values) { - if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snippets_); - onChanged(); - } else { - snippetsBuilder_.addAllMessages(values); - } - return this; + public boolean hasSnippets() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Sources used in event fulfillment.
          * 
* * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * + * + * @return The snippets. */ - public Builder clearSnippets() { + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getSnippets() { if (snippetsBuilder_ == null) { - snippets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + return snippets_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance() + : snippets_; } else { - snippetsBuilder_.clear(); + return snippetsBuilder_.getMessage(); } - return this; } /** * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Sources used in event fulfillment.
          * 
* * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public Builder removeSnippets(int index) { + public Builder setSnippets( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + value) { if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - snippets_.remove(index); - onChanged(); + if (value == null) { + throw new NullPointerException(); + } + snippets_ = value; } else { - snippetsBuilder_.remove(index); + snippetsBuilder_.setMessage(value); } + bitField0_ |= 0x00000002; + onChanged(); return this; } @@ -3939,175 +7719,182 @@ public Builder removeSnippets(int index) { * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Sources used in event fulfillment.
          * 
* * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet.Builder - getSnippetsBuilder(int index) { - return internalGetSnippetsFieldBuilder().getBuilder(index); + public Builder setSnippets( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Builder + builderForValue) { + if (snippetsBuilder_ == null) { + snippets_ = builderForValue.build(); + } else { + snippetsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; } /** * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Sources used in event fulfillment.
          * 
* * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .SnippetOrBuilder - getSnippetsOrBuilder(int index) { + public Builder mergeSnippets( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + value) { if (snippetsBuilder_ == null) { - return snippets_.get(index); + if (((bitField0_ & 0x00000002) != 0) + && snippets_ != null + && snippets_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance()) { + getSnippetsBuilder().mergeFrom(value); + } else { + snippets_ = value; + } } else { - return snippetsBuilder_.getMessageOrBuilder(index); + snippetsBuilder_.mergeFrom(value); } + if (snippets_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; } /** * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Sources used in event fulfillment.
          * 
* * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public java.util.List< - ? extends - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder> - getSnippetsOrBuilderList() { + public Builder clearSnippets() { + bitField0_ = (bitField0_ & ~0x00000002); + snippets_ = null; if (snippetsBuilder_ != null) { - return snippetsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(snippets_); + snippetsBuilder_.dispose(); + snippetsBuilder_ = null; } + onChanged(); + return this; } /** * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Sources used in event fulfillment.
          * 
* * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet.Builder - addSnippetsBuilder() { - return internalGetSnippetsFieldBuilder() - .addBuilder( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.getDefaultInstance()); + .Builder + getSnippetsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSnippetsFieldBuilder().getBuilder(); } /** * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Sources used in event fulfillment.
          * 
* * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet.Builder - addSnippetsBuilder(int index) { - return internalGetSnippetsFieldBuilder() - .addBuilder( - index, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.getDefaultInstance()); + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getSnippetsOrBuilder() { + if (snippetsBuilder_ != null) { + return snippetsBuilder_.getMessageOrBuilder(); + } else { + return snippets_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance() + : snippets_; + } } /** * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Sources used in event fulfillment.
          * 
* * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public java.util.List< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder> - getSnippetsBuilderList() { - return internalGetSnippetsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.SingleFieldBuilder< com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet, + .GenerativeSource, com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder, + .GenerativeSource.Builder, com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder> + .GenerativeSourceOrBuilder> internalGetSnippetsFieldBuilder() { if (snippetsBuilder_ == null) { snippetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< + new com.google.protobuf.SingleFieldBuilder< com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet, + .GenerativeSource, com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder, + .GenerativeSource.Builder, com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder>( - snippets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + .GenerativeSourceOrBuilder>( + getSnippets(), getParentForChildren(), isClean()); snippets_ = null; } return snippetsBuilder_; } - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) } - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) private static final com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource(); + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource(); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public GenerativeSource parsePartialFrom( + public EventSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4127,17 +7914,17 @@ public GenerativeSource parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -4154,6 +7941,8 @@ public enum SourceCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { FAQ_SOURCE(3), GENERATIVE_SOURCE(4), + PLAYBOOK_SOURCE(7), + EVENT_SOURCE(8), SOURCE_NOT_SET(0); private final int value; @@ -4177,6 +7966,10 @@ public static SourceCase forNumber(int value) { return FAQ_SOURCE; case 4: return GENERATIVE_SOURCE; + case 7: + return PLAYBOOK_SOURCE; + case 8: + return EVENT_SOURCE; case 0: return SOURCE_NOT_SET; default: @@ -4369,15 +8162,150 @@ public boolean hasGenerativeSource() { * */ @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder - getGenerativeSourceOrBuilder() { - if (sourceCase_ == 4) { - return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getGenerativeSourceOrBuilder() { + if (sourceCase_ == 4) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_; + } + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .getDefaultInstance(); + } + + public static final int PLAYBOOK_SOURCE_FIELD_NUMBER = 7; + + /** + * + * + *
+     * Populated if the prediction was from Playbook.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + * + * @return Whether the playbookSource field is set. + */ + @java.lang.Override + public boolean hasPlaybookSource() { + return sourceCase_ == 7; + } + + /** + * + * + *
+     * Populated if the prediction was from Playbook.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + * + * @return The playbookSource. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getPlaybookSource() { + if (sourceCase_ == 7) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_; + } + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .getDefaultInstance(); + } + + /** + * + * + *
+     * Populated if the prediction was from Playbook.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getPlaybookSourceOrBuilder() { + if (sourceCase_ == 7) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_; + } + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .getDefaultInstance(); + } + + public static final int EVENT_SOURCE_FIELD_NUMBER = 8; + + /** + * + * + *
+     * Populated if the prediction was from an event.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + * + * @return Whether the eventSource field is set. + */ + @java.lang.Override + public boolean hasEventSource() { + return sourceCase_ == 8; + } + + /** + * + * + *
+     * Populated if the prediction was from an event.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + * + * @return The eventSource. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + getEventSource() { + if (sourceCase_ == 8) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) + source_; + } + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .getDefaultInstance(); + } + + /** + * + * + *
+     * Populated if the prediction was from an event.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSourceOrBuilder + getEventSourceOrBuilder() { + if (sourceCase_ == 8) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) source_; } - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource .getDefaultInstance(); } @@ -4410,6 +8338,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) source_); } + if (sourceCase_ == 7) { + output.writeMessage( + 7, + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + source_); + } + if (sourceCase_ == 8) { + output.writeMessage( + 8, + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) + source_); + } getUnknownFields().writeTo(output); } @@ -4437,6 +8377,21 @@ public int getSerializedSize() { .GenerativeSource) source_); } + if (sourceCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_); + } + if (sourceCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) + source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4462,6 +8417,12 @@ public boolean equals(final java.lang.Object obj) { case 4: if (!getGenerativeSource().equals(other.getGenerativeSource())) return false; break; + case 7: + if (!getPlaybookSource().equals(other.getPlaybookSource())) return false; + break; + case 8: + if (!getEventSource().equals(other.getEventSource())) return false; + break; case 0: default: } @@ -4487,6 +8448,14 @@ public int hashCode() { hash = (37 * hash) + GENERATIVE_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getGenerativeSource().hashCode(); break; + case 7: + hash = (37 * hash) + PLAYBOOK_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getPlaybookSource().hashCode(); + break; + case 8: + hash = (37 * hash) + EVENT_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getEventSource().hashCode(); + break; case 0: default: } @@ -4587,258 +8556,700 @@ public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Represents an answer from Knowledge. Currently supports FAQ and Generative
+     * answers.
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + answerText_ = ""; + if (faqSourceBuilder_ != null) { + faqSourceBuilder_.clear(); + } + if (generativeSourceBuilder_ != null) { + generativeSourceBuilder_.clear(); + } + if (playbookSourceBuilder_ != null) { + playbookSourceBuilder_.clear(); + } + if (eventSourceBuilder_ != null) { + eventSourceBuilder_.clear(); + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer build() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer buildPartial() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.answerText_ = answerText_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 3 && faqSourceBuilder_ != null) { + result.source_ = faqSourceBuilder_.build(); + } + if (sourceCase_ == 4 && generativeSourceBuilder_ != null) { + result.source_ = generativeSourceBuilder_.build(); + } + if (sourceCase_ == 7 && playbookSourceBuilder_ != null) { + result.source_ = playbookSourceBuilder_.build(); + } + if (sourceCase_ == 8 && eventSourceBuilder_ != null) { + result.source_ = eventSourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer other) { + if (other + == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .getDefaultInstance()) return this; + if (!other.getAnswerText().isEmpty()) { + answerText_ = other.answerText_; + bitField0_ |= 0x00000001; + onChanged(); + } + switch (other.getSourceCase()) { + case FAQ_SOURCE: + { + mergeFaqSource(other.getFaqSource()); + break; + } + case GENERATIVE_SOURCE: + { + mergeGenerativeSource(other.getGenerativeSource()); + break; + } + case PLAYBOOK_SOURCE: + { + mergePlaybookSource(other.getPlaybookSource()); + break; + } + case EVENT_SOURCE: + { + mergeEventSource(other.getEventSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + answerText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage( + internalGetFaqSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetGenerativeSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 4; + break; + } // case 34 + case 58: + { + input.readMessage( + internalGetPlaybookSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetEventSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 8; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; - /** - * - * - *
-     * Represents an answer from Knowledge. Currently supports FAQ and Generative
-     * answers.
-     * 
- * - * Protobuf type {@code google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.class, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.Builder.class); + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; } - // Construct using - // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.newBuilder() - private Builder() {} + private int bitField0_; - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + private java.lang.Object answerText_ = ""; + + /** + * + * + *
+       * The piece of text from the `source` that answers this suggested query.
+       * 
+ * + * string answer_text = 1; + * + * @return The answerText. + */ + public java.lang.String getAnswerText() { + java.lang.Object ref = answerText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerText_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - answerText_ = ""; - if (faqSourceBuilder_ != null) { - faqSourceBuilder_.clear(); + /** + * + * + *
+       * The piece of text from the `source` that answers this suggested query.
+       * 
+ * + * string answer_text = 1; + * + * @return The bytes for answerText. + */ + public com.google.protobuf.ByteString getAnswerTextBytes() { + java.lang.Object ref = answerText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - if (generativeSourceBuilder_ != null) { - generativeSourceBuilder_.clear(); + } + + /** + * + * + *
+       * The piece of text from the `source` that answers this suggested query.
+       * 
+ * + * string answer_text = 1; + * + * @param value The answerText to set. + * @return This builder for chaining. + */ + public Builder setAnswerText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - sourceCase_ = 0; - source_ = null; + answerText_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; + /** + * + * + *
+       * The piece of text from the `source` that answers this suggested query.
+       * 
+ * + * string answer_text = 1; + * + * @return This builder for chaining. + */ + public Builder clearAnswerText() { + answerText_ = getDefaultInstance().getAnswerText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .getDefaultInstance(); + /** + * + * + *
+       * The piece of text from the `source` that answers this suggested query.
+       * 
+ * + * string answer_text = 1; + * + * @param value The bytes for answerText to set. + * @return This builder for chaining. + */ + public Builder setAnswerTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSourceOrBuilder> + faqSourceBuilder_; + + /** + * + * + *
+       * Populated if the prediction came from FAQ.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + * + * @return Whether the faqSource field is set. + */ @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer build() { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public boolean hasFaqSource() { + return sourceCase_ == 3; } + /** + * + * + *
+       * Populated if the prediction came from FAQ.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + * + * @return The faqSource. + */ @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer buildPartial() { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer result = - new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer(this); - if (bitField0_ != 0) { - buildPartial0(result); + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + getFaqSource() { + if (faqSourceBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + source_; + } + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return faqSourceBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance(); } - buildPartialOneofs(result); - onBuilt(); - return result; } - private void buildPartial0( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.answerText_ = answerText_; + /** + * + * + *
+       * Populated if the prediction came from FAQ.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + public Builder setFaqSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource value) { + if (faqSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + faqSourceBuilder_.setMessage(value); } + sourceCase_ = 3; + return this; } - private void buildPartialOneofs( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer result) { - result.sourceCase_ = sourceCase_; - result.source_ = this.source_; - if (sourceCase_ == 3 && faqSourceBuilder_ != null) { - result.source_ = faqSourceBuilder_.build(); - } - if (sourceCase_ == 4 && generativeSourceBuilder_ != null) { - result.source_ = generativeSourceBuilder_.build(); + /** + * + * + *
+       * Populated if the prediction came from FAQ.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + public Builder setFaqSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource.Builder + builderForValue) { + if (faqSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + faqSourceBuilder_.setMessage(builderForValue.build()); } + sourceCase_ = 3; + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) { - return mergeFrom( - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) other); + /** + * + * + *
+       * Populated if the prediction came from FAQ.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + public Builder mergeFaqSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource value) { + if (faqSourceBuilder_ == null) { + if (sourceCase_ == 3 + && source_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance()) { + source_ = + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .newBuilder( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); } else { - super.mergeFrom(other); - return this; + if (sourceCase_ == 3) { + faqSourceBuilder_.mergeFrom(value); + } else { + faqSourceBuilder_.setMessage(value); + } } + sourceCase_ = 3; + return this; } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer other) { - if (other - == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .getDefaultInstance()) return this; - if (!other.getAnswerText().isEmpty()) { - answerText_ = other.answerText_; - bitField0_ |= 0x00000001; - onChanged(); - } - switch (other.getSourceCase()) { - case FAQ_SOURCE: - { - mergeFaqSource(other.getFaqSource()); - break; - } - case GENERATIVE_SOURCE: - { - mergeGenerativeSource(other.getGenerativeSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + /** + * + * + *
+       * Populated if the prediction came from FAQ.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + public Builder clearFaqSource() { + if (faqSourceBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + faqSourceBuilder_.clear(); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+       * Populated if the prediction came from FAQ.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource.Builder + getFaqSourceBuilder() { + return internalGetFaqSourceFieldBuilder().getBuilder(); } + /** + * + * + *
+       * Populated if the prediction came from FAQ.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceOrBuilder + getFaqSourceOrBuilder() { + if ((sourceCase_ == 3) && (faqSourceBuilder_ != null)) { + return faqSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + source_; + } + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - answerText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - input.readMessage( - internalGetFaqSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage( - internalGetGenerativeSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 4; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int sourceCase_ = 0; - private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); } - public Builder clearSource() { - sourceCase_ = 0; - source_ = null; + /** + * + * + *
+       * Populated if the prediction came from FAQ.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSourceOrBuilder> + internalGetFaqSourceFieldBuilder() { + if (faqSourceBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance(); + } + faqSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSourceOrBuilder>( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; onChanged(); - return this; + return faqSourceBuilder_; } - private int bitField0_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder> + generativeSourceBuilder_; - private java.lang.Object answerText_ = ""; + /** + * + * + *
+       * Populated if the prediction was Generative.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + * + * @return Whether the generativeSource field is set. + */ + @java.lang.Override + public boolean hasGenerativeSource() { + return sourceCase_ == 4; + } /** * * *
-       * The piece of text from the `source` that answers this suggested query.
+       * Populated if the prediction was Generative.
        * 
* - * string answer_text = 1; + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * * - * @return The answerText. + * @return The generativeSource. */ - public java.lang.String getAnswerText() { - java.lang.Object ref = answerText_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - answerText_ = s; - return s; + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getGenerativeSource() { + if (generativeSourceBuilder_ == null) { + if (sourceCase_ == 4) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_; + } + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } else { - return (java.lang.String) ref; + if (sourceCase_ == 4) { + return generativeSourceBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } } @@ -4846,44 +9257,51 @@ public java.lang.String getAnswerText() { * * *
-       * The piece of text from the `source` that answers this suggested query.
+       * Populated if the prediction was Generative.
        * 
* - * string answer_text = 1; - * - * @return The bytes for answerText. + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * */ - public com.google.protobuf.ByteString getAnswerTextBytes() { - java.lang.Object ref = answerText_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - answerText_ = b; - return b; + public Builder setGenerativeSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + value) { + if (generativeSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + generativeSourceBuilder_.setMessage(value); } + sourceCase_ = 4; + return this; } /** * * *
-       * The piece of text from the `source` that answers this suggested query.
+       * Populated if the prediction was Generative.
        * 
* - * string answer_text = 1; - * - * @param value The answerText to set. - * @return This builder for chaining. + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * */ - public Builder setAnswerText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setGenerativeSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Builder + builderForValue) { + if (generativeSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + generativeSourceBuilder_.setMessage(builderForValue.build()); } - answerText_ = value; - bitField0_ |= 0x00000001; - onChanged(); + sourceCase_ = 4; return this; } @@ -4891,17 +9309,69 @@ public Builder setAnswerText(java.lang.String value) { * * *
-       * The piece of text from the `source` that answers this suggested query.
+       * Populated if the prediction was Generative.
        * 
* - * string answer_text = 1; + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + */ + public Builder mergeGenerativeSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + value) { + if (generativeSourceBuilder_ == null) { + if (sourceCase_ == 4 + && source_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance()) { + source_ = + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.newBuilder( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 4) { + generativeSourceBuilder_.mergeFrom(value); + } else { + generativeSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 4; + return this; + } + + /** * - * @return This builder for chaining. + * + *
+       * Populated if the prediction was Generative.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * */ - public Builder clearAnswerText() { - answerText_ = getDefaultInstance().getAnswerText(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + public Builder clearGenerativeSource() { + if (generativeSourceBuilder_ == null) { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + } + generativeSourceBuilder_.clear(); + } return this; } @@ -4909,80 +9379,147 @@ public Builder clearAnswerText() { * * *
-       * The piece of text from the `source` that answers this suggested query.
+       * Populated if the prediction was Generative.
        * 
* - * string answer_text = 1; + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Builder + getGenerativeSourceBuilder() { + return internalGetGenerativeSourceFieldBuilder().getBuilder(); + } + + /** * - * @param value The bytes for answerText to set. - * @return This builder for chaining. + * + *
+       * Populated if the prediction was Generative.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * */ - public Builder setAnswerTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getGenerativeSourceOrBuilder() { + if ((sourceCase_ == 4) && (generativeSourceBuilder_ != null)) { + return generativeSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 4) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_; + } + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); + } + } + + /** + * + * + *
+       * Populated if the prediction was Generative.
+       * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder> + internalGetGenerativeSourceFieldBuilder() { + if (generativeSourceBuilder_ == null) { + if (!(sourceCase_ == 4)) { + source_ = + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); + } + generativeSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder>( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; } - checkByteStringIsUtf8(value); - answerText_ = value; - bitField0_ |= 0x00000001; + sourceCase_ = 4; onChanged(); - return this; + return generativeSourceBuilder_; } private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource .Builder, com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSourceOrBuilder> - faqSourceBuilder_; + .GenerativeSourceOrBuilder> + playbookSourceBuilder_; /** * * *
-       * Populated if the prediction came from FAQ.
+       * Populated if the prediction was from Playbook.
        * 
* * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * * - * @return Whether the faqSource field is set. + * @return Whether the playbookSource field is set. */ @java.lang.Override - public boolean hasFaqSource() { - return sourceCase_ == 3; + public boolean hasPlaybookSource() { + return sourceCase_ == 7; } /** * * *
-       * Populated if the prediction came from FAQ.
+       * Populated if the prediction was from Playbook.
        * 
* * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * * - * @return The faqSource. + * @return The playbookSource. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - getFaqSource() { - if (faqSourceBuilder_ == null) { - if (sourceCase_ == 3) { - return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getPlaybookSource() { + if (playbookSourceBuilder_ == null) { + if (sourceCase_ == 7) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) source_; } - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } else { - if (sourceCase_ == 3) { - return faqSourceBuilder_.getMessage(); + if (sourceCase_ == 7) { + return playbookSourceBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } } @@ -4990,25 +9527,26 @@ public boolean hasFaqSource() { * * *
-       * Populated if the prediction came from FAQ.
+       * Populated if the prediction was from Playbook.
        * 
* * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ - public Builder setFaqSource( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource value) { - if (faqSourceBuilder_ == null) { + public Builder setPlaybookSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + value) { + if (playbookSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { - faqSourceBuilder_.setMessage(value); + playbookSourceBuilder_.setMessage(value); } - sourceCase_ = 3; + sourceCase_ = 7; return this; } @@ -5016,23 +9554,24 @@ public Builder setFaqSource( * * *
-       * Populated if the prediction came from FAQ.
+       * Populated if the prediction was from Playbook.
        * 
* * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ - public Builder setFaqSource( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource.Builder + public Builder setPlaybookSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Builder builderForValue) { - if (faqSourceBuilder_ == null) { + if (playbookSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { - faqSourceBuilder_.setMessage(builderForValue.build()); + playbookSourceBuilder_.setMessage(builderForValue.build()); } - sourceCase_ = 3; + sourceCase_ = 7; return this; } @@ -5040,25 +9579,26 @@ public Builder setFaqSource( * * *
-       * Populated if the prediction came from FAQ.
+       * Populated if the prediction was from Playbook.
        * 
* * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ - public Builder mergeFaqSource( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource value) { - if (faqSourceBuilder_ == null) { - if (sourceCase_ == 3 + public Builder mergePlaybookSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + value) { + if (playbookSourceBuilder_ == null) { + if (sourceCase_ == 7 && source_ - != com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance()) { + != com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance()) { source_ = - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .newBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.newBuilder( (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource) + .GenerativeSource) source_) .mergeFrom(value) .buildPartial(); @@ -5067,13 +9607,13 @@ public Builder mergeFaqSource( } onChanged(); } else { - if (sourceCase_ == 3) { - faqSourceBuilder_.mergeFrom(value); + if (sourceCase_ == 7) { + playbookSourceBuilder_.mergeFrom(value); } else { - faqSourceBuilder_.setMessage(value); + playbookSourceBuilder_.setMessage(value); } } - sourceCase_ = 3; + sourceCase_ = 7; return this; } @@ -5081,26 +9621,26 @@ public Builder mergeFaqSource( * * *
-       * Populated if the prediction came from FAQ.
+       * Populated if the prediction was from Playbook.
        * 
* * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ - public Builder clearFaqSource() { - if (faqSourceBuilder_ == null) { - if (sourceCase_ == 3) { + public Builder clearPlaybookSource() { + if (playbookSourceBuilder_ == null) { + if (sourceCase_ == 7) { sourceCase_ = 0; source_ = null; onChanged(); } } else { - if (sourceCase_ == 3) { + if (sourceCase_ == 7) { sourceCase_ = 0; source_ = null; } - faqSourceBuilder_.clear(); + playbookSourceBuilder_.clear(); } return this; } @@ -5109,41 +9649,44 @@ public Builder clearFaqSource() { * * *
-       * Populated if the prediction came from FAQ.
+       * Populated if the prediction was from Playbook.
        * 
* * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource.Builder - getFaqSourceBuilder() { - return internalGetFaqSourceFieldBuilder().getBuilder(); + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Builder + getPlaybookSourceBuilder() { + return internalGetPlaybookSourceFieldBuilder().getBuilder(); } /** * * *
-       * Populated if the prediction came from FAQ.
+       * Populated if the prediction was from Playbook.
        * 
* * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceOrBuilder - getFaqSourceOrBuilder() { - if ((sourceCase_ == 3) && (faqSourceBuilder_ != null)) { - return faqSourceBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getPlaybookSourceOrBuilder() { + if ((sourceCase_ == 7) && (playbookSourceBuilder_ != null)) { + return playbookSourceBuilder_.getMessageOrBuilder(); } else { - if (sourceCase_ == 3) { - return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + if (sourceCase_ == 7) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) source_; } - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } } @@ -5151,100 +9694,102 @@ public Builder clearFaqSource() { * * *
-       * Populated if the prediction came from FAQ.
+       * Populated if the prediction was from Playbook.
        * 
* * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource .Builder, com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSourceOrBuilder> - internalGetFaqSourceFieldBuilder() { - if (faqSourceBuilder_ == null) { - if (!(sourceCase_ == 3)) { + .GenerativeSourceOrBuilder> + internalGetPlaybookSourceFieldBuilder() { + if (playbookSourceBuilder_ == null) { + if (!(sourceCase_ == 7)) { source_ = - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance(); + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } - faqSourceBuilder_ = + playbookSourceBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .Builder, com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSourceOrBuilder>( - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + .GenerativeSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder>( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) source_, getParentForChildren(), isClean()); source_ = null; } - sourceCase_ = 3; + sourceCase_ = 7; onChanged(); - return faqSourceBuilder_; + return playbookSourceBuilder_; } private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource .Builder, com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder> - generativeSourceBuilder_; + .EventSourceOrBuilder> + eventSourceBuilder_; /** * * *
-       * Populated if the prediction was Generative.
+       * Populated if the prediction was from an event.
        * 
* * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * * - * @return Whether the generativeSource field is set. + * @return Whether the eventSource field is set. */ @java.lang.Override - public boolean hasGenerativeSource() { - return sourceCase_ == 4; + public boolean hasEventSource() { + return sourceCase_ == 8; } /** * * *
-       * Populated if the prediction was Generative.
+       * Populated if the prediction was from an event.
        * 
* * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * * - * @return The generativeSource. + * @return The eventSource. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - getGenerativeSource() { - if (generativeSourceBuilder_ == null) { - if (sourceCase_ == 4) { + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + getEventSource() { + if (eventSourceBuilder_ == null) { + if (sourceCase_ == 8) { return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSource) source_; } - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .getDefaultInstance(); } else { - if (sourceCase_ == 4) { - return generativeSourceBuilder_.getMessage(); + if (sourceCase_ == 8) { + return eventSourceBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .getDefaultInstance(); } } @@ -5252,26 +9797,25 @@ public boolean hasGenerativeSource() { * * *
-       * Populated if the prediction was Generative.
+       * Populated if the prediction was from an event.
        * 
* * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ - public Builder setGenerativeSource( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - value) { - if (generativeSourceBuilder_ == null) { + public Builder setEventSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource value) { + if (eventSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { - generativeSourceBuilder_.setMessage(value); + eventSourceBuilder_.setMessage(value); } - sourceCase_ = 4; + sourceCase_ = 8; return this; } @@ -5279,24 +9823,23 @@ public Builder setGenerativeSource( * * *
-       * Populated if the prediction was Generative.
+       * Populated if the prediction was from an event.
        * 
* * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ - public Builder setGenerativeSource( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Builder + public Builder setEventSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource.Builder builderForValue) { - if (generativeSourceBuilder_ == null) { + if (eventSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { - generativeSourceBuilder_.setMessage(builderForValue.build()); + eventSourceBuilder_.setMessage(builderForValue.build()); } - sourceCase_ = 4; + sourceCase_ = 8; return this; } @@ -5304,26 +9847,25 @@ public Builder setGenerativeSource( * * *
-       * Populated if the prediction was Generative.
+       * Populated if the prediction was from an event.
        * 
* * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ - public Builder mergeGenerativeSource( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - value) { - if (generativeSourceBuilder_ == null) { - if (sourceCase_ == 4 + public Builder mergeEventSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource value) { + if (eventSourceBuilder_ == null) { + if (sourceCase_ == 8 && source_ != com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance()) { + .EventSource.getDefaultInstance()) { source_ = - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.newBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .newBuilder( (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSource) source_) .mergeFrom(value) .buildPartial(); @@ -5332,13 +9874,13 @@ public Builder mergeGenerativeSource( } onChanged(); } else { - if (sourceCase_ == 4) { - generativeSourceBuilder_.mergeFrom(value); + if (sourceCase_ == 8) { + eventSourceBuilder_.mergeFrom(value); } else { - generativeSourceBuilder_.setMessage(value); + eventSourceBuilder_.setMessage(value); } } - sourceCase_ = 4; + sourceCase_ = 8; return this; } @@ -5346,26 +9888,26 @@ public Builder mergeGenerativeSource( * * *
-       * Populated if the prediction was Generative.
+       * Populated if the prediction was from an event.
        * 
* * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ - public Builder clearGenerativeSource() { - if (generativeSourceBuilder_ == null) { - if (sourceCase_ == 4) { + public Builder clearEventSource() { + if (eventSourceBuilder_ == null) { + if (sourceCase_ == 8) { sourceCase_ = 0; source_ = null; onChanged(); } } else { - if (sourceCase_ == 4) { + if (sourceCase_ == 8) { sourceCase_ = 0; source_ = null; } - generativeSourceBuilder_.clear(); + eventSourceBuilder_.clear(); } return this; } @@ -5374,44 +9916,44 @@ public Builder clearGenerativeSource() { * * *
-       * Populated if the prediction was Generative.
+       * Populated if the prediction was from an event.
        * 
* * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource .Builder - getGenerativeSourceBuilder() { - return internalGetGenerativeSourceFieldBuilder().getBuilder(); + getEventSourceBuilder() { + return internalGetEventSourceFieldBuilder().getBuilder(); } /** * * *
-       * Populated if the prediction was Generative.
+       * Populated if the prediction was from an event.
        * 
* * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ @java.lang.Override public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder - getGenerativeSourceOrBuilder() { - if ((sourceCase_ == 4) && (generativeSourceBuilder_ != null)) { - return generativeSourceBuilder_.getMessageOrBuilder(); + .EventSourceOrBuilder + getEventSourceOrBuilder() { + if ((sourceCase_ == 8) && (eventSourceBuilder_ != null)) { + return eventSourceBuilder_.getMessageOrBuilder(); } else { - if (sourceCase_ == 4) { + if (sourceCase_ == 8) { return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSource) source_; } - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .getDefaultInstance(); } } @@ -5419,44 +9961,42 @@ public Builder clearGenerativeSource() { * * *
-       * Populated if the prediction was Generative.
+       * Populated if the prediction was from an event.
        * 
* * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource .Builder, com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder> - internalGetGenerativeSourceFieldBuilder() { - if (generativeSourceBuilder_ == null) { - if (!(sourceCase_ == 4)) { + .EventSourceOrBuilder> + internalGetEventSourceFieldBuilder() { + if (eventSourceBuilder_ == null) { + if (!(sourceCase_ == 8)) { source_ = - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .getDefaultInstance(); } - generativeSourceBuilder_ = + eventSourceBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .Builder, com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Builder, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder>( - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSourceOrBuilder>( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) source_, getParentForChildren(), isClean()); source_ = null; } - sourceCase_ = 4; + sourceCase_ = 8; onChanged(); - return generativeSourceBuilder_; + return eventSourceBuilder_; } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfo.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfo.java index 7f1838a4aa52..8027c331971a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfo.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfo.java @@ -3012,6 +3012,762 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface QueryGenerationDebugInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The total number of tokens in the prompt.
+     * 
+ * + * int32 prompt_token_count = 1; + * + * @return The promptTokenCount. + */ + int getPromptTokenCount(); + + /** + * + * + *
+     * The total number of tokens in the generated candidates.
+     * 
+ * + * int32 candidates_token_count = 2; + * + * @return The candidatesTokenCount. + */ + int getCandidatesTokenCount(); + + /** + * + * + *
+     * The total number of tokens for the entire request.
+     * 
+ * + * int32 total_token_count = 3; + * + * @return The totalTokenCount. + */ + int getTotalTokenCount(); + } + + /** + * + * + *
+   * Token usage metadata for query generation.
+   * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo} + */ + public static final class QueryGenerationDebugInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + QueryGenerationDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryGenerationDebugInfo"); + } + + // Use QueryGenerationDebugInfo.newBuilder() to construct. + private QueryGenerationDebugInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryGenerationDebugInfo() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .Builder.class); + } + + public static final int PROMPT_TOKEN_COUNT_FIELD_NUMBER = 1; + private int promptTokenCount_ = 0; + + /** + * + * + *
+     * The total number of tokens in the prompt.
+     * 
+ * + * int32 prompt_token_count = 1; + * + * @return The promptTokenCount. + */ + @java.lang.Override + public int getPromptTokenCount() { + return promptTokenCount_; + } + + public static final int CANDIDATES_TOKEN_COUNT_FIELD_NUMBER = 2; + private int candidatesTokenCount_ = 0; + + /** + * + * + *
+     * The total number of tokens in the generated candidates.
+     * 
+ * + * int32 candidates_token_count = 2; + * + * @return The candidatesTokenCount. + */ + @java.lang.Override + public int getCandidatesTokenCount() { + return candidatesTokenCount_; + } + + public static final int TOTAL_TOKEN_COUNT_FIELD_NUMBER = 3; + private int totalTokenCount_ = 0; + + /** + * + * + *
+     * The total number of tokens for the entire request.
+     * 
+ * + * int32 total_token_count = 3; + * + * @return The totalTokenCount. + */ + @java.lang.Override + public int getTotalTokenCount() { + return totalTokenCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (promptTokenCount_ != 0) { + output.writeInt32(1, promptTokenCount_); + } + if (candidatesTokenCount_ != 0) { + output.writeInt32(2, candidatesTokenCount_); + } + if (totalTokenCount_ != 0) { + output.writeInt32(3, totalTokenCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (promptTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, promptTokenCount_); + } + if (candidatesTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, candidatesTokenCount_); + } + if (totalTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalTokenCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo other = + (com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) obj; + + if (getPromptTokenCount() != other.getPromptTokenCount()) return false; + if (getCandidatesTokenCount() != other.getCandidatesTokenCount()) return false; + if (getTotalTokenCount() != other.getTotalTokenCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROMPT_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getPromptTokenCount(); + hash = (37 * hash) + CANDIDATES_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCandidatesTokenCount(); + hash = (37 * hash) + TOTAL_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalTokenCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Token usage metadata for query generation.
+     * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + promptTokenCount_ = 0; + candidatesTokenCount_ = 0; + totalTokenCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + build() { + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + buildPartial() { + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.promptTokenCount_ = promptTokenCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.candidatesTokenCount_ = candidatesTokenCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalTokenCount_ = totalTokenCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo other) { + if (other + == com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance()) return this; + if (other.getPromptTokenCount() != 0) { + setPromptTokenCount(other.getPromptTokenCount()); + } + if (other.getCandidatesTokenCount() != 0) { + setCandidatesTokenCount(other.getCandidatesTokenCount()); + } + if (other.getTotalTokenCount() != 0) { + setTotalTokenCount(other.getTotalTokenCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + promptTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + candidatesTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + totalTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int promptTokenCount_; + + /** + * + * + *
+       * The total number of tokens in the prompt.
+       * 
+ * + * int32 prompt_token_count = 1; + * + * @return The promptTokenCount. + */ + @java.lang.Override + public int getPromptTokenCount() { + return promptTokenCount_; + } + + /** + * + * + *
+       * The total number of tokens in the prompt.
+       * 
+ * + * int32 prompt_token_count = 1; + * + * @param value The promptTokenCount to set. + * @return This builder for chaining. + */ + public Builder setPromptTokenCount(int value) { + + promptTokenCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The total number of tokens in the prompt.
+       * 
+ * + * int32 prompt_token_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearPromptTokenCount() { + bitField0_ = (bitField0_ & ~0x00000001); + promptTokenCount_ = 0; + onChanged(); + return this; + } + + private int candidatesTokenCount_; + + /** + * + * + *
+       * The total number of tokens in the generated candidates.
+       * 
+ * + * int32 candidates_token_count = 2; + * + * @return The candidatesTokenCount. + */ + @java.lang.Override + public int getCandidatesTokenCount() { + return candidatesTokenCount_; + } + + /** + * + * + *
+       * The total number of tokens in the generated candidates.
+       * 
+ * + * int32 candidates_token_count = 2; + * + * @param value The candidatesTokenCount to set. + * @return This builder for chaining. + */ + public Builder setCandidatesTokenCount(int value) { + + candidatesTokenCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The total number of tokens in the generated candidates.
+       * 
+ * + * int32 candidates_token_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearCandidatesTokenCount() { + bitField0_ = (bitField0_ & ~0x00000002); + candidatesTokenCount_ = 0; + onChanged(); + return this; + } + + private int totalTokenCount_; + + /** + * + * + *
+       * The total number of tokens for the entire request.
+       * 
+ * + * int32 total_token_count = 3; + * + * @return The totalTokenCount. + */ + @java.lang.Override + public int getTotalTokenCount() { + return totalTokenCount_; + } + + /** + * + * + *
+       * The total number of tokens for the entire request.
+       * 
+ * + * int32 total_token_count = 3; + * + * @param value The totalTokenCount to set. + * @return This builder for chaining. + */ + public Builder setTotalTokenCount(int value) { + + totalTokenCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The total number of tokens for the entire request.
+       * 
+ * + * int32 total_token_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalTokenCount() { + bitField0_ = (bitField0_ & ~0x00000004); + totalTokenCount_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + private static final com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo(); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryGenerationDebugInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int QUERY_GENERATION_FAILURE_REASON_FIELD_NUMBER = 1; private int queryGenerationFailureReason_ = 0; @@ -3326,6 +4082,119 @@ public com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder getServiceLatencyO : serviceLatency_; } + public static final int QUERY_GENERATION_DEBUG_INFO_FIELD_NUMBER = 7; + private com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + queryGenerationDebugInfo_; + + /** + * + * + *
+   * Token usage metadata for query generation.
+   * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + * + * @return Whether the queryGenerationDebugInfo field is set. + */ + @java.lang.Override + public boolean hasQueryGenerationDebugInfo() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Token usage metadata for query generation.
+   * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + * + * @return The queryGenerationDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getQueryGenerationDebugInfo() { + return queryGenerationDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance() + : queryGenerationDebugInfo_; + } + + /** + * + * + *
+   * Token usage metadata for query generation.
+   * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfoOrBuilder + getQueryGenerationDebugInfoOrBuilder() { + return queryGenerationDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance() + : queryGenerationDebugInfo_; + } + + public static final int CES_DEBUG_INFO_FIELD_NUMBER = 8; + private com.google.protobuf.Struct cesDebugInfo_; + + /** + * + * + *
+   * Debug information from CES runtime API.
+   * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + * + * @return Whether the cesDebugInfo field is set. + */ + @java.lang.Override + public boolean hasCesDebugInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Debug information from CES runtime API.
+   * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + * + * @return The cesDebugInfo. + */ + @java.lang.Override + public com.google.protobuf.Struct getCesDebugInfo() { + return cesDebugInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : cesDebugInfo_; + } + + /** + * + * + *
+   * Debug information from CES runtime API.
+   * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCesDebugInfoOrBuilder() { + return cesDebugInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : cesDebugInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3367,6 +4236,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getServiceLatency()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(7, getQueryGenerationDebugInfo()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(8, getCesDebugInfo()); + } getUnknownFields().writeTo(output); } @@ -3409,6 +4284,14 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getServiceLatency()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getQueryGenerationDebugInfo()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCesDebugInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3442,6 +4325,14 @@ public boolean equals(final java.lang.Object obj) { if (hasServiceLatency()) { if (!getServiceLatency().equals(other.getServiceLatency())) return false; } + if (hasQueryGenerationDebugInfo() != other.hasQueryGenerationDebugInfo()) return false; + if (hasQueryGenerationDebugInfo()) { + if (!getQueryGenerationDebugInfo().equals(other.getQueryGenerationDebugInfo())) return false; + } + if (hasCesDebugInfo() != other.hasCesDebugInfo()) return false; + if (hasCesDebugInfo()) { + if (!getCesDebugInfo().equals(other.getCesDebugInfo())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3471,6 +4362,14 @@ public int hashCode() { hash = (37 * hash) + SERVICE_LATENCY_FIELD_NUMBER; hash = (53 * hash) + getServiceLatency().hashCode(); } + if (hasQueryGenerationDebugInfo()) { + hash = (37 * hash) + QUERY_GENERATION_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getQueryGenerationDebugInfo().hashCode(); + } + if (hasCesDebugInfo()) { + hash = (37 * hash) + CES_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCesDebugInfo().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3616,6 +4515,8 @@ private void maybeForceBuilderInitialization() { internalGetKnowledgeAssistBehaviorFieldBuilder(); internalGetIngestedContextReferenceDebugInfoFieldBuilder(); internalGetServiceLatencyFieldBuilder(); + internalGetQueryGenerationDebugInfoFieldBuilder(); + internalGetCesDebugInfoFieldBuilder(); } } @@ -3641,6 +4542,16 @@ public Builder clear() { serviceLatencyBuilder_.dispose(); serviceLatencyBuilder_ = null; } + queryGenerationDebugInfo_ = null; + if (queryGenerationDebugInfoBuilder_ != null) { + queryGenerationDebugInfoBuilder_.dispose(); + queryGenerationDebugInfoBuilder_ = null; + } + cesDebugInfo_ = null; + if (cesDebugInfoBuilder_ != null) { + cesDebugInfoBuilder_.dispose(); + cesDebugInfoBuilder_ = null; + } return this; } @@ -3706,6 +4617,18 @@ private void buildPartial0(com.google.cloud.dialogflow.v2.KnowledgeAssistDebugIn serviceLatencyBuilder_ == null ? serviceLatency_ : serviceLatencyBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.queryGenerationDebugInfo_ = + queryGenerationDebugInfoBuilder_ == null + ? queryGenerationDebugInfo_ + : queryGenerationDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.cesDebugInfo_ = + cesDebugInfoBuilder_ == null ? cesDebugInfo_ : cesDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -3740,6 +4663,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo if (other.hasServiceLatency()) { mergeServiceLatency(other.getServiceLatency()); } + if (other.hasQueryGenerationDebugInfo()) { + mergeQueryGenerationDebugInfo(other.getQueryGenerationDebugInfo()); + } + if (other.hasCesDebugInfo()) { + mergeCesDebugInfo(other.getCesDebugInfo()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3807,6 +4736,21 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 + case 58: + { + input.readMessage( + internalGetQueryGenerationDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetCesDebugInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4805,6 +5749,430 @@ public com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder getServiceLatencyO return serviceLatencyBuilder_; } + private com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + queryGenerationDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfoOrBuilder> + queryGenerationDebugInfoBuilder_; + + /** + * + * + *
+     * Token usage metadata for query generation.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + * + * @return Whether the queryGenerationDebugInfo field is set. + */ + public boolean hasQueryGenerationDebugInfo() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Token usage metadata for query generation.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + * + * @return The queryGenerationDebugInfo. + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getQueryGenerationDebugInfo() { + if (queryGenerationDebugInfoBuilder_ == null) { + return queryGenerationDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance() + : queryGenerationDebugInfo_; + } else { + return queryGenerationDebugInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Token usage metadata for query generation.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + public Builder setQueryGenerationDebugInfo( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo value) { + if (queryGenerationDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryGenerationDebugInfo_ = value; + } else { + queryGenerationDebugInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Token usage metadata for query generation.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + public Builder setQueryGenerationDebugInfo( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder + builderForValue) { + if (queryGenerationDebugInfoBuilder_ == null) { + queryGenerationDebugInfo_ = builderForValue.build(); + } else { + queryGenerationDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Token usage metadata for query generation.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + public Builder mergeQueryGenerationDebugInfo( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo value) { + if (queryGenerationDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && queryGenerationDebugInfo_ != null + && queryGenerationDebugInfo_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance()) { + getQueryGenerationDebugInfoBuilder().mergeFrom(value); + } else { + queryGenerationDebugInfo_ = value; + } + } else { + queryGenerationDebugInfoBuilder_.mergeFrom(value); + } + if (queryGenerationDebugInfo_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Token usage metadata for query generation.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + public Builder clearQueryGenerationDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000040); + queryGenerationDebugInfo_ = null; + if (queryGenerationDebugInfoBuilder_ != null) { + queryGenerationDebugInfoBuilder_.dispose(); + queryGenerationDebugInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Token usage metadata for query generation.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder + getQueryGenerationDebugInfoBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetQueryGenerationDebugInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Token usage metadata for query generation.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfoOrBuilder + getQueryGenerationDebugInfoOrBuilder() { + if (queryGenerationDebugInfoBuilder_ != null) { + return queryGenerationDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return queryGenerationDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance() + : queryGenerationDebugInfo_; + } + } + + /** + * + * + *
+     * Token usage metadata for query generation.
+     * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfoOrBuilder> + internalGetQueryGenerationDebugInfoFieldBuilder() { + if (queryGenerationDebugInfoBuilder_ == null) { + queryGenerationDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfoOrBuilder>( + getQueryGenerationDebugInfo(), getParentForChildren(), isClean()); + queryGenerationDebugInfo_ = null; + } + return queryGenerationDebugInfoBuilder_; + } + + private com.google.protobuf.Struct cesDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + cesDebugInfoBuilder_; + + /** + * + * + *
+     * Debug information from CES runtime API.
+     * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + * + * @return Whether the cesDebugInfo field is set. + */ + public boolean hasCesDebugInfo() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Debug information from CES runtime API.
+     * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + * + * @return The cesDebugInfo. + */ + public com.google.protobuf.Struct getCesDebugInfo() { + if (cesDebugInfoBuilder_ == null) { + return cesDebugInfo_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : cesDebugInfo_; + } else { + return cesDebugInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Debug information from CES runtime API.
+     * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + */ + public Builder setCesDebugInfo(com.google.protobuf.Struct value) { + if (cesDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cesDebugInfo_ = value; + } else { + cesDebugInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Debug information from CES runtime API.
+     * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + */ + public Builder setCesDebugInfo(com.google.protobuf.Struct.Builder builderForValue) { + if (cesDebugInfoBuilder_ == null) { + cesDebugInfo_ = builderForValue.build(); + } else { + cesDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Debug information from CES runtime API.
+     * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + */ + public Builder mergeCesDebugInfo(com.google.protobuf.Struct value) { + if (cesDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && cesDebugInfo_ != null + && cesDebugInfo_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCesDebugInfoBuilder().mergeFrom(value); + } else { + cesDebugInfo_ = value; + } + } else { + cesDebugInfoBuilder_.mergeFrom(value); + } + if (cesDebugInfo_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Debug information from CES runtime API.
+     * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + */ + public Builder clearCesDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000080); + cesDebugInfo_ = null; + if (cesDebugInfoBuilder_ != null) { + cesDebugInfoBuilder_.dispose(); + cesDebugInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Debug information from CES runtime API.
+     * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + */ + public com.google.protobuf.Struct.Builder getCesDebugInfoBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetCesDebugInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Debug information from CES runtime API.
+     * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + */ + public com.google.protobuf.StructOrBuilder getCesDebugInfoOrBuilder() { + if (cesDebugInfoBuilder_ != null) { + return cesDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return cesDebugInfo_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : cesDebugInfo_; + } + } + + /** + * + * + *
+     * Debug information from CES runtime API.
+     * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetCesDebugInfoFieldBuilder() { + if (cesDebugInfoBuilder_ == null) { + cesDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCesDebugInfo(), getParentForChildren(), isClean()); + cesDebugInfo_ = null; + } + return cesDebugInfoBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfoOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfoOrBuilder.java index e98334a4f44f..2b5f83e94e69 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfoOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfoOrBuilder.java @@ -242,4 +242,86 @@ public interface KnowledgeAssistDebugInfoOrBuilder * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; */ com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder getServiceLatencyOrBuilder(); + + /** + * + * + *
+   * Token usage metadata for query generation.
+   * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + * + * @return Whether the queryGenerationDebugInfo field is set. + */ + boolean hasQueryGenerationDebugInfo(); + + /** + * + * + *
+   * Token usage metadata for query generation.
+   * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + * + * @return The queryGenerationDebugInfo. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getQueryGenerationDebugInfo(); + + /** + * + * + *
+   * Token usage metadata for query generation.
+   * 
+ * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfoOrBuilder + getQueryGenerationDebugInfoOrBuilder(); + + /** + * + * + *
+   * Debug information from CES runtime API.
+   * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + * + * @return Whether the cesDebugInfo field is set. + */ + boolean hasCesDebugInfo(); + + /** + * + * + *
+   * Debug information from CES runtime API.
+   * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + * + * @return The cesDebugInfo. + */ + com.google.protobuf.Struct getCesDebugInfo(); + + /** + * + * + *
+   * Debug information from CES runtime API.
+   * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + */ + com.google.protobuf.StructOrBuilder getCesDebugInfoOrBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java index c2d1514174fd..943b37e3c16b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java @@ -56,11 +56,12 @@ public enum OutputAudioEncoding implements com.google.protobuf.ProtocolMessageEn * * *
-   * MP3 audio at 32kbps.
+   * MP3 audio at 64kbps.
    * 
* - * OUTPUT_AUDIO_ENCODING_MP3 = 2; + * OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; */ + @java.lang.Deprecated OUTPUT_AUDIO_ENCODING_MP3(2), /** * @@ -145,12 +146,12 @@ public enum OutputAudioEncoding implements com.google.protobuf.ProtocolMessageEn * * *
-   * MP3 audio at 32kbps.
+   * MP3 audio at 64kbps.
    * 
* - * OUTPUT_AUDIO_ENCODING_MP3 = 2; + * OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; */ - public static final int OUTPUT_AUDIO_ENCODING_MP3_VALUE = 2; + @java.lang.Deprecated public static final int OUTPUT_AUDIO_ENCODING_MP3_VALUE = 2; /** * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Participant.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Participant.java index bf49c6763a85..83dd58c5f826 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Participant.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Participant.java @@ -702,9 +702,9 @@ public com.google.protobuf.ByteString getSipRecordingMediaLabelBytes() { * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -716,6 +716,11 @@ public com.google.protobuf.ByteString getSipRecordingMediaLabelBytes() { * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -758,9 +763,9 @@ public java.lang.String getObfuscatedExternalUserId() { * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -772,6 +777,11 @@ public java.lang.String getObfuscatedExternalUserId() { * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -1888,9 +1898,9 @@ public Builder setSipRecordingMediaLabelBytes(com.google.protobuf.ByteString val * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -1902,6 +1912,11 @@ public Builder setSipRecordingMediaLabelBytes(com.google.protobuf.ByteString val * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -1944,9 +1959,9 @@ public java.lang.String getObfuscatedExternalUserId() { * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -1958,6 +1973,11 @@ public java.lang.String getObfuscatedExternalUserId() { * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -2000,9 +2020,9 @@ public com.google.protobuf.ByteString getObfuscatedExternalUserIdBytes() { * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -2014,6 +2034,11 @@ public com.google.protobuf.ByteString getObfuscatedExternalUserIdBytes() { * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -2055,9 +2080,9 @@ public Builder setObfuscatedExternalUserId(java.lang.String value) { * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -2069,6 +2094,11 @@ public Builder setObfuscatedExternalUserId(java.lang.String value) { * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -2106,9 +2136,9 @@ public Builder clearObfuscatedExternalUserId() { * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -2120,6 +2150,11 @@ public Builder clearObfuscatedExternalUserId() { * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantOrBuilder.java index 15b853482f9e..648f26a1492c 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantOrBuilder.java @@ -134,9 +134,9 @@ public interface ParticipantOrBuilder * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -148,6 +148,11 @@ public interface ParticipantOrBuilder * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -179,9 +184,9 @@ public interface ParticipantOrBuilder * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -193,6 +198,11 @@ public interface ParticipantOrBuilder * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java index ec6904ff8ae5..309e1f2ceab7 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java @@ -224,6 +224,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -232,6 +236,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -248,6 +260,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -558,22 +574,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016latest_message\030\002 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\031\n" + "\014context_size\030\003 \001(\005B\003\340A\001\022%\n" - + "\030previous_suggested_query\030\004 \001(\tB\003\340A\001\"\247\001\n" + + "\030previous_suggested_query\030\004 \001(\tB\003\340A\001\"\253\002\n" + "\036SuggestKnowledgeAssistResponse\022W\n" + "\027knowledge_assist_answer\030\001" + " \001(\01321.google.cloud.dialogflow.v2.KnowledgeAssistAnswerB\003\340A\003\022\026\n" + "\016latest_message\030\002 \001(\t\022\024\n" - + "\014context_size\030\003 \001(\005\"\271\005\n" + + "\014context_size\030\003 \001(\005\022\201\001\n" + + "\"additional_suggested_query_results\030\004 \003(\0132P." + + "google.cloud.dialogflow.v2.KnowledgeAssi" + + "stAnswer.AdditionalSuggestedQueryResultB\003\340A\001\"\271\005\n" + "!IngestedContextReferenceDebugInfo\022\037\n" + "\027project_not_allowlisted\030\001 \001(\010\022#\n" + "\033context_reference_retrieved\030\002 \001(\010\022\200\001\n" - + "\036ingested_parameters_debug_info\030\003 \003(\0132X.google.cloud.dia" - + "logflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo\032\312\003\n" + + "\036ingested_parameters_debug_info\030\003 \003(\0132X.goog" + + "le.cloud.dialogflow.v2.IngestedContextRe" + + "ferenceDebugInfo.IngestedParameterDebugInfo\032\312\003\n" + "\032IngestedParameterDebugInfo\022\021\n" + "\tparameter\030\001 \001(\t\022\202\001\n" - + "\020ingestion_status\030\002 \001(\0162h.google.cl" - + "oud.dialogflow.v2.IngestedContextReferen" - + "ceDebugInfo.IngestedParameterDebugInfo.IngestionStatus\"\223\002\n" + + "\020ingestion_status\030\002 \001(\0162h.google.cloud.dialogflow.v2.IngestedCo" + + "ntextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus\"\223\002\n" + "\017IngestionStatus\022 \n" + "\034INGESTION_STATUS_UNSPECIFIED\020\000\022\036\n" + "\032INGESTION_STATUS_SUCCEEDED\020\001\022*\n" @@ -583,27 +602,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037INGESTION_STATUS_INVALID_FORMAT\020\005\022&\n" + "\"INGESTION_STATUS_LANGUAGE_MISMATCH\020\006\"\227\002\n" + "\016ServiceLatency\022e\n" - + "\032internal_service_latencies\030\001 \003(\0132A.google.clo" - + "ud.dialogflow.v2.ServiceLatency.InternalServiceLatency\032\235\001\n" + + "\032internal_service_latencies\030\001 \003(\0132" + + "A.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency\032\235\001\n" + "\026InternalServiceLatency\022\014\n" + "\004step\030\001 \001(\t\022\022\n\n" + "latency_ms\030\002 \001(\002\022.\n\n" + "start_time\030\003 \001(\0132\032.google.protobuf.Timestamp\0221\n\r" - + "complete_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\364\017\n" + + "complete_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\214\022\n" + "\030KnowledgeAssistDebugInfo\022z\n" - + "\037query_generation_failure_reason\030\001" - + " \001(\0162Q.google.cloud.dialogflow.v2.Knowle" - + "dgeAssistDebugInfo.QueryGenerationFailureReason\022\202\001\n" - + "#query_categorization_failure_reason\030\002 \001(\0162U.google.cloud.dialogflow." - + "v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason\022V\n" - + "\031datastore_response_reason\030\003" - + " \001(\01623.google.cloud.dialogflow.v2.DatastoreResponseReason\022o\n" - + "\031knowledge_assist_behavior\030\004 \001(\0132L.google.cloud.d" - + "ialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior\022l\n" - + "%ingested_context_reference_debug_info\030\005 \001(\0132=.google.cl" - + "oud.dialogflow.v2.IngestedContextReferenceDebugInfo\022C\n" - + "\017service_latency\030\006 \001(\0132*.g" - + "oogle.cloud.dialogflow.v2.ServiceLatency\032\271\005\n" + + "\037query_generation_failure_reason\030\001 \001(\0162Q.google.cloud.dialogfl" + + "ow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason\022\202\001\n" + + "#query_categorization_failure_reason\030\002 \001(\0162U.google.cloud" + + ".dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason\022V\n" + + "\031datastore_response_reason\030\003 \001(\01623.google.clo" + + "ud.dialogflow.v2.DatastoreResponseReason\022o\n" + + "\031knowledge_assist_behavior\030\004 \001(\0132L.go" + + "ogle.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior\022l\n" + + "%ingested_context_reference_debug_info\030\005 \001(\013" + + "2=.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo\022C\n" + + "\017service_latency\030\006" + + " \001(\0132*.google.cloud.dialogflow.v2.ServiceLatency\022r\n" + + "\033query_generation_debug_info\030\007 \001(\0132M.google.cloud.dialogflow.v2.K" + + "nowledgeAssistDebugInfo.QueryGenerationDebugInfo\022/\n" + + "\016ces_debug_info\030\010 \001(\0132\027.google.protobuf.Struct\032\271\005\n" + "\027KnowledgeAssistBehavior\022%\n" + "\035answer_generation_rewriter_on\030\001 \001(\010\022\"\n" + "\032end_user_metadata_included\030\002 \001(\010\022\031\n" @@ -623,7 +644,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036query_contained_search_context\030\017 \001(\010\022.\n" + "&invalid_items_query_suggestion_skipped\030\020 \001(\010\022+\n" + "#primary_query_redacted_and_replaced\030\021 \001(\010\022%\n" - + "\035appended_search_context_count\030\022 \001(\005\"\317\003\n" + + "\035appended_search_context_count\030\022 \001(\005\032q\n" + + "\030QueryGenerationDebugInfo\022\032\n" + + "\022prompt_token_count\030\001 \001(\005\022\036\n" + + "\026candidates_token_count\030\002 \001(\005\022\031\n" + + "\021total_token_count\030\003 \001(\005\"\317\003\n" + "\034QueryGenerationFailureReason\022/\n" + "+QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED\020\000\022!\n" + "\035QUERY_GENERATION_OUT_OF_QUOTA\020\001\022\033\n" @@ -642,33 +667,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED\020\000\022\'\n" + "#QUERY_CATEGORIZATION_INVALID_CONFIG\020\001\022)\n" + "%QUERY_CATEGORIZATION_RESULT_NOT_FOUND\020\002\022\037\n" - + "\033QUERY_CATEGORIZATION_FAILED\020\003\"\366\006\n" + + "\033QUERY_CATEGORIZATION_FAILED\020\003\"\301\014\n" + "\025KnowledgeAssistAnswer\022Y\n" - + "\017suggested_query\030\001 \001(\0132@.google.cloud." - + "dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery\022a\n" - + "\026suggested_query_answer\030\002 \001" - + "(\0132A.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" + + "\017suggested_query\030\001 \001(\0132@.g" + + "oogle.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery\022a\n" + + "\026suggested_query_answer\030\002 \001(\0132A.google.cloud.dialogflow" + + ".v2.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" + "answer_record\030\003 \001(\t\022Y\n" + "\033knowledge_assist_debug_info\030\007" - + " \001(\01324.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo\032$\n" + + " \001(\01324.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo\032\311\001\n" + "\016SuggestedQuery\022\022\n\n" - + "query_text\030\001 \001(\t\032\206\004\n" + + "query_text\030\001 \001(\t\022l\n" + + "\017search_contexts\030\004 \003(\0132N.google.cloud.dialo" + + "gflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContextB\003\340A\001\0325\n\r" + + "SearchContext\022\020\n" + + "\003key\030\001 \001(\tB\003\340A\001\022\022\n" + + "\005value\030\002 \001(\tB\003\340A\001\032\307\001\n" + + "\036AdditionalSuggestedQueryResult\022^\n" + + "\017suggested_query\030\001 \001(\0132@.google.cloud.dialo" + + "gflow.v2.KnowledgeAssistAnswer.SuggestedQueryB\003\340A\003\022E\n\r" + + "answer_record\030\005 \001(\tB.\340A\003\372A(\n" + + "&dialogflow.googleapis.com/AnswerRecord\032\341\006\n" + "\017KnowledgeAnswer\022\023\n" + "\013answer_text\030\001 \001(\t\022a\n\n" - + "faq_source\030\003 \001(\0132K.google.cloud.dialogflow.v2.Knowledg" - + "eAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022o\n" - + "\021generative_source\030\004 \001(\0132R.google.cl" - + "oud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\032\035\n" + + "faq_source\030\003 \001(\0132K.google.cloud.di" + + "alogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022o\n" + + "\021generative_source\030\004 \001(\0132R.google.cloud.dialogflow.v2.Kn" + + "owledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\022m\n" + + "\017playbook_source\030\007 \001(\0132R.google.cloud.dialogflow.v2.KnowledgeAs" + + "sistAnswer.KnowledgeAnswer.GenerativeSourceH\000\022e\n" + + "\014event_source\030\010 \001(\0132M.google.clo" + + "ud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSourceH\000\032\035\n" + "\tFaqSource\022\020\n" + "\010question\030\002 \001(\t\032\340\001\n" + "\020GenerativeSource\022l\n" - + "\010snippets\030\001 \003(\0132Z.google.cloud." - + "dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + + "\010snippets\030\001 \003(\0132Z.google.cloud.dialog" + + "flow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + "\007Snippet\022\013\n" + "\003uri\030\002 \001(\t\022\014\n" + "\004text\030\003 \001(\t\022\r\n" + "\005title\030\004 \001(\t\022)\n" - + "\010metadata\030\005 \001(\0132\027.google.protobuf.StructB\010\n" + + "\010metadata\030\005 \001(\0132\027.google.protobuf.Struct\032\202\001\n" + + "\013EventSource\022\r\n" + + "\005event\030\001 \001(\t\022d\n" + + "\010snippets\030\002 \001(\0132R.google.cloud.dialogflo" + + "w.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceB\010\n" + "\006source*\326\002\n" + "\027DatastoreResponseReason\022)\n" + "%DATASTORE_RESPONSE_REASON_UNSPECIFIED\020\000\022\010\n" @@ -682,82 +725,88 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034ANSWER_GENERATION_RAI_FAILED\020\010\022\"\n" + "\036ANSWER_GENERATION_NOT_GROUNDED\020\t2\372\030\n" + "\014Participants\022\245\002\n" - + "\021CreateParticipant\0224.google.cloud.dialogflow.v2.Crea" - + "teParticipantRequest\032\'.google.cloud.dial" - + "ogflow.v2.Participant\"\260\001\332A\022parent,partic" - + "ipant\202\323\344\223\002\224\001\"4/v2/{parent=projects/*/con" - + "versations/*}/participants:\013participantZO\"@/v2/{parent=projects/*/locations/*/co" - + "nversations/*}/participants:\013participant\022\366\001\n" - + "\016GetParticipant\0221.google.cloud.dialogflow.v2.GetParticipantRequest\032\'.google." - + "cloud.dialogflow.v2.Participant\"\207\001\332A\004nam" - + "e\202\323\344\223\002z\0224/v2/{name=projects/*/conversati" - + "ons/*/participants/*}ZB\022@/v2/{name=proje" - + "cts/*/locations/*/conversations/*/participants/*}\022\211\002\n" - + "\020ListParticipants\0223.google.cloud.dialogflow.v2.ListParticipantsRequ" - + "est\0324.google.cloud.dialogflow.v2.ListPar" - + "ticipantsResponse\"\211\001\332A\006parent\202\323\344\223\002z\0224/v2" - + "/{parent=projects/*/conversations/*}/participantsZB\022@/v2/{parent=projects/*/loca" - + "tions/*/conversations/*}/participants\022\302\002\n" - + "\021UpdateParticipant\0224.google.cloud.dialo" - + "gflow.v2.UpdateParticipantRequest\032\'.goog" - + "le.cloud.dialogflow.v2.Participant\"\315\001\332A\027" - + "participant,update_mask\202\323\344\223\002\254\0012@/v2/{par" - + "ticipant.name=projects/*/conversations/*/participants/*}:\013participantZ[2L/v2/{pa" - + "rticipant.name=projects/*/locations/*/co" - + "nversations/*/participants/*}:\013participant\022\372\002\n" - + "\016AnalyzeContent\0221.google.cloud.dialogflow.v2.AnalyzeContentRequest\0322.googl" - + "e.cloud.dialogflow.v2.AnalyzeContentResp" - + "onse\"\200\002\332A\026participant,text_input\332A\027parti" - + "cipant,event_input\332A\027participant,audio_i" - + "nput\202\323\344\223\002\254\001\"J/v2/{participant=projects/*" - + "/conversations/*/participants/*}:analyzeContent:\001*Z[\"V/v2/{participant=projects/" - + "*/locations/*/conversations/*/participants/*}:analyzeContent:\001*\022\230\001\n" - + "\027StreamingAnalyzeContent\022:.google.cloud.dialogflow.v2", - ".StreamingAnalyzeContentRequest\032;.google" - + ".cloud.dialogflow.v2.StreamingAnalyzeCon" - + "tentResponse\"\000(\0010\001\022\311\002\n\017SuggestArticles\0222" - + ".google.cloud.dialogflow.v2.SuggestArtic" - + "lesRequest\0323.google.cloud.dialogflow.v2." - + "SuggestArticlesResponse\"\314\001\332A\006parent\202\323\344\223\002" - + "\274\001\"R/v2/{parent=projects/*/conversations" - + "/*/participants/*}/suggestions:suggestAr" - + "ticles:\001*Zc\"^/v2/{parent=projects/*/loca" - + "tions/*/conversations/*/participants/*}/" - + "suggestions:suggestArticles:\001*\022\323\002\n\021Sugge" - + "stFaqAnswers\0224.google.cloud.dialogflow.v" - + "2.SuggestFaqAnswersRequest\0325.google.clou" - + "d.dialogflow.v2.SuggestFaqAnswersRespons" - + "e\"\320\001\332A\006parent\202\323\344\223\002\300\001\"T/v2/{parent=projec" - + "ts/*/conversations/*/participants/*}/sug" - + "gestions:suggestFaqAnswers:\001*Ze\"`/v2/{pa" - + "rent=projects/*/locations/*/conversation" - + "s/*/participants/*}/suggestions:suggestF" - + "aqAnswers:\001*\022\335\002\n\023SuggestSmartReplies\0226.g" - + "oogle.cloud.dialogflow.v2.SuggestSmartRe" - + "pliesRequest\0327.google.cloud.dialogflow.v" - + "2.SuggestSmartRepliesResponse\"\324\001\332A\006paren" - + "t\202\323\344\223\002\304\001\"V/v2/{parent=projects/*/convers" - + "ations/*/participants/*}/suggestions:sug" - + "gestSmartReplies:\001*Zg\"b/v2/{parent=proje" - + "cts/*/locations/*/conversations/*/partic" - + "ipants/*}/suggestions:suggestSmartReplie" - + "s:\001*\022\343\002\n\026SuggestKnowledgeAssist\0229.google" - + ".cloud.dialogflow.v2.SuggestKnowledgeAss" - + "istRequest\032:.google.cloud.dialogflow.v2." - + "SuggestKnowledgeAssistResponse\"\321\001\202\323\344\223\002\312\001" - + "\"Y/v2/{parent=projects/*/conversations/*" - + "/participants/*}/suggestions:suggestKnow" - + "ledgeAssist:\001*Zj\"e/v2/{parent=projects/*" - + "/locations/*/conversations/*/participant" - + "s/*}/suggestions:suggestKnowledgeAssist:" - + "\001*\032x\312A\031dialogflow.googleapis.com\322AYhttps" - + "://www.googleapis.com/auth/cloud-platfor" - + "m,https://www.googleapis.com/auth/dialog" - + "flowB\226\001\n\036com.google.cloud.dialogflow.v2B" - + "\020ParticipantProtoP\001Z>cloud.google.com/go" - + "/dialogflow/apiv2/dialogflowpb;dialogflo" - + "wpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2b\006p" - + "roto3" + + "\021CreateParticipant\0224.google.cloud.dialogflow." + + "v2.CreateParticipantRequest\032\'.google.clo" + + "ud.dialogflow.v2.Participant\"\260\001\332A\022parent" + + ",participant\202\323\344\223\002\224\001\"4/v2/{parent=project" + + "s/*/conversations/*}/participants:\013participantZO\"@/v2/{parent=projects/*/locatio" + + "ns/*/conversations/*}/participants:\013participant\022\366\001\n" + + "\016GetParticipant\0221.google.cloud.dialogflow.v2.GetParticipantRequest\032\'." + + "google.cloud.dialogflow.v2.Participant\"\207" + + "\001\332A\004name\202\323\344\223\002z\0224/v2/{name=projects/*/con", + "versations/*/participants/*}ZB\022@/v2/{nam" + + "e=projects/*/locations/*/conversations/*" + + "/participants/*}\022\211\002\n\020ListParticipants\0223." + + "google.cloud.dialogflow.v2.ListParticipa" + + "ntsRequest\0324.google.cloud.dialogflow.v2." + + "ListParticipantsResponse\"\211\001\332A\006parent\202\323\344\223" + + "\002z\0224/v2/{parent=projects/*/conversations" + + "/*}/participantsZB\022@/v2/{parent=projects" + + "/*/locations/*/conversations/*}/particip" + + "ants\022\302\002\n\021UpdateParticipant\0224.google.clou" + + "d.dialogflow.v2.UpdateParticipantRequest" + + "\032\'.google.cloud.dialogflow.v2.Participan" + + "t\"\315\001\332A\027participant,update_mask\202\323\344\223\002\254\0012@/" + + "v2/{participant.name=projects/*/conversa" + + "tions/*/participants/*}:\013participantZ[2L" + + "/v2/{participant.name=projects/*/locatio" + + "ns/*/conversations/*/participants/*}:\013pa" + + "rticipant\022\372\002\n\016AnalyzeContent\0221.google.cl" + + "oud.dialogflow.v2.AnalyzeContentRequest\032" + + "2.google.cloud.dialogflow.v2.AnalyzeCont" + + "entResponse\"\200\002\332A\026participant,text_input\332" + + "A\027participant,event_input\332A\027participant," + + "audio_input\202\323\344\223\002\254\001\"J/v2/{participant=pro" + + "jects/*/conversations/*/participants/*}:" + + "analyzeContent:\001*Z[\"V/v2/{participant=pr" + + "ojects/*/locations/*/conversations/*/par" + + "ticipants/*}:analyzeContent:\001*\022\230\001\n\027Strea" + + "mingAnalyzeContent\022:.google.cloud.dialog" + + "flow.v2.StreamingAnalyzeContentRequest\032;" + + ".google.cloud.dialogflow.v2.StreamingAna" + + "lyzeContentResponse\"\000(\0010\001\022\311\002\n\017SuggestArt" + + "icles\0222.google.cloud.dialogflow.v2.Sugge" + + "stArticlesRequest\0323.google.cloud.dialogf" + + "low.v2.SuggestArticlesResponse\"\314\001\332A\006pare" + + "nt\202\323\344\223\002\274\001\"R/v2/{parent=projects/*/conver" + + "sations/*/participants/*}/suggestions:su" + + "ggestArticles:\001*Zc\"^/v2/{parent=projects" + + "/*/locations/*/conversations/*/participa" + + "nts/*}/suggestions:suggestArticles:\001*\022\323\002" + + "\n\021SuggestFaqAnswers\0224.google.cloud.dialo" + + "gflow.v2.SuggestFaqAnswersRequest\0325.goog" + + "le.cloud.dialogflow.v2.SuggestFaqAnswers" + + "Response\"\320\001\332A\006parent\202\323\344\223\002\300\001\"T/v2/{parent" + + "=projects/*/conversations/*/participants" + + "/*}/suggestions:suggestFaqAnswers:\001*Ze\"`" + + "/v2/{parent=projects/*/locations/*/conve" + + "rsations/*/participants/*}/suggestions:s" + + "uggestFaqAnswers:\001*\022\335\002\n\023SuggestSmartRepl" + + "ies\0226.google.cloud.dialogflow.v2.Suggest" + + "SmartRepliesRequest\0327.google.cloud.dialo" + + "gflow.v2.SuggestSmartRepliesResponse\"\324\001\332" + + "A\006parent\202\323\344\223\002\304\001\"V/v2/{parent=projects/*/" + + "conversations/*/participants/*}/suggesti" + + "ons:suggestSmartReplies:\001*Zg\"b/v2/{paren" + + "t=projects/*/locations/*/conversations/*" + + "/participants/*}/suggestions:suggestSmar" + + "tReplies:\001*\022\343\002\n\026SuggestKnowledgeAssist\0229" + + ".google.cloud.dialogflow.v2.SuggestKnowl" + + "edgeAssistRequest\032:.google.cloud.dialogf" + + "low.v2.SuggestKnowledgeAssistResponse\"\321\001" + + "\202\323\344\223\002\312\001\"Y/v2/{parent=projects/*/conversa" + + "tions/*/participants/*}/suggestions:sugg" + + "estKnowledgeAssist:\001*Zj\"e/v2/{parent=pro" + + "jects/*/locations/*/conversations/*/part" + + "icipants/*}/suggestions:suggestKnowledge" + + "Assist:\001*\032x\312A\031dialogflow.googleapis.com\322" + + "AYhttps://www.googleapis.com/auth/cloud-" + + "platform,https://www.googleapis.com/auth" + + "/dialogflowB\226\001\n\036com.google.cloud.dialogf" + + "low.v2B\020ParticipantProtoP\001Z>cloud.google" + + ".com/go/dialogflow/apiv2/dialogflowpb;di" + + "alogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflo" + + "w.V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1157,7 +1206,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SuggestKnowledgeAssistResponse_descriptor, new java.lang.String[] { - "KnowledgeAssistAnswer", "LatestMessage", "ContextSize", + "KnowledgeAssistAnswer", + "LatestMessage", + "ContextSize", + "AdditionalSuggestedQueryResults", }); internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_descriptor = getDescriptor().getMessageType(35); @@ -1204,6 +1256,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "KnowledgeAssistBehavior", "IngestedContextReferenceDebugInfo", "ServiceLatency", + "QueryGenerationDebugInfo", + "CesDebugInfo", }); internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor = internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_descriptor @@ -1230,6 +1284,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrimaryQueryRedactedAndReplaced", "AppendedSearchContextCount", }); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor = + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_descriptor + .getNestedType(1); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor, + new java.lang.String[] { + "PromptTokenCount", "CandidatesTokenCount", "TotalTokenCount", + }); internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_descriptor = getDescriptor().getMessageType(38); internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_fieldAccessorTable = @@ -1245,16 +1308,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_descriptor, new java.lang.String[] { - "QueryText", + "QueryText", "SearchContexts", }); - internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor = + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor = + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_descriptor + .getNestedType(0); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor = internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_descriptor.getNestedType( 1); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor, + new java.lang.String[] { + "SuggestedQuery", "AnswerRecord", + }); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor = + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_descriptor.getNestedType( + 2); internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor, new java.lang.String[] { - "AnswerText", "FaqSource", "GenerativeSource", "Source", + "AnswerText", + "FaqSource", + "GenerativeSource", + "PlaybookSource", + "EventSource", + "Source", }); internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor = internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor @@ -1283,6 +1369,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Uri", "Text", "Title", "Metadata", }); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor = + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor + .getNestedType(2); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor, + new java.lang.String[] { + "Event", "Snippets", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeAnswer.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeAnswer.java index 7687991945c7..e6c439ccfcf1 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeAnswer.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeAnswer.java @@ -123,6 +123,26 @@ public enum AnswerType implements com.google.protobuf.ProtocolMessageEnum { * INTENT = 3; */ INTENT(3), + /** + * + * + *
+     * The answer is from Playbook.
+     * 
+ * + * PLAYBOOK = 4; + */ + PLAYBOOK(4), + /** + * + * + *
+     * The answer is from event.
+     * 
+ * + * EVENT = 5; + */ + EVENT(5), UNRECOGNIZED(-1), ; @@ -180,6 +200,28 @@ public enum AnswerType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INTENT_VALUE = 3; + /** + * + * + *
+     * The answer is from Playbook.
+     * 
+ * + * PLAYBOOK = 4; + */ + public static final int PLAYBOOK_VALUE = 4; + + /** + * + * + *
+     * The answer is from event.
+     * 
+ * + * EVENT = 5; + */ + public static final int EVENT_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -212,6 +254,10 @@ public static AnswerType forNumber(int value) { return GENERATIVE; case 3: return INTENT; + case 4: + return PLAYBOOK; + case 5: + return EVENT; default: return null; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SipConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SipConfig.java new file mode 100644 index 000000000000..d53b779289e2 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SipConfig.java @@ -0,0 +1,1536 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/conversation_profile.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +/** + * + * + *
+ * Defines the SIP configuration.
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.SipConfig} + */ +@com.google.protobuf.Generated +public final class SipConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.SipConfig) + SipConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SipConfig"); + } + + // Use SipConfig.newBuilder() to construct. + private SipConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SipConfig() { + copyInboundCallLegHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2_SipConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2_SipConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.SipConfig.class, + com.google.cloud.dialogflow.v2.SipConfig.Builder.class); + } + + private int bitField0_; + public static final int CREATE_CONVERSATION_ON_THE_FLY_FIELD_NUMBER = 1; + private boolean createConversationOnTheFly_ = false; + + /** + * + * + *
+   * Asks Dialogflow Telephony to create the conversation provided in the SIP
+   * header on the fly when the call comes in.
+   * 
+ * + * bool create_conversation_on_the_fly = 1; + * + * @return The createConversationOnTheFly. + */ + @java.lang.Override + public boolean getCreateConversationOnTheFly() { + return createConversationOnTheFly_; + } + + public static final int INACTIVE_START_FIELD_NUMBER = 3; + private boolean inactiveStart_ = false; + + /** + * + * + *
+   * Starts the conversation with inactive SDP directives
+   * 
+ * + * bool inactive_start = 3; + * + * @return The inactiveStart. + */ + @java.lang.Override + public boolean getInactiveStart() { + return inactiveStart_; + } + + public static final int MAX_AUDIO_RECORDING_DURATION_FIELD_NUMBER = 4; + private com.google.protobuf.Duration maxAudioRecordingDuration_; + + /** + * + * + *
+   * Max duration for audio recording.
+   * Overrides the default value of 15 min.
+   * Max value is 8 hours.
+   * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return Whether the maxAudioRecordingDuration field is set. + */ + @java.lang.Override + public boolean hasMaxAudioRecordingDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Max duration for audio recording.
+   * Overrides the default value of 15 min.
+   * Max value is 8 hours.
+   * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return The maxAudioRecordingDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getMaxAudioRecordingDuration() { + return maxAudioRecordingDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxAudioRecordingDuration_; + } + + /** + * + * + *
+   * Max duration for audio recording.
+   * Overrides the default value of 15 min.
+   * Max value is 8 hours.
+   * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getMaxAudioRecordingDurationOrBuilder() { + return maxAudioRecordingDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxAudioRecordingDuration_; + } + + public static final int ALLOW_VIRTUAL_AGENT_INTERACTION_FIELD_NUMBER = 5; + private boolean allowVirtualAgentInteraction_ = false; + + /** + * + * + *
+   * Allows interactions with a Dialogflow virtual agent even if the call is
+   * connected for SIPREC purposes.
+   * 
+ * + * bool allow_virtual_agent_interaction = 5; + * + * @return The allowVirtualAgentInteraction. + */ + @java.lang.Override + public boolean getAllowVirtualAgentInteraction() { + return allowVirtualAgentInteraction_; + } + + public static final int KEEP_CONVERSATION_RUNNING_FIELD_NUMBER = 6; + private boolean keepConversationRunning_ = false; + + /** + * + * + *
+   * Keeps the conversation running even if the call is disconnected.
+   * 
+ * + * bool keep_conversation_running = 6; + * + * @return The keepConversationRunning. + */ + @java.lang.Override + public boolean getKeepConversationRunning() { + return keepConversationRunning_; + } + + public static final int COPY_INBOUND_CALL_LEG_HEADERS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList copyInboundCallLegHeaders_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * List of inbound call leg headers to be copied to outbound call legs created
+   * later.
+   * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return A list containing the copyInboundCallLegHeaders. + */ + public com.google.protobuf.ProtocolStringList getCopyInboundCallLegHeadersList() { + return copyInboundCallLegHeaders_; + } + + /** + * + * + *
+   * List of inbound call leg headers to be copied to outbound call legs created
+   * later.
+   * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return The count of copyInboundCallLegHeaders. + */ + public int getCopyInboundCallLegHeadersCount() { + return copyInboundCallLegHeaders_.size(); + } + + /** + * + * + *
+   * List of inbound call leg headers to be copied to outbound call legs created
+   * later.
+   * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the element to return. + * @return The copyInboundCallLegHeaders at the given index. + */ + public java.lang.String getCopyInboundCallLegHeaders(int index) { + return copyInboundCallLegHeaders_.get(index); + } + + /** + * + * + *
+   * List of inbound call leg headers to be copied to outbound call legs created
+   * later.
+   * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the value to return. + * @return The bytes of the copyInboundCallLegHeaders at the given index. + */ + public com.google.protobuf.ByteString getCopyInboundCallLegHeadersBytes(int index) { + return copyInboundCallLegHeaders_.getByteString(index); + } + + public static final int IGNORE_REINVITE_MEDIA_DIRECTION_FIELD_NUMBER = 9; + private boolean ignoreReinviteMediaDirection_ = false; + + /** + * + * + *
+   * Ignores any media direction in the reINVITE SDP offer. Reuse the previous
+   * media direction.
+   * 
+ * + * bool ignore_reinvite_media_direction = 9; + * + * @return The ignoreReinviteMediaDirection. + */ + @java.lang.Override + public boolean getIgnoreReinviteMediaDirection() { + return ignoreReinviteMediaDirection_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (createConversationOnTheFly_ != false) { + output.writeBool(1, createConversationOnTheFly_); + } + if (inactiveStart_ != false) { + output.writeBool(3, inactiveStart_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getMaxAudioRecordingDuration()); + } + if (allowVirtualAgentInteraction_ != false) { + output.writeBool(5, allowVirtualAgentInteraction_); + } + if (keepConversationRunning_ != false) { + output.writeBool(6, keepConversationRunning_); + } + for (int i = 0; i < copyInboundCallLegHeaders_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 8, copyInboundCallLegHeaders_.getRaw(i)); + } + if (ignoreReinviteMediaDirection_ != false) { + output.writeBool(9, ignoreReinviteMediaDirection_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createConversationOnTheFly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, createConversationOnTheFly_); + } + if (inactiveStart_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, inactiveStart_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getMaxAudioRecordingDuration()); + } + if (allowVirtualAgentInteraction_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(5, allowVirtualAgentInteraction_); + } + if (keepConversationRunning_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, keepConversationRunning_); + } + { + int dataSize = 0; + for (int i = 0; i < copyInboundCallLegHeaders_.size(); i++) { + dataSize += computeStringSizeNoTag(copyInboundCallLegHeaders_.getRaw(i)); + } + size += dataSize; + size += 1 * getCopyInboundCallLegHeadersList().size(); + } + if (ignoreReinviteMediaDirection_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(9, ignoreReinviteMediaDirection_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2.SipConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.SipConfig other = (com.google.cloud.dialogflow.v2.SipConfig) obj; + + if (getCreateConversationOnTheFly() != other.getCreateConversationOnTheFly()) return false; + if (getInactiveStart() != other.getInactiveStart()) return false; + if (hasMaxAudioRecordingDuration() != other.hasMaxAudioRecordingDuration()) return false; + if (hasMaxAudioRecordingDuration()) { + if (!getMaxAudioRecordingDuration().equals(other.getMaxAudioRecordingDuration())) + return false; + } + if (getAllowVirtualAgentInteraction() != other.getAllowVirtualAgentInteraction()) return false; + if (getKeepConversationRunning() != other.getKeepConversationRunning()) return false; + if (!getCopyInboundCallLegHeadersList().equals(other.getCopyInboundCallLegHeadersList())) + return false; + if (getIgnoreReinviteMediaDirection() != other.getIgnoreReinviteMediaDirection()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CREATE_CONVERSATION_ON_THE_FLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCreateConversationOnTheFly()); + hash = (37 * hash) + INACTIVE_START_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInactiveStart()); + if (hasMaxAudioRecordingDuration()) { + hash = (37 * hash) + MAX_AUDIO_RECORDING_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getMaxAudioRecordingDuration().hashCode(); + } + hash = (37 * hash) + ALLOW_VIRTUAL_AGENT_INTERACTION_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowVirtualAgentInteraction()); + hash = (37 * hash) + KEEP_CONVERSATION_RUNNING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeepConversationRunning()); + if (getCopyInboundCallLegHeadersCount() > 0) { + hash = (37 * hash) + COPY_INBOUND_CALL_LEG_HEADERS_FIELD_NUMBER; + hash = (53 * hash) + getCopyInboundCallLegHeadersList().hashCode(); + } + hash = (37 * hash) + IGNORE_REINVITE_MEDIA_DIRECTION_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreReinviteMediaDirection()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2.SipConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Defines the SIP configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2.SipConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.SipConfig) + com.google.cloud.dialogflow.v2.SipConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2_SipConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2_SipConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.SipConfig.class, + com.google.cloud.dialogflow.v2.SipConfig.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.SipConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMaxAudioRecordingDurationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createConversationOnTheFly_ = false; + inactiveStart_ = false; + maxAudioRecordingDuration_ = null; + if (maxAudioRecordingDurationBuilder_ != null) { + maxAudioRecordingDurationBuilder_.dispose(); + maxAudioRecordingDurationBuilder_ = null; + } + allowVirtualAgentInteraction_ = false; + keepConversationRunning_ = false; + copyInboundCallLegHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + ignoreReinviteMediaDirection_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2_SipConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SipConfig getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.SipConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SipConfig build() { + com.google.cloud.dialogflow.v2.SipConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SipConfig buildPartial() { + com.google.cloud.dialogflow.v2.SipConfig result = + new com.google.cloud.dialogflow.v2.SipConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2.SipConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createConversationOnTheFly_ = createConversationOnTheFly_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inactiveStart_ = inactiveStart_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxAudioRecordingDuration_ = + maxAudioRecordingDurationBuilder_ == null + ? maxAudioRecordingDuration_ + : maxAudioRecordingDurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.allowVirtualAgentInteraction_ = allowVirtualAgentInteraction_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.keepConversationRunning_ = keepConversationRunning_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + copyInboundCallLegHeaders_.makeImmutable(); + result.copyInboundCallLegHeaders_ = copyInboundCallLegHeaders_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.ignoreReinviteMediaDirection_ = ignoreReinviteMediaDirection_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.SipConfig) { + return mergeFrom((com.google.cloud.dialogflow.v2.SipConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2.SipConfig other) { + if (other == com.google.cloud.dialogflow.v2.SipConfig.getDefaultInstance()) return this; + if (other.getCreateConversationOnTheFly() != false) { + setCreateConversationOnTheFly(other.getCreateConversationOnTheFly()); + } + if (other.getInactiveStart() != false) { + setInactiveStart(other.getInactiveStart()); + } + if (other.hasMaxAudioRecordingDuration()) { + mergeMaxAudioRecordingDuration(other.getMaxAudioRecordingDuration()); + } + if (other.getAllowVirtualAgentInteraction() != false) { + setAllowVirtualAgentInteraction(other.getAllowVirtualAgentInteraction()); + } + if (other.getKeepConversationRunning() != false) { + setKeepConversationRunning(other.getKeepConversationRunning()); + } + if (!other.copyInboundCallLegHeaders_.isEmpty()) { + if (copyInboundCallLegHeaders_.isEmpty()) { + copyInboundCallLegHeaders_ = other.copyInboundCallLegHeaders_; + bitField0_ |= 0x00000020; + } else { + ensureCopyInboundCallLegHeadersIsMutable(); + copyInboundCallLegHeaders_.addAll(other.copyInboundCallLegHeaders_); + } + onChanged(); + } + if (other.getIgnoreReinviteMediaDirection() != false) { + setIgnoreReinviteMediaDirection(other.getIgnoreReinviteMediaDirection()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + createConversationOnTheFly_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 24: + { + inactiveStart_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetMaxAudioRecordingDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 40: + { + allowVirtualAgentInteraction_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: + { + keepConversationRunning_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCopyInboundCallLegHeadersIsMutable(); + copyInboundCallLegHeaders_.add(s); + break; + } // case 66 + case 72: + { + ignoreReinviteMediaDirection_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean createConversationOnTheFly_; + + /** + * + * + *
+     * Asks Dialogflow Telephony to create the conversation provided in the SIP
+     * header on the fly when the call comes in.
+     * 
+ * + * bool create_conversation_on_the_fly = 1; + * + * @return The createConversationOnTheFly. + */ + @java.lang.Override + public boolean getCreateConversationOnTheFly() { + return createConversationOnTheFly_; + } + + /** + * + * + *
+     * Asks Dialogflow Telephony to create the conversation provided in the SIP
+     * header on the fly when the call comes in.
+     * 
+ * + * bool create_conversation_on_the_fly = 1; + * + * @param value The createConversationOnTheFly to set. + * @return This builder for chaining. + */ + public Builder setCreateConversationOnTheFly(boolean value) { + + createConversationOnTheFly_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Asks Dialogflow Telephony to create the conversation provided in the SIP
+     * header on the fly when the call comes in.
+     * 
+ * + * bool create_conversation_on_the_fly = 1; + * + * @return This builder for chaining. + */ + public Builder clearCreateConversationOnTheFly() { + bitField0_ = (bitField0_ & ~0x00000001); + createConversationOnTheFly_ = false; + onChanged(); + return this; + } + + private boolean inactiveStart_; + + /** + * + * + *
+     * Starts the conversation with inactive SDP directives
+     * 
+ * + * bool inactive_start = 3; + * + * @return The inactiveStart. + */ + @java.lang.Override + public boolean getInactiveStart() { + return inactiveStart_; + } + + /** + * + * + *
+     * Starts the conversation with inactive SDP directives
+     * 
+ * + * bool inactive_start = 3; + * + * @param value The inactiveStart to set. + * @return This builder for chaining. + */ + public Builder setInactiveStart(boolean value) { + + inactiveStart_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Starts the conversation with inactive SDP directives
+     * 
+ * + * bool inactive_start = 3; + * + * @return This builder for chaining. + */ + public Builder clearInactiveStart() { + bitField0_ = (bitField0_ & ~0x00000002); + inactiveStart_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Duration maxAudioRecordingDuration_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + maxAudioRecordingDurationBuilder_; + + /** + * + * + *
+     * Max duration for audio recording.
+     * Overrides the default value of 15 min.
+     * Max value is 8 hours.
+     * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return Whether the maxAudioRecordingDuration field is set. + */ + public boolean hasMaxAudioRecordingDuration() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Max duration for audio recording.
+     * Overrides the default value of 15 min.
+     * Max value is 8 hours.
+     * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return The maxAudioRecordingDuration. + */ + public com.google.protobuf.Duration getMaxAudioRecordingDuration() { + if (maxAudioRecordingDurationBuilder_ == null) { + return maxAudioRecordingDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxAudioRecordingDuration_; + } else { + return maxAudioRecordingDurationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Max duration for audio recording.
+     * Overrides the default value of 15 min.
+     * Max value is 8 hours.
+     * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public Builder setMaxAudioRecordingDuration(com.google.protobuf.Duration value) { + if (maxAudioRecordingDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxAudioRecordingDuration_ = value; + } else { + maxAudioRecordingDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Max duration for audio recording.
+     * Overrides the default value of 15 min.
+     * Max value is 8 hours.
+     * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public Builder setMaxAudioRecordingDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (maxAudioRecordingDurationBuilder_ == null) { + maxAudioRecordingDuration_ = builderForValue.build(); + } else { + maxAudioRecordingDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Max duration for audio recording.
+     * Overrides the default value of 15 min.
+     * Max value is 8 hours.
+     * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public Builder mergeMaxAudioRecordingDuration(com.google.protobuf.Duration value) { + if (maxAudioRecordingDurationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && maxAudioRecordingDuration_ != null + && maxAudioRecordingDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMaxAudioRecordingDurationBuilder().mergeFrom(value); + } else { + maxAudioRecordingDuration_ = value; + } + } else { + maxAudioRecordingDurationBuilder_.mergeFrom(value); + } + if (maxAudioRecordingDuration_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Max duration for audio recording.
+     * Overrides the default value of 15 min.
+     * Max value is 8 hours.
+     * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public Builder clearMaxAudioRecordingDuration() { + bitField0_ = (bitField0_ & ~0x00000004); + maxAudioRecordingDuration_ = null; + if (maxAudioRecordingDurationBuilder_ != null) { + maxAudioRecordingDurationBuilder_.dispose(); + maxAudioRecordingDurationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Max duration for audio recording.
+     * Overrides the default value of 15 min.
+     * Max value is 8 hours.
+     * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public com.google.protobuf.Duration.Builder getMaxAudioRecordingDurationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetMaxAudioRecordingDurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Max duration for audio recording.
+     * Overrides the default value of 15 min.
+     * Max value is 8 hours.
+     * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public com.google.protobuf.DurationOrBuilder getMaxAudioRecordingDurationOrBuilder() { + if (maxAudioRecordingDurationBuilder_ != null) { + return maxAudioRecordingDurationBuilder_.getMessageOrBuilder(); + } else { + return maxAudioRecordingDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxAudioRecordingDuration_; + } + } + + /** + * + * + *
+     * Max duration for audio recording.
+     * Overrides the default value of 15 min.
+     * Max value is 8 hours.
+     * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetMaxAudioRecordingDurationFieldBuilder() { + if (maxAudioRecordingDurationBuilder_ == null) { + maxAudioRecordingDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMaxAudioRecordingDuration(), getParentForChildren(), isClean()); + maxAudioRecordingDuration_ = null; + } + return maxAudioRecordingDurationBuilder_; + } + + private boolean allowVirtualAgentInteraction_; + + /** + * + * + *
+     * Allows interactions with a Dialogflow virtual agent even if the call is
+     * connected for SIPREC purposes.
+     * 
+ * + * bool allow_virtual_agent_interaction = 5; + * + * @return The allowVirtualAgentInteraction. + */ + @java.lang.Override + public boolean getAllowVirtualAgentInteraction() { + return allowVirtualAgentInteraction_; + } + + /** + * + * + *
+     * Allows interactions with a Dialogflow virtual agent even if the call is
+     * connected for SIPREC purposes.
+     * 
+ * + * bool allow_virtual_agent_interaction = 5; + * + * @param value The allowVirtualAgentInteraction to set. + * @return This builder for chaining. + */ + public Builder setAllowVirtualAgentInteraction(boolean value) { + + allowVirtualAgentInteraction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Allows interactions with a Dialogflow virtual agent even if the call is
+     * connected for SIPREC purposes.
+     * 
+ * + * bool allow_virtual_agent_interaction = 5; + * + * @return This builder for chaining. + */ + public Builder clearAllowVirtualAgentInteraction() { + bitField0_ = (bitField0_ & ~0x00000008); + allowVirtualAgentInteraction_ = false; + onChanged(); + return this; + } + + private boolean keepConversationRunning_; + + /** + * + * + *
+     * Keeps the conversation running even if the call is disconnected.
+     * 
+ * + * bool keep_conversation_running = 6; + * + * @return The keepConversationRunning. + */ + @java.lang.Override + public boolean getKeepConversationRunning() { + return keepConversationRunning_; + } + + /** + * + * + *
+     * Keeps the conversation running even if the call is disconnected.
+     * 
+ * + * bool keep_conversation_running = 6; + * + * @param value The keepConversationRunning to set. + * @return This builder for chaining. + */ + public Builder setKeepConversationRunning(boolean value) { + + keepConversationRunning_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Keeps the conversation running even if the call is disconnected.
+     * 
+ * + * bool keep_conversation_running = 6; + * + * @return This builder for chaining. + */ + public Builder clearKeepConversationRunning() { + bitField0_ = (bitField0_ & ~0x00000010); + keepConversationRunning_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList copyInboundCallLegHeaders_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCopyInboundCallLegHeadersIsMutable() { + if (!copyInboundCallLegHeaders_.isModifiable()) { + copyInboundCallLegHeaders_ = + new com.google.protobuf.LazyStringArrayList(copyInboundCallLegHeaders_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * List of inbound call leg headers to be copied to outbound call legs created
+     * later.
+     * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return A list containing the copyInboundCallLegHeaders. + */ + public com.google.protobuf.ProtocolStringList getCopyInboundCallLegHeadersList() { + copyInboundCallLegHeaders_.makeImmutable(); + return copyInboundCallLegHeaders_; + } + + /** + * + * + *
+     * List of inbound call leg headers to be copied to outbound call legs created
+     * later.
+     * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return The count of copyInboundCallLegHeaders. + */ + public int getCopyInboundCallLegHeadersCount() { + return copyInboundCallLegHeaders_.size(); + } + + /** + * + * + *
+     * List of inbound call leg headers to be copied to outbound call legs created
+     * later.
+     * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the element to return. + * @return The copyInboundCallLegHeaders at the given index. + */ + public java.lang.String getCopyInboundCallLegHeaders(int index) { + return copyInboundCallLegHeaders_.get(index); + } + + /** + * + * + *
+     * List of inbound call leg headers to be copied to outbound call legs created
+     * later.
+     * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the value to return. + * @return The bytes of the copyInboundCallLegHeaders at the given index. + */ + public com.google.protobuf.ByteString getCopyInboundCallLegHeadersBytes(int index) { + return copyInboundCallLegHeaders_.getByteString(index); + } + + /** + * + * + *
+     * List of inbound call leg headers to be copied to outbound call legs created
+     * later.
+     * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index to set the value at. + * @param value The copyInboundCallLegHeaders to set. + * @return This builder for chaining. + */ + public Builder setCopyInboundCallLegHeaders(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCopyInboundCallLegHeadersIsMutable(); + copyInboundCallLegHeaders_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * List of inbound call leg headers to be copied to outbound call legs created
+     * later.
+     * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param value The copyInboundCallLegHeaders to add. + * @return This builder for chaining. + */ + public Builder addCopyInboundCallLegHeaders(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCopyInboundCallLegHeadersIsMutable(); + copyInboundCallLegHeaders_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * List of inbound call leg headers to be copied to outbound call legs created
+     * later.
+     * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param values The copyInboundCallLegHeaders to add. + * @return This builder for chaining. + */ + public Builder addAllCopyInboundCallLegHeaders(java.lang.Iterable values) { + ensureCopyInboundCallLegHeadersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, copyInboundCallLegHeaders_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * List of inbound call leg headers to be copied to outbound call legs created
+     * later.
+     * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return This builder for chaining. + */ + public Builder clearCopyInboundCallLegHeaders() { + copyInboundCallLegHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * List of inbound call leg headers to be copied to outbound call legs created
+     * later.
+     * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param value The bytes of the copyInboundCallLegHeaders to add. + * @return This builder for chaining. + */ + public Builder addCopyInboundCallLegHeadersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCopyInboundCallLegHeadersIsMutable(); + copyInboundCallLegHeaders_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private boolean ignoreReinviteMediaDirection_; + + /** + * + * + *
+     * Ignores any media direction in the reINVITE SDP offer. Reuse the previous
+     * media direction.
+     * 
+ * + * bool ignore_reinvite_media_direction = 9; + * + * @return The ignoreReinviteMediaDirection. + */ + @java.lang.Override + public boolean getIgnoreReinviteMediaDirection() { + return ignoreReinviteMediaDirection_; + } + + /** + * + * + *
+     * Ignores any media direction in the reINVITE SDP offer. Reuse the previous
+     * media direction.
+     * 
+ * + * bool ignore_reinvite_media_direction = 9; + * + * @param value The ignoreReinviteMediaDirection to set. + * @return This builder for chaining. + */ + public Builder setIgnoreReinviteMediaDirection(boolean value) { + + ignoreReinviteMediaDirection_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Ignores any media direction in the reINVITE SDP offer. Reuse the previous
+     * media direction.
+     * 
+ * + * bool ignore_reinvite_media_direction = 9; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreReinviteMediaDirection() { + bitField0_ = (bitField0_ & ~0x00000040); + ignoreReinviteMediaDirection_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.SipConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.SipConfig) + private static final com.google.cloud.dialogflow.v2.SipConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.SipConfig(); + } + + public static com.google.cloud.dialogflow.v2.SipConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SipConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SipConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SipConfigOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SipConfigOrBuilder.java new file mode 100644 index 000000000000..27b5719c5d4d --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SipConfigOrBuilder.java @@ -0,0 +1,197 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/conversation_profile.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public interface SipConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.SipConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Asks Dialogflow Telephony to create the conversation provided in the SIP
+   * header on the fly when the call comes in.
+   * 
+ * + * bool create_conversation_on_the_fly = 1; + * + * @return The createConversationOnTheFly. + */ + boolean getCreateConversationOnTheFly(); + + /** + * + * + *
+   * Starts the conversation with inactive SDP directives
+   * 
+ * + * bool inactive_start = 3; + * + * @return The inactiveStart. + */ + boolean getInactiveStart(); + + /** + * + * + *
+   * Max duration for audio recording.
+   * Overrides the default value of 15 min.
+   * Max value is 8 hours.
+   * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return Whether the maxAudioRecordingDuration field is set. + */ + boolean hasMaxAudioRecordingDuration(); + + /** + * + * + *
+   * Max duration for audio recording.
+   * Overrides the default value of 15 min.
+   * Max value is 8 hours.
+   * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return The maxAudioRecordingDuration. + */ + com.google.protobuf.Duration getMaxAudioRecordingDuration(); + + /** + * + * + *
+   * Max duration for audio recording.
+   * Overrides the default value of 15 min.
+   * Max value is 8 hours.
+   * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + com.google.protobuf.DurationOrBuilder getMaxAudioRecordingDurationOrBuilder(); + + /** + * + * + *
+   * Allows interactions with a Dialogflow virtual agent even if the call is
+   * connected for SIPREC purposes.
+   * 
+ * + * bool allow_virtual_agent_interaction = 5; + * + * @return The allowVirtualAgentInteraction. + */ + boolean getAllowVirtualAgentInteraction(); + + /** + * + * + *
+   * Keeps the conversation running even if the call is disconnected.
+   * 
+ * + * bool keep_conversation_running = 6; + * + * @return The keepConversationRunning. + */ + boolean getKeepConversationRunning(); + + /** + * + * + *
+   * List of inbound call leg headers to be copied to outbound call legs created
+   * later.
+   * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return A list containing the copyInboundCallLegHeaders. + */ + java.util.List getCopyInboundCallLegHeadersList(); + + /** + * + * + *
+   * List of inbound call leg headers to be copied to outbound call legs created
+   * later.
+   * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return The count of copyInboundCallLegHeaders. + */ + int getCopyInboundCallLegHeadersCount(); + + /** + * + * + *
+   * List of inbound call leg headers to be copied to outbound call legs created
+   * later.
+   * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the element to return. + * @return The copyInboundCallLegHeaders at the given index. + */ + java.lang.String getCopyInboundCallLegHeaders(int index); + + /** + * + * + *
+   * List of inbound call leg headers to be copied to outbound call legs created
+   * later.
+   * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the value to return. + * @return The bytes of the copyInboundCallLegHeaders at the given index. + */ + com.google.protobuf.ByteString getCopyInboundCallLegHeadersBytes(int index); + + /** + * + * + *
+   * Ignores any media direction in the reINVITE SDP offer. Reuse the previous
+   * media direction.
+   * 
+ * + * bool ignore_reinvite_media_direction = 9; + * + * @return The ignoreReinviteMediaDirection. + */ + boolean getIgnoreReinviteMediaDirection(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentResponse.java index 1ec5f79267f6..9c39e5336e02 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentResponse.java @@ -30,8 +30,11 @@ * * 1. If the input was set to streaming audio, the first one or more messages * contain `recognition_result`. Each `recognition_result` represents a more - * complete transcript of what the user said. The last `recognition_result` - * has `is_final` set to `true`. + * complete transcript of what the user said. When a user speaks multiple + * sentences, the API will emit multiple messages where `is_final = true`. + * Each time the system detects a distinct pause or completed thought, it + * locks in that segment, marks it `is_final = true`, and then immediately + * starts a new recognition cycle for the next sentence on the same stream. * * 2. In virtual agent stage: if `enable_partial_automated_agent_reply` is * true, the following N (currently 1 <= N <= 4) messages @@ -1061,8 +1064,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * 1. If the input was set to streaming audio, the first one or more messages * contain `recognition_result`. Each `recognition_result` represents a more - * complete transcript of what the user said. The last `recognition_result` - * has `is_final` set to `true`. + * complete transcript of what the user said. When a user speaks multiple + * sentences, the API will emit multiple messages where `is_final = true`. + * Each time the system detects a distinct pause or completed thought, it + * locks in that segment, marks it `is_final = true`, and then immediately + * starts a new recognition cycle for the next sentence on the same stream. * * 2. In virtual agent stage: if `enable_partial_automated_agent_reply` is * true, the following N (currently 1 <= N <= 4) messages diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java index 0f1945cb95bb..c7a40300cd42 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java @@ -44,19 +44,22 @@ * finalized transcript values received for the series of results. * * In the following example, single utterance is enabled. In the case where - * single utterance is not enabled, result 7 would not occur. + * single utterance is not enabled, result 8 would not occur. * * ``` - * Num | transcript | message_type | is_final - * --- | ----------------------- | ----------------------- | -------- - * 1 | "tube" | TRANSCRIPT | false - * 2 | "to be a" | TRANSCRIPT | false - * 3 | "to be" | TRANSCRIPT | false - * 4 | "to be or not to be" | TRANSCRIPT | true - * 5 | "that's" | TRANSCRIPT | false - * 6 | "that is | TRANSCRIPT | false - * 7 | unset | END_OF_SINGLE_UTTERANCE | unset - * 8 | " that is the question" | TRANSCRIPT | true + * Num | transcript | message_type | is_final + * --- | ------------------------ | ----------------------- | -------- + * 1 | "tube" | TRANSCRIPT | false + * 2 | "to be a" | TRANSCRIPT | false + * 3 | "to be" | TRANSCRIPT | false + * 4 | "to be or not to be" | TRANSCRIPT | true + * 5 | "that's" | TRANSCRIPT | false + * 6 | "that is | TRANSCRIPT | false + * 7 | " that is the question" | TRANSCRIPT | true + * 8 | unset | END_OF_SINGLE_UTTERANCE | unset + * 9 | ". Whether 'tis nobler" | TRANSCRIPT | true + * 10 | " in the mind" | TRANSCRIPT | false + * 11 | " in the mind to suffer" | TRANSCRIPT | true * ``` * * Concatenating the finalized transcripts with `is_final` set to true, @@ -893,19 +896,22 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * finalized transcript values received for the series of results. * * In the following example, single utterance is enabled. In the case where - * single utterance is not enabled, result 7 would not occur. + * single utterance is not enabled, result 8 would not occur. * * ``` - * Num | transcript | message_type | is_final - * --- | ----------------------- | ----------------------- | -------- - * 1 | "tube" | TRANSCRIPT | false - * 2 | "to be a" | TRANSCRIPT | false - * 3 | "to be" | TRANSCRIPT | false - * 4 | "to be or not to be" | TRANSCRIPT | true - * 5 | "that's" | TRANSCRIPT | false - * 6 | "that is | TRANSCRIPT | false - * 7 | unset | END_OF_SINGLE_UTTERANCE | unset - * 8 | " that is the question" | TRANSCRIPT | true + * Num | transcript | message_type | is_final + * --- | ------------------------ | ----------------------- | -------- + * 1 | "tube" | TRANSCRIPT | false + * 2 | "to be a" | TRANSCRIPT | false + * 3 | "to be" | TRANSCRIPT | false + * 4 | "to be or not to be" | TRANSCRIPT | true + * 5 | "that's" | TRANSCRIPT | false + * 6 | "that is | TRANSCRIPT | false + * 7 | " that is the question" | TRANSCRIPT | true + * 8 | unset | END_OF_SINGLE_UTTERANCE | unset + * 9 | ". Whether 'tis nobler" | TRANSCRIPT | true + * 10 | " in the mind" | TRANSCRIPT | false + * 11 | " in the mind to suffer" | TRANSCRIPT | true * ``` * * Concatenating the finalized transcripts with `is_final` set to true, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestKnowledgeAssistResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestKnowledgeAssistResponse.java index 2b7c867a40d6..5e7d27d21021 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestKnowledgeAssistResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestKnowledgeAssistResponse.java @@ -54,6 +54,7 @@ private SuggestKnowledgeAssistResponse(com.google.protobuf.GeneratedMessage.Buil private SuggestKnowledgeAssistResponse() { latestMessage_ = ""; + additionalSuggestedQueryResults_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -212,6 +213,112 @@ public int getContextSize() { return contextSize_; } + public static final int ADDITIONAL_SUGGESTED_QUERY_RESULTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult> + additionalSuggestedQueryResults_; + + /** + * + * + *
+   * Optional. The list of additional suggested queries based on the context.
+   * This is used for the cases when we want to generate multiple queries
+   * for a single request.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult> + getAdditionalSuggestedQueryResultsList() { + return additionalSuggestedQueryResults_; + } + + /** + * + * + *
+   * Optional. The list of additional suggested queries based on the context.
+   * This is used for the cases when we want to generate multiple queries
+   * for a single request.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder> + getAdditionalSuggestedQueryResultsOrBuilderList() { + return additionalSuggestedQueryResults_; + } + + /** + * + * + *
+   * Optional. The list of additional suggested queries based on the context.
+   * This is used for the cases when we want to generate multiple queries
+   * for a single request.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAdditionalSuggestedQueryResultsCount() { + return additionalSuggestedQueryResults_.size(); + } + + /** + * + * + *
+   * Optional. The list of additional suggested queries based on the context.
+   * This is used for the cases when we want to generate multiple queries
+   * for a single request.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + getAdditionalSuggestedQueryResults(int index) { + return additionalSuggestedQueryResults_.get(index); + } + + /** + * + * + *
+   * Optional. The list of additional suggested queries based on the context.
+   * This is used for the cases when we want to generate multiple queries
+   * for a single request.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder + getAdditionalSuggestedQueryResultsOrBuilder(int index) { + return additionalSuggestedQueryResults_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -235,6 +342,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (contextSize_ != 0) { output.writeInt32(3, contextSize_); } + for (int i = 0; i < additionalSuggestedQueryResults_.size(); i++) { + output.writeMessage(4, additionalSuggestedQueryResults_.get(i)); + } getUnknownFields().writeTo(output); } @@ -254,6 +364,11 @@ public int getSerializedSize() { if (contextSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, contextSize_); } + for (int i = 0; i < additionalSuggestedQueryResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, additionalSuggestedQueryResults_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -276,6 +391,8 @@ public boolean equals(final java.lang.Object obj) { } if (!getLatestMessage().equals(other.getLatestMessage())) return false; if (getContextSize() != other.getContextSize()) return false; + if (!getAdditionalSuggestedQueryResultsList() + .equals(other.getAdditionalSuggestedQueryResultsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -295,6 +412,10 @@ public int hashCode() { hash = (53 * hash) + getLatestMessage().hashCode(); hash = (37 * hash) + CONTEXT_SIZE_FIELD_NUMBER; hash = (53 * hash) + getContextSize(); + if (getAdditionalSuggestedQueryResultsCount() > 0) { + hash = (37 * hash) + ADDITIONAL_SUGGESTED_QUERY_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalSuggestedQueryResultsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -439,6 +560,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetKnowledgeAssistAnswerFieldBuilder(); + internalGetAdditionalSuggestedQueryResultsFieldBuilder(); } } @@ -453,6 +575,13 @@ public Builder clear() { } latestMessage_ = ""; contextSize_ = 0; + if (additionalSuggestedQueryResultsBuilder_ == null) { + additionalSuggestedQueryResults_ = java.util.Collections.emptyList(); + } else { + additionalSuggestedQueryResults_ = null; + additionalSuggestedQueryResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -481,6 +610,7 @@ public com.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse build() { public com.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse buildPartial() { com.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse result = new com.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -488,6 +618,20 @@ public com.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse buildPartia return result; } + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse result) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + additionalSuggestedQueryResults_ = + java.util.Collections.unmodifiableList(additionalSuggestedQueryResults_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.additionalSuggestedQueryResults_ = additionalSuggestedQueryResults_; + } else { + result.additionalSuggestedQueryResults_ = additionalSuggestedQueryResultsBuilder_.build(); + } + } + private void buildPartial0( com.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse result) { int from_bitField0_ = bitField0_; @@ -533,6 +677,34 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.SuggestKnowledgeAssistRe if (other.getContextSize() != 0) { setContextSize(other.getContextSize()); } + if (additionalSuggestedQueryResultsBuilder_ == null) { + if (!other.additionalSuggestedQueryResults_.isEmpty()) { + if (additionalSuggestedQueryResults_.isEmpty()) { + additionalSuggestedQueryResults_ = other.additionalSuggestedQueryResults_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.addAll(other.additionalSuggestedQueryResults_); + } + onChanged(); + } + } else { + if (!other.additionalSuggestedQueryResults_.isEmpty()) { + if (additionalSuggestedQueryResultsBuilder_.isEmpty()) { + additionalSuggestedQueryResultsBuilder_.dispose(); + additionalSuggestedQueryResultsBuilder_ = null; + additionalSuggestedQueryResults_ = other.additionalSuggestedQueryResults_; + bitField0_ = (bitField0_ & ~0x00000008); + additionalSuggestedQueryResultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAdditionalSuggestedQueryResultsFieldBuilder() + : null; + } else { + additionalSuggestedQueryResultsBuilder_.addAllMessages( + other.additionalSuggestedQueryResults_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -578,6 +750,22 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 24 + case 34: + { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + m = + input.readMessage( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.parser(), + extensionRegistry); + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.add(m); + } else { + additionalSuggestedQueryResultsBuilder_.addMessage(m); + } + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1004,6 +1192,494 @@ public Builder clearContextSize() { return this; } + private java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult> + additionalSuggestedQueryResults_ = java.util.Collections.emptyList(); + + private void ensureAdditionalSuggestedQueryResultsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + additionalSuggestedQueryResults_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult>(additionalSuggestedQueryResults_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder> + additionalSuggestedQueryResultsBuilder_; + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult> + getAdditionalSuggestedQueryResultsList() { + if (additionalSuggestedQueryResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(additionalSuggestedQueryResults_); + } else { + return additionalSuggestedQueryResultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAdditionalSuggestedQueryResultsCount() { + if (additionalSuggestedQueryResultsBuilder_ == null) { + return additionalSuggestedQueryResults_.size(); + } else { + return additionalSuggestedQueryResultsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + getAdditionalSuggestedQueryResults(int index) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + return additionalSuggestedQueryResults_.get(index); + } else { + return additionalSuggestedQueryResultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdditionalSuggestedQueryResults( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult value) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.set(index, value); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdditionalSuggestedQueryResults( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult.Builder + builderForValue) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.set(index, builderForValue.build()); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAdditionalSuggestedQueryResults( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult value) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.add(value); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAdditionalSuggestedQueryResults( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult value) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.add(index, value); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAdditionalSuggestedQueryResults( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult.Builder + builderForValue) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.add(builderForValue.build()); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAdditionalSuggestedQueryResults( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult.Builder + builderForValue) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.add(index, builderForValue.build()); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAdditionalSuggestedQueryResults( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult> + values) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, additionalSuggestedQueryResults_); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAdditionalSuggestedQueryResults() { + if (additionalSuggestedQueryResultsBuilder_ == null) { + additionalSuggestedQueryResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAdditionalSuggestedQueryResults(int index) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.remove(index); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder + getAdditionalSuggestedQueryResultsBuilder(int index) { + return internalGetAdditionalSuggestedQueryResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder + getAdditionalSuggestedQueryResultsOrBuilder(int index) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + return additionalSuggestedQueryResults_.get(index); + } else { + return additionalSuggestedQueryResultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder> + getAdditionalSuggestedQueryResultsOrBuilderList() { + if (additionalSuggestedQueryResultsBuilder_ != null) { + return additionalSuggestedQueryResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(additionalSuggestedQueryResults_); + } + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder + addAdditionalSuggestedQueryResultsBuilder() { + return internalGetAdditionalSuggestedQueryResultsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder + addAdditionalSuggestedQueryResultsBuilder(int index) { + return internalGetAdditionalSuggestedQueryResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder> + getAdditionalSuggestedQueryResultsBuilderList() { + return internalGetAdditionalSuggestedQueryResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder> + internalGetAdditionalSuggestedQueryResultsFieldBuilder() { + if (additionalSuggestedQueryResultsBuilder_ == null) { + additionalSuggestedQueryResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder>( + additionalSuggestedQueryResults_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + additionalSuggestedQueryResults_ = null; + } + return additionalSuggestedQueryResultsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestKnowledgeAssistResponseOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestKnowledgeAssistResponseOrBuilder.java index 1f94d691e9da..d42ec102a546 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestKnowledgeAssistResponseOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestKnowledgeAssistResponseOrBuilder.java @@ -115,4 +115,87 @@ public interface SuggestKnowledgeAssistResponseOrBuilder * @return The contextSize. */ int getContextSize(); + + /** + * + * + *
+   * Optional. The list of additional suggested queries based on the context.
+   * This is used for the cases when we want to generate multiple queries
+   * for a single request.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult> + getAdditionalSuggestedQueryResultsList(); + + /** + * + * + *
+   * Optional. The list of additional suggested queries based on the context.
+   * This is used for the cases when we want to generate multiple queries
+   * for a single request.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + getAdditionalSuggestedQueryResults(int index); + + /** + * + * + *
+   * Optional. The list of additional suggested queries based on the context.
+   * This is used for the cases when we want to generate multiple queries
+   * for a single request.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAdditionalSuggestedQueryResultsCount(); + + /** + * + * + *
+   * Optional. The list of additional suggested queries based on the context.
+   * This is used for the cases when we want to generate multiple queries
+   * for a single request.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder> + getAdditionalSuggestedQueryResultsOrBuilderList(); + + /** + * + * + *
+   * Optional. The list of additional suggested queries based on the context.
+   * This is used for the cases when we want to generate multiple queries
+   * for a single request.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResultOrBuilder + getAdditionalSuggestedQueryResultsOrBuilder(int index); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto index af0626faf2f8..a93f171ddfdb 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto @@ -542,8 +542,8 @@ enum OutputAudioEncoding { // Audio content returned as LINEAR16 also contains a WAV header. OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1; - // MP3 audio at 32kbps. - OUTPUT_AUDIO_ENCODING_MP3 = 2; + // MP3 audio at 64kbps. + OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; // MP3 audio at 64kbps. OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/ces_app.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/ces_app.proto index bb2e780590b0..b02f5eecf29f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/ces_app.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/ces_app.proto @@ -43,4 +43,16 @@ message CesAppSpec { // Optional. Indicates whether the app requires human confirmation. Tool.ConfirmationRequirement confirmation_requirement = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Only applicable for CompanionAgent. + // Indicates whether the ces app is enabled in proactive mode. + // At least one of `proactive_enabled` or `reactive_enabled` should be + // true; otherwise, the ces app will be ignored. + optional bool proactive_enabled = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Only applicable for CompanionAgent. + // Indicates whether the ces app is enabled in reactive mode. + // At least one of `proactive_enabled` or `reactive_enabled` should be + // true; otherwise, the ces app will be ignored. + optional bool reactive_enabled = 4 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto index 75020dc96d69..f7254b186ff4 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto @@ -1233,6 +1233,12 @@ message SearchKnowledgeAnswer { // The answer is from intent matching. INTENT = 3; + + // The answer is from Playbook. + PLAYBOOK = 4; + + // The answer is from event. + EVENT = 5; } // The sources of the answers. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto index 3cbee623c8e6..37e0457f61a3 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto @@ -262,6 +262,9 @@ message ConversationProfile { // language tag. Example: "en-US". string language_code = 10; + // Optional. Configuration for SIP connections. + SipConfig sip_config = 16 [(google.api.field_behavior) = OPTIONAL]; + // The time zone of this conversational profile from the // [time zone database](https://www.iana.org/time-zones), e.g., // America/New_York, Europe/Paris. Defaults to America/New_York. @@ -469,6 +472,22 @@ message HumanAgentAssistantConfig { // Supported features: KNOWLEDGE_ASSIST RaiSettings rai_settings = 19 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The trigger event for suggestion. + // If unspecified, it will be `CUSTOMER_MESSAGE`. + // Supported features: KNOWLEDGE_ASSIST + // For KNOWLEDGE_ASSIST, these four trigger events are supported: + // 1. TRIGGER_EVENT_UNSPECIFIED + // 2. END_OF_UTTERANCE + // 3. CUSTOMER_MESSAGE + // 4. AGENT_MESSAGE + TriggerEvent suggestion_trigger_event = 20 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, disable appending available search context to the + // search query. Supported features: KNOWLEDGE_ASSIST + bool disable_query_search_context = 21 + [(google.api.field_behavior) = OPTIONAL]; + // Settings of suggestion trigger. // // Currently, only ARTICLE_SUGGESTION and FAQ will use this field. @@ -914,6 +933,36 @@ message LoggingConfig { bool enable_stackdriver_logging = 3; } +// Defines the SIP configuration. +message SipConfig { + // Asks Dialogflow Telephony to create the conversation provided in the SIP + // header on the fly when the call comes in. + bool create_conversation_on_the_fly = 1; + + // Starts the conversation with inactive SDP directives + bool inactive_start = 3; + + // Max duration for audio recording. + // Overrides the default value of 15 min. + // Max value is 8 hours. + google.protobuf.Duration max_audio_recording_duration = 4; + + // Allows interactions with a Dialogflow virtual agent even if the call is + // connected for SIPREC purposes. + bool allow_virtual_agent_interaction = 5; + + // Keeps the conversation running even if the call is disconnected. + bool keep_conversation_running = 6; + + // List of inbound call leg headers to be copied to outbound call legs created + // later. + repeated string copy_inbound_call_leg_headers = 8; + + // Ignores any media direction in the reINVITE SDP offer. Reuse the previous + // media direction. + bool ignore_reinvite_media_direction = 9; +} + // The type of Human Agent Assistant API suggestion to perform, and the maximum // number of results to return for that type. Multiple `Feature` objects can // be specified in the `features` list. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto index d60c6bb8619f..8e5dc0758db0 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto @@ -261,9 +261,9 @@ message Participant { // Dialogflow adds the obfuscated user id with the participant. // // 2. If you set this field in - // [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] - // or - // [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], + // [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + // or [StreamingAnalyzeContent] + // [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], // Dialogflow will update // [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. // @@ -275,6 +275,11 @@ message Participant { // example, Dialogflow determines whether a user in one conversation returned // in a later conversation. // + // Additionally, to link an escalated Virtual Agent conversation + // with its corresponding Agent Assist conversation for analytics, this field + // in Agent Assist conversations should be populated to indicate the user id + // of the `END_USER` participant in the escalated conversation. + // // Note: // // * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -705,8 +710,11 @@ message StreamingAnalyzeContentRequest { // // 1. If the input was set to streaming audio, the first one or more messages // contain `recognition_result`. Each `recognition_result` represents a more -// complete transcript of what the user said. The last `recognition_result` -// has `is_final` set to `true`. +// complete transcript of what the user said. When a user speaks multiple +// sentences, the API will emit multiple messages where `is_final = true`. +// Each time the system detects a distinct pause or completed thought, it +// locks in that segment, marks it `is_final = true`, and then immediately +// starts a new recognition cycle for the next sentence on the same stream. // // 2. In virtual agent stage: if `enable_partial_automated_agent_reply` is // true, the following N (currently 1 <= N <= 4) messages @@ -1343,6 +1351,13 @@ message SuggestKnowledgeAssistResponse { // [SuggestKnowledgeAssistRequest.context_size][google.cloud.dialogflow.v2.SuggestKnowledgeAssistRequest.context_size] // field in the request if there are fewer messages in the conversation. int32 context_size = 3; + + // Optional. The list of additional suggested queries based on the context. + // This is used for the cases when we want to generate multiple queries + // for a single request. + repeated KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + additional_suggested_query_results = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Debug information related to ingested context reference. @@ -1536,6 +1551,18 @@ message KnowledgeAssistDebugInfo { int32 appended_search_context_count = 18; } + // Token usage metadata for query generation. + message QueryGenerationDebugInfo { + // The total number of tokens in the prompt. + int32 prompt_token_count = 1; + + // The total number of tokens in the generated candidates. + int32 candidates_token_count = 2; + + // The total number of tokens for the entire request. + int32 total_token_count = 3; + } + // Reason for query generation. QueryGenerationFailureReason query_generation_failure_reason = 1; @@ -1554,14 +1581,56 @@ message KnowledgeAssistDebugInfo { // The latency of the service. ServiceLatency service_latency = 6; + + // Token usage metadata for query generation. + QueryGenerationDebugInfo query_generation_debug_info = 7; + + // Debug information from CES runtime API. + google.protobuf.Struct ces_debug_info = 8; } // Represents a Knowledge Assist answer. message KnowledgeAssistAnswer { // Represents a suggested query. message SuggestedQuery { + // Search context is information useful for knowledge search that helps + // enrich the query. + // Example: + // search_context { + // key: "application name" + // value: "DesignApp" + // } + message SearchContext { + // Optional. The key of the search context, e.g. "application name". + string key = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The value of the search context, e.g. "DesignApp". + string value = 2 [(google.api.field_behavior) = OPTIONAL]; + } + // Suggested query text. string query_text = 1; + + // Optional. The search contexts for the query. + repeated SearchContext search_contexts = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Represents a single suggested query result. + message AdditionalSuggestedQueryResult { + // Output only. The suggested query based on the context. + SuggestedQuery suggested_query = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The name of the answer record. + // Format: `projects//locations//answerRecords/` + string answer_record = 5 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/AnswerRecord" + } + ]; } // Represents an answer from Knowledge. Currently supports FAQ and Generative @@ -1595,6 +1664,15 @@ message KnowledgeAssistAnswer { repeated Snippet snippets = 1; } + // Details about source of Event answer. + message EventSource { + // Name of the triggered event. + string event = 1; + + // Sources used in event fulfillment. + GenerativeSource snippets = 2; + } + // The piece of text from the `source` that answers this suggested query. string answer_text = 1; @@ -1605,6 +1683,12 @@ message KnowledgeAssistAnswer { // Populated if the prediction was Generative. GenerativeSource generative_source = 4; + + // Populated if the prediction was from Playbook. + GenerativeSource playbook_source = 7; + + // Populated if the prediction was from an event. + EventSource event_source = 8; } } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto index a4b6c2cd7b37..71f1075c7ba8 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto @@ -630,19 +630,22 @@ message StreamingDetectIntentResponse { // finalized transcript values received for the series of results. // // In the following example, single utterance is enabled. In the case where -// single utterance is not enabled, result 7 would not occur. +// single utterance is not enabled, result 8 would not occur. // // ``` -// Num | transcript | message_type | is_final -// --- | ----------------------- | ----------------------- | -------- -// 1 | "tube" | TRANSCRIPT | false -// 2 | "to be a" | TRANSCRIPT | false -// 3 | "to be" | TRANSCRIPT | false -// 4 | "to be or not to be" | TRANSCRIPT | true -// 5 | "that's" | TRANSCRIPT | false -// 6 | "that is | TRANSCRIPT | false -// 7 | unset | END_OF_SINGLE_UTTERANCE | unset -// 8 | " that is the question" | TRANSCRIPT | true +// Num | transcript | message_type | is_final +// --- | ------------------------ | ----------------------- | -------- +// 1 | "tube" | TRANSCRIPT | false +// 2 | "to be a" | TRANSCRIPT | false +// 3 | "to be" | TRANSCRIPT | false +// 4 | "to be or not to be" | TRANSCRIPT | true +// 5 | "that's" | TRANSCRIPT | false +// 6 | "that is | TRANSCRIPT | false +// 7 | " that is the question" | TRANSCRIPT | true +// 8 | unset | END_OF_SINGLE_UTTERANCE | unset +// 9 | ". Whether 'tis nobler" | TRANSCRIPT | true +// 10 | " in the mind" | TRANSCRIPT | false +// 11 | " in the mind to suffer" | TRANSCRIPT | true // ``` // // Concatenating the finalized transcripts with `is_final` set to true, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java index 42c1e9c480c8..17c2f62cdbff 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java @@ -208,22 +208,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035SSML_VOICE_GENDER_UNSPECIFIED\020\000\022\032\n" + "\026SSML_VOICE_GENDER_MALE\020\001\022\034\n" + "\030SSML_VOICE_GENDER_FEMALE\020\002\022\035\n" - + "\031SSML_VOICE_GENDER_NEUTRAL\020\003*\214\002\n" + + "\031SSML_VOICE_GENDER_NEUTRAL\020\003*\220\002\n" + "\023OutputAudioEncoding\022%\n" + "!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\020\000\022#\n" - + "\037OUTPUT_AUDIO_ENCODING_LINEAR_16\020\001\022\035\n" - + "\031OUTPUT_AUDIO_ENCODING_MP3\020\002\022%\n" + + "\037OUTPUT_AUDIO_ENCODING_LINEAR_16\020\001\022!\n" + + "\031OUTPUT_AUDIO_ENCODING_MP3\020\002\032\002\010\001\022%\n" + "!OUTPUT_AUDIO_ENCODING_MP3_64_KBPS\020\004\022\"\n" + "\036OUTPUT_AUDIO_ENCODING_OGG_OPUS\020\003\022\037\n" + "\033OUTPUT_AUDIO_ENCODING_MULAW\020\005\022\036\n" + "\032OUTPUT_AUDIO_ENCODING_ALAW\020\006B\342\002\n" - + "#com.google.cloud.dialogflow.v2beta1B\020AudioConfigPr" - + "otoP\001ZCcloud.google.com/go/dialogflow/ap" - + "iv2beta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352AU\n" - + "\033automl.googleapis.com/Model\0226projects/{pro" - + "ject}/locations/{location}/models/{model}\352Ab\n" - + "\037speech.googleapis.com/PhraseSet\022?projects/{project}/locations/{location}/p" - + "hraseSets/{phrase_set}b\006proto3" + + "#com.google.cloud.dialogflow.v2beta1B\020AudioConf" + + "igProtoP\001ZCcloud.google.com/go/dialogflo" + + "w/apiv2beta1/dialogflowpb;dialogflowpb\242\002" + + "\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352AU\n" + + "\033automl.googleapis.com/Model\0226projects/" + + "{project}/locations/{location}/models/{model}\352Ab\n" + + "\037speech.googleapis.com/PhraseSet\022?projects/{project}/locations/{locatio" + + "n}/phraseSets/{phrase_set}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfig.java index 88c2c4b2a6f2..33e9b4d9c2e1 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfig.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. ID of the Dialogflow agent environment to use.
+   * Required. The resource name of the Dialogflow agent environment to use.
    *
    * This project needs to either be the same project as the conversation or you
    * need to grant `service-<Conversation Project
@@ -122,7 +122,7 @@ public java.lang.String getAgent() {
    *
    *
    * 
-   * Required. ID of the Dialogflow agent environment to use.
+   * Required. The resource name of the Dialogflow agent environment to use.
    *
    * This project needs to either be the same project as the conversation or you
    * need to grant `service-<Conversation Project
@@ -582,7 +582,7 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Required. ID of the Dialogflow agent environment to use.
+     * Required. The resource name of the Dialogflow agent environment to use.
      *
      * This project needs to either be the same project as the conversation or you
      * need to grant `service-<Conversation Project
@@ -623,7 +623,7 @@ public java.lang.String getAgent() {
      *
      *
      * 
-     * Required. ID of the Dialogflow agent environment to use.
+     * Required. The resource name of the Dialogflow agent environment to use.
      *
      * This project needs to either be the same project as the conversation or you
      * need to grant `service-<Conversation Project
@@ -664,7 +664,7 @@ public com.google.protobuf.ByteString getAgentBytes() {
      *
      *
      * 
-     * Required. ID of the Dialogflow agent environment to use.
+     * Required. The resource name of the Dialogflow agent environment to use.
      *
      * This project needs to either be the same project as the conversation or you
      * need to grant `service-<Conversation Project
@@ -704,7 +704,7 @@ public Builder setAgent(java.lang.String value) {
      *
      *
      * 
-     * Required. ID of the Dialogflow agent environment to use.
+     * Required. The resource name of the Dialogflow agent environment to use.
      *
      * This project needs to either be the same project as the conversation or you
      * need to grant `service-<Conversation Project
@@ -740,7 +740,7 @@ public Builder clearAgent() {
      *
      *
      * 
-     * Required. ID of the Dialogflow agent environment to use.
+     * Required. The resource name of the Dialogflow agent environment to use.
      *
      * This project needs to either be the same project as the conversation or you
      * need to grant `service-<Conversation Project
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfigOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfigOrBuilder.java
index 538290b2e916..2f7dc7fe52e2 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfigOrBuilder.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfigOrBuilder.java
@@ -30,7 +30,7 @@ public interface AutomatedAgentConfigOrBuilder
    *
    *
    * 
-   * Required. ID of the Dialogflow agent environment to use.
+   * Required. The resource name of the Dialogflow agent environment to use.
    *
    * This project needs to either be the same project as the conversation or you
    * need to grant `service-<Conversation Project
@@ -61,7 +61,7 @@ public interface AutomatedAgentConfigOrBuilder
    *
    *
    * 
-   * Required. ID of the Dialogflow agent environment to use.
+   * Required. The resource name of the Dialogflow agent environment to use.
    *
    * This project needs to either be the same project as the conversation or you
    * need to grant `service-<Conversation Project
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java
index c6a640cdeae0..c7b78fe7c47d 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java
@@ -735,7 +735,7 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
    * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];
    *
    * @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
-   *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=584
+   *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=589
    * @return Whether the cxSessionParameters field is set.
    */
   @java.lang.Override
@@ -756,7 +756,7 @@ public boolean hasCxSessionParameters() {
    * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];
    *
    * @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
-   *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=584
+   *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=589
    * @return The cxSessionParameters.
    */
   @java.lang.Override
@@ -2861,7 +2861,7 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
      * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];
      *
      * @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
-     *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=584
+     *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=589
      * @return Whether the cxSessionParameters field is set.
      */
     @java.lang.Deprecated
@@ -2881,7 +2881,7 @@ public boolean hasCxSessionParameters() {
      * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];
      *
      * @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
-     *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=584
+     *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=589
      * @return The cxSessionParameters.
      */
     @java.lang.Deprecated
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java
index ba5a52611e1a..4b4471a7b55f 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java
@@ -284,7 +284,7 @@ com.google.cloud.dialogflow.v2beta1.ResponseMessageOrBuilder getResponseMessages
    * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];
    *
    * @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
-   *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=584
+   *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=589
    * @return Whether the cxSessionParameters field is set.
    */
   @java.lang.Deprecated
@@ -302,7 +302,7 @@ com.google.cloud.dialogflow.v2beta1.ResponseMessageOrBuilder getResponseMessages
    * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];
    *
    * @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
-   *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=584
+   *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=589
    * @return The cxSessionParameters.
    */
   @java.lang.Deprecated
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentRequest.java
index a403023faa03..d9100d4a9b54 100644
--- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentRequest.java
+++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentRequest.java
@@ -3507,6 +3507,52 @@ public interface TurnInputOrBuilder
      */
     com.google.protobuf.StructOrBuilder getVirtualAgentParametersOrBuilder();
 
+    /**
+     *
+     *
+     * 
+     * Optional. The tool responses from the client.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolResponses field is set. + */ + boolean hasToolResponses(); + + /** + * + * + *
+     * Optional. The tool responses from the client.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolResponses. + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses + getToolResponses(); + + /** + * + * + *
+     * Optional. The tool responses from the client.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponsesOrBuilder + getToolResponsesOrBuilder(); + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.MainContentCase getMainContentCase(); } @@ -3537,28 +3583,2445 @@ public static final class TurnInput extends com.google.protobuf.GeneratedMessage "TurnInput"); } - // Use TurnInput.newBuilder() to construct. - private TurnInput(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + // Use TurnInput.newBuilder() to construct. + private TurnInput(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TurnInput() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .Builder.class); + } + + public interface ToolResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Required. The matching ID of the tool call the response is for.
+       * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+       * Required. The matching ID of the tool call the response is for.
+       * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+       * Required. The identifier of the tool that got executed.
+       * 
+ * + * string tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tool. + */ + java.lang.String getTool(); + + /** + * + * + *
+       * Required. The identifier of the tool that got executed.
+       * 
+ * + * string tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tool. + */ + com.google.protobuf.ByteString getToolBytes(); + + /** + * + * + *
+       * Optional. The tool execution result in JSON object format.
+       * 
+ * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the response field is set. + */ + boolean hasResponse(); + + /** + * + * + *
+       * Optional. The tool execution result in JSON object format.
+       * 
+ * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The response. + */ + com.google.protobuf.Struct getResponse(); + + /** + * + * + *
+       * Optional. The tool execution result in JSON object format.
+       * 
+ * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getResponseOrBuilder(); + } + + /** + * + * + *
+     * The execution result of a specific tool from the client.
+     * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse} + */ + public static final class ToolResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse) + ToolResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolResponse"); + } + + // Use ToolResponse.newBuilder() to construct. + private ToolResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolResponse() { + id_ = ""; + tool_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+       * Required. The matching ID of the tool call the response is for.
+       * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + + /** + * + * + *
+       * Required. The matching ID of the tool call the response is for.
+       * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object tool_ = ""; + + /** + * + * + *
+       * Required. The identifier of the tool that got executed.
+       * 
+ * + * string tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tool. + */ + @java.lang.Override + public java.lang.String getTool() { + java.lang.Object ref = tool_; + 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(); + tool_ = s; + return s; + } + } + + /** + * + * + *
+       * Required. The identifier of the tool that got executed.
+       * 
+ * + * string tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = tool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESPONSE_FIELD_NUMBER = 3; + private com.google.protobuf.Struct response_; + + /** + * + * + *
+       * Optional. The tool execution result in JSON object format.
+       * 
+ * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the response field is set. + */ + @java.lang.Override + public boolean hasResponse() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Optional. The tool execution result in JSON object format.
+       * 
+ * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The response. + */ + @java.lang.Override + public com.google.protobuf.Struct getResponse() { + return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_; + } + + /** + * + * + *
+       * Optional. The tool execution result in JSON object format.
+       * 
+ * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getResponseOrBuilder() { + return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tool_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, tool_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getResponse()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tool_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, tool_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResponse()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + other = + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse) + obj; + + if (!getId().equals(other.getId())) return false; + if (!getTool().equals(other.getTool())) return false; + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse().equals(other.getResponse())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * The execution result of a specific tool from the client.
+       * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse) + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetResponseFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + tool_ = ""; + response_ = null; + if (responseBuilder_ != null) { + responseBuilder_.dispose(); + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + build() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + buildPartial() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + result = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInput.ToolResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tool_ = tool_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.response_ = responseBuilder_ == null ? response_ : responseBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTool().isEmpty()) { + tool_ = other.tool_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + tool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetResponseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + + /** + * + * + *
+         * Required. The matching ID of the tool call the response is for.
+         * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Required. The matching ID of the tool call the response is for.
+         * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Required. The matching ID of the tool call the response is for.
+         * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The matching ID of the tool call the response is for.
+         * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The matching ID of the tool call the response is for.
+         * 
+ * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object tool_ = ""; + + /** + * + * + *
+         * Required. The identifier of the tool that got executed.
+         * 
+ * + * string tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tool. + */ + public java.lang.String getTool() { + java.lang.Object ref = tool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * Required. The identifier of the tool that got executed.
+         * 
+ * + * string tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tool. + */ + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = tool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * Required. The identifier of the tool that got executed.
+         * 
+ * + * string tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The tool to set. + * @return This builder for chaining. + */ + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tool_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The identifier of the tool that got executed.
+         * 
+ * + * string tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTool() { + tool_ = getDefaultInstance().getTool(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+         * Required. The identifier of the tool that got executed.
+         * 
+ * + * string tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tool_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Struct response_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + responseBuilder_; + + /** + * + * + *
+         * Optional. The tool execution result in JSON object format.
+         * 
+ * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the response field is set. + */ + public boolean hasResponse() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+         * Optional. The tool execution result in JSON object format.
+         * 
+ * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The response. + */ + public com.google.protobuf.Struct getResponse() { + if (responseBuilder_ == null) { + return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } + } + + /** + * + * + *
+         * Optional. The tool execution result in JSON object format.
+         * 
+ * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResponse(com.google.protobuf.Struct value) { + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + } else { + responseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. The tool execution result in JSON object format.
+         * 
+ * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResponse(com.google.protobuf.Struct.Builder builderForValue) { + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. The tool execution result in JSON object format.
+         * 
+ * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeResponse(com.google.protobuf.Struct value) { + if (responseBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && response_ != null + && response_ != com.google.protobuf.Struct.getDefaultInstance()) { + getResponseBuilder().mergeFrom(value); + } else { + response_ = value; + } + } else { + responseBuilder_.mergeFrom(value); + } + if (response_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+         * Optional. The tool execution result in JSON object format.
+         * 
+ * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearResponse() { + bitField0_ = (bitField0_ & ~0x00000004); + response_ = null; + if (responseBuilder_ != null) { + responseBuilder_.dispose(); + responseBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+         * Optional. The tool execution result in JSON object format.
+         * 
+ * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getResponseBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetResponseFieldBuilder().getBuilder(); + } + + /** + * + * + *
+         * Optional. The tool execution result in JSON object format.
+         * 
+ * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_; + } + } + + /** + * + * + *
+         * Optional. The tool execution result in JSON object format.
+         * 
+ * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getResponse(), getParentForChildren(), isClean()); + response_ = null; + } + return responseBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse) + private static final com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInput.ToolResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse(); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ToolResponsesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * Optional. The list of tool responses.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse> + getToolResponsesList(); + + /** + * + * + *
+       * Optional. The list of tool responses.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse + getToolResponses(int index); + + /** + * + * + *
+       * Optional. The list of tool responses.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getToolResponsesCount(); + + /** + * + * + *
+       * Optional. The list of tool responses.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponseOrBuilder> + getToolResponsesOrBuilderList(); + + /** + * + * + *
+       * Optional. The list of tool responses.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponseOrBuilder + getToolResponsesOrBuilder(int index); + } + + /** + * + * + *
+     * The tool responses from the client.
+     * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses} + */ + public static final class ToolResponses extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses) + ToolResponsesOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolResponses"); + } + + // Use ToolResponses.newBuilder() to construct. + private ToolResponses(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolResponses() { + toolResponses_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponses_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponses_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.Builder.class); + } + + public static final int TOOL_RESPONSES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse> + toolResponses_; + + /** + * + * + *
+       * Optional. The list of tool responses.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse> + getToolResponsesList() { + return toolResponses_; + } + + /** + * + * + *
+       * Optional. The list of tool responses.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponseOrBuilder> + getToolResponsesOrBuilderList() { + return toolResponses_; + } + + /** + * + * + *
+       * Optional. The list of tool responses.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getToolResponsesCount() { + return toolResponses_.size(); + } + + /** + * + * + *
+       * Optional. The list of tool responses.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + getToolResponses(int index) { + return toolResponses_.get(index); + } + + /** + * + * + *
+       * Optional. The list of tool responses.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponseOrBuilder + getToolResponsesOrBuilder(int index) { + return toolResponses_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < toolResponses_.size(); i++) { + output.writeMessage(1, toolResponses_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < toolResponses_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, toolResponses_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + other = + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses) + obj; + + if (!getToolResponsesList().equals(other.getToolResponsesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getToolResponsesCount() > 0) { + hash = (37 * hash) + TOOL_RESPONSES_FIELD_NUMBER; + hash = (53 * hash) + getToolResponsesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * The tool responses from the client.
+       * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses) + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponsesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponses_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponses_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolResponsesBuilder_ == null) { + toolResponses_ = java.util.Collections.emptyList(); + } else { + toolResponses_ = null; + toolResponsesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponses_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + build() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + buildPartial() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + result = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInput.ToolResponses(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + result) { + if (toolResponsesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + toolResponses_ = java.util.Collections.unmodifiableList(toolResponses_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.toolResponses_ = toolResponses_; + } else { + result.toolResponses_ = toolResponsesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.getDefaultInstance()) return this; + if (toolResponsesBuilder_ == null) { + if (!other.toolResponses_.isEmpty()) { + if (toolResponses_.isEmpty()) { + toolResponses_ = other.toolResponses_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToolResponsesIsMutable(); + toolResponses_.addAll(other.toolResponses_); + } + onChanged(); + } + } else { + if (!other.toolResponses_.isEmpty()) { + if (toolResponsesBuilder_.isEmpty()) { + toolResponsesBuilder_.dispose(); + toolResponsesBuilder_ = null; + toolResponses_ = other.toolResponses_; + bitField0_ = (bitField0_ & ~0x00000001); + toolResponsesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolResponsesFieldBuilder() + : null; + } else { + toolResponsesBuilder_.addAllMessages(other.toolResponses_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1 + .BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse + .parser(), + extensionRegistry); + if (toolResponsesBuilder_ == null) { + ensureToolResponsesIsMutable(); + toolResponses_.add(m); + } else { + toolResponsesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse> + toolResponses_ = java.util.Collections.emptyList(); + + private void ensureToolResponsesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + toolResponses_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse>(toolResponses_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponseOrBuilder> + toolResponsesBuilder_; + + /** + * + * + *
+         * Optional. The list of tool responses.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse> + getToolResponsesList() { + if (toolResponsesBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolResponses_); + } else { + return toolResponsesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+         * Optional. The list of tool responses.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getToolResponsesCount() { + if (toolResponsesBuilder_ == null) { + return toolResponses_.size(); + } else { + return toolResponsesBuilder_.getCount(); + } + } + + /** + * + * + *
+         * Optional. The list of tool responses.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + getToolResponses(int index) { + if (toolResponsesBuilder_ == null) { + return toolResponses_.get(index); + } else { + return toolResponsesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+         * Optional. The list of tool responses.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolResponses( + int index, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + value) { + if (toolResponsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolResponsesIsMutable(); + toolResponses_.set(index, value); + onChanged(); + } else { + toolResponsesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of tool responses.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolResponses( + int index, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder + builderForValue) { + if (toolResponsesBuilder_ == null) { + ensureToolResponsesIsMutable(); + toolResponses_.set(index, builderForValue.build()); + onChanged(); + } else { + toolResponsesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of tool responses.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolResponses( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + value) { + if (toolResponsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolResponsesIsMutable(); + toolResponses_.add(value); + onChanged(); + } else { + toolResponsesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of tool responses.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolResponses( + int index, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + value) { + if (toolResponsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolResponsesIsMutable(); + toolResponses_.add(index, value); + onChanged(); + } else { + toolResponsesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of tool responses.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolResponses( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder + builderForValue) { + if (toolResponsesBuilder_ == null) { + ensureToolResponsesIsMutable(); + toolResponses_.add(builderForValue.build()); + onChanged(); + } else { + toolResponsesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of tool responses.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolResponses( + int index, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder + builderForValue) { + if (toolResponsesBuilder_ == null) { + ensureToolResponsesIsMutable(); + toolResponses_.add(index, builderForValue.build()); + onChanged(); + } else { + toolResponsesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of tool responses.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllToolResponses( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInput.ToolResponse> + values) { + if (toolResponsesBuilder_ == null) { + ensureToolResponsesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolResponses_); + onChanged(); + } else { + toolResponsesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of tool responses.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolResponses() { + if (toolResponsesBuilder_ == null) { + toolResponses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + toolResponsesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of tool responses.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeToolResponses(int index) { + if (toolResponsesBuilder_ == null) { + ensureToolResponsesIsMutable(); + toolResponses_.remove(index); + onChanged(); + } else { + toolResponsesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+         * Optional. The list of tool responses.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder + getToolResponsesBuilder(int index) { + return internalGetToolResponsesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+         * Optional. The list of tool responses.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponseOrBuilder + getToolResponsesOrBuilder(int index) { + if (toolResponsesBuilder_ == null) { + return toolResponses_.get(index); + } else { + return toolResponsesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+         * Optional. The list of tool responses.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponseOrBuilder> + getToolResponsesOrBuilderList() { + if (toolResponsesBuilder_ != null) { + return toolResponsesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolResponses_); + } + } + + /** + * + * + *
+         * Optional. The list of tool responses.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder + addToolResponsesBuilder() { + return internalGetToolResponsesFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.getDefaultInstance()); + } + + /** + * + * + *
+         * Optional. The list of tool responses.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder + addToolResponsesBuilder(int index) { + return internalGetToolResponsesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.getDefaultInstance()); + } + + /** + * + * + *
+         * Optional. The list of tool responses.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder> + getToolResponsesBuilderList() { + return internalGetToolResponsesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponseOrBuilder> + internalGetToolResponsesFieldBuilder() { + if (toolResponsesBuilder_ == null) { + toolResponsesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponseOrBuilder>( + toolResponses_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + toolResponses_ = null; + } + return toolResponsesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses) + private static final com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInput.ToolResponses + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses(); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private TurnInput() {} + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolResponses parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_descriptor; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput - .class, - com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput - .Builder.class); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } private int bitField0_; @@ -3911,6 +6374,73 @@ public com.google.protobuf.StructOrBuilder getVirtualAgentParametersOrBuilder() : virtualAgentParameters_; } + public static final int TOOL_RESPONSES_FIELD_NUMBER = 5; + private com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + toolResponses_; + + /** + * + * + *
+     * Optional. The tool responses from the client.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolResponses field is set. + */ + @java.lang.Override + public boolean hasToolResponses() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. The tool responses from the client.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolResponses. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + getToolResponses() { + return toolResponses_ == null + ? com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.getDefaultInstance() + : toolResponses_; + } + + /** + * + * + *
+     * Optional. The tool responses from the client.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponsesOrBuilder + getToolResponsesOrBuilder() { + return toolResponses_ == null + ? com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.getDefaultInstance() + : toolResponses_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3937,6 +6467,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getVirtualAgentParameters()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getToolResponses()); + } getUnknownFields().writeTo(output); } @@ -3960,6 +6493,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 4, getVirtualAgentParameters()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getToolResponses()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3982,6 +6518,10 @@ public boolean equals(final java.lang.Object obj) { if (hasVirtualAgentParameters()) { if (!getVirtualAgentParameters().equals(other.getVirtualAgentParameters())) return false; } + if (hasToolResponses() != other.hasToolResponses()) return false; + if (hasToolResponses()) { + if (!getToolResponses().equals(other.getToolResponses())) return false; + } if (!getMainContentCase().equals(other.getMainContentCase())) return false; switch (mainContentCase_) { case 1: @@ -4011,6 +6551,10 @@ public int hashCode() { hash = (37 * hash) + VIRTUAL_AGENT_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getVirtualAgentParameters().hashCode(); } + if (hasToolResponses()) { + hash = (37 * hash) + TOOL_RESPONSES_FIELD_NUMBER; + hash = (53 * hash) + getToolResponses().hashCode(); + } switch (mainContentCase_) { case 1: hash = (37 * hash) + TEXT_FIELD_NUMBER; @@ -4181,6 +6725,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetVirtualAgentParametersFieldBuilder(); + internalGetToolResponsesFieldBuilder(); } } @@ -4193,6 +6738,11 @@ public Builder clear() { virtualAgentParametersBuilder_.dispose(); virtualAgentParametersBuilder_ = null; } + toolResponses_ = null; + if (toolResponsesBuilder_ != null) { + toolResponsesBuilder_.dispose(); + toolResponsesBuilder_ = null; + } mainContentCase_ = 0; mainContent_ = null; return this; @@ -4247,6 +6797,11 @@ private void buildPartial0( : virtualAgentParametersBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.toolResponses_ = + toolResponsesBuilder_ == null ? toolResponses_ : toolResponsesBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -4278,6 +6833,9 @@ public Builder mergeFrom( if (other.hasVirtualAgentParameters()) { mergeVirtualAgentParameters(other.getVirtualAgentParameters()); } + if (other.hasToolResponses()) { + mergeToolResponses(other.getToolResponses()); + } switch (other.getMainContentCase()) { case TEXT: { @@ -4360,6 +6918,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + input.readMessage( + internalGetToolResponsesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5058,6 +7623,248 @@ public com.google.protobuf.StructOrBuilder getVirtualAgentParametersOrBuilder() return virtualAgentParametersBuilder_; } + private com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + toolResponses_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponsesOrBuilder> + toolResponsesBuilder_; + + /** + * + * + *
+       * Optional. The tool responses from the client.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolResponses field is set. + */ + public boolean hasToolResponses() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+       * Optional. The tool responses from the client.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolResponses. + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + getToolResponses() { + if (toolResponsesBuilder_ == null) { + return toolResponses_ == null + ? com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.getDefaultInstance() + : toolResponses_; + } else { + return toolResponsesBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. The tool responses from the client.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolResponses( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + value) { + if (toolResponsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolResponses_ = value; + } else { + toolResponsesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The tool responses from the client.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolResponses( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.Builder + builderForValue) { + if (toolResponsesBuilder_ == null) { + toolResponses_ = builderForValue.build(); + } else { + toolResponsesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The tool responses from the client.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeToolResponses( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + value) { + if (toolResponsesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && toolResponses_ != null + && toolResponses_ + != com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInput.ToolResponses.getDefaultInstance()) { + getToolResponsesBuilder().mergeFrom(value); + } else { + toolResponses_ = value; + } + } else { + toolResponsesBuilder_.mergeFrom(value); + } + if (toolResponses_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. The tool responses from the client.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolResponses() { + bitField0_ = (bitField0_ & ~0x00000010); + toolResponses_ = null; + if (toolResponsesBuilder_ != null) { + toolResponsesBuilder_.dispose(); + toolResponsesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The tool responses from the client.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.Builder + getToolResponsesBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetToolResponsesFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. The tool responses from the client.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponsesOrBuilder + getToolResponsesOrBuilder() { + if (toolResponsesBuilder_ != null) { + return toolResponsesBuilder_.getMessageOrBuilder(); + } else { + return toolResponses_ == null + ? com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.getDefaultInstance() + : toolResponses_; + } + } + + /** + * + * + *
+       * Optional. The tool responses from the client.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponsesOrBuilder> + internalGetToolResponsesFieldBuilder() { + if (toolResponsesBuilder_ == null) { + toolResponsesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponsesOrBuilder>( + getToolResponses(), getParentForChildren(), isClean()); + toolResponses_ = null; + } + return toolResponsesBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponse.java index dc795f96f815..77f508465dd0 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponse.java @@ -935,6 +935,2303 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface ToolCallOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The unique identifier of the tool call.
+     * 
+ * + * string id = 1; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+     * The unique identifier of the tool call.
+     * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+     * The identifier of the tool to execute.
+     * 
+ * + * string tool = 2; + * + * @return The tool. + */ + java.lang.String getTool(); + + /** + * + * + *
+     * The identifier of the tool to execute.
+     * 
+ * + * string tool = 2; + * + * @return The bytes for tool. + */ + com.google.protobuf.ByteString getToolBytes(); + + /** + * + * + *
+     * The input parameters and values for the tool in JSON object format.
+     * 
+ * + * .google.protobuf.Struct args = 3; + * + * @return Whether the args field is set. + */ + boolean hasArgs(); + + /** + * + * + *
+     * The input parameters and values for the tool in JSON object format.
+     * 
+ * + * .google.protobuf.Struct args = 3; + * + * @return The args. + */ + com.google.protobuf.Struct getArgs(); + + /** + * + * + *
+     * The input parameters and values for the tool in JSON object format.
+     * 
+ * + * .google.protobuf.Struct args = 3; + */ + com.google.protobuf.StructOrBuilder getArgsOrBuilder(); + } + + /** + * + * + *
+   * Request for the client to execute the specified tool.
+   * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall} + */ + public static final class ToolCall extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall) + ToolCallOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolCall"); + } + + // Use ToolCall.newBuilder() to construct. + private ToolCall(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolCall() { + id_ = ""; + tool_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+     * The unique identifier of the tool call.
+     * 
+ * + * string id = 1; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + + /** + * + * + *
+     * The unique identifier of the tool call.
+     * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object tool_ = ""; + + /** + * + * + *
+     * The identifier of the tool to execute.
+     * 
+ * + * string tool = 2; + * + * @return The tool. + */ + @java.lang.Override + public java.lang.String getTool() { + java.lang.Object ref = tool_; + 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(); + tool_ = s; + return s; + } + } + + /** + * + * + *
+     * The identifier of the tool to execute.
+     * 
+ * + * string tool = 2; + * + * @return The bytes for tool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = tool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARGS_FIELD_NUMBER = 3; + private com.google.protobuf.Struct args_; + + /** + * + * + *
+     * The input parameters and values for the tool in JSON object format.
+     * 
+ * + * .google.protobuf.Struct args = 3; + * + * @return Whether the args field is set. + */ + @java.lang.Override + public boolean hasArgs() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The input parameters and values for the tool in JSON object format.
+     * 
+ * + * .google.protobuf.Struct args = 3; + * + * @return The args. + */ + @java.lang.Override + public com.google.protobuf.Struct getArgs() { + return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_; + } + + /** + * + * + *
+     * The input parameters and values for the tool in JSON object format.
+     * 
+ * + * .google.protobuf.Struct args = 3; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getArgsOrBuilder() { + return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tool_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, tool_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getArgs()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tool_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, tool_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getArgs()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall other = + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall) obj; + + if (!getId().equals(other.getId())) return false; + if (!getTool().equals(other.getTool())) return false; + if (hasArgs() != other.hasArgs()) return false; + if (hasArgs()) { + if (!getArgs().equals(other.getArgs())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + if (hasArgs()) { + hash = (37 * hash) + ARGS_FIELD_NUMBER; + hash = (53 * hash) + getArgs().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Request for the client to execute the specified tool.
+     * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall) + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCallOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetArgsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + tool_ = ""; + args_ = null; + if (argsBuilder_ != null) { + argsBuilder_.dispose(); + argsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCall_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + build() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + buildPartial() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall result = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tool_ = tool_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.args_ = argsBuilder_ == null ? args_ : argsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall other) { + if (other + == com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTool().isEmpty()) { + tool_ = other.tool_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasArgs()) { + mergeArgs(other.getArgs()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + tool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetArgsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + + /** + * + * + *
+       * The unique identifier of the tool call.
+       * 
+ * + * string id = 1; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The unique identifier of the tool call.
+       * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The unique identifier of the tool call.
+       * 
+ * + * string id = 1; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The unique identifier of the tool call.
+       * 
+ * + * string id = 1; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * The unique identifier of the tool call.
+       * 
+ * + * string id = 1; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object tool_ = ""; + + /** + * + * + *
+       * The identifier of the tool to execute.
+       * 
+ * + * string tool = 2; + * + * @return The tool. + */ + public java.lang.String getTool() { + java.lang.Object ref = tool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The identifier of the tool to execute.
+       * 
+ * + * string tool = 2; + * + * @return The bytes for tool. + */ + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = tool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The identifier of the tool to execute.
+       * 
+ * + * string tool = 2; + * + * @param value The tool to set. + * @return This builder for chaining. + */ + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tool_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The identifier of the tool to execute.
+       * 
+ * + * string tool = 2; + * + * @return This builder for chaining. + */ + public Builder clearTool() { + tool_ = getDefaultInstance().getTool(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * The identifier of the tool to execute.
+       * 
+ * + * string tool = 2; + * + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tool_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Struct args_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + argsBuilder_; + + /** + * + * + *
+       * The input parameters and values for the tool in JSON object format.
+       * 
+ * + * .google.protobuf.Struct args = 3; + * + * @return Whether the args field is set. + */ + public boolean hasArgs() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+       * The input parameters and values for the tool in JSON object format.
+       * 
+ * + * .google.protobuf.Struct args = 3; + * + * @return The args. + */ + public com.google.protobuf.Struct getArgs() { + if (argsBuilder_ == null) { + return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_; + } else { + return argsBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * The input parameters and values for the tool in JSON object format.
+       * 
+ * + * .google.protobuf.Struct args = 3; + */ + public Builder setArgs(com.google.protobuf.Struct value) { + if (argsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + args_ = value; + } else { + argsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The input parameters and values for the tool in JSON object format.
+       * 
+ * + * .google.protobuf.Struct args = 3; + */ + public Builder setArgs(com.google.protobuf.Struct.Builder builderForValue) { + if (argsBuilder_ == null) { + args_ = builderForValue.build(); + } else { + argsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The input parameters and values for the tool in JSON object format.
+       * 
+ * + * .google.protobuf.Struct args = 3; + */ + public Builder mergeArgs(com.google.protobuf.Struct value) { + if (argsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && args_ != null + && args_ != com.google.protobuf.Struct.getDefaultInstance()) { + getArgsBuilder().mergeFrom(value); + } else { + args_ = value; + } + } else { + argsBuilder_.mergeFrom(value); + } + if (args_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * The input parameters and values for the tool in JSON object format.
+       * 
+ * + * .google.protobuf.Struct args = 3; + */ + public Builder clearArgs() { + bitField0_ = (bitField0_ & ~0x00000004); + args_ = null; + if (argsBuilder_ != null) { + argsBuilder_.dispose(); + argsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * The input parameters and values for the tool in JSON object format.
+       * 
+ * + * .google.protobuf.Struct args = 3; + */ + public com.google.protobuf.Struct.Builder getArgsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetArgsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * The input parameters and values for the tool in JSON object format.
+       * 
+ * + * .google.protobuf.Struct args = 3; + */ + public com.google.protobuf.StructOrBuilder getArgsOrBuilder() { + if (argsBuilder_ != null) { + return argsBuilder_.getMessageOrBuilder(); + } else { + return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_; + } + } + + /** + * + * + *
+       * The input parameters and values for the tool in JSON object format.
+       * 
+ * + * .google.protobuf.Struct args = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetArgsFieldBuilder() { + if (argsBuilder_ == null) { + argsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getArgs(), getParentForChildren(), isClean()); + args_ = null; + } + return argsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall) + private static final com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCall + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall(); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolCall parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ToolCallsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The list of tool calls.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + java.util.List + getToolCallsList(); + + /** + * + * + *
+     * The list of tool calls.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall getToolCalls( + int index); + + /** + * + * + *
+     * The list of tool calls.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + int getToolCallsCount(); + + /** + * + * + *
+     * The list of tool calls.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallOrBuilder> + getToolCallsOrBuilderList(); + + /** + * + * + *
+     * The list of tool calls.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCallOrBuilder + getToolCallsOrBuilder(int index); + } + + /** + * + * + *
+   * The tool calls from the server.
+   * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls} + */ + public static final class ToolCalls extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + ToolCallsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolCalls"); + } + + // Use ToolCalls.newBuilder() to construct. + private ToolCalls(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolCalls() { + toolCalls_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCalls_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCalls_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .Builder.class); + } + + public static final int TOOL_CALLS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall> + toolCalls_; + + /** + * + * + *
+     * The list of tool calls.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall> + getToolCallsList() { + return toolCalls_; + } + + /** + * + * + *
+     * The list of tool calls.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallOrBuilder> + getToolCallsOrBuilderList() { + return toolCalls_; + } + + /** + * + * + *
+     * The list of tool calls.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + @java.lang.Override + public int getToolCallsCount() { + return toolCalls_.size(); + } + + /** + * + * + *
+     * The list of tool calls.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + getToolCalls(int index) { + return toolCalls_.get(index); + } + + /** + * + * + *
+     * The list of tool calls.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCallOrBuilder + getToolCallsOrBuilder(int index) { + return toolCalls_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < toolCalls_.size(); i++) { + output.writeMessage(1, toolCalls_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < toolCalls_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, toolCalls_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls other = + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) obj; + + if (!getToolCallsList().equals(other.getToolCallsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getToolCallsCount() > 0) { + hash = (37 * hash) + TOOL_CALLS_FIELD_NUMBER; + hash = (53 * hash) + getToolCallsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * The tool calls from the server.
+     * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCallsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCalls_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCalls_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolCallsBuilder_ == null) { + toolCalls_ = java.util.Collections.emptyList(); + } else { + toolCalls_ = null; + toolCallsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCalls_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + build() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + buildPartial() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls result = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + result) { + if (toolCallsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + toolCalls_ = java.util.Collections.unmodifiableList(toolCalls_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.toolCalls_ = toolCalls_; + } else { + result.toolCalls_ = toolCallsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls other) { + if (other + == com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .getDefaultInstance()) return this; + if (toolCallsBuilder_ == null) { + if (!other.toolCalls_.isEmpty()) { + if (toolCalls_.isEmpty()) { + toolCalls_ = other.toolCalls_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToolCallsIsMutable(); + toolCalls_.addAll(other.toolCalls_); + } + onChanged(); + } + } else { + if (!other.toolCalls_.isEmpty()) { + if (toolCallsBuilder_.isEmpty()) { + toolCallsBuilder_.dispose(); + toolCallsBuilder_ = null; + toolCalls_ = other.toolCalls_; + bitField0_ = (bitField0_ & ~0x00000001); + toolCallsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolCallsFieldBuilder() + : null; + } else { + toolCallsBuilder_.addAllMessages(other.toolCalls_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1 + .BidiStreamingAnalyzeContentResponse.ToolCall.parser(), + extensionRegistry); + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.add(m); + } else { + toolCallsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall> + toolCalls_ = java.util.Collections.emptyList(); + + private void ensureToolCallsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + toolCalls_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall>( + toolCalls_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallOrBuilder> + toolCallsBuilder_; + + /** + * + * + *
+       * The list of tool calls.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall> + getToolCallsList() { + if (toolCallsBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolCalls_); + } else { + return toolCallsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * The list of tool calls.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public int getToolCallsCount() { + if (toolCallsBuilder_ == null) { + return toolCalls_.size(); + } else { + return toolCallsBuilder_.getCount(); + } + } + + /** + * + * + *
+       * The list of tool calls.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + getToolCalls(int index) { + if (toolCallsBuilder_ == null) { + return toolCalls_.get(index); + } else { + return toolCallsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+       * The list of tool calls.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public Builder setToolCalls( + int index, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall value) { + if (toolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolCallsIsMutable(); + toolCalls_.set(index, value); + onChanged(); + } else { + toolCallsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * The list of tool calls.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public Builder setToolCalls( + int index, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall.Builder + builderForValue) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.set(index, builderForValue.build()); + onChanged(); + } else { + toolCallsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * The list of tool calls.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public Builder addToolCalls( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall value) { + if (toolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolCallsIsMutable(); + toolCalls_.add(value); + onChanged(); + } else { + toolCallsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+       * The list of tool calls.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public Builder addToolCalls( + int index, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall value) { + if (toolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolCallsIsMutable(); + toolCalls_.add(index, value); + onChanged(); + } else { + toolCallsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * The list of tool calls.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public Builder addToolCalls( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall.Builder + builderForValue) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.add(builderForValue.build()); + onChanged(); + } else { + toolCallsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * The list of tool calls.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public Builder addToolCalls( + int index, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall.Builder + builderForValue) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.add(index, builderForValue.build()); + onChanged(); + } else { + toolCallsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * The list of tool calls.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public Builder addAllToolCalls( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCall> + values) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolCalls_); + onChanged(); + } else { + toolCallsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * The list of tool calls.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public Builder clearToolCalls() { + if (toolCallsBuilder_ == null) { + toolCalls_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + toolCallsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * The list of tool calls.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public Builder removeToolCalls(int index) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.remove(index); + onChanged(); + } else { + toolCallsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * The list of tool calls.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .Builder + getToolCallsBuilder(int index) { + return internalGetToolCallsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * The list of tool calls.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallOrBuilder + getToolCallsOrBuilder(int index) { + if (toolCallsBuilder_ == null) { + return toolCalls_.get(index); + } else { + return toolCallsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * The list of tool calls.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallOrBuilder> + getToolCallsOrBuilderList() { + if (toolCallsBuilder_ != null) { + return toolCallsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolCalls_); + } + } + + /** + * + * + *
+       * The list of tool calls.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .Builder + addToolCallsBuilder() { + return internalGetToolCallsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .getDefaultInstance()); + } + + /** + * + * + *
+       * The list of tool calls.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .Builder + addToolCallsBuilder(int index) { + return internalGetToolCallsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .getDefaultInstance()); + } + + /** + * + * + *
+       * The list of tool calls.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .Builder> + getToolCallsBuilderList() { + return internalGetToolCallsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallOrBuilder> + internalGetToolCallsFieldBuilder() { + if (toolCallsBuilder_ == null) { + toolCallsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallOrBuilder>( + toolCalls_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + toolCalls_ = null; + } + return toolCallsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + private static final com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCalls + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls(); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolCalls parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int responseCase_ = 0; @SuppressWarnings("serial") @@ -948,6 +3245,7 @@ public enum ResponseCase BARGE_IN_SIGNAL(2), ANALYZE_CONTENT_RESPONSE(3), TURN_COMPLETE(4), + TOOL_CALLS(5), RESPONSE_NOT_SET(0); private final int value; @@ -975,6 +3273,8 @@ public static ResponseCase forNumber(int value) { return ANALYZE_CONTENT_RESPONSE; case 4: return TURN_COMPLETE; + case 5: + return TOOL_CALLS; case 0: return RESPONSE_NOT_SET; default: @@ -1247,6 +3547,72 @@ public boolean hasTurnComplete() { .getDefaultInstance(); } + public static final int TOOL_CALLS_FIELD_NUMBER = 5; + + /** + * + * + *
+   * The tool calls from the server.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + * + * @return Whether the toolCalls field is set. + */ + @java.lang.Override + public boolean hasToolCalls() { + return responseCase_ == 5; + } + + /** + * + * + *
+   * The tool calls from the server.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + * + * @return The toolCalls. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + getToolCalls() { + if (responseCase_ == 5) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + response_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .getDefaultInstance(); + } + + /** + * + * + *
+   * The tool calls from the server.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCallsOrBuilder + getToolCallsOrBuilder() { + if (responseCase_ == 5) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + response_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1281,6 +3647,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete) response_); } + if (responseCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + response_); + } getUnknownFields().writeTo(output); } @@ -1315,6 +3687,13 @@ public int getSerializedSize() { (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete) response_); } + if (responseCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + response_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1345,6 +3724,9 @@ public boolean equals(final java.lang.Object obj) { case 4: if (!getTurnComplete().equals(other.getTurnComplete())) return false; break; + case 5: + if (!getToolCalls().equals(other.getToolCalls())) return false; + break; case 0: default: } @@ -1376,6 +3758,10 @@ public int hashCode() { hash = (37 * hash) + TURN_COMPLETE_FIELD_NUMBER; hash = (53 * hash) + getTurnComplete().hashCode(); break; + case 5: + hash = (37 * hash) + TOOL_CALLS_FIELD_NUMBER; + hash = (53 * hash) + getToolCalls().hashCode(); + break; case 0: default: } @@ -1536,6 +3922,9 @@ public Builder clear() { if (turnCompleteBuilder_ != null) { turnCompleteBuilder_.clear(); } + if (toolCallsBuilder_ != null) { + toolCallsBuilder_.clear(); + } responseCase_ = 0; response_ = null; return this; @@ -1597,6 +3986,9 @@ private void buildPartialOneofs( if (responseCase_ == 4 && turnCompleteBuilder_ != null) { result.response_ = turnCompleteBuilder_.build(); } + if (responseCase_ == 5 && toolCallsBuilder_ != null) { + result.response_ = toolCallsBuilder_.build(); + } } @java.lang.Override @@ -1637,6 +4029,11 @@ public Builder mergeFrom( mergeTurnComplete(other.getTurnComplete()); break; } + case TOOL_CALLS: + { + mergeToolCalls(other.getToolCalls()); + break; + } case RESPONSE_NOT_SET: { break; @@ -1697,6 +4094,13 @@ public Builder mergeFrom( responseCase_ = 4; break; } // case 34 + case 42: + { + input.readMessage( + internalGetToolCallsFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 5; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2755,6 +5159,268 @@ public Builder clearTurnComplete() { return turnCompleteBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallsOrBuilder> + toolCallsBuilder_; + + /** + * + * + *
+     * The tool calls from the server.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + * + * @return Whether the toolCalls field is set. + */ + @java.lang.Override + public boolean hasToolCalls() { + return responseCase_ == 5; + } + + /** + * + * + *
+     * The tool calls from the server.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + * + * @return The toolCalls. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + getToolCalls() { + if (toolCallsBuilder_ == null) { + if (responseCase_ == 5) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + response_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .getDefaultInstance(); + } else { + if (responseCase_ == 5) { + return toolCallsBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * The tool calls from the server.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + */ + public Builder setToolCalls( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls value) { + if (toolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + toolCallsBuilder_.setMessage(value); + } + responseCase_ = 5; + return this; + } + + /** + * + * + *
+     * The tool calls from the server.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + */ + public Builder setToolCalls( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls.Builder + builderForValue) { + if (toolCallsBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + toolCallsBuilder_.setMessage(builderForValue.build()); + } + responseCase_ = 5; + return this; + } + + /** + * + * + *
+     * The tool calls from the server.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + */ + public Builder mergeToolCalls( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls value) { + if (toolCallsBuilder_ == null) { + if (responseCase_ == 5 + && response_ + != com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .getDefaultInstance()) { + response_ = + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .newBuilder( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCalls) + response_) + .mergeFrom(value) + .buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + if (responseCase_ == 5) { + toolCallsBuilder_.mergeFrom(value); + } else { + toolCallsBuilder_.setMessage(value); + } + } + responseCase_ = 5; + return this; + } + + /** + * + * + *
+     * The tool calls from the server.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + */ + public Builder clearToolCalls() { + if (toolCallsBuilder_ == null) { + if (responseCase_ == 5) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + } else { + if (responseCase_ == 5) { + responseCase_ = 0; + response_ = null; + } + toolCallsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The tool calls from the server.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls.Builder + getToolCallsBuilder() { + return internalGetToolCallsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The tool calls from the server.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallsOrBuilder + getToolCallsOrBuilder() { + if ((responseCase_ == 5) && (toolCallsBuilder_ != null)) { + return toolCallsBuilder_.getMessageOrBuilder(); + } else { + if (responseCase_ == 5) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + response_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .getDefaultInstance(); + } + } + + /** + * + * + *
+     * The tool calls from the server.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallsOrBuilder> + internalGetToolCallsFieldBuilder() { + if (toolCallsBuilder_ == null) { + if (!(responseCase_ == 5)) { + response_ = + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .getDefaultInstance(); + } + toolCallsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallsOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + response_, + getParentForChildren(), + isClean()); + response_ = null; + } + responseCase_ = 5; + onChanged(); + return toolCallsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponseOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponseOrBuilder.java index 5c7d5f9c1293..6cf60c79638b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponseOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponseOrBuilder.java @@ -204,6 +204,50 @@ public interface BidiStreamingAnalyzeContentResponseOrBuilder com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnCompleteOrBuilder getTurnCompleteOrBuilder(); + /** + * + * + *
+   * The tool calls from the server.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + * + * @return Whether the toolCalls field is set. + */ + boolean hasToolCalls(); + + /** + * + * + *
+   * The tool calls from the server.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + * + * @return The toolCalls. + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls getToolCalls(); + + /** + * + * + *
+   * The tool calls from the server.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCallsOrBuilder + getToolCallsOrBuilder(); + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ResponseCase getResponseCase(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppProto.java index 33651db0df69..a739bcc1997f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppProto.java @@ -57,17 +57,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "p.proto\022\037google.cloud.dialogflow.v2beta1" + "\032\037google/api/field_behavior.proto\032\031googl" + "e/api/resource.proto\032*google/cloud/dialo" - + "gflow/v2beta1/tool.proto\"\243\001\n\nCesAppSpec\022" + + "gflow/v2beta1/tool.proto\"\227\002\n\nCesAppSpec\022" + "/\n\007ces_app\030\001 \001(\tB\036\340A\001\372A\030\n\026ces.googleapis" + ".com/App\022d\n\030confirmation_requirement\030\002 \001" + "(\0162=.google.cloud.dialogflow.v2beta1.Too" - + "l.ConfirmationRequirementB\003\340A\001B\357\001\n#com.g" - + "oogle.cloud.dialogflow.v2beta1B\013CesAppPr" - + "otoP\001ZCcloud.google.com/go/dialogflow/ap" - + "iv2beta1/dialogflowpb;dialogflowpb\242\002\002DF\252" - + "\002\037Google.Cloud.Dialogflow.V2Beta1\352AL\n\026ce" - + "s.googleapis.com/App\0222projects/{project}" - + "/locations/{location}/apps/{app}b\006proto3" + + "l.ConfirmationRequirementB\003\340A\001\022#\n\021proact" + + "ive_enabled\030\003 \001(\010B\003\340A\001H\000\210\001\001\022\"\n\020reactive_" + + "enabled\030\004 \001(\010B\003\340A\001H\001\210\001\001B\024\n\022_proactive_en" + + "abledB\023\n\021_reactive_enabledB\357\001\n#com.googl" + + "e.cloud.dialogflow.v2beta1B\013CesAppProtoP" + + "\001ZCcloud.google.com/go/dialogflow/apiv2b" + + "eta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Go" + + "ogle.Cloud.Dialogflow.V2Beta1\352AL\n\026ces.go" + + "ogleapis.com/App\0222projects/{project}/loc" + + "ations/{location}/apps/{app}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -83,7 +86,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_descriptor, new java.lang.String[] { - "CesApp", "ConfirmationRequirement", + "CesApp", "ConfirmationRequirement", "ProactiveEnabled", "ReactiveEnabled", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpec.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpec.java index c52ee5f60455..ff426dec4a19 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpec.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpec.java @@ -71,6 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder.class); } + private int bitField0_; public static final int CES_APP_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -175,6 +176,88 @@ public int getConfirmationRequirementValue() { : result; } + public static final int PROACTIVE_ENABLED_FIELD_NUMBER = 3; + private boolean proactiveEnabled_ = false; + + /** + * + * + *
+   * Optional. Only applicable for CompanionAgent.
+   * Indicates whether the ces app is enabled in proactive mode.
+   * At least one of `proactive_enabled` or `reactive_enabled` should be
+   * true; otherwise, the ces app will be ignored.
+   * 
+ * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the proactiveEnabled field is set. + */ + @java.lang.Override + public boolean hasProactiveEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Only applicable for CompanionAgent.
+   * Indicates whether the ces app is enabled in proactive mode.
+   * At least one of `proactive_enabled` or `reactive_enabled` should be
+   * true; otherwise, the ces app will be ignored.
+   * 
+ * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proactiveEnabled. + */ + @java.lang.Override + public boolean getProactiveEnabled() { + return proactiveEnabled_; + } + + public static final int REACTIVE_ENABLED_FIELD_NUMBER = 4; + private boolean reactiveEnabled_ = false; + + /** + * + * + *
+   * Optional. Only applicable for CompanionAgent.
+   * Indicates whether the ces app is enabled in reactive mode.
+   * At least one of `proactive_enabled` or `reactive_enabled` should be
+   * true; otherwise, the ces app will be ignored.
+   * 
+ * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the reactiveEnabled field is set. + */ + @java.lang.Override + public boolean hasReactiveEnabled() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Only applicable for CompanionAgent.
+   * Indicates whether the ces app is enabled in reactive mode.
+   * At least one of `proactive_enabled` or `reactive_enabled` should be
+   * true; otherwise, the ces app will be ignored.
+   * 
+ * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reactiveEnabled. + */ + @java.lang.Override + public boolean getReactiveEnabled() { + return reactiveEnabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -198,6 +281,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(2, confirmationRequirement_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(3, proactiveEnabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(4, reactiveEnabled_); + } getUnknownFields().writeTo(output); } @@ -216,6 +305,12 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, confirmationRequirement_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, proactiveEnabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reactiveEnabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -234,6 +329,14 @@ public boolean equals(final java.lang.Object obj) { if (!getCesApp().equals(other.getCesApp())) return false; if (confirmationRequirement_ != other.confirmationRequirement_) return false; + if (hasProactiveEnabled() != other.hasProactiveEnabled()) return false; + if (hasProactiveEnabled()) { + if (getProactiveEnabled() != other.getProactiveEnabled()) return false; + } + if (hasReactiveEnabled() != other.hasReactiveEnabled()) return false; + if (hasReactiveEnabled()) { + if (getReactiveEnabled() != other.getReactiveEnabled()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -249,6 +352,14 @@ public int hashCode() { hash = (53 * hash) + getCesApp().hashCode(); hash = (37 * hash) + CONFIRMATION_REQUIREMENT_FIELD_NUMBER; hash = (53 * hash) + confirmationRequirement_; + if (hasProactiveEnabled()) { + hash = (37 * hash) + PROACTIVE_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProactiveEnabled()); + } + if (hasReactiveEnabled()) { + hash = (37 * hash) + REACTIVE_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReactiveEnabled()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -391,6 +502,8 @@ public Builder clear() { bitField0_ = 0; cesApp_ = ""; confirmationRequirement_ = 0; + proactiveEnabled_ = false; + reactiveEnabled_ = false; return this; } @@ -433,6 +546,16 @@ private void buildPartial0(com.google.cloud.dialogflow.v2beta1.CesAppSpec result if (((from_bitField0_ & 0x00000002) != 0)) { result.confirmationRequirement_ = confirmationRequirement_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.proactiveEnabled_ = proactiveEnabled_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.reactiveEnabled_ = reactiveEnabled_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -455,6 +578,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.CesAppSpec other) { if (other.confirmationRequirement_ != 0) { setConfirmationRequirementValue(other.getConfirmationRequirementValue()); } + if (other.hasProactiveEnabled()) { + setProactiveEnabled(other.getProactiveEnabled()); + } + if (other.hasReactiveEnabled()) { + setReactiveEnabled(other.getReactiveEnabled()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -493,6 +622,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 24: + { + proactiveEnabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + reactiveEnabled_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -748,6 +889,174 @@ public Builder clearConfirmationRequirement() { return this; } + private boolean proactiveEnabled_; + + /** + * + * + *
+     * Optional. Only applicable for CompanionAgent.
+     * Indicates whether the ces app is enabled in proactive mode.
+     * At least one of `proactive_enabled` or `reactive_enabled` should be
+     * true; otherwise, the ces app will be ignored.
+     * 
+ * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the proactiveEnabled field is set. + */ + @java.lang.Override + public boolean hasProactiveEnabled() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Only applicable for CompanionAgent.
+     * Indicates whether the ces app is enabled in proactive mode.
+     * At least one of `proactive_enabled` or `reactive_enabled` should be
+     * true; otherwise, the ces app will be ignored.
+     * 
+ * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proactiveEnabled. + */ + @java.lang.Override + public boolean getProactiveEnabled() { + return proactiveEnabled_; + } + + /** + * + * + *
+     * Optional. Only applicable for CompanionAgent.
+     * Indicates whether the ces app is enabled in proactive mode.
+     * At least one of `proactive_enabled` or `reactive_enabled` should be
+     * true; otherwise, the ces app will be ignored.
+     * 
+ * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The proactiveEnabled to set. + * @return This builder for chaining. + */ + public Builder setProactiveEnabled(boolean value) { + + proactiveEnabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Only applicable for CompanionAgent.
+     * Indicates whether the ces app is enabled in proactive mode.
+     * At least one of `proactive_enabled` or `reactive_enabled` should be
+     * true; otherwise, the ces app will be ignored.
+     * 
+ * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProactiveEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + proactiveEnabled_ = false; + onChanged(); + return this; + } + + private boolean reactiveEnabled_; + + /** + * + * + *
+     * Optional. Only applicable for CompanionAgent.
+     * Indicates whether the ces app is enabled in reactive mode.
+     * At least one of `proactive_enabled` or `reactive_enabled` should be
+     * true; otherwise, the ces app will be ignored.
+     * 
+ * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the reactiveEnabled field is set. + */ + @java.lang.Override + public boolean hasReactiveEnabled() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Only applicable for CompanionAgent.
+     * Indicates whether the ces app is enabled in reactive mode.
+     * At least one of `proactive_enabled` or `reactive_enabled` should be
+     * true; otherwise, the ces app will be ignored.
+     * 
+ * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reactiveEnabled. + */ + @java.lang.Override + public boolean getReactiveEnabled() { + return reactiveEnabled_; + } + + /** + * + * + *
+     * Optional. Only applicable for CompanionAgent.
+     * Indicates whether the ces app is enabled in reactive mode.
+     * At least one of `proactive_enabled` or `reactive_enabled` should be
+     * true; otherwise, the ces app will be ignored.
+     * 
+ * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The reactiveEnabled to set. + * @return This builder for chaining. + */ + public Builder setReactiveEnabled(boolean value) { + + reactiveEnabled_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Only applicable for CompanionAgent.
+     * Indicates whether the ces app is enabled in reactive mode.
+     * At least one of `proactive_enabled` or `reactive_enabled` should be
+     * true; otherwise, the ces app will be ignored.
+     * 
+ * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReactiveEnabled() { + bitField0_ = (bitField0_ & ~0x00000008); + reactiveEnabled_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.CesAppSpec) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpecOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpecOrBuilder.java index ad0919cce9c8..828a35235433 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpecOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpecOrBuilder.java @@ -87,4 +87,68 @@ public interface CesAppSpecOrBuilder * @return The confirmationRequirement. */ com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement getConfirmationRequirement(); + + /** + * + * + *
+   * Optional. Only applicable for CompanionAgent.
+   * Indicates whether the ces app is enabled in proactive mode.
+   * At least one of `proactive_enabled` or `reactive_enabled` should be
+   * true; otherwise, the ces app will be ignored.
+   * 
+ * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the proactiveEnabled field is set. + */ + boolean hasProactiveEnabled(); + + /** + * + * + *
+   * Optional. Only applicable for CompanionAgent.
+   * Indicates whether the ces app is enabled in proactive mode.
+   * At least one of `proactive_enabled` or `reactive_enabled` should be
+   * true; otherwise, the ces app will be ignored.
+   * 
+ * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proactiveEnabled. + */ + boolean getProactiveEnabled(); + + /** + * + * + *
+   * Optional. Only applicable for CompanionAgent.
+   * Indicates whether the ces app is enabled in reactive mode.
+   * At least one of `proactive_enabled` or `reactive_enabled` should be
+   * true; otherwise, the ces app will be ignored.
+   * 
+ * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the reactiveEnabled field is set. + */ + boolean hasReactiveEnabled(); + + /** + * + * + *
+   * Optional. Only applicable for CompanionAgent.
+   * Indicates whether the ces app is enabled in reactive mode.
+   * At least one of `proactive_enabled` or `reactive_enabled` should be
+   * true; otherwise, the ces app will be ignored.
+   * 
+ * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reactiveEnabled. + */ + boolean getReactiveEnabled(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfile.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfile.java index ec8a35a14efd..54b2833d8ddb 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfile.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfile.java @@ -864,6 +864,65 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } + public static final int SIP_CONFIG_FIELD_NUMBER = 16; + private com.google.cloud.dialogflow.v2beta1.SipConfig sipConfig_; + + /** + * + * + *
+   * Optional. Configuration for SIP connections.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sipConfig field is set. + */ + @java.lang.Override + public boolean hasSipConfig() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+   * Optional. Configuration for SIP connections.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sipConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SipConfig getSipConfig() { + return sipConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.SipConfig.getDefaultInstance() + : sipConfig_; + } + + /** + * + * + *
+   * Optional. Configuration for SIP connections.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SipConfigOrBuilder getSipConfigOrBuilder() { + return sipConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.SipConfig.getDefaultInstance() + : sipConfig_; + } + public static final int TIME_ZONE_FIELD_NUMBER = 14; @SuppressWarnings("serial") @@ -997,7 +1056,7 @@ public com.google.protobuf.ByteString getSecuritySettingsBytes() { */ @java.lang.Override public boolean hasTtsConfig() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -1098,6 +1157,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessage.writeString(output, 14, timeZone_); } if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(16, getSipConfig()); + } + if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(18, getTtsConfig()); } if (((bitField0_ & 0x00000100) != 0)) { @@ -1164,6 +1226,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessage.computeStringSize(14, timeZone_); } if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getSipConfig()); + } + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getTtsConfig()); } if (((bitField0_ & 0x00000100) != 0)) { @@ -1239,6 +1304,10 @@ public boolean equals(final java.lang.Object obj) { if (!getSttConfig().equals(other.getSttConfig())) return false; } if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (hasSipConfig() != other.hasSipConfig()) return false; + if (hasSipConfig()) { + if (!getSipConfig().equals(other.getSipConfig())) return false; + } if (!getTimeZone().equals(other.getTimeZone())) return false; if (!getSecuritySettings().equals(other.getSecuritySettings())) return false; if (hasTtsConfig() != other.hasTtsConfig()) return false; @@ -1304,6 +1373,10 @@ public int hashCode() { } hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); + if (hasSipConfig()) { + hash = (37 * hash) + SIP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSipConfig().hashCode(); + } hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; hash = (53 * hash) + getTimeZone().hashCode(); hash = (37 * hash) + SECURITY_SETTINGS_FIELD_NUMBER; @@ -1464,6 +1537,7 @@ private void maybeForceBuilderInitialization() { internalGetNewMessageEventNotificationConfigFieldBuilder(); internalGetNewRecognitionResultNotificationConfigFieldBuilder(); internalGetSttConfigFieldBuilder(); + internalGetSipConfigFieldBuilder(); internalGetTtsConfigFieldBuilder(); } } @@ -1526,6 +1600,11 @@ public Builder clear() { sttConfigBuilder_ = null; } languageCode_ = ""; + sipConfig_ = null; + if (sipConfigBuilder_ != null) { + sipConfigBuilder_.dispose(); + sipConfigBuilder_ = null; + } timeZone_ = ""; securitySettings_ = ""; ttsConfig_ = null; @@ -1642,14 +1721,18 @@ private void buildPartial0(com.google.cloud.dialogflow.v2beta1.ConversationProfi result.languageCode_ = languageCode_; } if (((from_bitField0_ & 0x00004000) != 0)) { - result.timeZone_ = timeZone_; + result.sipConfig_ = sipConfigBuilder_ == null ? sipConfig_ : sipConfigBuilder_.build(); + to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00008000) != 0)) { - result.securitySettings_ = securitySettings_; + result.timeZone_ = timeZone_; } if (((from_bitField0_ & 0x00010000) != 0)) { + result.securitySettings_ = securitySettings_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { result.ttsConfig_ = ttsConfigBuilder_ == null ? ttsConfig_ : ttsConfigBuilder_.build(); - to_bitField0_ |= 0x00000400; + to_bitField0_ |= 0x00000800; } result.bitField0_ |= to_bitField0_; } @@ -1716,14 +1799,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ConversationProfile bitField0_ |= 0x00002000; onChanged(); } + if (other.hasSipConfig()) { + mergeSipConfig(other.getSipConfig()); + } if (!other.getTimeZone().isEmpty()) { timeZone_ = other.timeZone_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } if (!other.getSecuritySettings().isEmpty()) { securitySettings_ = other.securitySettings_; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } if (other.hasTtsConfig()) { @@ -1842,20 +1928,27 @@ public Builder mergeFrom( case 106: { securitySettings_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 106 case 114: { timeZone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 114 + case 130: + { + input.readMessage( + internalGetSipConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 130 case 146: { input.readMessage( internalGetTtsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 146 case 170: @@ -4536,6 +4629,219 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dialogflow.v2beta1.SipConfig sipConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SipConfig, + com.google.cloud.dialogflow.v2beta1.SipConfig.Builder, + com.google.cloud.dialogflow.v2beta1.SipConfigOrBuilder> + sipConfigBuilder_; + + /** + * + * + *
+     * Optional. Configuration for SIP connections.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sipConfig field is set. + */ + public boolean hasSipConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
+     * Optional. Configuration for SIP connections.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sipConfig. + */ + public com.google.cloud.dialogflow.v2beta1.SipConfig getSipConfig() { + if (sipConfigBuilder_ == null) { + return sipConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.SipConfig.getDefaultInstance() + : sipConfig_; + } else { + return sipConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Configuration for SIP connections.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSipConfig(com.google.cloud.dialogflow.v2beta1.SipConfig value) { + if (sipConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sipConfig_ = value; + } else { + sipConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for SIP connections.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSipConfig( + com.google.cloud.dialogflow.v2beta1.SipConfig.Builder builderForValue) { + if (sipConfigBuilder_ == null) { + sipConfig_ = builderForValue.build(); + } else { + sipConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for SIP connections.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSipConfig(com.google.cloud.dialogflow.v2beta1.SipConfig value) { + if (sipConfigBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && sipConfig_ != null + && sipConfig_ != com.google.cloud.dialogflow.v2beta1.SipConfig.getDefaultInstance()) { + getSipConfigBuilder().mergeFrom(value); + } else { + sipConfig_ = value; + } + } else { + sipConfigBuilder_.mergeFrom(value); + } + if (sipConfig_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for SIP connections.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSipConfig() { + bitField0_ = (bitField0_ & ~0x00004000); + sipConfig_ = null; + if (sipConfigBuilder_ != null) { + sipConfigBuilder_.dispose(); + sipConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for SIP connections.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SipConfig.Builder getSipConfigBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return internalGetSipConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Configuration for SIP connections.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SipConfigOrBuilder getSipConfigOrBuilder() { + if (sipConfigBuilder_ != null) { + return sipConfigBuilder_.getMessageOrBuilder(); + } else { + return sipConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.SipConfig.getDefaultInstance() + : sipConfig_; + } + } + + /** + * + * + *
+     * Optional. Configuration for SIP connections.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SipConfig, + com.google.cloud.dialogflow.v2beta1.SipConfig.Builder, + com.google.cloud.dialogflow.v2beta1.SipConfigOrBuilder> + internalGetSipConfigFieldBuilder() { + if (sipConfigBuilder_ == null) { + sipConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SipConfig, + com.google.cloud.dialogflow.v2beta1.SipConfig.Builder, + com.google.cloud.dialogflow.v2beta1.SipConfigOrBuilder>( + getSipConfig(), getParentForChildren(), isClean()); + sipConfig_ = null; + } + return sipConfigBuilder_; + } + private java.lang.Object timeZone_ = ""; /** @@ -4607,7 +4913,7 @@ public Builder setTimeZone(java.lang.String value) { throw new NullPointerException(); } timeZone_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4627,7 +4933,7 @@ public Builder setTimeZone(java.lang.String value) { */ public Builder clearTimeZone() { timeZone_ = getDefaultInstance().getTimeZone(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -4652,7 +4958,7 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); timeZone_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4728,7 +5034,7 @@ public Builder setSecuritySettings(java.lang.String value) { throw new NullPointerException(); } securitySettings_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4748,7 +5054,7 @@ public Builder setSecuritySettings(java.lang.String value) { */ public Builder clearSecuritySettings() { securitySettings_ = getDefaultInstance().getSecuritySettings(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } @@ -4773,7 +5079,7 @@ public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); securitySettings_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4800,7 +5106,7 @@ public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) { * @return Whether the ttsConfig field is set. */ public boolean hasTtsConfig() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -4848,7 +5154,7 @@ public Builder setTtsConfig(com.google.cloud.dialogflow.v2beta1.SynthesizeSpeech } else { ttsConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -4872,7 +5178,7 @@ public Builder setTtsConfig( } else { ttsConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -4892,7 +5198,7 @@ public Builder setTtsConfig( public Builder mergeTtsConfig( com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig value) { if (ttsConfigBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00020000) != 0) && ttsConfig_ != null && ttsConfig_ != com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig @@ -4905,7 +5211,7 @@ public Builder mergeTtsConfig( ttsConfigBuilder_.mergeFrom(value); } if (ttsConfig_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -4924,7 +5230,7 @@ public Builder mergeTtsConfig( * .google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig tts_config = 18; */ public Builder clearTtsConfig() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); ttsConfig_ = null; if (ttsConfigBuilder_ != null) { ttsConfigBuilder_.dispose(); @@ -4948,7 +5254,7 @@ public Builder clearTtsConfig() { */ public com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.Builder getTtsConfigBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return internalGetTtsConfigFieldBuilder().getBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileOrBuilder.java index d0e9002565c1..cf2136463435 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileOrBuilder.java @@ -572,6 +572,49 @@ public interface ConversationProfileOrBuilder */ com.google.protobuf.ByteString getLanguageCodeBytes(); + /** + * + * + *
+   * Optional. Configuration for SIP connections.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sipConfig field is set. + */ + boolean hasSipConfig(); + + /** + * + * + *
+   * Optional. Configuration for SIP connections.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sipConfig. + */ + com.google.cloud.dialogflow.v2beta1.SipConfig getSipConfig(); + + /** + * + * + *
+   * Optional. Configuration for SIP connections.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.SipConfigOrBuilder getSipConfigOrBuilder(); + /** * * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java index 0d8d7cfc2a44..378badf7967f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java @@ -92,10 +92,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationModelConfig_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationModelConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationProcessConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -124,6 +120,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_LoggingConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_LoggingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SipConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SipConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_ListConversationProfilesRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -173,288 +173,305 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + ":google/cloud/dialogflow/v2beta1/conversation_profile.proto\022\037google.cloud.dialo" + "\n:google/cloud/dialogflow/v2beta1/conver" + + "sation_profile.proto\022\037google.cloud.dialo" + "gflow.v2beta1\032\034google/api/annotations.pr" + "oto\032\027google/api/client.proto\032\037google/api" + "/field_behavior.proto\032\031google/api/resour" - + "ce.proto\0322google/cloud/dialogflow/v2beta1/audio_config.proto\032/google/cloud/dialo" - + "gflow/v2beta1/generator.proto\0321google/cloud/dialogflow/v2beta1/participant.proto" + + "ce.proto\0322google/cloud/dialogflow/v2beta" + + "1/audio_config.proto\032/google/cloud/dialo" + + "gflow/v2beta1/generator.proto\0321google/cl" + + "oud/dialogflow/v2beta1/participant.proto" + "\032#google/longrunning/operations.proto\032\036g" - + "oogle/protobuf/duration.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\247\n\n" - + "\023ConversationProfile\022\014\n" - + "\004name\030\001 \001(\t\022\031\n" - + "\014display_name\030\002 \001(\tB\003\340A\002\0224\n" - + "\013create_time\030\013 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\014" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\037\n" - + "\022use_bidi_streaming\030\027 \001(\010B\003\340A\001\022U\n" - + "\026automated_agent_config\030\003 " - + "\001(\01325.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig\022`\n" - + "\034human_agent_assistant_config\030\004" - + " \001(\0132:.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig\022\\\n" - + "\032human_agent_handoff_config\030\005 \001(\01328.googl" - + "e.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig\022P\n" - + "\023notification_config\030\006 \001(\0132" - + "3.google.cloud.dialogflow.v2beta1.NotificationConfig\022F\n" - + "\016logging_config\030\007 \001(\0132..g" - + "oogle.cloud.dialogflow.v2beta1.LoggingConfig\022b\n" - + "%new_message_event_notification_config\030\010" - + " \001(\01323.google.cloud.dialogflow.v2beta1.NotificationConfig\022l\n" - + "*new_recognition_result_notification_config\030\025 \001(\01323.g" - + "oogle.cloud.dialogflow.v2beta1.NotificationConfigB\003\340A\001\022G\n\n" - + "stt_config\030\t \001(\01323.goo" - + "gle.cloud.dialogflow.v2beta1.SpeechToTextConfig\022\025\n\r" - + "language_code\030\n" - + " \001(\t\022\021\n" - + "\ttime_zone\030\016 \001(\t\022L\n" - + "\021security_settings\030\r" - + " \001(\tB1\372A.\n" - + ",dialogflow.googleapis.com/CXSecuritySettings\022K\n\n" - + "tts_config\030\022 \001(\01327.google.clo" - + "ud.dialogflow.v2beta1.SynthesizeSpeechConfig:\310\001\352A\304\001\n" - + "-dialogflow.googleapis.com/ConversationProfile\022>projects/{project}/c" - + "onversationProfiles/{conversation_profile}\022Sprojects/{project}/locations/{locati" - + "on}/conversationProfiles/{conversation_profile}\"\203\001\n" - + "\024AutomatedAgentConfig\0226\n" - + "\005agent\030\001 \001(\tB\'\340A\002\372A!\n" - + "\037dialogflow.googleapis.com/Agent\0223\n" - + "\013session_ttl\030\003" - + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\310\036\n" - + "\031HumanAgentAssistantConfig\022P\n" - + "\023notification_config\030\002 \001(\013" - + "23.google.cloud.dialogflow.v2beta1.NotificationConfig\022r\n" - + "\035human_agent_suggestion_config\030\003 \001(\0132K.google.cloud.dialogflow.v" - + "2beta1.HumanAgentAssistantConfig.SuggestionConfig\022o\n" - + "\032end_user_suggestion_config\030\004 \001(\0132K.google.cloud.dialogflow.v2beta1." - + "HumanAgentAssistantConfig.SuggestionConfig\022q\n" - + "\027message_analysis_config\030\005 \001(\0132P.go" - + "ogle.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.MessageAnalysisConfig\032I\n" - + "\031SuggestionTriggerSettings\022\025\n\r" - + "no_small_talk\030\001 \001(\010\022\025\n\r" - + "only_end_user\030\002 \001(\010\032\223\007\n" - + "\027SuggestionFeatureConfig\022N\n" - + "\022suggestion_feature\030\005" - + " \001(\01322.google.cloud.dialogflow.v2beta1.SuggestionFeature\022%\n" - + "\035enable_event_based_suggestion\030\003 \001(\010\022(\n" - + "\033disable_agent_query_logging\030\016 \001(\010B\003\340A\001\0223\n" - + "&enable_query_suggestion_when_no_answer\030\017 \001(\010B\003\340A\001\0220\n" - + "#enable_conversation_augmented_query\030\020 \001(\010B\003\340A\001\022)\n" - + "\034enable_query_suggestion_only\030\021 \001(\010B\003\340A\001\022\'\n" - + "\032enable_response_debug_info\030\022 \001(\010B\003\340A\001\022G\n" - + "\014rai_settings\030\023 \001(\0132,.google." - + "cloud.dialogflow.v2beta1.RaiSettingsB\003\340A\001\022y\n" - + "\033suggestion_trigger_settings\030\n" - + " \001(\0132T.google.cloud.dialogflow.v2beta1.HumanAg" - + "entAssistantConfig.SuggestionTriggerSettings\022f\n" - + "\014query_config\030\006 \001(\0132P.google.clou" - + "d.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig\022u\n" - + "\031conversation_model_config\030\007 \001(\0132R.google.cloud.d" - + "ialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig\022y\n" - + "\033conversation_process_config\030\010 \001(\0132T.google.cloud." - + "dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig\032\242\003\n" - + "\020SuggestionConfig\022k\n" - + "\017feature_configs\030\002 \003(\0132R.google.cloud.dialogflow.v2beta1.HumanAgen" - + "tAssistantConfig.SuggestionFeatureConfig\022\"\n" - + "\032group_suggestion_responses\030\003 \001(\010\022?\n\n" - + "generators\030\004 \003(\tB+\340A\001\372A%\n" - + "#dialogflow.googleapis.com/Generator\0228\n" - + "+disable_high_latency_features_sync_delivery\030\005 \001(\010B\003\340A\001\022.\n" - + "!skip_empty_event_based_suggestion\030\006 \001(\010B\003\340A\001\022-\n" - + " use_unredacted_conversation_data\030\010 \001(\010B\003\340A\001\022#\n" - + "\026enable_async_tool_call\030\t \001(\010B\003\340A\001\032\267\r\n" - + "\025SuggestionQueryConfig\022\220\001\n" - + "\033knowledge_base_query_source\030\001 \001(\0132i.go" + + "oogle/protobuf/duration.proto\032\033google/pr" + + "otobuf/empty.proto\032 google/protobuf/fiel" + + "d_mask.proto\032\037google/protobuf/timestamp." + + "proto\"\354\n\n\023ConversationProfile\022\014\n\004name\030\001 " + + "\001(\t\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\0224\n\013create" + + "_time\030\013 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013update_time\030\014 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022\037\n\022use_bidi_streaming" + + "\030\027 \001(\010B\003\340A\001\022U\n\026automated_agent_config\030\003 " + + "\001(\01325.google.cloud.dialogflow.v2beta1.Au" + + "tomatedAgentConfig\022`\n\034human_agent_assist" + + "ant_config\030\004 \001(\0132:.google.cloud.dialogfl" + + "ow.v2beta1.HumanAgentAssistantConfig\022\\\n\032" + + "human_agent_handoff_config\030\005 \001(\01328.googl" + + "e.cloud.dialogflow.v2beta1.HumanAgentHan" + + "doffConfig\022P\n\023notification_config\030\006 \001(\0132" + + "3.google.cloud.dialogflow.v2beta1.Notifi" + + "cationConfig\022F\n\016logging_config\030\007 \001(\0132..g" + + "oogle.cloud.dialogflow.v2beta1.LoggingCo" + + "nfig\022b\n%new_message_event_notification_c" + + "onfig\030\010 \001(\01323.google.cloud.dialogflow.v2" + + "beta1.NotificationConfig\022l\n*new_recognit" + + "ion_result_notification_config\030\025 \001(\01323.g" + + "oogle.cloud.dialogflow.v2beta1.Notificat" + + "ionConfigB\003\340A\001\022G\n\nstt_config\030\t \001(\01323.goo" + + "gle.cloud.dialogflow.v2beta1.SpeechToTex" + + "tConfig\022\025\n\rlanguage_code\030\n \001(\t\022C\n\nsip_co" + + "nfig\030\020 \001(\0132*.google.cloud.dialogflow.v2b" + + "eta1.SipConfigB\003\340A\001\022\021\n\ttime_zone\030\016 \001(\t\022L" + + "\n\021security_settings\030\r \001(\tB1\372A.\n,dialogfl" + + "ow.googleapis.com/CXSecuritySettings\022K\n\n" + + "tts_config\030\022 \001(\01327.google.cloud.dialogfl" + + "ow.v2beta1.SynthesizeSpeechConfig:\310\001\352A\304\001" + + "\n-dialogflow.googleapis.com/Conversation" + + "Profile\022>projects/{project}/conversation" + + "Profiles/{conversation_profile}\022Sproject" + + "s/{project}/locations/{location}/convers" + + "ationProfiles/{conversation_profile}\"\203\001\n" + + "\024AutomatedAgentConfig\0226\n\005agent\030\001 \001(\tB\'\340A" + + "\002\372A!\n\037dialogflow.googleapis.com/Agent\0223\n" + + "\013session_ttl\030\003 \001(\0132\031.google.protobuf.Dur" + + "ationB\003\340A\001\"\326\035\n\031HumanAgentAssistantConfig" + + "\022P\n\023notification_config\030\002 \001(\01323.google.c" + + "loud.dialogflow.v2beta1.NotificationConf" + + "ig\022r\n\035human_agent_suggestion_config\030\003 \001(" + + "\0132K.google.cloud.dialogflow.v2beta1.Huma" + + "nAgentAssistantConfig.SuggestionConfig\022o" + + "\n\032end_user_suggestion_config\030\004 \001(\0132K.goo" + + "gle.cloud.dialogflow.v2beta1.HumanAgentA" + + "ssistantConfig.SuggestionConfig\022q\n\027messa" + + "ge_analysis_config\030\005 \001(\0132P.google.cloud." + + "dialogflow.v2beta1.HumanAgentAssistantCo" + + "nfig.MessageAnalysisConfig\032I\n\031Suggestion" + + "TriggerSettings\022\025\n\rno_small_talk\030\001 \001(\010\022\025" + + "\n\ronly_end_user\030\002 \001(\010\032\235\007\n\027SuggestionFeat" + + "ureConfig\022N\n\022suggestion_feature\030\005 \001(\01322." + + "google.cloud.dialogflow.v2beta1.Suggesti" + + "onFeature\022%\n\035enable_event_based_suggesti" + + "on\030\003 \001(\010\022(\n\033disable_agent_query_logging\030" + + "\016 \001(\010B\003\340A\001\0223\n&enable_query_suggestion_wh" + + "en_no_answer\030\017 \001(\010B\003\340A\001\0220\n#enable_conver" + + "sation_augmented_query\030\020 \001(\010B\003\340A\001\022)\n\034ena" + + "ble_query_suggestion_only\030\021 \001(\010B\003\340A\001\022\'\n\032" + + "enable_response_debug_info\030\022 \001(\010B\003\340A\001\022G\n" + + "\014rai_settings\030\023 \001(\0132,.google.cloud.dialo" + + "gflow.v2beta1.RaiSettingsB\003\340A\001\022T\n\030sugges" + + "tion_trigger_event\030\024 \001(\0162-.google.cloud." + + "dialogflow.v2beta1.TriggerEventB\003\340A\001\022)\n\034" + + "disable_query_search_context\030\025 \001(\010B\003\340A\001\022" + + "y\n\033suggestion_trigger_settings\030\n \001(\0132T.g" + + "oogle.cloud.dialogflow.v2beta1.HumanAgen" + + "tAssistantConfig.SuggestionTriggerSettin" + + "gs\022f\n\014query_config\030\006 \001(\0132P.google.cloud." + + "dialogflow.v2beta1.HumanAgentAssistantCo" + + "nfig.SuggestionQueryConfig\022y\n\033conversati" + + "on_process_config\030\010 \001(\0132T.google.cloud.d" + + "ialogflow.v2beta1.HumanAgentAssistantCon" + + "fig.ConversationProcessConfig\032\242\003\n\020Sugges" + + "tionConfig\022k\n\017feature_configs\030\002 \003(\0132R.go" + "ogle.cloud.dialogflow.v2beta1.HumanAgent" - + "AssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySourceH\000\022\205\001\n" - + "\025document_query_source\030\002 \001(\0132d.google.cloud.dialogfl" - + "ow.v2beta1.HumanAgentAssistantConfig.Sug" - + "gestionQueryConfig.DocumentQuerySourceH\000\022\211\001\n" - + "\027dialogflow_query_source\030\003 \001(\0132f.goo" + + "AssistantConfig.SuggestionFeatureConfig\022" + + "\"\n\032group_suggestion_responses\030\003 \001(\010\022?\n\ng" + + "enerators\030\004 \003(\tB+\340A\001\372A%\n#dialogflow.goog" + + "leapis.com/Generator\0228\n+disable_high_lat" + + "ency_features_sync_delivery\030\005 \001(\010B\003\340A\001\022." + + "\n!skip_empty_event_based_suggestion\030\006 \001(" + + "\010B\003\340A\001\022-\n use_unredacted_conversation_da" + + "ta\030\010 \001(\010B\003\340A\001\022#\n\026enable_async_tool_call\030" + + "\t \001(\010B\003\340A\001\032\267\r\n\025SuggestionQueryConfig\022\220\001\n" + + "\033knowledge_base_query_source\030\001 \001(\0132i.goo" + "gle.cloud.dialogflow.v2beta1.HumanAgentA" - + "ssistantConfig.SuggestionQueryConfig.DialogflowQuerySourceH\000\022\023\n" - + "\013max_results\030\004 \001(\005\022\034\n" - + "\024confidence_threshold\030\005 \001(\002\022\207\001\n" - + "\027context_filter_settings\030\007 \001(\0132f.google.cloud" - + ".dialogflow.v2beta1.HumanAgentAssistantC" - + "onfig.SuggestionQueryConfig.ContextFilterSettings\022p\n" - + "\010sections\030\010 \001(\0132Y.google.cloud.dialogflow.v2beta1.HumanAgentAssistan" - + "tConfig.SuggestionQueryConfig.SectionsB\003\340A\001\022\031\n" - + "\014context_size\030\t \001(\005B\003\340A\001\032d\n" - + "\030KnowledgeBaseQuerySource\022H\n" - + "\017knowledge_bases\030\001 \003(\tB/\340A\002\372A)\n" - + "\'dialogflow.googleapis.com/KnowledgeBase\032T\n" - + "\023DocumentQuerySource\022=\n" - + "\tdocuments\030\001 \003(\tB*\340A\002\372A$\n" - + "\"dialogflow.googleapis.com/Document\032\276\002\n" - + "\025DialogflowQuerySource\0226\n" - + "\005agent\030\001 \001(\tB\'\340A\002\372A!\n" - + "\037dialogflow.googleapis.com/Agent\022\234\001\n" - + "\027human_agent_side_config\030\003 \001(\0132{.google.cloud.dialogflow" - + ".v2beta1.HumanAgentAssistantConfig.Sugge" - + "stionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig\032N\n" - + "\024HumanAgentSideConfig\0226\n" - + "\005agent\030\001 \001(\tB\'\340A\001\372A!\n" - + "\037dialogflow.googleapis.com/Agent\032v\n" - + "\025ContextFilterSettings\022\035\n" - + "\025drop_handoff_messages\030\001 \001(\010\022#\n" - + "\033drop_virtual_agent_messages\030\002 \001(\010\022\031\n" - + "\021drop_ivr_messages\030\003 \001(\010\032\247\002\n" - + "\010Sections\022|\n\r" - + "section_types\030\001 \003(\0162e.google.cloud.dialogflo" + + "ssistantConfig.SuggestionQueryConfig.Kno" + + "wledgeBaseQuerySourceH\000\022\205\001\n\025document_que" + + "ry_source\030\002 \001(\0132d.google.cloud.dialogflo" + "w.v2beta1.HumanAgentAssistantConfig.Sugg" - + "estionQueryConfig.Sections.SectionType\"\234\001\n" - + "\013SectionType\022\034\n" - + "\030SECTION_TYPE_UNSPECIFIED\020\000\022\r\n" - + "\tSITUATION\020\001\022\n\n" - + "\006ACTION\020\002\022\016\n\n" - + "RESOLUTION\020\003\022\033\n" - + "\027REASON_FOR_CANCELLATION\020\004\022\031\n" - + "\025CUSTOMER_SATISFACTION\020\005\022\014\n" - + "\010ENTITIES\020\006B\016\n" - + "\014query_source\032z\n" - + "\027ConversationModelConfig\022?\n" - + "\005model\030\001 \001(\tB0\372A-\n" - + "+dialogflow.googleapis.com/ConversationModel\022\036\n" - + "\026baseline_model_version\030\010 \001(\t\032;\n" - + "\031ConversationProcessConfig\022\036\n" - + "\026recent_sentences_count\030\002 \001(\005\032\207\001\n" - + "\025MessageAnalysisConfig\022 \n" - + "\030enable_entity_extraction\030\002 \001(\010\022!\n" - + "\031enable_sentiment_analysis\030\003 \001(\010\022)\n" - + "\034enable_sentiment_analysis_v3\030\005 \001(\010B\003\340A\001\"\316\003\n" - + "\027HumanAgentHandoffConfig\022g\n" - + "\022live_person_config\030\001 \001(\0132I.googl" - + "e.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig.LivePersonConfigH\000\022z\n" - + "\034salesforce_live_agent_config\030\002 \001(\0132R.google.clo" - + "ud.dialogflow.v2beta1.HumanAgentHandoffConfig.SalesforceLiveAgentConfigH\000\032/\n" - + "\020LivePersonConfig\022\033\n" - + "\016account_number\030\001 \001(\tB\003\340A\002\032\213\001\n" - + "\031SalesforceLiveAgentConfig\022\034\n" - + "\017organization_id\030\001 \001(\tB\003\340A\002\022\032\n\r" - + "deployment_id\030\002 \001(\tB\003\340A\002\022\026\n" - + "\tbutton_id\030\003 \001(\tB\003\340A\002\022\034\n" - + "\017endpoint_domain\030\004 \001(\tB\003\340A\002B\017\n\r" - + "agent_service\"\304\001\n" - + "\022NotificationConfig\022\r\n" - + "\005topic\030\001 \001(\t\022Y\n" - + "\016message_format\030\002 \001(\0162A.google.cloud.d" - + "ialogflow.v2beta1.NotificationConfig.MessageFormat\"D\n\r" - + "MessageFormat\022\036\n" - + "\032MESSAGE_FORMAT_UNSPECIFIED\020\000\022\t\n" - + "\005PROTO\020\001\022\010\n" - + "\004JSON\020\002\"3\n\r" - + "LoggingConfig\022\"\n" - + "\032enable_stackdriver_logging\030\003 \001(\010\"\217\001\n" - + "\037ListConversationProfilesRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-dialo" - + "gflow.googleapis.com/ConversationProfile\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\220\001\n" - + " ListConversationProfilesResponse\022S\n" - + "\025conversation_profiles\030\001 \003(\01324.google.clo" - + "ud.dialogflow.v2beta1.ConversationProfile\022\027\n" - + "\017next_page_token\030\002 \001(\t\"d\n" - + "\035GetConversationProfileRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-dialogflow.googleapis.com/ConversationProfile\"\302\001\n" - + " CreateConversationProfileRequest\022E\n" - + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-dialogflow.googleapis.com/ConversationProfile\022W\n" - + "\024conversation_profile\030\002 \001(\01324.google.clou" - + "d.dialogflow.v2beta1.ConversationProfileB\003\340A\002\"\261\001\n" - + " UpdateConversationProfileRequest\022W\n" - + "\024conversation_profile\030\001 \001(\01324.googl" - + "e.cloud.dialogflow.v2beta1.ConversationProfileB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"g\n" - + " DeleteConversationProfileRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-dialogflow.googleapis.com/ConversationProfile\"\224\002\n" - + "!SetSuggestionFeatureConfigRequest\022!\n" - + "\024conversation_profile\030\001 \001(\tB\003\340A\002\022P\n" - + "\020participant_role\030\002 \001(\01621.google.c" - + "loud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022z\n" - + "\031suggestion_feature_config\030\003 \001(\013" - + "2R.google.cloud.dialogflow.v2beta1.Human" - + "AgentAssistantConfig.SuggestionFeatureConfigB\003\340A\002\"\371\001\n" - + "#ClearSuggestionFeatureConfigRequest\022!\n" - + "\024conversation_profile\030\001 \001(\tB\003\340A\002\022P\n" - + "\020participant_role\030\002 \001(\01621.google." - + "cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022]\n" - + "\027suggestion_feature_type\030\003 \001(\0162" - + "7.google.cloud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\"\255\002\n" - + "+SetSuggestionFeatureConfigOperationMetadata\022\034\n" - + "\024conversation_profile\030\001 \001(\t\022P\n" - + "\020participant_role\030\002" - + " \001(\01621.google.cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022]\n" - + "\027suggestion_feature_type\030\003" - + " \001(\01627.google.cloud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\022/\n" - + "\013create_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\257\002\n" - + "-ClearSuggestionFeatureConfigOperationMetadata\022\034\n" - + "\024conversation_profile\030\001 \001(\t\022P\n" - + "\020participant_role\030\002 \001(\01621.google" - + ".cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022]\n" - + "\027suggestion_feature_type\030\003 \001(\016" - + "27.google.cloud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\022/\n" - + "\013create_time\030\004 \001(\0132\032.google.protobuf.Timestamp2\263\025\n" - + "\024ConversationProfiles\022\245\002\n" - + "\030ListConversationProfiles\022@.google.cloud.dialogflow.v2beta1." - + "ListConversationProfilesRequest\032A.google.cloud.dialogflow.v2beta1.ListConversati" - + "onProfilesResponse\"\203\001\332A\006parent\202\323\344\223\002t\0221/v" - + "2beta1/{parent=projects/*}/conversationP" - + "rofilesZ?\022=/v2beta1/{parent=projects/*/locations/*}/conversationProfiles\022\222\002\n" - + "\026GetConversationProfile\022>.google.cloud.dialo" - + "gflow.v2beta1.GetConversationProfileRequest\0324.google.cloud.dialogflow.v2beta1.Co" - + "nversationProfile\"\201\001\332A\004name\202\323\344\223\002t\0221/v2be" - + "ta1/{name=projects/*/conversationProfile" - + "s/*}Z?\022=/v2beta1/{name=projects/*/locations/*/conversationProfiles/*}\022\334\002\n" - + "\031CreateConversationProfile\022A.google.cloud.dialo" - + "gflow.v2beta1.CreateConversationProfileRequest\0324.google.cloud.dialogflow.v2beta1" - + ".ConversationProfile\"\305\001\332A\033parent,convers" - + "ation_profile\202\323\344\223\002\240\001\"1/v2beta1/{parent=p" - + "rojects/*}/conversationProfiles:\024conversation_profileZU\"=/v2beta1/{parent=projec" - + "ts/*/locations/*}/conversationProfiles:\024conversation_profile\022\213\003\n" - + "\031UpdateConversationProfile\022A.google.cloud.dialogflow.v2b" - + "eta1.UpdateConversationProfileRequest\0324." - + "google.cloud.dialogflow.v2beta1.ConversationProfile\"\364\001\332A" - + " conversation_profile,update_mask\202\323\344\223\002\312\0012F/v2beta1/{conversation" - + "_profile.name=projects/*/conversationProfiles/*}:\024conversation_profileZj2R/v2bet" - + "a1/{conversation_profile.name=projects/*" - + "/locations/*/conversationProfiles/*}:\024conversation_profile\022\372\001\n" - + "\031DeleteConversationProfile\022A.google.cloud.dialogflow.v2bet" - + "a1.DeleteConversationProfileRequest\032\026.go" - + "ogle.protobuf.Empty\"\201\001\332A\004name\202\323\344\223\002t*1/v2" - + "beta1/{name=projects/*/conversationProfi" - + "les/*}Z?*=/v2beta1/{name=projects/*/locations/*/conversationProfiles/*}\022\367\003\n" - + "\032SetSuggestionFeatureConfig\022B.google.cloud.di" - + "alogflow.v2beta1.SetSuggestionFeatureCon" - + "figRequest\032\035.google.longrunning.Operation\"\365\002\312AB\n" - + "\023ConversationProfile\022+SetSuggestionFeatureConfigOperationMetadata\332A\024conv" - + "ersation_profile\332A?conversation_profile,participant_role,suggestion_feature_conf" - + "ig\202\323\344\223\002\320\001\"\\/v2beta1/{conversation_profil" - + "e=projects/*/conversationProfiles/*}:setSuggestionFeatureConfig:\001*Zm\"h/v2beta1/{" - + "conversation_profile=projects/*/location" - + "s/*/conversationProfiles/*}:setSuggestionFeatureConfig:\001*\022\377\003\n" - + "\034ClearSuggestionFeatureConfig\022D.google.cloud.dialogflow.v2b" - + "eta1.ClearSuggestionFeatureConfigRequest\032\035.google.longrunning.Operation\"\371\002\312AD\n" - + "\023ConversationProfile\022-ClearSuggestionFeatu" - + "reConfigOperationMetadata\332A\024conversation" - + "_profile\332A=conversation_profile,particip" - + "ant_role,suggestion_feature_type\202\323\344\223\002\324\001\"" - + "^/v2beta1/{conversation_profile=projects/*/conversationProfiles/*}:clearSuggesti" - + "onFeatureConfig:\001*Zo\"j/v2beta1/{conversation_profile=projects/*/locations/*/conv" - + "ersationProfiles/*}:clearSuggestionFeatu" - + "reConfig:\001*\032x\312A\031dialogflow.googleapis.co" - + "m\322AYhttps://www.googleapis.com/auth/clou" - + "d-platform,https://www.googleapis.com/auth/dialogflowB\255\003\n" - + "#com.google.cloud.dialogflow.v2beta1B\030ConversationProfileProtoP" - + "\001ZCcloud.google.com/go/dialogflow/apiv2b" - + "eta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352A|\n" - + ",dialogflow.googleapis.com/CXSecuritySettings\022L" - + "projects/{project}/locations/{location}/securitySettings/{security_settings}\352A~\n" - + "+dialogflow.googleapis.com/ConversationModel\022Oprojects/{project}/locations/{loca" - + "tion}/conversationModels/{conversation_model}b\006proto3" + + "estionQueryConfig.DocumentQuerySourceH\000\022" + + "\211\001\n\027dialogflow_query_source\030\003 \001(\0132f.goog" + + "le.cloud.dialogflow.v2beta1.HumanAgentAs" + + "sistantConfig.SuggestionQueryConfig.Dial" + + "ogflowQuerySourceH\000\022\023\n\013max_results\030\004 \001(\005" + + "\022\034\n\024confidence_threshold\030\005 \001(\002\022\207\001\n\027conte" + + "xt_filter_settings\030\007 \001(\0132f.google.cloud." + + "dialogflow.v2beta1.HumanAgentAssistantCo" + + "nfig.SuggestionQueryConfig.ContextFilter" + + "Settings\022p\n\010sections\030\010 \001(\0132Y.google.clou" + + "d.dialogflow.v2beta1.HumanAgentAssistant" + + "Config.SuggestionQueryConfig.SectionsB\003\340" + + "A\001\022\031\n\014context_size\030\t \001(\005B\003\340A\001\032d\n\030Knowled" + + "geBaseQuerySource\022H\n\017knowledge_bases\030\001 \003" + + "(\tB/\340A\002\372A)\n\'dialogflow.googleapis.com/Kn" + + "owledgeBase\032T\n\023DocumentQuerySource\022=\n\tdo" + + "cuments\030\001 \003(\tB*\340A\002\372A$\n\"dialogflow.google" + + "apis.com/Document\032\276\002\n\025DialogflowQuerySou" + + "rce\0226\n\005agent\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.g" + + "oogleapis.com/Agent\022\234\001\n\027human_agent_side" + + "_config\030\003 \001(\0132{.google.cloud.dialogflow." + + "v2beta1.HumanAgentAssistantConfig.Sugges" + + "tionQueryConfig.DialogflowQuerySource.Hu" + + "manAgentSideConfig\032N\n\024HumanAgentSideConf" + + "ig\0226\n\005agent\030\001 \001(\tB\'\340A\001\372A!\n\037dialogflow.go" + + "ogleapis.com/Agent\032v\n\025ContextFilterSetti" + + "ngs\022\035\n\025drop_handoff_messages\030\001 \001(\010\022#\n\033dr" + + "op_virtual_agent_messages\030\002 \001(\010\022\031\n\021drop_" + + "ivr_messages\030\003 \001(\010\032\247\002\n\010Sections\022|\n\rsecti" + + "on_types\030\001 \003(\0162e.google.cloud.dialogflow" + + ".v2beta1.HumanAgentAssistantConfig.Sugge" + + "stionQueryConfig.Sections.SectionType\"\234\001" + + "\n\013SectionType\022\034\n\030SECTION_TYPE_UNSPECIFIE" + + "D\020\000\022\r\n\tSITUATION\020\001\022\n\n\006ACTION\020\002\022\016\n\nRESOLU" + + "TION\020\003\022\033\n\027REASON_FOR_CANCELLATION\020\004\022\031\n\025C" + + "USTOMER_SATISFACTION\020\005\022\014\n\010ENTITIES\020\006B\016\n\014" + + "query_source\032;\n\031ConversationProcessConfi" + + "g\022\036\n\026recent_sentences_count\030\002 \001(\005\032\207\001\n\025Me" + + "ssageAnalysisConfig\022 \n\030enable_entity_ext" + + "raction\030\002 \001(\010\022!\n\031enable_sentiment_analys" + + "is\030\003 \001(\010\022)\n\034enable_sentiment_analysis_v3" + + "\030\005 \001(\010B\003\340A\001\"\316\003\n\027HumanAgentHandoffConfig\022" + + "g\n\022live_person_config\030\001 \001(\0132I.google.clo" + + "ud.dialogflow.v2beta1.HumanAgentHandoffC" + + "onfig.LivePersonConfigH\000\022z\n\034salesforce_l" + + "ive_agent_config\030\002 \001(\0132R.google.cloud.di" + + "alogflow.v2beta1.HumanAgentHandoffConfig" + + ".SalesforceLiveAgentConfigH\000\032/\n\020LivePers" + + "onConfig\022\033\n\016account_number\030\001 \001(\tB\003\340A\002\032\213\001" + + "\n\031SalesforceLiveAgentConfig\022\034\n\017organizat" + + "ion_id\030\001 \001(\tB\003\340A\002\022\032\n\rdeployment_id\030\002 \001(\t" + + "B\003\340A\002\022\026\n\tbutton_id\030\003 \001(\tB\003\340A\002\022\034\n\017endpoin" + + "t_domain\030\004 \001(\tB\003\340A\002B\017\n\ragent_service\"\304\001\n" + + "\022NotificationConfig\022\r\n\005topic\030\001 \001(\t\022Y\n\016me" + + "ssage_format\030\002 \001(\0162A.google.cloud.dialog" + + "flow.v2beta1.NotificationConfig.MessageF" + + "ormat\"D\n\rMessageFormat\022\036\n\032MESSAGE_FORMAT" + + "_UNSPECIFIED\020\000\022\t\n\005PROTO\020\001\022\010\n\004JSON\020\002\"3\n\rL" + + "oggingConfig\022\"\n\032enable_stackdriver_loggi" + + "ng\030\003 \001(\010\"\250\002\n\tSipConfig\022&\n\036create_convers" + + "ation_on_the_fly\030\001 \001(\010\022\026\n\016inactive_start" + + "\030\003 \001(\010\022?\n\034max_audio_recording_duration\030\004" + + " \001(\0132\031.google.protobuf.Duration\022\'\n\037allow" + + "_virtual_agent_interaction\030\005 \001(\010\022!\n\031keep" + + "_conversation_running\030\006 \001(\010\022%\n\035copy_inbo" + + "und_call_leg_headers\030\010 \003(\t\022\'\n\037ignore_rei" + + "nvite_media_direction\030\t \001(\010\"\217\001\n\037ListConv" + + "ersationProfilesRequest\022E\n\006parent\030\001 \001(\tB" + + "5\340A\002\372A/\022-dialogflow.googleapis.com/Conve" + + "rsationProfile\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" + + "e_token\030\003 \001(\t\"\220\001\n ListConversationProfil" + + "esResponse\022S\n\025conversation_profiles\030\001 \003(" + + "\01324.google.cloud.dialogflow.v2beta1.Conv" + + "ersationProfile\022\027\n\017next_page_token\030\002 \001(\t" + + "\"d\n\035GetConversationProfileRequest\022C\n\004nam" + + "e\030\001 \001(\tB5\340A\002\372A/\n-dialogflow.googleapis.c" + + "om/ConversationProfile\"\302\001\n CreateConvers" + + "ationProfileRequest\022E\n\006parent\030\001 \001(\tB5\340A\002" + + "\372A/\022-dialogflow.googleapis.com/Conversat" + + "ionProfile\022W\n\024conversation_profile\030\002 \001(\013" + + "24.google.cloud.dialogflow.v2beta1.Conve" + + "rsationProfileB\003\340A\002\"\261\001\n UpdateConversati" + + "onProfileRequest\022W\n\024conversation_profile" + + "\030\001 \001(\01324.google.cloud.dialogflow.v2beta1" + + ".ConversationProfileB\003\340A\002\0224\n\013update_mask" + + "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"" + + "g\n DeleteConversationProfileRequest\022C\n\004n" + + "ame\030\001 \001(\tB5\340A\002\372A/\n-dialogflow.googleapis" + + ".com/ConversationProfile\"\224\002\n!SetSuggesti" + + "onFeatureConfigRequest\022!\n\024conversation_p" + + "rofile\030\001 \001(\tB\003\340A\002\022P\n\020participant_role\030\002 " + + "\001(\01621.google.cloud.dialogflow.v2beta1.Pa" + + "rticipant.RoleB\003\340A\002\022z\n\031suggestion_featur" + + "e_config\030\003 \001(\0132R.google.cloud.dialogflow" + + ".v2beta1.HumanAgentAssistantConfig.Sugge" + + "stionFeatureConfigB\003\340A\002\"\371\001\n#ClearSuggest" + + "ionFeatureConfigRequest\022!\n\024conversation_" + + "profile\030\001 \001(\tB\003\340A\002\022P\n\020participant_role\030\002" + + " \001(\01621.google.cloud.dialogflow.v2beta1.P" + + "articipant.RoleB\003\340A\002\022]\n\027suggestion_featu" + + "re_type\030\003 \001(\01627.google.cloud.dialogflow." + + "v2beta1.SuggestionFeature.TypeB\003\340A\002\"\255\002\n+" + + "SetSuggestionFeatureConfigOperationMetad" + + "ata\022\034\n\024conversation_profile\030\001 \001(\t\022P\n\020par" + + "ticipant_role\030\002 \001(\01621.google.cloud.dialo" + + "gflow.v2beta1.Participant.RoleB\003\340A\002\022]\n\027s" + + "uggestion_feature_type\030\003 \001(\01627.google.cl" + + "oud.dialogflow.v2beta1.SuggestionFeature" + + ".TypeB\003\340A\002\022/\n\013create_time\030\004 \001(\0132\032.google" + + ".protobuf.Timestamp\"\257\002\n-ClearSuggestionF" + + "eatureConfigOperationMetadata\022\034\n\024convers" + + "ation_profile\030\001 \001(\t\022P\n\020participant_role\030" + + "\002 \001(\01621.google.cloud.dialogflow.v2beta1." + + "Participant.RoleB\003\340A\002\022]\n\027suggestion_feat" + + "ure_type\030\003 \001(\01627.google.cloud.dialogflow" + + ".v2beta1.SuggestionFeature.TypeB\003\340A\002\022/\n\013" + + "create_time\030\004 \001(\0132\032.google.protobuf.Time" + + "stamp2\263\025\n\024ConversationProfiles\022\245\002\n\030ListC" + + "onversationProfiles\022@.google.cloud.dialo" + + "gflow.v2beta1.ListConversationProfilesRe" + + "quest\032A.google.cloud.dialogflow.v2beta1." + + "ListConversationProfilesResponse\"\203\001\332A\006pa" + + "rent\202\323\344\223\002t\0221/v2beta1/{parent=projects/*}" + + "/conversationProfilesZ?\022=/v2beta1/{paren" + + "t=projects/*/locations/*}/conversationPr" + + "ofiles\022\222\002\n\026GetConversationProfile\022>.goog" + + "le.cloud.dialogflow.v2beta1.GetConversat" + + "ionProfileRequest\0324.google.cloud.dialogf" + + "low.v2beta1.ConversationProfile\"\201\001\332A\004nam" + + "e\202\323\344\223\002t\0221/v2beta1/{name=projects/*/conve" + + "rsationProfiles/*}Z?\022=/v2beta1/{name=pro" + + "jects/*/locations/*/conversationProfiles" + + "/*}\022\334\002\n\031CreateConversationProfile\022A.goog" + + "le.cloud.dialogflow.v2beta1.CreateConver" + + "sationProfileRequest\0324.google.cloud.dial" + + "ogflow.v2beta1.ConversationProfile\"\305\001\332A\033" + + "parent,conversation_profile\202\323\344\223\002\240\001\"1/v2b" + + "eta1/{parent=projects/*}/conversationPro" + + "files:\024conversation_profileZU\"=/v2beta1/" + + "{parent=projects/*/locations/*}/conversa" + + "tionProfiles:\024conversation_profile\022\213\003\n\031U" + + "pdateConversationProfile\022A.google.cloud." + + "dialogflow.v2beta1.UpdateConversationPro" + + "fileRequest\0324.google.cloud.dialogflow.v2" + + "beta1.ConversationProfile\"\364\001\332A conversat" + + "ion_profile,update_mask\202\323\344\223\002\312\0012F/v2beta1" + + "/{conversation_profile.name=projects/*/c" + + "onversationProfiles/*}:\024conversation_pro" + + "fileZj2R/v2beta1/{conversation_profile.n" + + "ame=projects/*/locations/*/conversationP" + + "rofiles/*}:\024conversation_profile\022\372\001\n\031Del" + + "eteConversationProfile\022A.google.cloud.di" + + "alogflow.v2beta1.DeleteConversationProfi" + + "leRequest\032\026.google.protobuf.Empty\"\201\001\332A\004n" + + "ame\202\323\344\223\002t*1/v2beta1/{name=projects/*/con" + + "versationProfiles/*}Z?*=/v2beta1/{name=p" + + "rojects/*/locations/*/conversationProfil" + + "es/*}\022\367\003\n\032SetSuggestionFeatureConfig\022B.g" + + "oogle.cloud.dialogflow.v2beta1.SetSugges" + + "tionFeatureConfigRequest\032\035.google.longru" + + "nning.Operation\"\365\002\312AB\n\023ConversationProfi" + + "le\022+SetSuggestionFeatureConfigOperationM" + + "etadata\332A\024conversation_profile\332A?convers" + + "ation_profile,participant_role,suggestio" + + "n_feature_config\202\323\344\223\002\320\001\"\\/v2beta1/{conve" + + "rsation_profile=projects/*/conversationP" + + "rofiles/*}:setSuggestionFeatureConfig:\001*" + + "Zm\"h/v2beta1/{conversation_profile=proje" + + "cts/*/locations/*/conversationProfiles/*" + + "}:setSuggestionFeatureConfig:\001*\022\377\003\n\034Clea" + + "rSuggestionFeatureConfig\022D.google.cloud." + + "dialogflow.v2beta1.ClearSuggestionFeatur" + + "eConfigRequest\032\035.google.longrunning.Oper" + + "ation\"\371\002\312AD\n\023ConversationProfile\022-ClearS" + + "uggestionFeatureConfigOperationMetadata\332" + + "A\024conversation_profile\332A=conversation_pr" + + "ofile,participant_role,suggestion_featur" + + "e_type\202\323\344\223\002\324\001\"^/v2beta1/{conversation_pr" + + "ofile=projects/*/conversationProfiles/*}" + + ":clearSuggestionFeatureConfig:\001*Zo\"j/v2b" + + "eta1/{conversation_profile=projects/*/lo" + + "cations/*/conversationProfiles/*}:clearS" + + "uggestionFeatureConfig:\001*\032x\312A\031dialogflow" + + ".googleapis.com\322AYhttps://www.googleapis" + + ".com/auth/cloud-platform,https://www.goo" + + "gleapis.com/auth/dialogflowB\254\002\n#com.goog" + + "le.cloud.dialogflow.v2beta1B\030Conversatio" + + "nProfileProtoP\001ZCcloud.google.com/go/dia" + + "logflow/apiv2beta1/dialogflowpb;dialogfl" + + "owpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Be" + + "ta1\352A|\n,dialogflow.googleapis.com/CXSecu" + + "ritySettings\022Lprojects/{project}/locatio" + + "ns/{location}/securitySettings/{security" + + "_settings}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -493,6 +510,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NewRecognitionResultNotificationConfig", "SttConfig", "LanguageCode", + "SipConfig", "TimeZone", "SecuritySettings", "TtsConfig", @@ -540,9 +558,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableQuerySuggestionOnly", "EnableResponseDebugInfo", "RaiSettings", + "SuggestionTriggerEvent", + "DisableQuerySearchContext", "SuggestionTriggerSettings", "QueryConfig", - "ConversationModelConfig", "ConversationProcessConfig", }); internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionConfig_descriptor = @@ -631,18 +650,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "SectionTypes", }); - internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationModelConfig_descriptor = - internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_descriptor - .getNestedType(4); - internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationModelConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationModelConfig_descriptor, - new java.lang.String[] { - "Model", "BaselineModelVersion", - }); internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationProcessConfig_descriptor = internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_descriptor - .getNestedType(5); + .getNestedType(4); internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationProcessConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationProcessConfig_descriptor, @@ -651,7 +661,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_MessageAnalysisConfig_descriptor = internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_descriptor - .getNestedType(6); + .getNestedType(5); internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_MessageAnalysisConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_MessageAnalysisConfig_descriptor, @@ -700,8 +710,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "EnableStackdriverLogging", }); - internal_static_google_cloud_dialogflow_v2beta1_ListConversationProfilesRequest_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SipConfig_descriptor = getDescriptor().getMessageType(6); + internal_static_google_cloud_dialogflow_v2beta1_SipConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SipConfig_descriptor, + new java.lang.String[] { + "CreateConversationOnTheFly", + "InactiveStart", + "MaxAudioRecordingDuration", + "AllowVirtualAgentInteraction", + "KeepConversationRunning", + "CopyInboundCallLegHeaders", + "IgnoreReinviteMediaDirection", + }); + internal_static_google_cloud_dialogflow_v2beta1_ListConversationProfilesRequest_descriptor = + getDescriptor().getMessageType(7); internal_static_google_cloud_dialogflow_v2beta1_ListConversationProfilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_ListConversationProfilesRequest_descriptor, @@ -709,7 +733,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_dialogflow_v2beta1_ListConversationProfilesResponse_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(8); internal_static_google_cloud_dialogflow_v2beta1_ListConversationProfilesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_ListConversationProfilesResponse_descriptor, @@ -717,7 +741,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationProfiles", "NextPageToken", }); internal_static_google_cloud_dialogflow_v2beta1_GetConversationProfileRequest_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(9); internal_static_google_cloud_dialogflow_v2beta1_GetConversationProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_GetConversationProfileRequest_descriptor, @@ -725,7 +749,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dialogflow_v2beta1_CreateConversationProfileRequest_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(10); internal_static_google_cloud_dialogflow_v2beta1_CreateConversationProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_CreateConversationProfileRequest_descriptor, @@ -733,7 +757,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ConversationProfile", }); internal_static_google_cloud_dialogflow_v2beta1_UpdateConversationProfileRequest_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(11); internal_static_google_cloud_dialogflow_v2beta1_UpdateConversationProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_UpdateConversationProfileRequest_descriptor, @@ -741,7 +765,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationProfile", "UpdateMask", }); internal_static_google_cloud_dialogflow_v2beta1_DeleteConversationProfileRequest_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(12); internal_static_google_cloud_dialogflow_v2beta1_DeleteConversationProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_DeleteConversationProfileRequest_descriptor, @@ -749,7 +773,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dialogflow_v2beta1_SetSuggestionFeatureConfigRequest_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(13); internal_static_google_cloud_dialogflow_v2beta1_SetSuggestionFeatureConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SetSuggestionFeatureConfigRequest_descriptor, @@ -757,7 +781,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationProfile", "ParticipantRole", "SuggestionFeatureConfig", }); internal_static_google_cloud_dialogflow_v2beta1_ClearSuggestionFeatureConfigRequest_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(14); internal_static_google_cloud_dialogflow_v2beta1_ClearSuggestionFeatureConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_ClearSuggestionFeatureConfigRequest_descriptor, @@ -765,7 +789,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationProfile", "ParticipantRole", "SuggestionFeatureType", }); internal_static_google_cloud_dialogflow_v2beta1_SetSuggestionFeatureConfigOperationMetadata_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(15); internal_static_google_cloud_dialogflow_v2beta1_SetSuggestionFeatureConfigOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SetSuggestionFeatureConfigOperationMetadata_descriptor, @@ -773,7 +797,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationProfile", "ParticipantRole", "SuggestionFeatureType", "CreateTime", }); internal_static_google_cloud_dialogflow_v2beta1_ClearSuggestionFeatureConfigOperationMetadata_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(16); internal_static_google_cloud_dialogflow_v2beta1_ClearSuggestionFeatureConfigOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_ClearSuggestionFeatureConfigOperationMetadata_descriptor, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java index 9c808c556ba9..8740fa7d8e4b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java @@ -576,7 +576,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer\022\027\n" + "\017rewritten_query\030\003 \001(\t\022^\n" + "\033search_knowledge_debug_info\030\004 \001(\01329.googl" - + "e.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo\"\330\003\n" + + "e.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo\"\361\003\n" + "\025SearchKnowledgeAnswer\022\016\n" + "\006answer\030\001 \001(\t\022V\n" + "\013answer_type\030\002 \001(\0162A.goo" @@ -590,105 +590,104 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005title\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\017\n" + "\007snippet\030\003 \001(\t\022)\n" - + "\010metadata\030\005 \001(\0132\027.google.protobuf.Struct\"N\n\n" + + "\010metadata\030\005 \001(\0132\027.google.protobuf.Struct\"g\n\n" + "AnswerType\022\033\n" + "\027ANSWER_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003FAQ\020\001\022\016\n\n" + "GENERATIVE\020\002\022\n\n" - + "\006INTENT\020\003\"\361\001\n" + + "\006INTENT\020\003\022\014\n" + + "\010PLAYBOOK\020\004\022\t\n" + + "\005EVENT\020\005\"\361\001\n" + "\032GenerateSuggestionsRequest\022D\n" + "\014conversation\030\001 \001(\tB.\340A\002\372A(\n" + "&dialogflow.googleapis.com/Conversation\022A\n" + "\016latest_message\030\002 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022J\n" - + "\016trigger_events\030\003 \003(\0162-" - + ".google.cloud.dialogflow.v2beta1.TriggerEventB\003\340A\0012\315\036\n\r" + + "\016trigger_events\030\003" + + " \003(\0162-.google.cloud.dialogflow.v2beta1.TriggerEventB\003\340A\0012\315\036\n\r" + "Conversations\022\241\002\n" - + "\022CreateConversation\022:.google.cloud.dialogflow.v2" - + "beta1.CreateConversationRequest\032-.google" - + ".cloud.dialogflow.v2beta1.Conversation\"\237" - + "\001\332A\023parent,conversation\202\323\344\223\002\202\001\"*/v2beta1" - + "/{parent=projects/*}/conversations:\014conversationZF\"6/v2beta1/{parent=projects/*/" - + "locations/*}/conversations:\014conversation\022\201\002\n" - + "\021ListConversations\0229.google.cloud.dialogflow.v2beta1.ListConversationsReques" - + "t\032:.google.cloud.dialogflow.v2beta1.List" - + "ConversationsResponse\"u\332A\006parent\202\323\344\223\002f\022*" - + "/v2beta1/{parent=projects/*}/conversatio" - + "nsZ8\0226/v2beta1/{parent=projects/*/locations/*}/conversations\022\356\001\n" - + "\017GetConversation\0227.google.cloud.dialogflow.v2beta1.GetCo" - + "nversationRequest\032-.google.cloud.dialogf" - + "low.v2beta1.Conversation\"s\332A\004name\202\323\344\223\002f\022" - + "*/v2beta1/{name=projects/*/conversations" - + "/*}Z8\0226/v2beta1/{name=projects/*/locations/*/conversations/*}\022\221\002\n" - + "\024CompleteConversation\022<.google.cloud.dialogflow.v2beta1" - + ".CompleteConversationRequest\032-.google.cl" - + "oud.dialogflow.v2beta1.Conversation\"\213\001\332A" - + "\004name\202\323\344\223\002~\"3/v2beta1/{name=projects/*/c" - + "onversations/*}:complete:\001*ZD\"?/v2beta1/" - + "{name=projects/*/locations/*/conversations/*}:complete:\001*\022\242\002\n" - + "\027IngestContextReferences\022?.google.cloud.dialogflow.v2beta1." - + "IngestContextReferencesRequest\032@.google.cloud.dialogflow.v2beta1.IngestContextRe" - + "ferencesResponse\"\203\001\332A\037conversation,conte" - + "xt_references\202\323\344\223\002[\"V/v2beta1/{conversat" - + "ion=projects/*/locations/*/conversations/*}:ingestContextReferences:\001*\022\306\002\n" - + "\023BatchCreateMessages\022;.google.cloud.dialogflow" - + ".v2beta1.BatchCreateMessagesRequest\032<.google.cloud.dialogflow.v2beta1.BatchCreat" - + "eMessagesResponse\"\263\001\332A\017parent,requests\202\323" - + "\344\223\002\232\001\"A/v2beta1/{parent=projects/*/conve" - + "rsations/*}/messages:batchCreate:\001*ZR\"M/v2beta1/{parent=projects/*/locations/*/c" - + "onversations/*}/messages:batchCreate:\001*\022\211\002\n" - + "\014ListMessages\0224.google.cloud.dialogflow.v2beta1.ListMessagesRequest\0325.google." - + "cloud.dialogflow.v2beta1.ListMessagesRes" - + "ponse\"\213\001\332A\006parent\202\323\344\223\002|\0225/v2beta1/{paren" - + "t=projects/*/conversations/*}/messagesZC" - + "\022A/v2beta1/{parent=projects/*/locations/*/conversations/*}/messages\022\210\003\n" - + "\032SuggestConversationSummary\022B.google.cloud.dialog" - + "flow.v2beta1.SuggestConversationSummaryRequest\032C.google.cloud.dialogflow.v2beta1" - + ".SuggestConversationSummaryResponse\"\340\001\332A" - + "\014conversation\202\323\344\223\002\312\001\"Y/v2beta1/{conversa" - + "tion=projects/*/conversations/*}/suggestions:suggestConversationSummary:\001*Zj\"e/v" - + "2beta1/{conversation=projects/*/location" - + "s/*/conversations/*}/suggestions:suggestConversationSummary:\001*\022\361\002\n" - + "\030GenerateStatelessSummary\022@.google.cloud.dialogflow.v2" - + "beta1.GenerateStatelessSummaryRequest\032A.google.cloud.dialogflow.v2beta1.Generate" - + "StatelessSummaryResponse\"\317\001\202\323\344\223\002\310\001\"X/v2b" - + "eta1/{stateless_conversation.parent=projects/*}/suggestions:generateStatelessSum" - + "mary:\001*Zi\"d/v2beta1/{stateless_conversat" - + "ion.parent=projects/*/locations/*}/suggestions:generateStatelessSummary:\001*\022\372\001\n" - + "\033GenerateStatelessSuggestion\022C.google.clou" - + "d.dialogflow.v2beta1.GenerateStatelessSuggestionRequest\032D.google.cloud.dialogflo" - + "w.v2beta1.GenerateStatelessSuggestionRes" - + "ponse\"P\202\323\344\223\002J\"E/v2beta1/{parent=projects" - + "/*/locations/*}/statelessSuggestion:generate:\001*\022\314\003\n" - + "\017SearchKnowledge\0227.google.cloud.dialogflow.v2beta1.SearchKnowledgeReq" - + "uest\0328.google.cloud.dialogflow.v2beta1.S" - + "earchKnowledgeResponse\"\305\002\202\323\344\223\002\276\002\"8/v2bet" - + "a1/{parent=projects/*}/suggestions:searchKnowledge:\001*ZI\"D/v2beta1/{parent=projec" - + "ts/*/locations/*}/suggestions:searchKnowledge:\001*ZS\"N/v2beta1/{conversation=proje" - + "cts/*/conversations/*}/suggestions:searchKnowledge:\001*Z_\"Z/v2beta1/{conversation=" - + "projects/*/locations/*/conversations/*}/suggestions:searchKnowledge:\001*\022\317\002\n" - + "\023GenerateSuggestions\022;.google.cloud.dialogflow" - + ".v2beta1.GenerateSuggestionsRequest\032<.google.cloud.dialogflow.v2beta1.GenerateSu" - + "ggestionsResponse\"\274\001\332A\014conversation\202\323\344\223\002" - + "\246\001\"G/v2beta1/{conversation=projects/*/co" - + "nversations/*}/suggestions:generate:\001*ZX\"S/v2beta1/{conversation=projects/*/loca" - + "tions/*/conversations/*}/suggestions:gen" - + "erate:\001*\032x\312A\031dialogflow.googleapis.com\322A", - "Yhttps://www.googleapis.com/auth/cloud-p" - + "latform,https://www.googleapis.com/auth/" - + "dialogflowB\314\003\n#com.google.cloud.dialogfl" - + "ow.v2beta1B\021ConversationProtoP\001ZCcloud.g" - + "oogle.com/go/dialogflow/apiv2beta1/dialo" - + "gflowpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud" - + ".Dialogflow.V2Beta1\352A\305\001\n(discoveryengine" - + ".googleapis.com/DataStore\022Xprojects/{pro" - + "ject}/locations/{location}/collections/{" - + "collection}/dataStores/{data_store}\022?pro" - + "jects/{project}/locations/{location}/dat" - + "aStores/{data_store}\352AZ\n\027ces.googleapis." - + "com/Tool\022?projects/{project}/locations/{" - + "location}/apps/{app}/tools/{tool}b\006proto" - + "3" + + "\022CreateConversation\022:.google.cloud.dialogflow.v2beta1.CreateCon" + + "versationRequest\032-.google.cloud.dialogfl" + + "ow.v2beta1.Conversation\"\237\001\332A\023parent,conv" + + "ersation\202\323\344\223\002\202\001\"*/v2beta1/{parent=projec" + + "ts/*}/conversations:\014conversationZF\"6/v2" + + "beta1/{parent=projects/*/locations/*}/conversations:\014conversation\022\201\002\n" + + "\021ListConversations\0229.google.cloud.dialogflow.v2beta" + + "1.ListConversationsRequest\032:.google.cloud.dialogflow.v2beta1.ListConversationsRe" + + "sponse\"u\332A\006parent\202\323\344\223\002f\022*/v2beta1/{paren" + + "t=projects/*}/conversationsZ8\0226/v2beta1/" + + "{parent=projects/*/locations/*}/conversations\022\356\001\n" + + "\017GetConversation\0227.google.cloud.dialogflow.v2beta1.GetConversationReque" + + "st\032-.google.cloud.dialogflow.v2beta1.Con" + + "versation\"s\332A\004name\202\323\344\223\002f\022*/v2beta1/{name" + + "=projects/*/conversations/*}Z8\0226/v2beta1" + + "/{name=projects/*/locations/*/conversations/*}\022\221\002\n" + + "\024CompleteConversation\022<.google.cloud.dialogflow.v2beta1.CompleteConver" + + "sationRequest\032-.google.cloud.dialogflow." + + "v2beta1.Conversation\"\213\001\332A\004name\202\323\344\223\002~\"3/v" + + "2beta1/{name=projects/*/conversations/*}:complete:\001*ZD\"?/v2beta1/{name=projects/" + + "*/locations/*/conversations/*}:complete:\001*\022\242\002\n" + + "\027IngestContextReferences\022?.google.cloud.dialogflow.v2beta1.IngestContextRe" + + "ferencesRequest\032@.google.cloud.dialogflow.v2beta1.IngestContextReferencesRespons" + + "e\"\203\001\332A\037conversation,context_references\202\323" + + "\344\223\002[\"V/v2beta1/{conversation=projects/*/" + + "locations/*/conversations/*}:ingestContextReferences:\001*\022\306\002\n" + + "\023BatchCreateMessages\022;.google.cloud.dialogflow.v2beta1.BatchC" + + "reateMessagesRequest\032<.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRespon" + + "se\"\263\001\332A\017parent,requests\202\323\344\223\002\232\001\"A/v2beta1" + + "/{parent=projects/*/conversations/*}/messages:batchCreate:\001*ZR\"M/v2beta1/{parent" + + "=projects/*/locations/*/conversations/*}/messages:batchCreate:\001*\022\211\002\n" + + "\014ListMessages\0224.google.cloud.dialogflow.v2beta1.List" + + "MessagesRequest\0325.google.cloud.dialogflo" + + "w.v2beta1.ListMessagesResponse\"\213\001\332A\006pare" + + "nt\202\323\344\223\002|\0225/v2beta1/{parent=projects/*/co" + + "nversations/*}/messagesZC\022A/v2beta1/{par" + + "ent=projects/*/locations/*/conversations/*}/messages\022\210\003\n" + + "\032SuggestConversationSummary\022B.google.cloud.dialogflow.v2beta1.Su" + + "ggestConversationSummaryRequest\032C.google.cloud.dialogflow.v2beta1.SuggestConvers" + + "ationSummaryResponse\"\340\001\332A\014conversation\202\323" + + "\344\223\002\312\001\"Y/v2beta1/{conversation=projects/*" + + "/conversations/*}/suggestions:suggestConversationSummary:\001*Zj\"e/v2beta1/{convers" + + "ation=projects/*/locations/*/conversatio" + + "ns/*}/suggestions:suggestConversationSummary:\001*\022\361\002\n" + + "\030GenerateStatelessSummary\022@.google.cloud.dialogflow.v2beta1.GenerateS" + + "tatelessSummaryRequest\032A.google.cloud.dialogflow.v2beta1.GenerateStatelessSummar" + + "yResponse\"\317\001\202\323\344\223\002\310\001\"X/v2beta1/{stateless" + + "_conversation.parent=projects/*}/suggestions:generateStatelessSummary:\001*Zi\"d/v2b" + + "eta1/{stateless_conversation.parent=proj" + + "ects/*/locations/*}/suggestions:generateStatelessSummary:\001*\022\372\001\n" + + "\033GenerateStatelessSuggestion\022C.google.cloud.dialogflow.v2" + + "beta1.GenerateStatelessSuggestionRequest\032D.google.cloud.dialogflow.v2beta1.Gener" + + "ateStatelessSuggestionResponse\"P\202\323\344\223\002J\"E" + + "/v2beta1/{parent=projects/*/locations/*}/statelessSuggestion:generate:\001*\022\314\003\n" + + "\017SearchKnowledge\0227.google.cloud.dialogflow.v" + + "2beta1.SearchKnowledgeRequest\0328.google.cloud.dialogflow.v2beta1.SearchKnowledgeR" + + "esponse\"\305\002\202\323\344\223\002\276\002\"8/v2beta1/{parent=proj" + + "ects/*}/suggestions:searchKnowledge:\001*ZI\"D/v2beta1/{parent=projects/*/locations/" + + "*}/suggestions:searchKnowledge:\001*ZS\"N/v2beta1/{conversation=projects/*/conversat" + + "ions/*}/suggestions:searchKnowledge:\001*Z_\"Z/v2beta1/{conversation=projects/*/loca" + + "tions/*/conversations/*}/suggestions:searchKnowledge:\001*\022\317\002\n" + + "\023GenerateSuggestions\022;.google.cloud.dialogflow.v2beta1.Genera" + + "teSuggestionsRequest\032<.google.cloud.dialogflow.v2beta1.GenerateSuggestionsRespon" + + "se\"\274\001\332A\014conversation\202\323\344\223\002\246\001\"G/v2beta1/{c" + + "onversation=projects/*/conversations/*}/suggestions:generate:\001*ZX\"S/v2beta1/{con" + + "versation=projects/*/locations/*/convers" + + "ations/*}/suggestions:generate:\001*\032x\312A\031di", + "alogflow.googleapis.com\322AYhttps://www.go" + + "ogleapis.com/auth/cloud-platform,https:/" + + "/www.googleapis.com/auth/dialogflowB\314\003\n#" + + "com.google.cloud.dialogflow.v2beta1B\021Con" + + "versationProtoP\001ZCcloud.google.com/go/di" + + "alogflow/apiv2beta1/dialogflowpb;dialogf" + + "lowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2B" + + "eta1\352A\305\001\n(discoveryengine.googleapis.com" + + "/DataStore\022Xprojects/{project}/locations" + + "/{location}/collections/{collection}/dat" + + "aStores/{data_store}\022?projects/{project}" + + "/locations/{location}/dataStores/{data_s" + + "tore}\352AZ\n\027ces.googleapis.com/Tool\022?proje" + + "cts/{project}/locations/{location}/apps/" + + "{app}/tools/{tool}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java index b46be1fef9fa..48d86b4abdb7 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java @@ -932,6 +932,65 @@ public interface SuggestionFeatureConfigOrBuilder */ com.google.cloud.dialogflow.v2beta1.RaiSettingsOrBuilder getRaiSettingsOrBuilder(); + /** + * + * + *
+     * Optional. The trigger event for suggestion.
+     * If unspecified, it will be `CUSTOMER_MESSAGE`.
+     * Supported features: KNOWLEDGE_ASSIST
+     * For KNOWLEDGE_ASSIST, these four trigger events are supported:
+     * 1. TRIGGER_EVENT_UNSPECIFIED
+     * 2. END_OF_UTTERANCE
+     * 3. CUSTOMER_MESSAGE
+     * 4. AGENT_MESSAGE
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for suggestionTriggerEvent. + */ + int getSuggestionTriggerEventValue(); + + /** + * + * + *
+     * Optional. The trigger event for suggestion.
+     * If unspecified, it will be `CUSTOMER_MESSAGE`.
+     * Supported features: KNOWLEDGE_ASSIST
+     * For KNOWLEDGE_ASSIST, these four trigger events are supported:
+     * 1. TRIGGER_EVENT_UNSPECIFIED
+     * 2. END_OF_UTTERANCE
+     * 3. CUSTOMER_MESSAGE
+     * 4. AGENT_MESSAGE
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The suggestionTriggerEvent. + */ + com.google.cloud.dialogflow.v2beta1.TriggerEvent getSuggestionTriggerEvent(); + + /** + * + * + *
+     * Optional. If true, disable appending available search context to the
+     * search query. Supported features: KNOWLEDGE_ASSIST
+     * 
+ * + * bool disable_query_search_context = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableQuerySearchContext. + */ + boolean getDisableQuerySearchContext(); + /** * * @@ -1031,51 +1090,6 @@ public interface SuggestionFeatureConfigOrBuilder com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder getQueryConfigOrBuilder(); - /** - * - * - *
-     * Configs of custom conversation model.
-     * 
- * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - * - * @return Whether the conversationModelConfig field is set. - */ - boolean hasConversationModelConfig(); - - /** - * - * - *
-     * Configs of custom conversation model.
-     * 
- * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - * - * @return The conversationModelConfig. - */ - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - getConversationModelConfig(); - - /** - * - * - *
-     * Configs of custom conversation model.
-     * 
- * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - */ - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfigOrBuilder - getConversationModelConfigOrBuilder(); - /** * * @@ -1153,7 +1167,9 @@ private SuggestionFeatureConfig(com.google.protobuf.GeneratedMessage.Builder super(builder); } - private SuggestionFeatureConfig() {} + private SuggestionFeatureConfig() { + suggestionTriggerEvent_ = 0; + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto @@ -1426,6 +1442,84 @@ public com.google.cloud.dialogflow.v2beta1.RaiSettingsOrBuilder getRaiSettingsOr : raiSettings_; } + public static final int SUGGESTION_TRIGGER_EVENT_FIELD_NUMBER = 20; + private int suggestionTriggerEvent_ = 0; + + /** + * + * + *
+     * Optional. The trigger event for suggestion.
+     * If unspecified, it will be `CUSTOMER_MESSAGE`.
+     * Supported features: KNOWLEDGE_ASSIST
+     * For KNOWLEDGE_ASSIST, these four trigger events are supported:
+     * 1. TRIGGER_EVENT_UNSPECIFIED
+     * 2. END_OF_UTTERANCE
+     * 3. CUSTOMER_MESSAGE
+     * 4. AGENT_MESSAGE
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for suggestionTriggerEvent. + */ + @java.lang.Override + public int getSuggestionTriggerEventValue() { + return suggestionTriggerEvent_; + } + + /** + * + * + *
+     * Optional. The trigger event for suggestion.
+     * If unspecified, it will be `CUSTOMER_MESSAGE`.
+     * Supported features: KNOWLEDGE_ASSIST
+     * For KNOWLEDGE_ASSIST, these four trigger events are supported:
+     * 1. TRIGGER_EVENT_UNSPECIFIED
+     * 2. END_OF_UTTERANCE
+     * 3. CUSTOMER_MESSAGE
+     * 4. AGENT_MESSAGE
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The suggestionTriggerEvent. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.TriggerEvent getSuggestionTriggerEvent() { + com.google.cloud.dialogflow.v2beta1.TriggerEvent result = + com.google.cloud.dialogflow.v2beta1.TriggerEvent.forNumber(suggestionTriggerEvent_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.TriggerEvent.UNRECOGNIZED + : result; + } + + public static final int DISABLE_QUERY_SEARCH_CONTEXT_FIELD_NUMBER = 21; + private boolean disableQuerySearchContext_ = false; + + /** + * + * + *
+     * Optional. If true, disable appending available search context to the
+     * search query. Supported features: KNOWLEDGE_ASSIST
+     * 
+ * + * bool disable_query_search_context = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableQuerySearchContext. + */ + @java.lang.Override + public boolean getDisableQuerySearchContext() { + return disableQuerySearchContext_; + } + public static final int SUGGESTION_TRIGGER_SETTINGS_FIELD_NUMBER = 10; private com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestionTriggerSettings_; @@ -1565,71 +1659,6 @@ public boolean hasQueryConfig() { : queryConfig_; } - public static final int CONVERSATION_MODEL_CONFIG_FIELD_NUMBER = 7; - private com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - conversationModelConfig_; - - /** - * - * - *
-     * Configs of custom conversation model.
-     * 
- * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - * - * @return Whether the conversationModelConfig field is set. - */ - @java.lang.Override - public boolean hasConversationModelConfig() { - return ((bitField0_ & 0x00000010) != 0); - } - - /** - * - * - *
-     * Configs of custom conversation model.
-     * 
- * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - * - * @return The conversationModelConfig. - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - getConversationModelConfig() { - return conversationModelConfig_ == null - ? com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - .getDefaultInstance() - : conversationModelConfig_; - } - - /** - * - * - *
-     * Configs of custom conversation model.
-     * 
- * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfigOrBuilder - getConversationModelConfigOrBuilder() { - return conversationModelConfig_ == null - ? com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - .getDefaultInstance() - : conversationModelConfig_; - } - public static final int CONVERSATION_PROCESS_CONFIG_FIELD_NUMBER = 8; private com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversationProcessConfig_; @@ -1649,7 +1678,7 @@ public boolean hasConversationModelConfig() { */ @java.lang.Override public boolean hasConversationProcessConfig() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -1719,9 +1748,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(6, getQueryConfig()); } if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(7, getConversationModelConfig()); - } - if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(8, getConversationProcessConfig()); } if (((bitField0_ & 0x00000004) != 0)) { @@ -1745,6 +1771,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(19, getRaiSettings()); } + if (suggestionTriggerEvent_ + != com.google.cloud.dialogflow.v2beta1.TriggerEvent.TRIGGER_EVENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(20, suggestionTriggerEvent_); + } + if (disableQuerySearchContext_ != false) { + output.writeBool(21, disableQuerySearchContext_); + } getUnknownFields().writeTo(output); } @@ -1765,11 +1799,6 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getQueryConfig()); } if (((bitField0_ & 0x00000010) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, getConversationModelConfig()); - } - if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 8, getConversationProcessConfig()); @@ -1803,6 +1832,15 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getRaiSettings()); } + if (suggestionTriggerEvent_ + != com.google.cloud.dialogflow.v2beta1.TriggerEvent.TRIGGER_EVENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, suggestionTriggerEvent_); + } + if (disableQuerySearchContext_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(21, disableQuerySearchContext_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1838,6 +1876,8 @@ public boolean equals(final java.lang.Object obj) { if (hasRaiSettings()) { if (!getRaiSettings().equals(other.getRaiSettings())) return false; } + if (suggestionTriggerEvent_ != other.suggestionTriggerEvent_) return false; + if (getDisableQuerySearchContext() != other.getDisableQuerySearchContext()) return false; if (hasSuggestionTriggerSettings() != other.hasSuggestionTriggerSettings()) return false; if (hasSuggestionTriggerSettings()) { if (!getSuggestionTriggerSettings().equals(other.getSuggestionTriggerSettings())) @@ -1847,10 +1887,6 @@ public boolean equals(final java.lang.Object obj) { if (hasQueryConfig()) { if (!getQueryConfig().equals(other.getQueryConfig())) return false; } - if (hasConversationModelConfig() != other.hasConversationModelConfig()) return false; - if (hasConversationModelConfig()) { - if (!getConversationModelConfig().equals(other.getConversationModelConfig())) return false; - } if (hasConversationProcessConfig() != other.hasConversationProcessConfig()) return false; if (hasConversationProcessConfig()) { if (!getConversationProcessConfig().equals(other.getConversationProcessConfig())) @@ -1892,6 +1928,10 @@ public int hashCode() { hash = (37 * hash) + RAI_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getRaiSettings().hashCode(); } + hash = (37 * hash) + SUGGESTION_TRIGGER_EVENT_FIELD_NUMBER; + hash = (53 * hash) + suggestionTriggerEvent_; + hash = (37 * hash) + DISABLE_QUERY_SEARCH_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableQuerySearchContext()); if (hasSuggestionTriggerSettings()) { hash = (37 * hash) + SUGGESTION_TRIGGER_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getSuggestionTriggerSettings().hashCode(); @@ -1900,10 +1940,6 @@ public int hashCode() { hash = (37 * hash) + QUERY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getQueryConfig().hashCode(); } - if (hasConversationModelConfig()) { - hash = (37 * hash) + CONVERSATION_MODEL_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConversationModelConfig().hashCode(); - } if (hasConversationProcessConfig()) { hash = (37 * hash) + CONVERSATION_PROCESS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConversationProcessConfig().hashCode(); @@ -2078,7 +2114,6 @@ private void maybeForceBuilderInitialization() { internalGetRaiSettingsFieldBuilder(); internalGetSuggestionTriggerSettingsFieldBuilder(); internalGetQueryConfigFieldBuilder(); - internalGetConversationModelConfigFieldBuilder(); internalGetConversationProcessConfigFieldBuilder(); } } @@ -2103,6 +2138,8 @@ public Builder clear() { raiSettingsBuilder_.dispose(); raiSettingsBuilder_ = null; } + suggestionTriggerEvent_ = 0; + disableQuerySearchContext_ = false; suggestionTriggerSettings_ = null; if (suggestionTriggerSettingsBuilder_ != null) { suggestionTriggerSettingsBuilder_.dispose(); @@ -2113,11 +2150,6 @@ public Builder clear() { queryConfigBuilder_.dispose(); queryConfigBuilder_ = null; } - conversationModelConfig_ = null; - if (conversationModelConfigBuilder_ != null) { - conversationModelConfigBuilder_.dispose(); - conversationModelConfigBuilder_ = null; - } conversationProcessConfig_ = null; if (conversationProcessConfigBuilder_ != null) { conversationProcessConfigBuilder_.dispose(); @@ -2200,30 +2232,29 @@ private void buildPartial0( to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000100) != 0)) { + result.suggestionTriggerEvent_ = suggestionTriggerEvent_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.disableQuerySearchContext_ = disableQuerySearchContext_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { result.suggestionTriggerSettings_ = suggestionTriggerSettingsBuilder_ == null ? suggestionTriggerSettings_ : suggestionTriggerSettingsBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.queryConfig_ = queryConfigBuilder_ == null ? queryConfig_ : queryConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.conversationModelConfig_ = - conversationModelConfigBuilder_ == null - ? conversationModelConfig_ - : conversationModelConfigBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.conversationProcessConfig_ = conversationProcessConfigBuilder_ == null ? conversationProcessConfig_ : conversationProcessConfigBuilder_.build(); - to_bitField0_ |= 0x00000020; + to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; } @@ -2273,15 +2304,18 @@ public Builder mergeFrom( if (other.hasRaiSettings()) { mergeRaiSettings(other.getRaiSettings()); } + if (other.suggestionTriggerEvent_ != 0) { + setSuggestionTriggerEventValue(other.getSuggestionTriggerEventValue()); + } + if (other.getDisableQuerySearchContext() != false) { + setDisableQuerySearchContext(other.getDisableQuerySearchContext()); + } if (other.hasSuggestionTriggerSettings()) { mergeSuggestionTriggerSettings(other.getSuggestionTriggerSettings()); } if (other.hasQueryConfig()) { mergeQueryConfig(other.getQueryConfig()); } - if (other.hasConversationModelConfig()) { - mergeConversationModelConfig(other.getConversationModelConfig()); - } if (other.hasConversationProcessConfig()) { mergeConversationProcessConfig(other.getConversationProcessConfig()); } @@ -2328,23 +2362,15 @@ public Builder mergeFrom( { input.readMessage( internalGetQueryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; break; } // case 50 - case 58: - { - input.readMessage( - internalGetConversationModelConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 58 case 66: { input.readMessage( internalGetConversationProcessConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 66 case 82: @@ -2352,7 +2378,7 @@ public Builder mergeFrom( input.readMessage( internalGetSuggestionTriggerSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; break; } // case 82 case 112: @@ -2392,6 +2418,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 154 + case 160: + { + suggestionTriggerEvent_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 160 + case 168: + { + disableQuerySearchContext_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 168 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3245,92 +3283,297 @@ public com.google.cloud.dialogflow.v2beta1.RaiSettingsOrBuilder getRaiSettingsOr return raiSettingsBuilder_; } - private com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .SuggestionTriggerSettings - suggestionTriggerSettings_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .SuggestionTriggerSettings, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .SuggestionTriggerSettings.Builder, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .SuggestionTriggerSettingsOrBuilder> - suggestionTriggerSettingsBuilder_; + private int suggestionTriggerEvent_ = 0; /** * * *
-       * Settings of suggestion trigger.
-       *
-       * Currently, only ARTICLE_SUGGESTION, FAQ, and DIALOGFLOW_ASSIST will use
-       * this field.
+       * Optional. The trigger event for suggestion.
+       * If unspecified, it will be `CUSTOMER_MESSAGE`.
+       * Supported features: KNOWLEDGE_ASSIST
+       * For KNOWLEDGE_ASSIST, these four trigger events are supported:
+       * 1. TRIGGER_EVENT_UNSPECIFIED
+       * 2. END_OF_UTTERANCE
+       * 3. CUSTOMER_MESSAGE
+       * 4. AGENT_MESSAGE
        * 
* * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; + * .google.cloud.dialogflow.v2beta1.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the suggestionTriggerSettings field is set. + * @return The enum numeric value on the wire for suggestionTriggerEvent. */ - public boolean hasSuggestionTriggerSettings() { - return ((bitField0_ & 0x00000100) != 0); + @java.lang.Override + public int getSuggestionTriggerEventValue() { + return suggestionTriggerEvent_; } /** * * *
-       * Settings of suggestion trigger.
-       *
-       * Currently, only ARTICLE_SUGGESTION, FAQ, and DIALOGFLOW_ASSIST will use
-       * this field.
+       * Optional. The trigger event for suggestion.
+       * If unspecified, it will be `CUSTOMER_MESSAGE`.
+       * Supported features: KNOWLEDGE_ASSIST
+       * For KNOWLEDGE_ASSIST, these four trigger events are supported:
+       * 1. TRIGGER_EVENT_UNSPECIFIED
+       * 2. END_OF_UTTERANCE
+       * 3. CUSTOMER_MESSAGE
+       * 4. AGENT_MESSAGE
        * 
* * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; + * .google.cloud.dialogflow.v2beta1.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The suggestionTriggerSettings. + * @param value The enum numeric value on the wire for suggestionTriggerEvent to set. + * @return This builder for chaining. */ - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings - getSuggestionTriggerSettings() { - if (suggestionTriggerSettingsBuilder_ == null) { - return suggestionTriggerSettings_ == null - ? com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .SuggestionTriggerSettings.getDefaultInstance() - : suggestionTriggerSettings_; - } else { - return suggestionTriggerSettingsBuilder_.getMessage(); - } + public Builder setSuggestionTriggerEventValue(int value) { + suggestionTriggerEvent_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; } /** * * *
-       * Settings of suggestion trigger.
-       *
-       * Currently, only ARTICLE_SUGGESTION, FAQ, and DIALOGFLOW_ASSIST will use
-       * this field.
+       * Optional. The trigger event for suggestion.
+       * If unspecified, it will be `CUSTOMER_MESSAGE`.
+       * Supported features: KNOWLEDGE_ASSIST
+       * For KNOWLEDGE_ASSIST, these four trigger events are supported:
+       * 1. TRIGGER_EVENT_UNSPECIFIED
+       * 2. END_OF_UTTERANCE
+       * 3. CUSTOMER_MESSAGE
+       * 4. AGENT_MESSAGE
        * 
* * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; + * .google.cloud.dialogflow.v2beta1.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The suggestionTriggerEvent. */ - public Builder setSuggestionTriggerSettings( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings - value) { - if (suggestionTriggerSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - suggestionTriggerSettings_ = value; - } else { - suggestionTriggerSettingsBuilder_.setMessage(value); - } + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.TriggerEvent getSuggestionTriggerEvent() { + com.google.cloud.dialogflow.v2beta1.TriggerEvent result = + com.google.cloud.dialogflow.v2beta1.TriggerEvent.forNumber(suggestionTriggerEvent_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.TriggerEvent.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Optional. The trigger event for suggestion.
+       * If unspecified, it will be `CUSTOMER_MESSAGE`.
+       * Supported features: KNOWLEDGE_ASSIST
+       * For KNOWLEDGE_ASSIST, these four trigger events are supported:
+       * 1. TRIGGER_EVENT_UNSPECIFIED
+       * 2. END_OF_UTTERANCE
+       * 3. CUSTOMER_MESSAGE
+       * 4. AGENT_MESSAGE
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The suggestionTriggerEvent to set. + * @return This builder for chaining. + */ + public Builder setSuggestionTriggerEvent( + com.google.cloud.dialogflow.v2beta1.TriggerEvent value) { + if (value == null) { + throw new NullPointerException(); + } bitField0_ |= 0x00000100; + suggestionTriggerEvent_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The trigger event for suggestion.
+       * If unspecified, it will be `CUSTOMER_MESSAGE`.
+       * Supported features: KNOWLEDGE_ASSIST
+       * For KNOWLEDGE_ASSIST, these four trigger events are supported:
+       * 1. TRIGGER_EVENT_UNSPECIFIED
+       * 2. END_OF_UTTERANCE
+       * 3. CUSTOMER_MESSAGE
+       * 4. AGENT_MESSAGE
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSuggestionTriggerEvent() { + bitField0_ = (bitField0_ & ~0x00000100); + suggestionTriggerEvent_ = 0; + onChanged(); + return this; + } + + private boolean disableQuerySearchContext_; + + /** + * + * + *
+       * Optional. If true, disable appending available search context to the
+       * search query. Supported features: KNOWLEDGE_ASSIST
+       * 
+ * + * bool disable_query_search_context = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableQuerySearchContext. + */ + @java.lang.Override + public boolean getDisableQuerySearchContext() { + return disableQuerySearchContext_; + } + + /** + * + * + *
+       * Optional. If true, disable appending available search context to the
+       * search query. Supported features: KNOWLEDGE_ASSIST
+       * 
+ * + * bool disable_query_search_context = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The disableQuerySearchContext to set. + * @return This builder for chaining. + */ + public Builder setDisableQuerySearchContext(boolean value) { + + disableQuerySearchContext_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. If true, disable appending available search context to the
+       * search query. Supported features: KNOWLEDGE_ASSIST
+       * 
+ * + * bool disable_query_search_context = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDisableQuerySearchContext() { + bitField0_ = (bitField0_ & ~0x00000200); + disableQuerySearchContext_ = false; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionTriggerSettings + suggestionTriggerSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionTriggerSettings, + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionTriggerSettings.Builder, + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionTriggerSettingsOrBuilder> + suggestionTriggerSettingsBuilder_; + + /** + * + * + *
+       * Settings of suggestion trigger.
+       *
+       * Currently, only ARTICLE_SUGGESTION, FAQ, and DIALOGFLOW_ASSIST will use
+       * this field.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; + * + * + * @return Whether the suggestionTriggerSettings field is set. + */ + public boolean hasSuggestionTriggerSettings() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+       * Settings of suggestion trigger.
+       *
+       * Currently, only ARTICLE_SUGGESTION, FAQ, and DIALOGFLOW_ASSIST will use
+       * this field.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; + * + * + * @return The suggestionTriggerSettings. + */ + public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings + getSuggestionTriggerSettings() { + if (suggestionTriggerSettingsBuilder_ == null) { + return suggestionTriggerSettings_ == null + ? com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionTriggerSettings.getDefaultInstance() + : suggestionTriggerSettings_; + } else { + return suggestionTriggerSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Settings of suggestion trigger.
+       *
+       * Currently, only ARTICLE_SUGGESTION, FAQ, and DIALOGFLOW_ASSIST will use
+       * this field.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; + * + */ + public Builder setSuggestionTriggerSettings( + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings + value) { + if (suggestionTriggerSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + suggestionTriggerSettings_ = value; + } else { + suggestionTriggerSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3358,7 +3601,7 @@ public Builder setSuggestionTriggerSettings( } else { suggestionTriggerSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3381,7 +3624,7 @@ public Builder mergeSuggestionTriggerSettings( com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings value) { if (suggestionTriggerSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000400) != 0) && suggestionTriggerSettings_ != null && suggestionTriggerSettings_ != com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig @@ -3394,7 +3637,7 @@ public Builder mergeSuggestionTriggerSettings( suggestionTriggerSettingsBuilder_.mergeFrom(value); } if (suggestionTriggerSettings_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -3415,7 +3658,7 @@ public Builder mergeSuggestionTriggerSettings( * */ public Builder clearSuggestionTriggerSettings() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); suggestionTriggerSettings_ = null; if (suggestionTriggerSettingsBuilder_ != null) { suggestionTriggerSettingsBuilder_.dispose(); @@ -3442,7 +3685,7 @@ public Builder clearSuggestionTriggerSettings() { public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings .Builder getSuggestionTriggerSettingsBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return internalGetSuggestionTriggerSettingsFieldBuilder().getBuilder(); } @@ -3535,7 +3778,7 @@ public Builder clearSuggestionTriggerSettings() { * @return Whether the queryConfig field is set. */ public boolean hasQueryConfig() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -3585,7 +3828,7 @@ public Builder setQueryConfig( } else { queryConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3610,7 +3853,7 @@ public Builder setQueryConfig( } else { queryConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3630,7 +3873,7 @@ public Builder mergeQueryConfig( com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig value) { if (queryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000800) != 0) && queryConfig_ != null && queryConfig_ != com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig @@ -3643,7 +3886,7 @@ public Builder mergeQueryConfig( queryConfigBuilder_.mergeFrom(value); } if (queryConfig_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -3661,7 +3904,7 @@ public Builder mergeQueryConfig( * */ public Builder clearQueryConfig() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000800); queryConfig_ = null; if (queryConfigBuilder_ != null) { queryConfigBuilder_.dispose(); @@ -3685,7 +3928,7 @@ public Builder clearQueryConfig() { public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig .Builder getQueryConfigBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return internalGetQueryConfigFieldBuilder().getBuilder(); } @@ -3747,55 +3990,57 @@ public Builder clearQueryConfig() { return queryConfigBuilder_; } - private com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - conversationModelConfig_; + private com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .ConversationProcessConfig + conversationProcessConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - .Builder, com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfigOrBuilder> - conversationModelConfigBuilder_; + .ConversationProcessConfig, + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .ConversationProcessConfig.Builder, + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .ConversationProcessConfigOrBuilder> + conversationProcessConfigBuilder_; /** * * *
-       * Configs of custom conversation model.
+       * Configs for processing conversation.
        * 
* * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; + * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; * * - * @return Whether the conversationModelConfig field is set. + * @return Whether the conversationProcessConfig field is set. */ - public boolean hasConversationModelConfig() { - return ((bitField0_ & 0x00000400) != 0); + public boolean hasConversationProcessConfig() { + return ((bitField0_ & 0x00001000) != 0); } /** * * *
-       * Configs of custom conversation model.
+       * Configs for processing conversation.
        * 
* * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; + * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; * * - * @return The conversationModelConfig. + * @return The conversationProcessConfig. */ - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - getConversationModelConfig() { - if (conversationModelConfigBuilder_ == null) { - return conversationModelConfig_ == null + public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig + getConversationProcessConfig() { + if (conversationProcessConfigBuilder_ == null) { + return conversationProcessConfig_ == null ? com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig.getDefaultInstance() - : conversationModelConfig_; + .ConversationProcessConfig.getDefaultInstance() + : conversationProcessConfig_; } else { - return conversationModelConfigBuilder_.getMessage(); + return conversationProcessConfigBuilder_.getMessage(); } } @@ -3803,25 +4048,25 @@ public boolean hasConversationModelConfig() { * * *
-       * Configs of custom conversation model.
+       * Configs for processing conversation.
        * 
* * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; + * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; * */ - public Builder setConversationModelConfig( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig + public Builder setConversationProcessConfig( + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig value) { - if (conversationModelConfigBuilder_ == null) { + if (conversationProcessConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - conversationModelConfig_ = value; + conversationProcessConfig_ = value; } else { - conversationModelConfigBuilder_.setMessage(value); + conversationProcessConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3830,23 +4075,23 @@ public Builder setConversationModelConfig( * * *
-       * Configs of custom conversation model.
+       * Configs for processing conversation.
        * 
* * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; + * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; * */ - public Builder setConversationModelConfig( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig + public Builder setConversationProcessConfig( + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig .Builder builderForValue) { - if (conversationModelConfigBuilder_ == null) { - conversationModelConfig_ = builderForValue.build(); + if (conversationProcessConfigBuilder_ == null) { + conversationProcessConfig_ = builderForValue.build(); } else { - conversationModelConfigBuilder_.setMessage(builderForValue.build()); + conversationProcessConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3855,31 +4100,31 @@ public Builder setConversationModelConfig( * * *
-       * Configs of custom conversation model.
+       * Configs for processing conversation.
        * 
* * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; + * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; * */ - public Builder mergeConversationModelConfig( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig + public Builder mergeConversationProcessConfig( + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig value) { - if (conversationModelConfigBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && conversationModelConfig_ != null - && conversationModelConfig_ + if (conversationProcessConfigBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && conversationProcessConfig_ != null + && conversationProcessConfig_ != com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig.getDefaultInstance()) { - getConversationModelConfigBuilder().mergeFrom(value); + .ConversationProcessConfig.getDefaultInstance()) { + getConversationProcessConfigBuilder().mergeFrom(value); } else { - conversationModelConfig_ = value; + conversationProcessConfig_ = value; } } else { - conversationModelConfigBuilder_.mergeFrom(value); + conversationProcessConfigBuilder_.mergeFrom(value); } - if (conversationModelConfig_ != null) { - bitField0_ |= 0x00000400; + if (conversationProcessConfig_ != null) { + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -3889,19 +4134,19 @@ public Builder mergeConversationModelConfig( * * *
-       * Configs of custom conversation model.
+       * Configs for processing conversation.
        * 
* * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; + * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; * */ - public Builder clearConversationModelConfig() { - bitField0_ = (bitField0_ & ~0x00000400); - conversationModelConfig_ = null; - if (conversationModelConfigBuilder_ != null) { - conversationModelConfigBuilder_.dispose(); - conversationModelConfigBuilder_ = null; + public Builder clearConversationProcessConfig() { + bitField0_ = (bitField0_ & ~0x00001000); + conversationProcessConfig_ = null; + if (conversationProcessConfigBuilder_ != null) { + conversationProcessConfigBuilder_.dispose(); + conversationProcessConfigBuilder_ = null; } onChanged(); return this; @@ -3911,255 +4156,17 @@ public Builder clearConversationModelConfig() { * * *
-       * Configs of custom conversation model.
+       * Configs for processing conversation.
        * 
* * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; + * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; * */ - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig + public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig .Builder - getConversationModelConfigBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return internalGetConversationModelConfigFieldBuilder().getBuilder(); - } - - /** - * - * - *
-       * Configs of custom conversation model.
-       * 
- * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - */ - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfigOrBuilder - getConversationModelConfigOrBuilder() { - if (conversationModelConfigBuilder_ != null) { - return conversationModelConfigBuilder_.getMessageOrBuilder(); - } else { - return conversationModelConfig_ == null - ? com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig.getDefaultInstance() - : conversationModelConfig_; - } - } - - /** - * - * - *
-       * Configs of custom conversation model.
-       * 
- * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - .Builder, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfigOrBuilder> - internalGetConversationModelConfigFieldBuilder() { - if (conversationModelConfigBuilder_ == null) { - conversationModelConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig.Builder, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfigOrBuilder>( - getConversationModelConfig(), getParentForChildren(), isClean()); - conversationModelConfig_ = null; - } - return conversationModelConfigBuilder_; - } - - private com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationProcessConfig - conversationProcessConfig_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationProcessConfig, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationProcessConfig.Builder, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationProcessConfigOrBuilder> - conversationProcessConfigBuilder_; - - /** - * - * - *
-       * Configs for processing conversation.
-       * 
- * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; - * - * - * @return Whether the conversationProcessConfig field is set. - */ - public boolean hasConversationProcessConfig() { - return ((bitField0_ & 0x00000800) != 0); - } - - /** - * - * - *
-       * Configs for processing conversation.
-       * 
- * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; - * - * - * @return The conversationProcessConfig. - */ - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig - getConversationProcessConfig() { - if (conversationProcessConfigBuilder_ == null) { - return conversationProcessConfig_ == null - ? com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationProcessConfig.getDefaultInstance() - : conversationProcessConfig_; - } else { - return conversationProcessConfigBuilder_.getMessage(); - } - } - - /** - * - * - *
-       * Configs for processing conversation.
-       * 
- * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; - * - */ - public Builder setConversationProcessConfig( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig - value) { - if (conversationProcessConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - conversationProcessConfig_ = value; - } else { - conversationProcessConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - - /** - * - * - *
-       * Configs for processing conversation.
-       * 
- * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; - * - */ - public Builder setConversationProcessConfig( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig - .Builder - builderForValue) { - if (conversationProcessConfigBuilder_ == null) { - conversationProcessConfig_ = builderForValue.build(); - } else { - conversationProcessConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - - /** - * - * - *
-       * Configs for processing conversation.
-       * 
- * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; - * - */ - public Builder mergeConversationProcessConfig( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig - value) { - if (conversationProcessConfigBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && conversationProcessConfig_ != null - && conversationProcessConfig_ - != com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationProcessConfig.getDefaultInstance()) { - getConversationProcessConfigBuilder().mergeFrom(value); - } else { - conversationProcessConfig_ = value; - } - } else { - conversationProcessConfigBuilder_.mergeFrom(value); - } - if (conversationProcessConfig_ != null) { - bitField0_ |= 0x00000800; - onChanged(); - } - return this; - } - - /** - * - * - *
-       * Configs for processing conversation.
-       * 
- * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; - * - */ - public Builder clearConversationProcessConfig() { - bitField0_ = (bitField0_ & ~0x00000800); - conversationProcessConfig_ = null; - if (conversationProcessConfigBuilder_ != null) { - conversationProcessConfigBuilder_.dispose(); - conversationProcessConfigBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-       * Configs for processing conversation.
-       * 
- * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; - * - */ - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig - .Builder - getConversationProcessConfigBuilder() { - bitField0_ |= 0x00000800; + getConversationProcessConfigBuilder() { + bitField0_ |= 0x00001000; onChanged(); return internalGetConversationProcessConfigFieldBuilder().getBuilder(); } @@ -15514,970 +15521,6 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface ConversationModelConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Conversation model resource name. Format: `projects/<Project
-     * ID>/conversationModels/<Model ID>`.
-     * 
- * - * string model = 1 [(.google.api.resource_reference) = { ... } - * - * @return The model. - */ - java.lang.String getModel(); - - /** - * - * - *
-     * Conversation model resource name. Format: `projects/<Project
-     * ID>/conversationModels/<Model ID>`.
-     * 
- * - * string model = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for model. - */ - com.google.protobuf.ByteString getModelBytes(); - - /** - * - * - *
-     * Version of current baseline model. It will be ignored if
-     * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model]
-     * is set. Valid versions are:
-     *
-     * - Article Suggestion baseline model:
-     * - 0.9
-     * - 1.0 (default)
-     * - Summarization baseline model:
-     * - 1.0
-     * 
- * - * string baseline_model_version = 8; - * - * @return The baselineModelVersion. - */ - java.lang.String getBaselineModelVersion(); - - /** - * - * - *
-     * Version of current baseline model. It will be ignored if
-     * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model]
-     * is set. Valid versions are:
-     *
-     * - Article Suggestion baseline model:
-     * - 0.9
-     * - 1.0 (default)
-     * - Summarization baseline model:
-     * - 1.0
-     * 
- * - * string baseline_model_version = 8; - * - * @return The bytes for baselineModelVersion. - */ - com.google.protobuf.ByteString getBaselineModelVersionBytes(); - } - - /** - * - * - *
-   * Custom conversation models used in agent assist feature.
-   *
-   * Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY,
-   * CONVERSATION_SUMMARIZATION.
-   * 
- * - * Protobuf type {@code - * google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig} - */ - public static final class ConversationModelConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig) - ConversationModelConfigOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "ConversationModelConfig"); - } - - // Use ConversationModelConfig.newBuilder() to construct. - private ConversationModelConfig(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ConversationModelConfig() { - model_ = ""; - baselineModelVersion_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationModelConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationModelConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - .class, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - .Builder.class); - } - - public static final int MODEL_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object model_ = ""; - - /** - * - * - *
-     * Conversation model resource name. Format: `projects/<Project
-     * ID>/conversationModels/<Model ID>`.
-     * 
- * - * string model = 1 [(.google.api.resource_reference) = { ... } - * - * @return The model. - */ - @java.lang.Override - public java.lang.String getModel() { - java.lang.Object ref = model_; - 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(); - model_ = s; - return s; - } - } - - /** - * - * - *
-     * Conversation model resource name. Format: `projects/<Project
-     * ID>/conversationModels/<Model ID>`.
-     * 
- * - * string model = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for model. - */ - @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { - java.lang.Object ref = model_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - model_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BASELINE_MODEL_VERSION_FIELD_NUMBER = 8; - - @SuppressWarnings("serial") - private volatile java.lang.Object baselineModelVersion_ = ""; - - /** - * - * - *
-     * Version of current baseline model. It will be ignored if
-     * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model]
-     * is set. Valid versions are:
-     *
-     * - Article Suggestion baseline model:
-     * - 0.9
-     * - 1.0 (default)
-     * - Summarization baseline model:
-     * - 1.0
-     * 
- * - * string baseline_model_version = 8; - * - * @return The baselineModelVersion. - */ - @java.lang.Override - public java.lang.String getBaselineModelVersion() { - java.lang.Object ref = baselineModelVersion_; - 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(); - baselineModelVersion_ = s; - return s; - } - } - - /** - * - * - *
-     * Version of current baseline model. It will be ignored if
-     * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model]
-     * is set. Valid versions are:
-     *
-     * - Article Suggestion baseline model:
-     * - 0.9
-     * - 1.0 (default)
-     * - Summarization baseline model:
-     * - 1.0
-     * 
- * - * string baseline_model_version = 8; - * - * @return The bytes for baselineModelVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBaselineModelVersionBytes() { - java.lang.Object ref = baselineModelVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - baselineModelVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(model_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, model_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(baselineModelVersion_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 8, baselineModelVersion_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(model_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, model_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(baselineModelVersion_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(8, baselineModelVersion_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig)) { - return super.equals(obj); - } - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig other = - (com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig) - obj; - - if (!getModel().equals(other.getModel())) return false; - if (!getBaselineModelVersion().equals(other.getBaselineModelVersion())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MODEL_FIELD_NUMBER; - hash = (53 * hash) + getModel().hashCode(); - hash = (37 * hash) + BASELINE_MODEL_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getBaselineModelVersion().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-     * Custom conversation models used in agent assist feature.
-     *
-     * Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY,
-     * CONVERSATION_SUMMARIZATION.
-     * 
- * - * Protobuf type {@code - * google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig) - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationModelConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationModelConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig.class, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig.Builder.class); - } - - // Construct using - // com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - model_ = ""; - baselineModelVersion_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationModelConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - build() { - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - buildPartial() { - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - result = - new com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.model_ = model_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.baselineModelVersion_ = baselineModelVersion_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig) { - return mergeFrom( - (com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - other) { - if (other - == com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - .getDefaultInstance()) return this; - if (!other.getModel().isEmpty()) { - model_ = other.model_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getBaselineModelVersion().isEmpty()) { - baselineModelVersion_ = other.baselineModelVersion_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 66: - { - baselineModelVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object model_ = ""; - - /** - * - * - *
-       * Conversation model resource name. Format: `projects/<Project
-       * ID>/conversationModels/<Model ID>`.
-       * 
- * - * string model = 1 [(.google.api.resource_reference) = { ... } - * - * @return The model. - */ - public java.lang.String getModel() { - java.lang.Object ref = model_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - model_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-       * Conversation model resource name. Format: `projects/<Project
-       * ID>/conversationModels/<Model ID>`.
-       * 
- * - * string model = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for model. - */ - public com.google.protobuf.ByteString getModelBytes() { - java.lang.Object ref = model_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - model_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-       * Conversation model resource name. Format: `projects/<Project
-       * ID>/conversationModels/<Model ID>`.
-       * 
- * - * string model = 1 [(.google.api.resource_reference) = { ... } - * - * @param value The model to set. - * @return This builder for chaining. - */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - model_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-       * Conversation model resource name. Format: `projects/<Project
-       * ID>/conversationModels/<Model ID>`.
-       * 
- * - * string model = 1 [(.google.api.resource_reference) = { ... } - * - * @return This builder for chaining. - */ - public Builder clearModel() { - model_ = getDefaultInstance().getModel(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-       * Conversation model resource name. Format: `projects/<Project
-       * ID>/conversationModels/<Model ID>`.
-       * 
- * - * string model = 1 [(.google.api.resource_reference) = { ... } - * - * @param value The bytes for model to set. - * @return This builder for chaining. - */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - model_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object baselineModelVersion_ = ""; - - /** - * - * - *
-       * Version of current baseline model. It will be ignored if
-       * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model]
-       * is set. Valid versions are:
-       *
-       * - Article Suggestion baseline model:
-       * - 0.9
-       * - 1.0 (default)
-       * - Summarization baseline model:
-       * - 1.0
-       * 
- * - * string baseline_model_version = 8; - * - * @return The baselineModelVersion. - */ - public java.lang.String getBaselineModelVersion() { - java.lang.Object ref = baselineModelVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - baselineModelVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-       * Version of current baseline model. It will be ignored if
-       * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model]
-       * is set. Valid versions are:
-       *
-       * - Article Suggestion baseline model:
-       * - 0.9
-       * - 1.0 (default)
-       * - Summarization baseline model:
-       * - 1.0
-       * 
- * - * string baseline_model_version = 8; - * - * @return The bytes for baselineModelVersion. - */ - public com.google.protobuf.ByteString getBaselineModelVersionBytes() { - java.lang.Object ref = baselineModelVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - baselineModelVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-       * Version of current baseline model. It will be ignored if
-       * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model]
-       * is set. Valid versions are:
-       *
-       * - Article Suggestion baseline model:
-       * - 0.9
-       * - 1.0 (default)
-       * - Summarization baseline model:
-       * - 1.0
-       * 
- * - * string baseline_model_version = 8; - * - * @param value The baselineModelVersion to set. - * @return This builder for chaining. - */ - public Builder setBaselineModelVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - baselineModelVersion_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-       * Version of current baseline model. It will be ignored if
-       * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model]
-       * is set. Valid versions are:
-       *
-       * - Article Suggestion baseline model:
-       * - 0.9
-       * - 1.0 (default)
-       * - Summarization baseline model:
-       * - 1.0
-       * 
- * - * string baseline_model_version = 8; - * - * @return This builder for chaining. - */ - public Builder clearBaselineModelVersion() { - baselineModelVersion_ = getDefaultInstance().getBaselineModelVersion(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-       * Version of current baseline model. It will be ignored if
-       * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model]
-       * is set. Valid versions are:
-       *
-       * - Article Suggestion baseline model:
-       * - 0.9
-       * - 1.0 (default)
-       * - Summarization baseline model:
-       * - 1.0
-       * 
- * - * string baseline_model_version = 8; - * - * @param value The bytes for baselineModelVersion to set. - * @return This builder for chaining. - */ - public Builder setBaselineModelVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - baselineModelVersion_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig) - private static final com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig(); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConversationModelConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - public interface ConversationProcessConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig) diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswer.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswer.java index f15e0f14a638..3c42ce852340 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswer.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswer.java @@ -100,6 +100,79 @@ public interface SuggestedQueryOrBuilder * @return The bytes for queryText. */ com.google.protobuf.ByteString getQueryTextBytes(); + + /** + * + * + *
+     * Optional. The search contexts for the query.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext> + getSearchContextsList(); + + /** + * + * + *
+     * Optional. The search contexts for the query.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + getSearchContexts(int index); + + /** + * + * + *
+     * Optional. The search contexts for the query.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSearchContextsCount(); + + /** + * + * + *
+     * Optional. The search contexts for the query.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder> + getSearchContextsOrBuilderList(); + + /** + * + * + *
+     * Optional. The search contexts for the query.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContextOrBuilder + getSearchContextsOrBuilder(int index); } /** @@ -134,6 +207,7 @@ private SuggestedQuery(com.google.protobuf.GeneratedMessage.Builder builder) private SuggestedQuery() { queryText_ = ""; + searchContexts_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -152,3076 +226,7001 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .class); } - public static final int QUERY_TEXT_FIELD_NUMBER = 1; + public interface SearchContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object queryText_ = ""; + /** + * + * + *
+       * Optional. The key of the search context, e.g. "application name".
+       * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The key. + */ + java.lang.String getKey(); - /** - * - * - *
-     * Suggested query text.
-     * 
- * - * string query_text = 1; - * - * @return The queryText. - */ - @java.lang.Override - public java.lang.String getQueryText() { - java.lang.Object ref = queryText_; - 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(); - queryText_ = s; - return s; - } + /** + * + * + *
+       * Optional. The key of the search context, e.g. "application name".
+       * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
+       * Optional. The value of the search context, e.g. "DesignApp".
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + * + * + *
+       * Optional. The value of the search context, e.g. "DesignApp".
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); } /** * * *
-     * Suggested query text.
+     * Search context is information useful for knowledge search that helps
+     * enrich the query.
+     * Example:
+     * search_context {
+     * key: "application name"
+     * value: "DesignApp"
+     * }
      * 
* - * string query_text = 1; - * - * @return The bytes for queryText. + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext} */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryTextBytes() { - java.lang.Object ref = queryText_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - queryText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } + public static final class SearchContext extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + SearchContextOrBuilder { + private static final long serialVersionUID = 0L; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryText_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, queryText_); + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchContext"); } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + // Use SearchContext.newBuilder() to construct. + private SearchContext(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryText_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, queryText_); + private SearchContext() { + key_ = ""; + value_ = ""; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor; } - if (!(obj - instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery)) { - return super.equals(obj); + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext.Builder.class); } - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery other = - (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) obj; - if (!getQueryText().equals(other.getQueryText())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static final int KEY_FIELD_NUMBER = 1; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + + /** + * + * + *
+       * Optional. The key of the search context, e.g. "application name".
+       * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + 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(); + key_ = s; + return s; + } } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUERY_TEXT_FIELD_NUMBER; - hash = (53 * hash) + getQueryText().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
+       * Optional. The key of the search context, e.g. "application name".
+       * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int VALUE_FIELD_NUMBER = 2; - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-     * Represents a suggested query.
-     * 
- * - * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_descriptor; + /** + * + * + *
+       * Optional. The value of the search context, e.g. "DesignApp".
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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(); + value_ = s; + return s; + } } + /** + * + * + *
+       * Optional. The value of the search context, e.g. "DesignApp".
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for value. + */ @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.class, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.Builder - .class); + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - // Construct using - // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + private byte memoizedIsInitialized = -1; @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - queryText_ = ""; - return this; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_descriptor; + memoizedIsInitialized = 1; + return true; } @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - .getDefaultInstance(); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, key_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, value_); + } + getUnknownFields().writeTo(output); } @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery build() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, key_); } - return result; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, value_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - buildPartial() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery result = - new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery(this); - if (bitField0_ != 0) { - buildPartial0(result); + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.queryText_ = queryText_; + if (!(obj + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext)) { + return super.equals(obj); } + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + other = + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext) + obj; + + if (!getKey().equals(other.getKey())) return false; + if (!getValue().equals(other.getValue())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) { - return mergeFrom( - (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) other); - } else { - super.mergeFrom(other); - return this; + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery other) { - if (other - == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - .getDefaultInstance()) return this; - if (!other.getQueryText().isEmpty()) { - queryText_ = other.queryText_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public final boolean isInitialized() { - return true; + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - queryText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - private int bitField0_; + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private java.lang.Object queryText_ = ""; + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
-       * Suggested query text.
-       * 
- * - * string query_text = 1; - * - * @return The queryText. - */ - public java.lang.String getQueryText() { - java.lang.Object ref = queryText_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - queryText_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - * - * - *
-       * Suggested query text.
-       * 
- * - * string query_text = 1; - * - * @return The bytes for queryText. - */ - public com.google.protobuf.ByteString getQueryTextBytes() { - java.lang.Object ref = queryText_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - queryText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - /** - * - * - *
-       * Suggested query text.
-       * 
- * - * string query_text = 1; - * - * @param value The queryText to set. - * @return This builder for chaining. - */ - public Builder setQueryText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - queryText_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - /** - * - * - *
-       * Suggested query text.
-       * 
- * - * string query_text = 1; - * - * @return This builder for chaining. - */ - public Builder clearQueryText() { - queryText_ = getDefaultInstance().getQueryText(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * * *
-       * Suggested query text.
+       * Search context is information useful for knowledge search that helps
+       * enrich the query.
+       * Example:
+       * search_context {
+       * key: "application name"
+       * value: "DesignApp"
+       * }
        * 
* - * string query_text = 1; - * - * @param value The bytes for queryText to set. - * @return This builder for chaining. + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext} */ - public Builder setQueryTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor; } - checkByteStringIsUtf8(value); - queryText_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext.Builder.class); + } - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) - private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - DEFAULT_INSTANCE; + // Construct using + // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext.newBuilder() + private Builder() {} - static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery(); - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = ""; + value_ = ""; + return this; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SuggestedQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext.getDefaultInstance(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + result = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - public interface KnowledgeAnswerOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) - com.google.protobuf.MessageOrBuilder { + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + } - /** - * - * - *
-     * The piece of text from the `source` that answers this suggested query.
-     * 
- * - * string answer_text = 1; - * - * @return The answerText. - */ - java.lang.String getAnswerText(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext) + other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * - * - *
-     * The piece of text from the `source` that answers this suggested query.
-     * 
- * - * string answer_text = 1; - * - * @return The bytes for answerText. - */ - com.google.protobuf.ByteString getAnswerTextBytes(); + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
-     * Populated if the prediction came from FAQ.
-     * 
- * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; - * - * - * @return Whether the faqSource field is set. - */ - boolean hasFaqSource(); + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * - * - *
-     * Populated if the prediction came from FAQ.
-     * 
- * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; - * - * - * @return The faqSource. - */ - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - getFaqSource(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } - /** - * - * - *
-     * Populated if the prediction came from FAQ.
-     * 
- * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; - * - */ - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceOrBuilder - getFaqSourceOrBuilder(); + private int bitField0_; - /** - * - * - *
-     * Populated if the prediction was Generative.
-     * 
- * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; - * - * - * @return Whether the generativeSource field is set. - */ - boolean hasGenerativeSource(); + private java.lang.Object key_ = ""; - /** - * - * - *
-     * Populated if the prediction was Generative.
-     * 
- * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; - * - * - * @return The generativeSource. - */ - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - getGenerativeSource(); + /** + * + * + *
+         * Optional. The key of the search context, e.g. "application name".
+         * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * - * - *
-     * Populated if the prediction was Generative.
-     * 
- * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; - * - */ - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder - getGenerativeSourceOrBuilder(); + /** + * + * + *
+         * Optional. The key of the search context, e.g. "application name".
+         * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.SourceCase - getSourceCase(); - } + /** + * + * + *
+         * Optional. The key of the search context, e.g. "application name".
+         * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
-   * Represents an answer from Knowledge. Currently supports FAQ and Generative
-   * answers.
-   * 
- * - * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer} - */ - public static final class KnowledgeAnswer extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) - KnowledgeAnswerOrBuilder { - private static final long serialVersionUID = 0L; + /** + * + * + *
+         * Optional. The key of the search context, e.g. "application name".
+         * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "KnowledgeAnswer"); - } + /** + * + * + *
+         * Optional. The key of the search context, e.g. "application name".
+         * 
+ * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - // Use KnowledgeAnswer.newBuilder() to construct. - private KnowledgeAnswer(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + private java.lang.Object value_ = ""; - private KnowledgeAnswer() { - answerText_ = ""; - } + /** + * + * + *
+         * Optional. The value of the search context, e.g. "DesignApp".
+         * 
+ * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; - } + /** + * + * + *
+         * Optional. The value of the search context, e.g. "DesignApp".
+         * 
+ * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.class, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.Builder - .class); - } + /** + * + * + *
+         * Optional. The value of the search context, e.g. "DesignApp".
+         * 
+ * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - public interface FaqSourceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+         * Optional. The value of the search context, e.g. "DesignApp".
+         * 
+ * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } - /** - * - * - *
-       * The corresponding FAQ question.
-       * 
- * - * string question = 2; - * - * @return The question. - */ - java.lang.String getQuestion(); + /** + * + * + *
+         * Optional. The value of the search context, e.g. "DesignApp".
+         * 
+ * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - /** - * - * - *
-       * The corresponding FAQ question.
-       * 
- * - * string question = 2; - * - * @return The bytes for question. - */ - com.google.protobuf.ByteString getQuestionBytes(); - } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + } - /** - * - * - *
-     * Details about source of FAQ answer.
-     * 
- * - * Protobuf type {@code - * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource} - */ - public static final class FaqSource extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - FaqSourceOrBuilder { - private static final long serialVersionUID = 0L; + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + DEFAULT_INSTANCE; static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "FaqSource"); + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext(); } - // Use FaqSource.newBuilder() to construct. - private FaqSource(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + getDefaultInstance() { + return DEFAULT_INSTANCE; } - private FaqSource() { - question_ = ""; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .class, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .Builder.class); + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - public static final int QUESTION_FIELD_NUMBER = 2; + public static final int QUERY_TEXT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object question_ = ""; + @SuppressWarnings("serial") + private volatile java.lang.Object queryText_ = ""; - /** - * - * - *
-       * The corresponding FAQ question.
-       * 
- * - * string question = 2; - * - * @return The question. - */ - @java.lang.Override - public java.lang.String getQuestion() { - java.lang.Object ref = question_; - 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(); - question_ = s; - return s; - } + /** + * + * + *
+     * Suggested query text.
+     * 
+ * + * string query_text = 1; + * + * @return The queryText. + */ + @java.lang.Override + public java.lang.String getQueryText() { + java.lang.Object ref = queryText_; + 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(); + queryText_ = s; + return s; } + } - /** - * - * - *
-       * The corresponding FAQ question.
-       * 
- * - * string question = 2; - * - * @return The bytes for question. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQuestionBytes() { - java.lang.Object ref = question_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - question_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + /** + * + * + *
+     * Suggested query text.
+     * 
+ * + * string query_text = 1; + * + * @return The bytes for queryText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryTextBytes() { + java.lang.Object ref = queryText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - private byte memoizedIsInitialized = -1; + public static final int SEARCH_CONTEXTS_FIELD_NUMBER = 4; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext> + searchContexts_; - memoizedIsInitialized = 1; - return true; - } + /** + * + * + *
+     * Optional. The search contexts for the query.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext> + getSearchContextsList() { + return searchContexts_; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, question_); - } - getUnknownFields().writeTo(output); - } + /** + * + * + *
+     * Optional. The search contexts for the query.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder> + getSearchContextsOrBuilderList() { + return searchContexts_; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * + * + *
+     * Optional. The search contexts for the query.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSearchContextsCount() { + return searchContexts_.size(); + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, question_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * + * + *
+     * Optional. The search contexts for the query.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + getSearchContexts(int index) { + return searchContexts_.get(index); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource)) { - return super.equals(obj); - } - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource other = - (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - obj; + /** + * + * + *
+     * Optional. The search contexts for the query.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder + getSearchContextsOrBuilder(int index) { + return searchContexts_.get(index); + } - if (!getQuestion().equals(other.getQuestion())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUESTION_FIELD_NUMBER; - hash = (53 * hash) + getQuestion().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + memoizedIsInitialized = 1; + return true; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, queryText_); } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + for (int i = 0; i < searchContexts_.size(); i++) { + output.writeMessage(4, searchContexts_.get(i)); } + getUnknownFields().writeTo(output); + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, queryText_); } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + for (int i = 0; i < searchContexts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, searchContexts_.get(i)); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + if (!(obj + instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery)) { + return super.equals(obj); } + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery other = + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) obj; - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + if (!getQueryText().equals(other.getQueryText())) return false; + if (!getSearchContextsList().equals(other.getSearchContextsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getQueryText().hashCode(); + if (getSearchContextsCount() > 0) { + hash = (37 * hash) + SEARCH_CONTEXTS_FIELD_NUMBER; + hash = (53 * hash) + getSearchContextsList().hashCode(); } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Represents a suggested query.
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_descriptor; } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.Builder + .class); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + // Construct using + // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); } - public static Builder newBuilder( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + queryText_ = ""; + if (searchContextsBuilder_ == null) { + searchContexts_ = java.util.Collections.emptyList(); + } else { + searchContexts_ = null; + searchContextsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; } @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_descriptor; } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance(); } - /** - * - * - *
-       * Details about source of FAQ answer.
-       * 
- * - * Protobuf type {@code - * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource.class, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource.Builder.class); + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery result = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } - // Construct using - // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery result) { + if (searchContextsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + searchContexts_ = java.util.Collections.unmodifiableList(searchContexts_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.searchContexts_ = searchContexts_; + } else { + result.searchContexts_ = searchContextsBuilder_.build(); } + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - question_ = ""; - return this; + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.queryText_ = queryText_; } + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) other); + } else { + super.mergeFrom(other); + return this; } + } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance(); + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance()) return this; + if (!other.getQueryText().isEmpty()) { + queryText_ = other.queryText_; + bitField0_ |= 0x00000001; + onChanged(); } - - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - build() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + if (searchContextsBuilder_ == null) { + if (!other.searchContexts_.isEmpty()) { + if (searchContexts_.isEmpty()) { + searchContexts_ = other.searchContexts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSearchContextsIsMutable(); + searchContexts_.addAll(other.searchContexts_); + } + onChanged(); } - return result; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - buildPartial() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - result = - new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource(this); - if (bitField0_ != 0) { - buildPartial0(result); + } else { + if (!other.searchContexts_.isEmpty()) { + if (searchContextsBuilder_.isEmpty()) { + searchContextsBuilder_.dispose(); + searchContextsBuilder_ = null; + searchContexts_ = other.searchContexts_; + bitField0_ = (bitField0_ & ~0x00000002); + searchContextsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSearchContextsFieldBuilder() + : null; + } else { + searchContextsBuilder_.addAllMessages(other.searchContexts_); + } } - onBuilt(); - return result; } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - private void buildPartial0( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.question_ = question_; - } - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) { - return mergeFrom( - (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource) - other); - } else { - super.mergeFrom(other); - return this; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } - - public Builder mergeFrom( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - other) { - if (other - == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance()) return this; - if (!other.getQuestion().isEmpty()) { - question_ = other.question_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + queryText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 34: + { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .SuggestedQuery.SearchContext.parser(), + extensionRegistry); + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + searchContexts_.add(m); + } else { + searchContextsBuilder_.addMessage(m); + } + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { onChanged(); - return this; + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object queryText_ = ""; + + /** + * + * + *
+       * Suggested query text.
+       * 
+ * + * string query_text = 1; + * + * @return The queryText. + */ + public java.lang.String getQueryText() { + java.lang.Object ref = queryText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryText_ = s; + return s; + } else { + return (java.lang.String) ref; } + } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+       * Suggested query text.
+       * 
+ * + * string query_text = 1; + * + * @return The bytes for queryText. + */ + public com.google.protobuf.ByteString getQueryTextBytes() { + java.lang.Object ref = queryText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - question_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + /** + * + * + *
+       * Suggested query text.
+       * 
+ * + * string query_text = 1; + * + * @param value The queryText to set. + * @return This builder for chaining. + */ + public Builder setQueryText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + queryText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - private int bitField0_; + /** + * + * + *
+       * Suggested query text.
+       * 
+ * + * string query_text = 1; + * + * @return This builder for chaining. + */ + public Builder clearQueryText() { + queryText_ = getDefaultInstance().getQueryText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - private java.lang.Object question_ = ""; + /** + * + * + *
+       * Suggested query text.
+       * 
+ * + * string query_text = 1; + * + * @param value The bytes for queryText to set. + * @return This builder for chaining. + */ + public Builder setQueryTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
-         * The corresponding FAQ question.
-         * 
- * - * string question = 2; - * - * @return The question. - */ - public java.lang.String getQuestion() { - java.lang.Object ref = question_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - question_ = s; - return s; - } else { - return (java.lang.String) ref; - } + private java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext> + searchContexts_ = java.util.Collections.emptyList(); + + private void ensureSearchContextsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + searchContexts_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext>(searchContexts_); + bitField0_ |= 0x00000002; } + } - /** - * - * - *
-         * The corresponding FAQ question.
-         * 
- * - * string question = 2; - * - * @return The bytes for question. - */ - public com.google.protobuf.ByteString getQuestionBytes() { - java.lang.Object ref = question_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - question_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder> + searchContextsBuilder_; + + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext> + getSearchContextsList() { + if (searchContextsBuilder_ == null) { + return java.util.Collections.unmodifiableList(searchContexts_); + } else { + return searchContextsBuilder_.getMessageList(); } + } - /** - * - * - *
-         * The corresponding FAQ question.
-         * 
- * - * string question = 2; - * - * @param value The question to set. - * @return This builder for chaining. - */ - public Builder setQuestion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - question_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSearchContextsCount() { + if (searchContextsBuilder_ == null) { + return searchContexts_.size(); + } else { + return searchContextsBuilder_.getCount(); } + } - /** - * - * - *
-         * The corresponding FAQ question.
-         * 
- * - * string question = 2; - * - * @return This builder for chaining. - */ - public Builder clearQuestion() { - question_ = getDefaultInstance().getQuestion(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + getSearchContexts(int index) { + if (searchContextsBuilder_ == null) { + return searchContexts_.get(index); + } else { + return searchContextsBuilder_.getMessage(index); } + } - /** - * - * - *
-         * The corresponding FAQ question.
-         * 
- * - * string question = 2; - * - * @param value The bytes for question to set. - * @return This builder for chaining. - */ - public Builder setQuestionBytes(com.google.protobuf.ByteString value) { + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchContexts( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + value) { + if (searchContextsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - question_ = value; - bitField0_ |= 0x00000001; + ensureSearchContextsIsMutable(); + searchContexts_.set(index, value); onChanged(); - return this; + } else { + searchContextsBuilder_.setMessage(index, value); } - - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + return this; } - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource(); - } + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchContexts( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder + builderForValue) { + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + searchContexts_.set(index, builderForValue.build()); + onChanged(); + } else { + searchContextsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - getDefaultInstance() { - return DEFAULT_INSTANCE; + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSearchContexts( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + value) { + if (searchContextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchContextsIsMutable(); + searchContexts_.add(value); + onChanged(); + } else { + searchContextsBuilder_.addMessage(value); + } + return this; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaqSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSearchContexts( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + value) { + if (searchContextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchContextsIsMutable(); + searchContexts_.add(index, value); + onChanged(); + } else { + searchContextsBuilder_.addMessage(index, value); + } + return this; + } - public static com.google.protobuf.Parser parser() { - return PARSER; + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSearchContexts( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder + builderForValue) { + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + searchContexts_.add(builderForValue.build()); + onChanged(); + } else { + searchContextsBuilder_.addMessage(builderForValue.build()); + } + return this; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSearchContexts( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder + builderForValue) { + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + searchContexts_.add(index, builderForValue.build()); + onChanged(); + } else { + searchContextsBuilder_.addMessage(index, builderForValue.build()); + } + return this; } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSearchContexts( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext> + values) { + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, searchContexts_); + onChanged(); + } else { + searchContextsBuilder_.addAllMessages(values); + } + return this; } - } - public interface GenerativeSourceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) - com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSearchContexts() { + if (searchContextsBuilder_ == null) { + searchContexts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + searchContextsBuilder_.clear(); + } + return this; + } /** * * *
-       * All snippets used for this Generative Prediction, with their source URI
-       * and data.
+       * Optional. The search contexts for the query.
        * 
* * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - java.util.List< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet> - getSnippetsList(); + public Builder removeSearchContexts(int index) { + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + searchContexts_.remove(index); + onChanged(); + } else { + searchContextsBuilder_.remove(index); + } + return this; + } /** * * *
-       * All snippets used for this Generative Prediction, with their source URI
-       * and data.
+       * Optional. The search contexts for the query.
        * 
* * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - getSnippets(int index); + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder + getSearchContextsBuilder(int index) { + return internalGetSearchContextsFieldBuilder().getBuilder(index); + } /** * * *
-       * All snippets used for this Generative Prediction, with their source URI
-       * and data.
+       * Optional. The search contexts for the query.
        * 
* * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - int getSnippetsCount(); + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder + getSearchContextsOrBuilder(int index) { + if (searchContextsBuilder_ == null) { + return searchContexts_.get(index); + } else { + return searchContextsBuilder_.getMessageOrBuilder(index); + } + } /** * * *
-       * All snippets used for this Generative Prediction, with their source URI
-       * and data.
+       * Optional. The search contexts for the query.
        * 
* * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - java.util.List< + public java.util.List< ? extends - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder> - getSnippetsOrBuilderList(); + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder> + getSearchContextsOrBuilderList() { + if (searchContextsBuilder_ != null) { + return searchContextsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(searchContexts_); + } + } /** * * *
-       * All snippets used for this Generative Prediction, with their source URI
-       * and data.
+       * Optional. The search contexts for the query.
        * 
* * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .SnippetOrBuilder - getSnippetsOrBuilder(int index); - } - - /** - * - * - *
-     * Details about source of Generative answer.
-     * 
- * - * Protobuf type {@code - * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource} - */ - public static final class GenerativeSource extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) - GenerativeSourceOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "GenerativeSource"); + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder + addSearchContextsBuilder() { + return internalGetSearchContextsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext.getDefaultInstance()); } - // Use GenerativeSource.newBuilder() to construct. - private GenerativeSource(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder + addSearchContextsBuilder(int index) { + return internalGetSearchContextsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext.getDefaultInstance()); } - private GenerativeSource() { - snippets_ = java.util.Collections.emptyList(); + /** + * + * + *
+       * Optional. The search contexts for the query.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder> + getSearchContextsBuilderList() { + return internalGetSearchContextsFieldBuilder().getBuilderList(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder> + internalGetSearchContextsFieldBuilder() { + if (searchContextsBuilder_ == null) { + searchContextsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder>( + searchContexts_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + searchContexts_ = null; + } + return searchContextsBuilder_; } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.class, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Builder.class); - } - - public interface SnippetOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) + } - /** - * - * - *
-         * URI the data is sourced from.
-         * 
- * - * string uri = 2; - * - * @return The uri. - */ - java.lang.String getUri(); + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + DEFAULT_INSTANCE; - /** - * - * - *
-         * URI the data is sourced from.
-         * 
- * - * string uri = 2; - * - * @return The bytes for uri. - */ - com.google.protobuf.ByteString getUriBytes(); + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery(); + } - /** - * - * - *
-         * Text taken from that URI.
-         * 
- * - * string text = 3; - * - * @return The text. - */ - java.lang.String getText(); + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** - * - * - *
-         * Text taken from that URI.
-         * 
- * - * string text = 3; - * - * @return The bytes for text. - */ - com.google.protobuf.ByteString getTextBytes(); + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuggestedQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - /** - * - * - *
-         * Title of the document.
-         * 
- * - * string title = 4; - * - * @return The title. - */ - java.lang.String getTitle(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * - * - *
-         * Title of the document.
-         * 
- * - * string title = 4; - * - * @return The bytes for title. - */ - com.google.protobuf.ByteString getTitleBytes(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * - * - *
-         * Metadata of the document.
-         * 
- * - * .google.protobuf.Struct metadata = 5; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - /** - * - * - *
-         * Metadata of the document.
-         * 
- * - * .google.protobuf.Struct metadata = 5; - * - * @return The metadata. - */ - com.google.protobuf.Struct getMetadata(); + public interface AdditionalSuggestedQueryResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + com.google.protobuf.MessageOrBuilder { - /** - * - * - *
-         * Metadata of the document.
-         * 
- * - * .google.protobuf.Struct metadata = 5; - */ - com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); - } + /** + * + * + *
+     * Output only. The suggested query based on the context.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the suggestedQuery field is set. + */ + boolean hasSuggestedQuery(); - /** - * - * - *
-       * Snippet Source for a Generative Prediction.
-       * 
- * - * Protobuf type {@code - * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet} - */ - public static final class Snippet extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) - SnippetOrBuilder { - private static final long serialVersionUID = 0L; + /** + * + * + *
+     * Output only. The suggested query based on the context.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The suggestedQuery. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery getSuggestedQuery(); - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "Snippet"); - } + /** + * + * + *
+     * Output only. The suggested query based on the context.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQueryOrBuilder + getSuggestedQueryOrBuilder(); - // Use Snippet.newBuilder() to construct. - private Snippet(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + /** + * + * + *
+     * Output only. The name of the answer record.
+     * Format: `projects/<Project ID>/locations/<Location
+     * ID>/answerRecords/<Answer Record ID>`
+     * 
+ * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The answerRecord. + */ + java.lang.String getAnswerRecord(); - private Snippet() { - uri_ = ""; - text_ = ""; - title_ = ""; - } + /** + * + * + *
+     * Output only. The name of the answer record.
+     * Format: `projects/<Project ID>/locations/<Location
+     * ID>/answerRecords/<Answer Record ID>`
+     * 
+ * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for answerRecord. + */ + com.google.protobuf.ByteString getAnswerRecordBytes(); + } + + /** + * + * + *
+   * Represents a single suggested query result.
+   * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult} + */ + public static final class AdditionalSuggestedQueryResult + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + AdditionalSuggestedQueryResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AdditionalSuggestedQueryResult"); + } + + // Use AdditionalSuggestedQueryResult.newBuilder() to construct. + private AdditionalSuggestedQueryResult( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AdditionalSuggestedQueryResult() { + answerRecord_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.Builder.class); + } + + private int bitField0_; + public static final int SUGGESTED_QUERY_FIELD_NUMBER = 1; + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + suggestedQuery_; + + /** + * + * + *
+     * Output only. The suggested query based on the context.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the suggestedQuery field is set. + */ + @java.lang.Override + public boolean hasSuggestedQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Output only. The suggested query based on the context.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The suggestedQuery. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + getSuggestedQuery() { + return suggestedQuery_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance() + : suggestedQuery_; + } + + /** + * + * + *
+     * Output only. The suggested query based on the context.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQueryOrBuilder + getSuggestedQueryOrBuilder() { + return suggestedQuery_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance() + : suggestedQuery_; + } + + public static final int ANSWER_RECORD_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object answerRecord_ = ""; + + /** + * + * + *
+     * Output only. The name of the answer record.
+     * Format: `projects/<Project ID>/locations/<Location
+     * ID>/answerRecords/<Answer Record ID>`
+     * 
+ * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The answerRecord. + */ + @java.lang.Override + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + 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(); + answerRecord_ = s; + return s; + } + } + + /** + * + * + *
+     * Output only. The name of the answer record.
+     * Format: `projects/<Project ID>/locations/<Location
+     * ID>/answerRecords/<Answer Record ID>`
+     * 
+ * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for answerRecord. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSuggestedQuery()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, answerRecord_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSuggestedQuery()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, answerRecord_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + other = + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult) + obj; + + if (hasSuggestedQuery() != other.hasSuggestedQuery()) return false; + if (hasSuggestedQuery()) { + if (!getSuggestedQuery().equals(other.getSuggestedQuery())) return false; + } + if (!getAnswerRecord().equals(other.getAnswerRecord())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSuggestedQuery()) { + hash = (37 * hash) + SUGGESTED_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getSuggestedQuery().hashCode(); + } + hash = (37 * hash) + ANSWER_RECORD_FIELD_NUMBER; + hash = (53 * hash) + getAnswerRecord().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Represents a single suggested query result.
+     * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSuggestedQueryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + suggestedQuery_ = null; + if (suggestedQueryBuilder_ != null) { + suggestedQueryBuilder_.dispose(); + suggestedQueryBuilder_ = null; + } + answerRecord_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + result = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.suggestedQuery_ = + suggestedQueryBuilder_ == null ? suggestedQuery_ : suggestedQueryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.answerRecord_ = answerRecord_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.getDefaultInstance()) return this; + if (other.hasSuggestedQuery()) { + mergeSuggestedQuery(other.getSuggestedQuery()); + } + if (!other.getAnswerRecord().isEmpty()) { + answerRecord_ = other.answerRecord_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetSuggestedQueryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 42: + { + answerRecord_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + suggestedQuery_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQueryOrBuilder> + suggestedQueryBuilder_; + + /** + * + * + *
+       * Output only. The suggested query based on the context.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the suggestedQuery field is set. + */ + public boolean hasSuggestedQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Output only. The suggested query based on the context.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The suggestedQuery. + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + getSuggestedQuery() { + if (suggestedQueryBuilder_ == null) { + return suggestedQuery_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance() + : suggestedQuery_; + } else { + return suggestedQueryBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Output only. The suggested query based on the context.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSuggestedQuery( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery value) { + if (suggestedQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + suggestedQuery_ = value; + } else { + suggestedQueryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The suggested query based on the context.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSuggestedQuery( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.Builder + builderForValue) { + if (suggestedQueryBuilder_ == null) { + suggestedQuery_ = builderForValue.build(); + } else { + suggestedQueryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The suggested query based on the context.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSuggestedQuery( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery value) { + if (suggestedQueryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && suggestedQuery_ != null + && suggestedQuery_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance()) { + getSuggestedQueryBuilder().mergeFrom(value); + } else { + suggestedQuery_ = value; + } + } else { + suggestedQueryBuilder_.mergeFrom(value); + } + if (suggestedQuery_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Output only. The suggested query based on the context.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSuggestedQuery() { + bitField0_ = (bitField0_ & ~0x00000001); + suggestedQuery_ = null; + if (suggestedQueryBuilder_ != null) { + suggestedQueryBuilder_.dispose(); + suggestedQueryBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The suggested query based on the context.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.Builder + getSuggestedQueryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetSuggestedQueryFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Output only. The suggested query based on the context.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQueryOrBuilder + getSuggestedQueryOrBuilder() { + if (suggestedQueryBuilder_ != null) { + return suggestedQueryBuilder_.getMessageOrBuilder(); + } else { + return suggestedQuery_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance() + : suggestedQuery_; + } + } + + /** + * + * + *
+       * Output only. The suggested query based on the context.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQueryOrBuilder> + internalGetSuggestedQueryFieldBuilder() { + if (suggestedQueryBuilder_ == null) { + suggestedQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .SuggestedQueryOrBuilder>( + getSuggestedQuery(), getParentForChildren(), isClean()); + suggestedQuery_ = null; + } + return suggestedQueryBuilder_; + } + + private java.lang.Object answerRecord_ = ""; + + /** + * + * + *
+       * Output only. The name of the answer record.
+       * Format: `projects/<Project ID>/locations/<Location
+       * ID>/answerRecords/<Answer Record ID>`
+       * 
+ * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The answerRecord. + */ + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerRecord_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Output only. The name of the answer record.
+       * Format: `projects/<Project ID>/locations/<Location
+       * ID>/answerRecords/<Answer Record ID>`
+       * 
+ * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for answerRecord. + */ + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Output only. The name of the answer record.
+       * Format: `projects/<Project ID>/locations/<Location
+       * ID>/answerRecords/<Answer Record ID>`
+       * 
+ * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecord(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + answerRecord_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The name of the answer record.
+       * Format: `projects/<Project ID>/locations/<Location
+       * ID>/answerRecords/<Answer Record ID>`
+       * 
+ * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAnswerRecord() { + answerRecord_ = getDefaultInstance().getAnswerRecord(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The name of the answer record.
+       * Format: `projects/<Project ID>/locations/<Location
+       * ID>/answerRecords/<Answer Record ID>`
+       * 
+ * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerRecord_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult(); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdditionalSuggestedQueryResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface KnowledgeAnswerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The piece of text from the `source` that answers this suggested query.
+     * 
+ * + * string answer_text = 1; + * + * @return The answerText. + */ + java.lang.String getAnswerText(); + + /** + * + * + *
+     * The piece of text from the `source` that answers this suggested query.
+     * 
+ * + * string answer_text = 1; + * + * @return The bytes for answerText. + */ + com.google.protobuf.ByteString getAnswerTextBytes(); + + /** + * + * + *
+     * Populated if the prediction came from FAQ.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + * + * @return Whether the faqSource field is set. + */ + boolean hasFaqSource(); + + /** + * + * + *
+     * Populated if the prediction came from FAQ.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + * + * @return The faqSource. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + getFaqSource(); + + /** + * + * + *
+     * Populated if the prediction came from FAQ.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceOrBuilder + getFaqSourceOrBuilder(); + + /** + * + * + *
+     * Populated if the prediction was Generative.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + * + * @return Whether the generativeSource field is set. + */ + boolean hasGenerativeSource(); + + /** + * + * + *
+     * Populated if the prediction was Generative.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + * + * @return The generativeSource. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getGenerativeSource(); + + /** + * + * + *
+     * Populated if the prediction was Generative.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getGenerativeSourceOrBuilder(); + + /** + * + * + *
+     * Populated if the prediction was from Playbook.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + * + * @return Whether the playbookSource field is set. + */ + boolean hasPlaybookSource(); + + /** + * + * + *
+     * Populated if the prediction was from Playbook.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + * + * @return The playbookSource. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getPlaybookSource(); + + /** + * + * + *
+     * Populated if the prediction was from Playbook.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getPlaybookSourceOrBuilder(); + + /** + * + * + *
+     * Populated if the prediction was from an event.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + * + * @return Whether the eventSource field is set. + */ + boolean hasEventSource(); + + /** + * + * + *
+     * Populated if the prediction was from an event.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + * + * @return The eventSource. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + getEventSource(); + + /** + * + * + *
+     * Populated if the prediction was from an event.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSourceOrBuilder + getEventSourceOrBuilder(); + + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.SourceCase + getSourceCase(); + } + + /** + * + * + *
+   * Represents an answer from Knowledge. Currently supports FAQ and Generative
+   * answers.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer} + */ + public static final class KnowledgeAnswer extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) + KnowledgeAnswerOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "KnowledgeAnswer"); + } + + // Use KnowledgeAnswer.newBuilder() to construct. + private KnowledgeAnswer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private KnowledgeAnswer() { + answerText_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.Builder + .class); + } + + public interface FaqSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * The corresponding FAQ question.
+       * 
+ * + * string question = 2; + * + * @return The question. + */ + java.lang.String getQuestion(); + + /** + * + * + *
+       * The corresponding FAQ question.
+       * 
+ * + * string question = 2; + * + * @return The bytes for question. + */ + com.google.protobuf.ByteString getQuestionBytes(); + } + + /** + * + * + *
+     * Details about source of FAQ answer.
+     * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource} + */ + public static final class FaqSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + FaqSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FaqSource"); + } + + // Use FaqSource.newBuilder() to construct. + private FaqSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FaqSource() { + question_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .Builder.class); + } + + public static final int QUESTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object question_ = ""; + + /** + * + * + *
+       * The corresponding FAQ question.
+       * 
+ * + * string question = 2; + * + * @return The question. + */ + @java.lang.Override + public java.lang.String getQuestion() { + java.lang.Object ref = question_; + 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(); + question_ = s; + return s; + } + } + + /** + * + * + *
+       * The corresponding FAQ question.
+       * 
+ * + * string question = 2; + * + * @return The bytes for question. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQuestionBytes() { + java.lang.Object ref = question_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + question_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, question_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, question_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource other = + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + obj; + + if (!getQuestion().equals(other.getQuestion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUESTION_FIELD_NUMBER; + hash = (53 * hash) + getQuestion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+       * Details about source of FAQ answer.
+       * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + question_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + result = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.question_ = question_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance()) return this; + if (!other.getQuestion().isEmpty()) { + question_ = other.question_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + question_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object question_ = ""; + + /** + * + * + *
+         * The corresponding FAQ question.
+         * 
+ * + * string question = 2; + * + * @return The question. + */ + public java.lang.String getQuestion() { + java.lang.Object ref = question_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + question_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+         * The corresponding FAQ question.
+         * 
+ * + * string question = 2; + * + * @return The bytes for question. + */ + public com.google.protobuf.ByteString getQuestionBytes() { + java.lang.Object ref = question_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + question_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+         * The corresponding FAQ question.
+         * 
+ * + * string question = 2; + * + * @param value The question to set. + * @return This builder for chaining. + */ + public Builder setQuestion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + question_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+         * The corresponding FAQ question.
+         * 
+ * + * string question = 2; + * + * @return This builder for chaining. + */ + public Builder clearQuestion() { + question_ = getDefaultInstance().getQuestion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+         * The corresponding FAQ question.
+         * 
+ * + * string question = 2; + * + * @param value The bytes for question to set. + * @return This builder for chaining. + */ + public Builder setQuestionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + question_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource(); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaqSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GenerativeSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+       * All snippets used for this Generative Prediction, with their source URI
+       * and data.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet> + getSnippetsList(); + + /** + * + * + *
+       * All snippets used for this Generative Prediction, with their source URI
+       * and data.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + getSnippets(int index); + + /** + * + * + *
+       * All snippets used for this Generative Prediction, with their source URI
+       * and data.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + int getSnippetsCount(); + + /** + * + * + *
+       * All snippets used for this Generative Prediction, with their source URI
+       * and data.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder> + getSnippetsOrBuilderList(); + + /** + * + * + *
+       * All snippets used for this Generative Prediction, with their source URI
+       * and data.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .SnippetOrBuilder + getSnippetsOrBuilder(int index); + } + + /** + * + * + *
+     * Details about source of Generative answer.
+     * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource} + */ + public static final class GenerativeSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + GenerativeSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GenerativeSource"); + } + + // Use GenerativeSource.newBuilder() to construct. + private GenerativeSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerativeSource() { + snippets_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder.class); + } + + public interface SnippetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+         * URI the data is sourced from.
+         * 
+ * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
+         * URI the data is sourced from.
+         * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
+         * Text taken from that URI.
+         * 
+ * + * string text = 3; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
+         * Text taken from that URI.
+         * 
+ * + * string text = 3; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
+         * Title of the document.
+         * 
+ * + * string title = 4; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
+         * Title of the document.
+         * 
+ * + * string title = 4; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+         * Metadata of the document.
+         * 
+ * + * .google.protobuf.Struct metadata = 5; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + + /** + * + * + *
+         * Metadata of the document.
+         * 
+ * + * .google.protobuf.Struct metadata = 5; + * + * @return The metadata. + */ + com.google.protobuf.Struct getMetadata(); + + /** + * + * + *
+         * Metadata of the document.
+         * 
+ * + * .google.protobuf.Struct metadata = 5; + */ + com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); + } + + /** + * + * + *
+       * Snippet Source for a Generative Prediction.
+       * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet} + */ + public static final class Snippet extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) + SnippetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Snippet"); + } + + // Use Snippet.newBuilder() to construct. + private Snippet(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Snippet() { + uri_ = ""; + text_ = ""; + title_ = ""; + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2beta1.ParticipantProto .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.class, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder.class); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder.class); + } + + private int bitField0_; + public static final int URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
+         * URI the data is sourced from.
+         * 
+ * + * string uri = 2; + * + * @return The uri. + */ + @java.lang.Override + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } + } + + /** + * + * + *
+         * URI the data is sourced from.
+         * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TEXT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + + /** + * + * + *
+         * Text taken from that URI.
+         * 
+ * + * string text = 3; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } + } + + /** + * + * + *
+         * Text taken from that URI.
+         * 
+ * + * string text = 3; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TITLE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
+         * Title of the document.
+         * 
+ * + * string title = 4; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } + } + + /** + * + * + *
+         * Title of the document.
+         * 
+ * + * string title = 4; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 5; + private com.google.protobuf.Struct metadata_; + + /** + * + * + *
+         * Metadata of the document.
+         * 
+ * + * .google.protobuf.Struct metadata = 5; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+         * Metadata of the document.
+         * 
+ * + * .google.protobuf.Struct metadata = 5; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.protobuf.Struct getMetadata() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + + /** + * + * + *
+         * Metadata of the document.
+         * 
+ * + * .google.protobuf.Struct metadata = 5; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, text_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, title_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, text_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, title_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + other = + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet) + obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getText().equals(other.getText())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+         * Snippet Source for a Generative Prediction.
+         * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + text_ = ""; + title_ = ""; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + result = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.text_ = text_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.title_ = title_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getText().isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uri_ = ""; + + /** + * + * + *
+           * URI the data is sourced from.
+           * 
+ * + * string uri = 2; + * + * @return The uri. + */ + public java.lang.String getUri() { + java.lang.Object ref = uri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+           * URI the data is sourced from.
+           * 
+ * + * string uri = 2; + * + * @return The bytes for uri. + */ + public com.google.protobuf.ByteString getUriBytes() { + java.lang.Object ref = uri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+           * URI the data is sourced from.
+           * 
+ * + * string uri = 2; + * + * @param value The uri to set. + * @return This builder for chaining. + */ + public Builder setUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+           * URI the data is sourced from.
+           * 
+ * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+           * URI the data is sourced from.
+           * 
+ * + * string uri = 2; + * + * @param value The bytes for uri to set. + * @return This builder for chaining. + */ + public Builder setUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object text_ = ""; + + /** + * + * + *
+           * Text taken from that URI.
+           * 
+ * + * string text = 3; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = text_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + text_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+           * Text taken from that URI.
+           * 
+ * + * string text = 3; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = text_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + text_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+           * Text taken from that URI.
+           * 
+ * + * string text = 3; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + text_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+           * Text taken from that URI.
+           * 
+ * + * string text = 3; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+           * Text taken from that URI.
+           * 
+ * + * string text = 3; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + text_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
+           * Title of the document.
+           * 
+ * + * string title = 4; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+           * Title of the document.
+           * 
+ * + * string title = 4; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+           * Title of the document.
+           * 
+ * + * string title = 4; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+           * Title of the document.
+           * 
+ * + * string title = 4; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+           * Title of the document.
+           * 
+ * + * string title = 4; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Struct metadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + metadataBuilder_; - private int bitField0_; - public static final int URI_FIELD_NUMBER = 2; + /** + * + * + *
+           * Metadata of the document.
+           * 
+ * + * .google.protobuf.Struct metadata = 5; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000008) != 0); + } - @SuppressWarnings("serial") - private volatile java.lang.Object uri_ = ""; + /** + * + * + *
+           * Metadata of the document.
+           * 
+ * + * .google.protobuf.Struct metadata = 5; + * + * @return The metadata. + */ + public com.google.protobuf.Struct getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } - /** - * - * - *
-         * URI the data is sourced from.
-         * 
- * - * string uri = 2; - * - * @return The uri. - */ - @java.lang.Override - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; + /** + * + * + *
+           * Metadata of the document.
+           * 
+ * + * .google.protobuf.Struct metadata = 5; + */ + public Builder setMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; } - } - /** - * - * - *
-         * URI the data is sourced from.
-         * 
- * - * string uri = 2; - * - * @return The bytes for uri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * + * + *
+           * Metadata of the document.
+           * 
+ * + * .google.protobuf.Struct metadata = 5; + */ + public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; } - } - public static final int TEXT_FIELD_NUMBER = 3; + /** + * + * + *
+           * Metadata of the document.
+           * 
+ * + * .google.protobuf.Struct metadata = 5; + */ + public Builder mergeMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } - @SuppressWarnings("serial") - private volatile java.lang.Object text_ = ""; + /** + * + * + *
+           * Metadata of the document.
+           * 
+ * + * .google.protobuf.Struct metadata = 5; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000008); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } - /** - * - * - *
-         * Text taken from that URI.
-         * 
- * - * string text = 3; - * - * @return The text. - */ - @java.lang.Override - public java.lang.String getText() { - java.lang.Object ref = text_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - text_ = s; - return s; + /** + * + * + *
+           * Metadata of the document.
+           * 
+ * + * .google.protobuf.Struct metadata = 5; + */ + public com.google.protobuf.Struct.Builder getMetadataBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetMetadataFieldBuilder().getBuilder(); } - } - /** - * - * - *
-         * Text taken from that URI.
-         * 
- * - * string text = 3; - * - * @return The bytes for text. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + /** + * + * + *
+           * Metadata of the document.
+           * 
+ * + * .google.protobuf.Struct metadata = 5; + */ + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : metadata_; + } + } + + /** + * + * + *
+           * Metadata of the document.
+           * 
+ * + * .google.protobuf.Struct metadata = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; } - } - public static final int TITLE_FIELD_NUMBER = 4; + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) + } - @SuppressWarnings("serial") - private volatile java.lang.Object title_ = ""; + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .KnowledgeAnswer.GenerativeSource.Snippet + DEFAULT_INSTANCE; - /** - * - * - *
-         * Title of the document.
-         * 
- * - * string title = 4; - * - * @return The title. - */ - @java.lang.Override - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet(); } - /** - * - * - *
-         * Title of the document.
-         * 
- * - * string title = 4; - * - * @return The bytes for title. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + getDefaultInstance() { + return DEFAULT_INSTANCE; } - public static final int METADATA_FIELD_NUMBER = 5; - private com.google.protobuf.Struct metadata_; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Snippet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - /** - * - * - *
-         * Metadata of the document.
-         * 
- * - * .google.protobuf.Struct metadata = 5; - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) != 0); + public static com.google.protobuf.Parser parser() { + return PARSER; } - /** - * - * - *
-         * Metadata of the document.
-         * 
- * - * .google.protobuf.Struct metadata = 5; - * - * @return The metadata. - */ @java.lang.Override - public com.google.protobuf.Struct getMetadata() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - /** - * - * - *
-         * Metadata of the document.
-         * 
- * - * .google.protobuf.Struct metadata = 5; - */ @java.lang.Override - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - private byte memoizedIsInitialized = -1; + public static final int SNIPPETS_FIELD_NUMBER = 1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet> + snippets_; - memoizedIsInitialized = 1; - return true; - } + /** + * + * + *
+       * All snippets used for this Generative Prediction, with their source URI
+       * and data.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet> + getSnippetsList() { + return snippets_; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, text_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, title_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getMetadata()); - } - getUnknownFields().writeTo(output); - } + /** + * + * + *
+       * All snippets used for this Generative Prediction, with their source URI
+       * and data.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder> + getSnippetsOrBuilderList() { + return snippets_; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * + * + *
+       * All snippets used for this Generative Prediction, with their source URI
+       * and data.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + @java.lang.Override + public int getSnippetsCount() { + return snippets_.size(); + } + + /** + * + * + *
+       * All snippets used for this Generative Prediction, with their source URI
+       * and data.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + getSnippets(int index) { + return snippets_.get(index); + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, text_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, title_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMetadata()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * + * + *
+       * All snippets used for this Generative Prediction, with their source URI
+       * and data.
+       * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder + getSnippetsOrBuilder(int index) { + return snippets_.get(index); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet)) { - return super.equals(obj); - } - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - other = - (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet) - obj; + private byte memoizedIsInitialized = -1; - if (!getUri().equals(other.getUri())) return false; - if (!getText().equals(other.getText())) return false; - if (!getTitle().equals(other.getTitle())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - hash = (37 * hash) + TEXT_FIELD_NUMBER; - hash = (53 * hash) + getText().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + memoizedIsInitialized = 1; + return true; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < snippets_.size(); i++) { + output.writeMessage(1, snippets_.get(i)); } + getUnknownFields().writeTo(output); + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + size = 0; + for (int i = 0; i < snippets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, snippets_.get(i)); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + if (!(obj + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource)) { + return super.equals(obj); } + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + other = + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + obj; - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + if (!getSnippetsList().equals(other.getSnippetsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSnippetsCount() > 0) { + hash = (37 * hash) + SNIPPETS_FIELD_NUMBER; + hash = (53 * hash) + getSnippetsList().hashCode(); } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static Builder newBuilder( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - /** - * - * - *
-         * Snippet Source for a Generative Prediction.
-         * 
- * - * Protobuf type {@code - * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.class, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder.class); - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - // Construct using - // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetMetadataFieldBuilder(); - } - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - uri_ = ""; - text_ = ""; - title_ = ""; - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - return this; - } + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.getDefaultInstance(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - build() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + /** + * + * + *
+       * Details about source of Generative answer.
+       * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; + } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - buildPartial() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - result = - new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder.class); + } - private void buildPartial0( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.uri_ = uri_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.text_ = text_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.title_ = title_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } + // Construct using + // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.newBuilder() + private Builder() {} - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet) { - return mergeFrom( - (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet) - other); - } else { - super.mergeFrom(other); - return this; - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (snippetsBuilder_ == null) { + snippets_ = java.util.Collections.emptyList(); + } else { + snippets_ = null; + snippetsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - other) { - if (other - == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.getDefaultInstance()) return this; - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getText().isEmpty()) { - text_ = other.text_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - @java.lang.Override - public final boolean isInitialized() { - return true; + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + result = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + result) { + if (snippetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + snippets_ = java.util.Collections.unmodifiableList(snippets_); + bitField0_ = (bitField0_ & ~0x00000001); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: - { - text_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: - { - title_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - input.readMessage( - internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + result.snippets_ = snippets_; + } else { + result.snippets_ = snippetsBuilder_.build(); } + } - private int bitField0_; - - private java.lang.Object uri_ = ""; + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + result) { + int from_bitField0_ = bitField0_; + } - /** - * - * - *
-           * URI the data is sourced from.
-           * 
- * - * string uri = 2; - * - * @return The uri. - */ - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + other); + } else { + super.mergeFrom(other); + return this; } + } - /** - * - * - *
-           * URI the data is sourced from.
-           * 
- * - * string uri = 2; - * - * @return The bytes for uri. - */ - public com.google.protobuf.ByteString getUriBytes() { - java.lang.Object ref = uri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - uri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance()) return this; + if (snippetsBuilder_ == null) { + if (!other.snippets_.isEmpty()) { + if (snippets_.isEmpty()) { + snippets_ = other.snippets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSnippetsIsMutable(); + snippets_.addAll(other.snippets_); + } + onChanged(); } - } - - /** - * - * - *
-           * URI the data is sourced from.
-           * 
- * - * string uri = 2; - * - * @param value The uri to set. - * @return This builder for chaining. - */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + } else { + if (!other.snippets_.isEmpty()) { + if (snippetsBuilder_.isEmpty()) { + snippetsBuilder_.dispose(); + snippetsBuilder_ = null; + snippets_ = other.snippets_; + bitField0_ = (bitField0_ & ~0x00000001); + snippetsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSnippetsFieldBuilder() + : null; + } else { + snippetsBuilder_.addAllMessages(other.snippets_); + } } - uri_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
-           * URI the data is sourced from.
-           * 
- * - * string uri = 2; - * - * @return This builder for chaining. - */ - public Builder clearUri() { - uri_ = getDefaultInstance().getUri(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .KnowledgeAnswer.GenerativeSource.Snippet.parser(), + extensionRegistry); + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + snippets_.add(m); + } else { + snippetsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } - /** - * - * - *
-           * URI the data is sourced from.
-           * 
- * - * string uri = 2; - * - * @param value The bytes for uri to set. - * @return This builder for chaining. - */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - uri_ = value; + private int bitField0_; + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet> + snippets_ = java.util.Collections.emptyList(); + + private void ensureSnippetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + snippets_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet>(snippets_); bitField0_ |= 0x00000001; - onChanged(); - return this; } + } - private java.lang.Object text_ = ""; + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder> + snippetsBuilder_; - /** - * - * - *
-           * Text taken from that URI.
-           * 
- * - * string text = 3; - * - * @return The text. - */ - public java.lang.String getText() { - java.lang.Object ref = text_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - text_ = s; - return s; - } else { - return (java.lang.String) ref; - } + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet> + getSnippetsList() { + if (snippetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(snippets_); + } else { + return snippetsBuilder_.getMessageList(); } + } - /** - * - * - *
-           * Text taken from that URI.
-           * 
- * - * string text = 3; - * - * @return The bytes for text. - */ - public com.google.protobuf.ByteString getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public int getSnippetsCount() { + if (snippetsBuilder_ == null) { + return snippets_.size(); + } else { + return snippetsBuilder_.getCount(); } + } - /** - * - * - *
-           * Text taken from that URI.
-           * 
- * - * string text = 3; - * - * @param value The text to set. - * @return This builder for chaining. - */ - public Builder setText(java.lang.String value) { + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + getSnippets(int index) { + if (snippetsBuilder_ == null) { + return snippets_.get(index); + } else { + return snippetsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder setSnippets( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + value) { + if (snippetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - text_ = value; - bitField0_ |= 0x00000002; + ensureSnippetsIsMutable(); + snippets_.set(index, value); onChanged(); - return this; + } else { + snippetsBuilder_.setMessage(index, value); } + return this; + } - /** - * - * - *
-           * Text taken from that URI.
-           * 
- * - * string text = 3; - * - * @return This builder for chaining. - */ - public Builder clearText() { - text_ = getDefaultInstance().getText(); - bitField0_ = (bitField0_ & ~0x00000002); + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder setSnippets( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder + builderForValue) { + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + snippets_.set(index, builderForValue.build()); onChanged(); - return this; + } else { + snippetsBuilder_.setMessage(index, builderForValue.build()); } + return this; + } - /** - * - * - *
-           * Text taken from that URI.
-           * 
- * - * string text = 3; - * - * @param value The bytes for text to set. - * @return This builder for chaining. - */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder addSnippets( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + value) { + if (snippetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - text_ = value; - bitField0_ |= 0x00000002; + ensureSnippetsIsMutable(); + snippets_.add(value); onChanged(); - return this; + } else { + snippetsBuilder_.addMessage(value); } + return this; + } - private java.lang.Object title_ = ""; - - /** - * - * - *
-           * Title of the document.
-           * 
- * - * string title = 4; - * - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder addSnippets( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + value) { + if (snippetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureSnippetsIsMutable(); + snippets_.add(index, value); + onChanged(); + } else { + snippetsBuilder_.addMessage(index, value); } + return this; + } - /** - * - * - *
-           * Title of the document.
-           * 
- * - * string title = 4; - * - * @return The bytes for title. - */ - public com.google.protobuf.ByteString getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder addSnippets( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder + builderForValue) { + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + snippets_.add(builderForValue.build()); + onChanged(); + } else { + snippetsBuilder_.addMessage(builderForValue.build()); } + return this; + } - /** - * - * - *
-           * Title of the document.
-           * 
- * - * string title = 4; - * - * @param value The title to set. - * @return This builder for chaining. - */ - public Builder setTitle(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - title_ = value; - bitField0_ |= 0x00000004; + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder addSnippets( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder + builderForValue) { + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + snippets_.add(index, builderForValue.build()); onChanged(); - return this; + } else { + snippetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder addAllSnippets( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet> + values) { + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snippets_); + onChanged(); + } else { + snippetsBuilder_.addAllMessages(values); } + return this; + } - /** - * - * - *
-           * Title of the document.
-           * 
- * - * string title = 4; - * - * @return This builder for chaining. - */ - public Builder clearTitle() { - title_ = getDefaultInstance().getTitle(); - bitField0_ = (bitField0_ & ~0x00000004); + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder clearSnippets() { + if (snippetsBuilder_ == null) { + snippets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); - return this; + } else { + snippetsBuilder_.clear(); } + return this; + } - /** - * - * - *
-           * Title of the document.
-           * 
- * - * string title = 4; - * - * @param value The bytes for title to set. - * @return This builder for chaining. - */ - public Builder setTitleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - title_ = value; - bitField0_ |= 0x00000004; + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder removeSnippets(int index) { + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + snippets_.remove(index); onChanged(); - return this; + } else { + snippetsBuilder_.remove(index); } + return this; + } - private com.google.protobuf.Struct metadata_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - metadataBuilder_; + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder + getSnippetsBuilder(int index) { + return internalGetSnippetsFieldBuilder().getBuilder(index); + } - /** - * - * - *
-           * Metadata of the document.
-           * 
- * - * .google.protobuf.Struct metadata = 5; - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000008) != 0); + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder + getSnippetsOrBuilder(int index) { + if (snippetsBuilder_ == null) { + return snippets_.get(index); + } else { + return snippetsBuilder_.getMessageOrBuilder(index); } + } - /** - * - * - *
-           * Metadata of the document.
-           * 
- * - * .google.protobuf.Struct metadata = 5; - * - * @return The metadata. - */ - public com.google.protobuf.Struct getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : metadata_; - } else { - return metadataBuilder_.getMessage(); - } + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder> + getSnippetsOrBuilderList() { + if (snippetsBuilder_ != null) { + return snippetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(snippets_); } + } - /** - * - * - *
-           * Metadata of the document.
-           * 
- * - * .google.protobuf.Struct metadata = 5; - */ - public Builder setMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - } else { - metadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder + addSnippetsBuilder() { + return internalGetSnippetsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.getDefaultInstance()); + } + + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder + addSnippetsBuilder(int index) { + return internalGetSnippetsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.getDefaultInstance()); + } + + /** + * + * + *
+         * All snippets used for this Generative Prediction, with their source URI
+         * and data.
+         * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder> + getSnippetsBuilderList() { + return internalGetSnippetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder> + internalGetSnippetsFieldBuilder() { + if (snippetsBuilder_ == null) { + snippetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder>( + snippets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + snippets_ = null; } + return snippetsBuilder_; + } - /** - * - * - *
-           * Metadata of the document.
-           * 
- * - * .google.protobuf.Struct metadata = 5; - */ - public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + } - /** - * - * - *
-           * Metadata of the document.
-           * 
- * - * .google.protobuf.Struct metadata = 5; - */ - public Builder mergeMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && metadata_ != null - && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { - getMetadataBuilder().mergeFrom(value); - } else { - metadata_ = value; + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource(); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); } - } else { - metadataBuilder_.mergeFrom(value); - } - if (metadata_ != null) { - bitField0_ |= 0x00000008; - onChanged(); + return builder.buildPartial(); } - return this; - } + }; - /** - * - * - *
-           * Metadata of the document.
-           * 
- * - * .google.protobuf.Struct metadata = 5; - */ - public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000008); - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - onChanged(); - return this; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * - * - *
-           * Metadata of the document.
-           * 
- * - * .google.protobuf.Struct metadata = 5; - */ - public com.google.protobuf.Struct.Builder getMetadataBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetMetadataFieldBuilder().getBuilder(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * - * - *
-           * Metadata of the document.
-           * 
- * - * .google.protobuf.Struct metadata = 5; - */ - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : metadata_; - } - } + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - /** - * - * - *
-           * Metadata of the document.
-           * 
- * - * .google.protobuf.Struct metadata = 5; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - internalGetMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } + public interface EventSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) + com.google.protobuf.MessageOrBuilder { - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) - } + /** + * + * + *
+       * Name of the triggered event.
+       * 
+ * + * string event = 1; + * + * @return The event. + */ + java.lang.String getEvent(); - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) - private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer - .KnowledgeAnswer.GenerativeSource.Snippet - DEFAULT_INSTANCE; + /** + * + * + *
+       * Name of the triggered event.
+       * 
+ * + * string event = 1; + * + * @return The bytes for event. + */ + com.google.protobuf.ByteString getEventBytes(); - static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet(); - } + /** + * + * + *
+       * Sources used in event fulfillment.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; + * + * + * @return Whether the snippets field is set. + */ + boolean hasSnippets(); + + /** + * + * + *
+       * Sources used in event fulfillment.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; + * + * + * @return The snippets. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getSnippets(); + + /** + * + * + *
+       * Sources used in event fulfillment.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getSnippetsOrBuilder(); + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * + * + *
+     * Details about source of Event answer.
+     * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource} + */ + public static final class EventSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) + EventSourceOrBuilder { + private static final long serialVersionUID = 0L; - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Snippet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EventSource"); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // Use EventSource.newBuilder() to construct. + private EventSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private EventSource() { + event_ = ""; + } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor; } - public static final int SNIPPETS_FIELD_NUMBER = 1; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .EventSource.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .EventSource.Builder.class); + } + + private int bitField0_; + public static final int EVENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet> - snippets_; + private volatile java.lang.Object event_ = ""; /** * * *
-       * All snippets used for this Generative Prediction, with their source URI
-       * and data.
+       * Name of the triggered event.
        * 
* - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * string event = 1; + * + * @return The event. */ @java.lang.Override - public java.util.List< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet> - getSnippetsList() { - return snippets_; + public java.lang.String getEvent() { + java.lang.Object ref = event_; + 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(); + event_ = s; + return s; + } } /** * * *
-       * All snippets used for this Generative Prediction, with their source URI
-       * and data.
+       * Name of the triggered event.
        * 
* - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * string event = 1; + * + * @return The bytes for event. */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder> - getSnippetsOrBuilderList() { - return snippets_; + public com.google.protobuf.ByteString getEventBytes() { + java.lang.Object ref = event_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + event_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + public static final int SNIPPETS_FIELD_NUMBER = 2; + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + snippets_; + /** * * *
-       * All snippets used for this Generative Prediction, with their source URI
-       * and data.
+       * Sources used in event fulfillment.
        * 
* * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * + * + * @return Whether the snippets field is set. */ @java.lang.Override - public int getSnippetsCount() { - return snippets_.size(); + public boolean hasSnippets() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
-       * All snippets used for this Generative Prediction, with their source URI
-       * and data.
+       * Sources used in event fulfillment.
        * 
* * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * + * + * @return The snippets. */ @java.lang.Override public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - getSnippets(int index) { - return snippets_.get(index); + .GenerativeSource + getSnippets() { + return snippets_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance() + : snippets_; } /** * * *
-       * All snippets used for this Generative Prediction, with their source URI
-       * and data.
+       * Sources used in event fulfillment.
        * 
* * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ @java.lang.Override public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder - getSnippetsOrBuilder(int index) { - return snippets_.get(index); + .GenerativeSourceOrBuilder + getSnippetsOrBuilder() { + return snippets_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance() + : snippets_; } private byte memoizedIsInitialized = -1; @@ -3238,8 +7237,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < snippets_.size(); i++) { - output.writeMessage(1, snippets_.get(i)); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(event_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, event_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSnippets()); } getUnknownFields().writeTo(output); } @@ -3250,8 +7252,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (int i = 0; i < snippets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, snippets_.get(i)); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(event_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, event_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSnippets()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3266,16 +7271,20 @@ public boolean equals(final java.lang.Object obj) { if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource)) { + .EventSource)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource other = (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSource) obj; - if (!getSnippetsList().equals(other.getSnippetsList())) return false; + if (!getEvent().equals(other.getEvent())) return false; + if (hasSnippets() != other.hasSnippets()) return false; + if (hasSnippets()) { + if (!getSnippets().equals(other.getSnippets())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3287,9 +7296,11 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getSnippetsCount() > 0) { + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); + if (hasSnippets()) { hash = (37 * hash) + SNIPPETS_FIELD_NUMBER; - hash = (53 * hash) + getSnippetsList().hashCode(); + hash = (53 * hash) + getSnippets().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -3297,14 +7308,14 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3312,14 +7323,14 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3328,26 +7339,26 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3357,13 +7368,13 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3373,13 +7384,13 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3398,7 +7409,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -3419,76 +7430,82 @@ protected Builder newBuilderForType( * * *
-       * Details about source of Generative answer.
+       * Details about source of Event answer.
        * 
* * Protobuf type {@code - * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource} + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder { + .EventSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_fieldAccessorTable + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.class, + .EventSource.class, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Builder.class); + .EventSource.Builder.class); } // Construct using - // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.newBuilder() - private Builder() {} + // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSnippetsFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - if (snippetsBuilder_ == null) { - snippets_ = java.util.Collections.emptyList(); - } else { - snippets_ = null; - snippetsBuilder_.clear(); + event_ = ""; + snippets_ = null; + if (snippetsBuilder_ != null) { + snippetsBuilder_.dispose(); + snippetsBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource getDefaultInstanceForType() { return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + .EventSource.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource build() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -3497,14 +7514,12 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource buildPartial() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource result = new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource(this); - buildPartialRepeatedFields(result); + .EventSource(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -3512,26 +7527,19 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return result; } - private void buildPartialRepeatedFields( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource - result) { - if (snippetsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - snippets_ = java.util.Collections.unmodifiableList(snippets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.snippets_ = snippets_; - } else { - result.snippets_ = snippetsBuilder_.build(); - } - } - private void buildPartial0( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.event_ = event_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.snippets_ = snippetsBuilder_ == null ? snippets_ : snippetsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -3539,50 +7547,30 @@ public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) { + .EventSource) { return mergeFrom( (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSource) other); } else { super.mergeFrom(other); return this; } } - - public Builder mergeFrom( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource - other) { - if (other - == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance()) return this; - if (snippetsBuilder_ == null) { - if (!other.snippets_.isEmpty()) { - if (snippets_.isEmpty()) { - snippets_ = other.snippets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSnippetsIsMutable(); - snippets_.addAll(other.snippets_); - } - onChanged(); - } - } else { - if (!other.snippets_.isEmpty()) { - if (snippetsBuilder_.isEmpty()) { - snippetsBuilder_.dispose(); - snippetsBuilder_ = null; - snippets_ = other.snippets_; - bitField0_ = (bitField0_ & ~0x00000001); - snippetsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetSnippetsFieldBuilder() - : null; - } else { - snippetsBuilder_.addAllMessages(other.snippets_); - } - } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .EventSource.getDefaultInstance()) return this; + if (!other.getEvent().isEmpty()) { + event_ = other.event_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSnippets()) { + mergeSnippets(other.getSnippets()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -3612,21 +7600,17 @@ public Builder mergeFrom( break; case 10: { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - m = - input.readMessage( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer - .KnowledgeAnswer.GenerativeSource.Snippet.parser(), - extensionRegistry); - if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - snippets_.add(m); - } else { - snippetsBuilder_.addMessage(m); - } + event_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + input.readMessage( + internalGetSnippetsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3646,70 +7630,28 @@ public Builder mergeFrom( private int bitField0_; - private java.util.List< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet> - snippets_ = java.util.Collections.emptyList(); - - private void ensureSnippetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - snippets_ = - new java.util.ArrayList< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet>(snippets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder> - snippetsBuilder_; + private java.lang.Object event_ = ""; /** * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Name of the triggered event.
          * 
* - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * - */ - public java.util.List< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet> - getSnippetsList() { - if (snippetsBuilder_ == null) { - return java.util.Collections.unmodifiableList(snippets_); - } else { - return snippetsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
-         * 
+ * string event = 1; * - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * @return The event. */ - public int getSnippetsCount() { - if (snippetsBuilder_ == null) { - return snippets_.size(); + public java.lang.String getEvent() { + java.lang.Object ref = event_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + event_ = s; + return s; } else { - return snippetsBuilder_.getCount(); + return (java.lang.String) ref; } } @@ -3717,107 +7659,44 @@ public int getSnippetsCount() { * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Name of the triggered event.
          * 
* - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * - */ - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - getSnippets(int index) { - if (snippetsBuilder_ == null) { - return snippets_.get(index); - } else { - return snippetsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
-         * 
+ * string event = 1; * - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * @return The bytes for event. */ - public Builder setSnippets( - int index, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - value) { - if (snippetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnippetsIsMutable(); - snippets_.set(index, value); - onChanged(); + public com.google.protobuf.ByteString getEventBytes() { + java.lang.Object ref = event_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + event_ = b; + return b; } else { - snippetsBuilder_.setMessage(index, value); + return (com.google.protobuf.ByteString) ref; } - return this; } /** * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Name of the triggered event.
          * 
* - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * - */ - public Builder setSnippets( - int index, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder - builderForValue) { - if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - snippets_.set(index, builderForValue.build()); - onChanged(); - } else { - snippetsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
-         * 
+ * string event = 1; * - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * @param value The event to set. + * @return This builder for chaining. */ - public Builder addSnippets( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - value) { - if (snippetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnippetsIsMutable(); - snippets_.add(value); - onChanged(); - } else { - snippetsBuilder_.addMessage(value); + public Builder setEvent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + event_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } @@ -3825,55 +7704,17 @@ public Builder addSnippets( * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Name of the triggered event.
          * 
* - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * - */ - public Builder addSnippets( - int index, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - value) { - if (snippetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnippetsIsMutable(); - snippets_.add(index, value); - onChanged(); - } else { - snippetsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
-         * 
+ * string event = 1; * - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * @return This builder for chaining. */ - public Builder addSnippets( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder - builderForValue) { - if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - snippets_.add(builderForValue.build()); - onChanged(); - } else { - snippetsBuilder_.addMessage(builderForValue.build()); - } + public Builder clearEvent() { + event_ = getDefaultInstance().getEvent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } @@ -3881,100 +7722,105 @@ public Builder addSnippets( * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Name of the triggered event.
          * 
* - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * string event = 1; + * + * @param value The bytes for event to set. + * @return This builder for chaining. */ - public Builder addSnippets( - int index, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder - builderForValue) { - if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - snippets_.add(index, builderForValue.build()); - onChanged(); - } else { - snippetsBuilder_.addMessage(index, builderForValue.build()); + public Builder setEventBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + event_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + snippets_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder> + snippetsBuilder_; + /** * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Sources used in event fulfillment.
          * 
* * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * + * + * @return Whether the snippets field is set. */ - public Builder addAllSnippets( - java.lang.Iterable< - ? extends - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet> - values) { - if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snippets_); - onChanged(); - } else { - snippetsBuilder_.addAllMessages(values); - } - return this; + public boolean hasSnippets() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Sources used in event fulfillment.
          * 
* * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * + * + * @return The snippets. */ - public Builder clearSnippets() { + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + getSnippets() { if (snippetsBuilder_ == null) { - snippets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + return snippets_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance() + : snippets_; } else { - snippetsBuilder_.clear(); + return snippetsBuilder_.getMessage(); } - return this; } /** * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Sources used in event fulfillment.
          * 
* * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public Builder removeSnippets(int index) { + public Builder setSnippets( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + value) { if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - snippets_.remove(index); - onChanged(); + if (value == null) { + throw new NullPointerException(); + } + snippets_ = value; } else { - snippetsBuilder_.remove(index); + snippetsBuilder_.setMessage(value); } + bitField0_ |= 0x00000002; + onChanged(); return this; } @@ -3982,175 +7828,185 @@ public Builder removeSnippets(int index) { * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Sources used in event fulfillment.
          * 
* * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder - getSnippetsBuilder(int index) { - return internalGetSnippetsFieldBuilder().getBuilder(index); + public Builder setSnippets( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder + builderForValue) { + if (snippetsBuilder_ == null) { + snippets_ = builderForValue.build(); + } else { + snippetsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; } /** * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Sources used in event fulfillment.
          * 
* * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder - getSnippetsOrBuilder(int index) { + public Builder mergeSnippets( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + value) { if (snippetsBuilder_ == null) { - return snippets_.get(index); + if (((bitField0_ & 0x00000002) != 0) + && snippets_ != null + && snippets_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance()) { + getSnippetsBuilder().mergeFrom(value); + } else { + snippets_ = value; + } } else { - return snippetsBuilder_.getMessageOrBuilder(index); + snippetsBuilder_.mergeFrom(value); + } + if (snippets_ != null) { + bitField0_ |= 0x00000002; + onChanged(); } + return this; } /** * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Sources used in event fulfillment.
          * 
* * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public java.util.List< - ? extends - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder> - getSnippetsOrBuilderList() { + public Builder clearSnippets() { + bitField0_ = (bitField0_ & ~0x00000002); + snippets_ = null; if (snippetsBuilder_ != null) { - return snippetsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(snippets_); + snippetsBuilder_.dispose(); + snippetsBuilder_ = null; } + onChanged(); + return this; } /** * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Sources used in event fulfillment.
          * 
* * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder - addSnippetsBuilder() { - return internalGetSnippetsFieldBuilder() - .addBuilder( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.getDefaultInstance()); + .GenerativeSource.Builder + getSnippetsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSnippetsFieldBuilder().getBuilder(); } /** * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Sources used in event fulfillment.
          * 
* * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder - addSnippetsBuilder(int index) { - return internalGetSnippetsFieldBuilder() - .addBuilder( - index, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.getDefaultInstance()); + .GenerativeSourceOrBuilder + getSnippetsOrBuilder() { + if (snippetsBuilder_ != null) { + return snippetsBuilder_.getMessageOrBuilder(); + } else { + return snippets_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance() + : snippets_; + } } /** * * *
-         * All snippets used for this Generative Prediction, with their source URI
-         * and data.
+         * Sources used in event fulfillment.
          * 
* * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public java.util.List< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder> - getSnippetsBuilderList() { - return internalGetSnippetsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.SingleFieldBuilder< com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet, + .GenerativeSource, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder, + .GenerativeSource.Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder> + .GenerativeSourceOrBuilder> internalGetSnippetsFieldBuilder() { if (snippetsBuilder_ == null) { snippetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< + new com.google.protobuf.SingleFieldBuilder< com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet, + .GenerativeSource, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder, + .GenerativeSource.Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder>( - snippets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + .GenerativeSourceOrBuilder>( + getSnippets(), getParentForChildren(), isClean()); snippets_ = null; } return snippetsBuilder_; } - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) } - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource(); + .EventSource(); } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public GenerativeSource parsePartialFrom( + public EventSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4170,18 +8026,17 @@ public GenerativeSource parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -4198,6 +8053,8 @@ public enum SourceCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { FAQ_SOURCE(3), GENERATIVE_SOURCE(4), + PLAYBOOK_SOURCE(7), + EVENT_SOURCE(8), SOURCE_NOT_SET(0); private final int value; @@ -4221,6 +8078,10 @@ public static SourceCase forNumber(int value) { return FAQ_SOURCE; case 4: return GENERATIVE_SOURCE; + case 7: + return PLAYBOOK_SOURCE; + case 8: + return EVENT_SOURCE; case 0: return SOURCE_NOT_SET; default: @@ -4407,24 +8268,163 @@ public boolean hasGenerativeSource() { * * *
-     * Populated if the prediction was Generative.
+     * Populated if the prediction was Generative.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getGenerativeSourceOrBuilder() { + if (sourceCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_; + } + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); + } + + public static final int PLAYBOOK_SOURCE_FIELD_NUMBER = 7; + + /** + * + * + *
+     * Populated if the prediction was from Playbook.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + * + * @return Whether the playbookSource field is set. + */ + @java.lang.Override + public boolean hasPlaybookSource() { + return sourceCase_ == 7; + } + + /** + * + * + *
+     * Populated if the prediction was from Playbook.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + * + * @return The playbookSource. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + getPlaybookSource() { + if (sourceCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_; + } + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); + } + + /** + * + * + *
+     * Populated if the prediction was from Playbook.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getPlaybookSourceOrBuilder() { + if (sourceCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_; + } + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); + } + + public static final int EVENT_SOURCE_FIELD_NUMBER = 8; + + /** + * + * + *
+     * Populated if the prediction was from an event.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + * + * @return Whether the eventSource field is set. + */ + @java.lang.Override + public boolean hasEventSource() { + return sourceCase_ == 8; + } + + /** + * + * + *
+     * Populated if the prediction was from an event.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + * + * @return The eventSource. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + getEventSource() { + if (sourceCase_ == 8) { + return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .EventSource) + source_; + } + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .getDefaultInstance(); + } + + /** + * + * + *
+     * Populated if the prediction was from an event.
      * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ @java.lang.Override public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder - getGenerativeSourceOrBuilder() { - if (sourceCase_ == 4) { + .EventSourceOrBuilder + getEventSourceOrBuilder() { + if (sourceCase_ == 8) { return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSource) source_; } - return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -4457,6 +8457,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .GenerativeSource) source_); } + if (sourceCase_ == 7) { + output.writeMessage( + 7, + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_); + } + if (sourceCase_ == 8) { + output.writeMessage( + 8, + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) + source_); + } getUnknownFields().writeTo(output); } @@ -4485,6 +8498,22 @@ public int getSerializedSize() { .GenerativeSource) source_); } + if (sourceCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_); + } + if (sourceCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .EventSource) + source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4511,6 +8540,12 @@ public boolean equals(final java.lang.Object obj) { case 4: if (!getGenerativeSource().equals(other.getGenerativeSource())) return false; break; + case 7: + if (!getPlaybookSource().equals(other.getPlaybookSource())) return false; + break; + case 8: + if (!getEventSource().equals(other.getEventSource())) return false; + break; case 0: default: } @@ -4536,6 +8571,14 @@ public int hashCode() { hash = (37 * hash) + GENERATIVE_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getGenerativeSource().hashCode(); break; + case 7: + hash = (37 * hash) + PLAYBOOK_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getPlaybookSource().hashCode(); + break; + case 8: + hash = (37 * hash) + EVENT_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getEventSource().hashCode(); + break; case 0: default: } @@ -4647,255 +8690,708 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder return builder; } - /** - * - * - *
-     * Represents an answer from Knowledge. Currently supports FAQ and Generative
-     * answers.
-     * 
- * - * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; + /** + * + * + *
+     * Represents an answer from Knowledge. Currently supports FAQ and Generative
+     * answers.
+     * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + answerText_ = ""; + if (faqSourceBuilder_ != null) { + faqSourceBuilder_.clear(); + } + if (generativeSourceBuilder_ != null) { + generativeSourceBuilder_.clear(); + } + if (playbookSourceBuilder_ != null) { + playbookSourceBuilder_.clear(); + } + if (eventSourceBuilder_ != null) { + eventSourceBuilder_.clear(); + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer result = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.answerText_ = answerText_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 3 && faqSourceBuilder_ != null) { + result.source_ = faqSourceBuilder_.build(); + } + if (sourceCase_ == 4 && generativeSourceBuilder_ != null) { + result.source_ = generativeSourceBuilder_.build(); + } + if (sourceCase_ == 7 && playbookSourceBuilder_ != null) { + result.source_ = playbookSourceBuilder_.build(); + } + if (sourceCase_ == 8 && eventSourceBuilder_ != null) { + result.source_ = eventSourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .getDefaultInstance()) return this; + if (!other.getAnswerText().isEmpty()) { + answerText_ = other.answerText_; + bitField0_ |= 0x00000001; + onChanged(); + } + switch (other.getSourceCase()) { + case FAQ_SOURCE: + { + mergeFaqSource(other.getFaqSource()); + break; + } + case GENERATIVE_SOURCE: + { + mergeGenerativeSource(other.getGenerativeSource()); + break; + } + case PLAYBOOK_SOURCE: + { + mergePlaybookSource(other.getPlaybookSource()); + break; + } + case EVENT_SOURCE: + { + mergeEventSource(other.getEventSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + answerText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage( + internalGetFaqSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetGenerativeSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 4; + break; + } // case 34 + case 58: + { + input.readMessage( + internalGetPlaybookSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetEventSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 8; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.class, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.Builder - .class); + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; } - // Construct using - // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.newBuilder() - private Builder() {} + private int bitField0_; - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + private java.lang.Object answerText_ = ""; + + /** + * + * + *
+       * The piece of text from the `source` that answers this suggested query.
+       * 
+ * + * string answer_text = 1; + * + * @return The answerText. + */ + public java.lang.String getAnswerText() { + java.lang.Object ref = answerText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerText_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - answerText_ = ""; - if (faqSourceBuilder_ != null) { - faqSourceBuilder_.clear(); + /** + * + * + *
+       * The piece of text from the `source` that answers this suggested query.
+       * 
+ * + * string answer_text = 1; + * + * @return The bytes for answerText. + */ + public com.google.protobuf.ByteString getAnswerTextBytes() { + java.lang.Object ref = answerText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - if (generativeSourceBuilder_ != null) { - generativeSourceBuilder_.clear(); + } + + /** + * + * + *
+       * The piece of text from the `source` that answers this suggested query.
+       * 
+ * + * string answer_text = 1; + * + * @param value The answerText to set. + * @return This builder for chaining. + */ + public Builder setAnswerText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - sourceCase_ = 0; - source_ = null; + answerText_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; + /** + * + * + *
+       * The piece of text from the `source` that answers this suggested query.
+       * 
+ * + * string answer_text = 1; + * + * @return This builder for chaining. + */ + public Builder clearAnswerText() { + answerText_ = getDefaultInstance().getAnswerText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .getDefaultInstance(); + /** + * + * + *
+       * The piece of text from the `source` that answers this suggested query.
+       * 
+ * + * string answer_text = 1; + * + * @param value The bytes for answerText to set. + * @return This builder for chaining. + */ + public Builder setAnswerTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSourceOrBuilder> + faqSourceBuilder_; + + /** + * + * + *
+       * Populated if the prediction came from FAQ.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + * + * @return Whether the faqSource field is set. + */ @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer build() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public boolean hasFaqSource() { + return sourceCase_ == 3; } + /** + * + * + *
+       * Populated if the prediction came from FAQ.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + * + * @return The faqSource. + */ @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - buildPartial() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer result = - new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer(this); - if (bitField0_ != 0) { - buildPartial0(result); + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + getFaqSource() { + if (faqSourceBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource) + source_; + } + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return faqSourceBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance(); } - buildPartialOneofs(result); - onBuilt(); - return result; } - private void buildPartial0( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.answerText_ = answerText_; + /** + * + * + *
+       * Populated if the prediction came from FAQ.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + public Builder setFaqSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + value) { + if (faqSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + faqSourceBuilder_.setMessage(value); } + sourceCase_ = 3; + return this; } - private void buildPartialOneofs( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer result) { - result.sourceCase_ = sourceCase_; - result.source_ = this.source_; - if (sourceCase_ == 3 && faqSourceBuilder_ != null) { - result.source_ = faqSourceBuilder_.build(); - } - if (sourceCase_ == 4 && generativeSourceBuilder_ != null) { - result.source_ = generativeSourceBuilder_.build(); + /** + * + * + *
+       * Populated if the prediction came from FAQ.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + public Builder setFaqSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .Builder + builderForValue) { + if (faqSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + faqSourceBuilder_.setMessage(builderForValue.build()); } + sourceCase_ = 3; + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) { - return mergeFrom( - (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) other); + /** + * + * + *
+       * Populated if the prediction came from FAQ.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + public Builder mergeFaqSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + value) { + if (faqSourceBuilder_ == null) { + if (sourceCase_ == 3 + && source_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource.getDefaultInstance()) { + source_ = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .newBuilder( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); } else { - super.mergeFrom(other); - return this; + if (sourceCase_ == 3) { + faqSourceBuilder_.mergeFrom(value); + } else { + faqSourceBuilder_.setMessage(value); + } } + sourceCase_ = 3; + return this; } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer other) { - if (other - == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .getDefaultInstance()) return this; - if (!other.getAnswerText().isEmpty()) { - answerText_ = other.answerText_; - bitField0_ |= 0x00000001; - onChanged(); - } - switch (other.getSourceCase()) { - case FAQ_SOURCE: - { - mergeFaqSource(other.getFaqSource()); - break; - } - case GENERATIVE_SOURCE: - { - mergeGenerativeSource(other.getGenerativeSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + /** + * + * + *
+       * Populated if the prediction came from FAQ.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + public Builder clearFaqSource() { + if (faqSourceBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + faqSourceBuilder_.clear(); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+       * Populated if the prediction came from FAQ.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .Builder + getFaqSourceBuilder() { + return internalGetFaqSourceFieldBuilder().getBuilder(); } + /** + * + * + *
+       * Populated if the prediction came from FAQ.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSourceOrBuilder + getFaqSourceOrBuilder() { + if ((sourceCase_ == 3) && (faqSourceBuilder_ != null)) { + return faqSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource) + source_; + } + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - answerText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - input.readMessage( - internalGetFaqSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage( - internalGetGenerativeSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 4; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int sourceCase_ = 0; - private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); } - public Builder clearSource() { - sourceCase_ = 0; - source_ = null; + /** + * + * + *
+       * Populated if the prediction came from FAQ.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSourceOrBuilder> + internalGetFaqSourceFieldBuilder() { + if (faqSourceBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance(); + } + faqSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSourceOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; onChanged(); - return this; + return faqSourceBuilder_; } - private int bitField0_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder> + generativeSourceBuilder_; - private java.lang.Object answerText_ = ""; + /** + * + * + *
+       * Populated if the prediction was Generative.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + * + * @return Whether the generativeSource field is set. + */ + @java.lang.Override + public boolean hasGenerativeSource() { + return sourceCase_ == 4; + } /** * * *
-       * The piece of text from the `source` that answers this suggested query.
+       * Populated if the prediction was Generative.
        * 
* - * string answer_text = 1; + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * * - * @return The answerText. + * @return The generativeSource. */ - public java.lang.String getAnswerText() { - java.lang.Object ref = answerText_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - answerText_ = s; - return s; + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + getGenerativeSource() { + if (generativeSourceBuilder_ == null) { + if (sourceCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_; + } + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } else { - return (java.lang.String) ref; + if (sourceCase_ == 4) { + return generativeSourceBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } } @@ -4903,44 +9399,51 @@ public java.lang.String getAnswerText() { * * *
-       * The piece of text from the `source` that answers this suggested query.
+       * Populated if the prediction was Generative.
        * 
* - * string answer_text = 1; - * - * @return The bytes for answerText. + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * */ - public com.google.protobuf.ByteString getAnswerTextBytes() { - java.lang.Object ref = answerText_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - answerText_ = b; - return b; + public Builder setGenerativeSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + value) { + if (generativeSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + generativeSourceBuilder_.setMessage(value); } + sourceCase_ = 4; + return this; } /** * * *
-       * The piece of text from the `source` that answers this suggested query.
+       * Populated if the prediction was Generative.
        * 
* - * string answer_text = 1; - * - * @param value The answerText to set. - * @return This builder for chaining. + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * */ - public Builder setAnswerText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setGenerativeSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Builder + builderForValue) { + if (generativeSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + generativeSourceBuilder_.setMessage(builderForValue.build()); } - answerText_ = value; - bitField0_ |= 0x00000001; - onChanged(); + sourceCase_ = 4; return this; } @@ -4948,17 +9451,69 @@ public Builder setAnswerText(java.lang.String value) { * * *
-       * The piece of text from the `source` that answers this suggested query.
+       * Populated if the prediction was Generative.
        * 
* - * string answer_text = 1; + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + */ + public Builder mergeGenerativeSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + value) { + if (generativeSourceBuilder_ == null) { + if (sourceCase_ == 4 + && source_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance()) { + source_ = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.newBuilder( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 4) { + generativeSourceBuilder_.mergeFrom(value); + } else { + generativeSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 4; + return this; + } + + /** * - * @return This builder for chaining. + * + *
+       * Populated if the prediction was Generative.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * */ - public Builder clearAnswerText() { - answerText_ = getDefaultInstance().getAnswerText(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + public Builder clearGenerativeSource() { + if (generativeSourceBuilder_ == null) { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + } + generativeSourceBuilder_.clear(); + } return this; } @@ -4966,81 +9521,150 @@ public Builder clearAnswerText() { * * *
-       * The piece of text from the `source` that answers this suggested query.
+       * Populated if the prediction was Generative.
        * 
* - * string answer_text = 1; + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder + getGenerativeSourceBuilder() { + return internalGetGenerativeSourceFieldBuilder().getBuilder(); + } + + /** * - * @param value The bytes for answerText to set. - * @return This builder for chaining. + * + *
+       * Populated if the prediction was Generative.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * */ - public Builder setAnswerTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getGenerativeSourceOrBuilder() { + if ((sourceCase_ == 4) && (generativeSourceBuilder_ != null)) { + return generativeSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_; + } + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); + } + } + + /** + * + * + *
+       * Populated if the prediction was Generative.
+       * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder> + internalGetGenerativeSourceFieldBuilder() { + if (generativeSourceBuilder_ == null) { + if (!(sourceCase_ == 4)) { + source_ = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); + } + generativeSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; } - checkByteStringIsUtf8(value); - answerText_ = value; - bitField0_ |= 0x00000001; + sourceCase_ = 4; onChanged(); - return this; + return generativeSourceBuilder_; } private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSourceOrBuilder> - faqSourceBuilder_; + .GenerativeSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder> + playbookSourceBuilder_; /** * * *
-       * Populated if the prediction came from FAQ.
+       * Populated if the prediction was from Playbook.
        * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * * - * @return Whether the faqSource field is set. + * @return Whether the playbookSource field is set. */ @java.lang.Override - public boolean hasFaqSource() { - return sourceCase_ == 3; + public boolean hasPlaybookSource() { + return sourceCase_ == 7; } /** * * *
-       * Populated if the prediction came from FAQ.
+       * Populated if the prediction was from Playbook.
        * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * * - * @return The faqSource. + * @return The playbookSource. */ @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - getFaqSource() { - if (faqSourceBuilder_ == null) { - if (sourceCase_ == 3) { + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + getPlaybookSource() { + if (playbookSourceBuilder_ == null) { + if (sourceCase_ == 7) { return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource) + .GenerativeSource) source_; } - return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } else { - if (sourceCase_ == 3) { - return faqSourceBuilder_.getMessage(); + if (sourceCase_ == 7) { + return playbookSourceBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } } @@ -5048,26 +9672,26 @@ public boolean hasFaqSource() { * * *
-       * Populated if the prediction came from FAQ.
+       * Populated if the prediction was from Playbook.
        * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ - public Builder setFaqSource( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + public Builder setPlaybookSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource value) { - if (faqSourceBuilder_ == null) { + if (playbookSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { - faqSourceBuilder_.setMessage(value); + playbookSourceBuilder_.setMessage(value); } - sourceCase_ = 3; + sourceCase_ = 7; return this; } @@ -5075,24 +9699,24 @@ public Builder setFaqSource( * * *
-       * Populated if the prediction came from FAQ.
+       * Populated if the prediction was from Playbook.
        * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ - public Builder setFaqSource( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + public Builder setPlaybookSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource .Builder builderForValue) { - if (faqSourceBuilder_ == null) { + if (playbookSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { - faqSourceBuilder_.setMessage(builderForValue.build()); + playbookSourceBuilder_.setMessage(builderForValue.build()); } - sourceCase_ = 3; + sourceCase_ = 7; return this; } @@ -5100,26 +9724,26 @@ public Builder setFaqSource( * * *
-       * Populated if the prediction came from FAQ.
+       * Populated if the prediction was from Playbook.
        * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ - public Builder mergeFaqSource( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + public Builder mergePlaybookSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource value) { - if (faqSourceBuilder_ == null) { - if (sourceCase_ == 3 + if (playbookSourceBuilder_ == null) { + if (sourceCase_ == 7 && source_ != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource.getDefaultInstance()) { + .GenerativeSource.getDefaultInstance()) { source_ = - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .newBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.newBuilder( (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource) + .GenerativeSource) source_) .mergeFrom(value) .buildPartial(); @@ -5128,13 +9752,13 @@ public Builder mergeFaqSource( } onChanged(); } else { - if (sourceCase_ == 3) { - faqSourceBuilder_.mergeFrom(value); + if (sourceCase_ == 7) { + playbookSourceBuilder_.mergeFrom(value); } else { - faqSourceBuilder_.setMessage(value); + playbookSourceBuilder_.setMessage(value); } } - sourceCase_ = 3; + sourceCase_ = 7; return this; } @@ -5142,26 +9766,26 @@ public Builder mergeFaqSource( * * *
-       * Populated if the prediction came from FAQ.
+       * Populated if the prediction was from Playbook.
        * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ - public Builder clearFaqSource() { - if (faqSourceBuilder_ == null) { - if (sourceCase_ == 3) { + public Builder clearPlaybookSource() { + if (playbookSourceBuilder_ == null) { + if (sourceCase_ == 7) { sourceCase_ = 0; source_ = null; onChanged(); } } else { - if (sourceCase_ == 3) { + if (sourceCase_ == 7) { sourceCase_ = 0; source_ = null; } - faqSourceBuilder_.clear(); + playbookSourceBuilder_.clear(); } return this; } @@ -5170,44 +9794,44 @@ public Builder clearFaqSource() { * * *
-       * Populated if the prediction came from FAQ.
+       * Populated if the prediction was from Playbook.
        * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .Builder - getFaqSourceBuilder() { - return internalGetFaqSourceFieldBuilder().getBuilder(); + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder + getPlaybookSourceBuilder() { + return internalGetPlaybookSourceFieldBuilder().getBuilder(); } /** * * *
-       * Populated if the prediction came from FAQ.
+       * Populated if the prediction was from Playbook.
        * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ @java.lang.Override public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSourceOrBuilder - getFaqSourceOrBuilder() { - if ((sourceCase_ == 3) && (faqSourceBuilder_ != null)) { - return faqSourceBuilder_.getMessageOrBuilder(); + .GenerativeSourceOrBuilder + getPlaybookSourceOrBuilder() { + if ((sourceCase_ == 7) && (playbookSourceBuilder_ != null)) { + return playbookSourceBuilder_.getMessageOrBuilder(); } else { - if (sourceCase_ == 3) { + if (sourceCase_ == 7) { return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource) + .GenerativeSource) source_; } - return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } } @@ -5215,104 +9839,103 @@ public Builder clearFaqSource() { * * *
-       * Populated if the prediction came from FAQ.
+       * Populated if the prediction was from Playbook.
        * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSourceOrBuilder> - internalGetFaqSourceFieldBuilder() { - if (faqSourceBuilder_ == null) { - if (!(sourceCase_ == 3)) { + .GenerativeSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder> + internalGetPlaybookSourceFieldBuilder() { + if (playbookSourceBuilder_ == null) { + if (!(sourceCase_ == 7)) { source_ = - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance(); + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } - faqSourceBuilder_ = + playbookSourceBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource, + .GenerativeSource, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource.Builder, + .GenerativeSource.Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSourceOrBuilder>( + .GenerativeSourceOrBuilder>( (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource) + .GenerativeSource) source_, getParentForChildren(), isClean()); source_ = null; } - sourceCase_ = 3; + sourceCase_ = 7; onChanged(); - return faqSourceBuilder_; + return playbookSourceBuilder_; } private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Builder, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder> - generativeSourceBuilder_; + .EventSourceOrBuilder> + eventSourceBuilder_; /** * * *
-       * Populated if the prediction was Generative.
+       * Populated if the prediction was from an event.
        * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * * - * @return Whether the generativeSource field is set. + * @return Whether the eventSource field is set. */ @java.lang.Override - public boolean hasGenerativeSource() { - return sourceCase_ == 4; + public boolean hasEventSource() { + return sourceCase_ == 8; } /** * * *
-       * Populated if the prediction was Generative.
+       * Populated if the prediction was from an event.
        * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * * - * @return The generativeSource. + * @return The eventSource. */ @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource - getGenerativeSource() { - if (generativeSourceBuilder_ == null) { - if (sourceCase_ == 4) { + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + getEventSource() { + if (eventSourceBuilder_ == null) { + if (sourceCase_ == 8) { return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSource) source_; } return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + .EventSource.getDefaultInstance(); } else { - if (sourceCase_ == 4) { - return generativeSourceBuilder_.getMessage(); + if (sourceCase_ == 8) { + return eventSourceBuilder_.getMessage(); } return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + .EventSource.getDefaultInstance(); } } @@ -5320,26 +9943,26 @@ public boolean hasGenerativeSource() { * * *
-       * Populated if the prediction was Generative.
+       * Populated if the prediction was from an event.
        * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ - public Builder setGenerativeSource( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + public Builder setEventSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource value) { - if (generativeSourceBuilder_ == null) { + if (eventSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { - generativeSourceBuilder_.setMessage(value); + eventSourceBuilder_.setMessage(value); } - sourceCase_ = 4; + sourceCase_ = 8; return this; } @@ -5347,24 +9970,24 @@ public Builder setGenerativeSource( * * *
-       * Populated if the prediction was Generative.
+       * Populated if the prediction was from an event.
        * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ - public Builder setGenerativeSource( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + public Builder setEventSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource .Builder builderForValue) { - if (generativeSourceBuilder_ == null) { + if (eventSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { - generativeSourceBuilder_.setMessage(builderForValue.build()); + eventSourceBuilder_.setMessage(builderForValue.build()); } - sourceCase_ = 4; + sourceCase_ = 8; return this; } @@ -5372,26 +9995,26 @@ public Builder setGenerativeSource( * * *
-       * Populated if the prediction was Generative.
+       * Populated if the prediction was from an event.
        * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ - public Builder mergeGenerativeSource( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + public Builder mergeEventSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource value) { - if (generativeSourceBuilder_ == null) { - if (sourceCase_ == 4 + if (eventSourceBuilder_ == null) { + if (sourceCase_ == 8 && source_ != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance()) { + .EventSource.getDefaultInstance()) { source_ = com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.newBuilder( + .EventSource.newBuilder( (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSource) source_) .mergeFrom(value) .buildPartial(); @@ -5400,13 +10023,13 @@ public Builder mergeGenerativeSource( } onChanged(); } else { - if (sourceCase_ == 4) { - generativeSourceBuilder_.mergeFrom(value); + if (sourceCase_ == 8) { + eventSourceBuilder_.mergeFrom(value); } else { - generativeSourceBuilder_.setMessage(value); + eventSourceBuilder_.setMessage(value); } } - sourceCase_ = 4; + sourceCase_ = 8; return this; } @@ -5414,26 +10037,26 @@ public Builder mergeGenerativeSource( * * *
-       * Populated if the prediction was Generative.
+       * Populated if the prediction was from an event.
        * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ - public Builder clearGenerativeSource() { - if (generativeSourceBuilder_ == null) { - if (sourceCase_ == 4) { + public Builder clearEventSource() { + if (eventSourceBuilder_ == null) { + if (sourceCase_ == 8) { sourceCase_ = 0; source_ = null; onChanged(); } } else { - if (sourceCase_ == 4) { + if (sourceCase_ == 8) { sourceCase_ = 0; source_ = null; } - generativeSourceBuilder_.clear(); + eventSourceBuilder_.clear(); } return this; } @@ -5442,44 +10065,44 @@ public Builder clearGenerativeSource() { * * *
-       * Populated if the prediction was Generative.
+       * Populated if the prediction was from an event.
        * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Builder - getGenerativeSourceBuilder() { - return internalGetGenerativeSourceFieldBuilder().getBuilder(); + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .Builder + getEventSourceBuilder() { + return internalGetEventSourceFieldBuilder().getBuilder(); } /** * * *
-       * Populated if the prediction was Generative.
+       * Populated if the prediction was from an event.
        * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ @java.lang.Override public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder - getGenerativeSourceOrBuilder() { - if ((sourceCase_ == 4) && (generativeSourceBuilder_ != null)) { - return generativeSourceBuilder_.getMessageOrBuilder(); + .EventSourceOrBuilder + getEventSourceOrBuilder() { + if ((sourceCase_ == 8) && (eventSourceBuilder_ != null)) { + return eventSourceBuilder_.getMessageOrBuilder(); } else { - if (sourceCase_ == 4) { + if (sourceCase_ == 8) { return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSource) source_; } return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + .EventSource.getDefaultInstance(); } } @@ -5487,45 +10110,44 @@ public Builder clearGenerativeSource() { * * *
-       * Populated if the prediction was Generative.
+       * Populated if the prediction was from an event.
        * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Builder, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder> - internalGetGenerativeSourceFieldBuilder() { - if (generativeSourceBuilder_ == null) { - if (!(sourceCase_ == 4)) { + .EventSourceOrBuilder> + internalGetEventSourceFieldBuilder() { + if (eventSourceBuilder_ == null) { + if (!(sourceCase_ == 8)) { source_ = com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + .EventSource.getDefaultInstance(); } - generativeSourceBuilder_ = + eventSourceBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource, + .EventSource, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Builder, + .EventSource.Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder>( + .EventSourceOrBuilder>( (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSource) source_, getParentForChildren(), isClean()); source_ = null; } - sourceCase_ = 4; + sourceCase_ = 8; onChanged(); - return generativeSourceBuilder_; + return eventSourceBuilder_; } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfo.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfo.java index c0831883f277..2923fd0e592a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfo.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfo.java @@ -3033,667 +3033,1599 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; - public static final int QUERY_GENERATION_FAILURE_REASON_FIELD_NUMBER = 1; - private int queryGenerationFailureReason_ = 0; - - /** - * - * - *
-   * Reason for query generation.
-   * 
- * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; - * - * - * @return The enum numeric value on the wire for queryGenerationFailureReason. - */ - @java.lang.Override - public int getQueryGenerationFailureReasonValue() { - return queryGenerationFailureReason_; - } + public interface QueryGenerationDebugInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + com.google.protobuf.MessageOrBuilder { - /** - * - * - *
-   * Reason for query generation.
-   * 
- * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; - * - * - * @return The queryGenerationFailureReason. - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason - getQueryGenerationFailureReason() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason - result = - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryGenerationFailureReason.forNumber(queryGenerationFailureReason_); - return result == null - ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason - .UNRECOGNIZED - : result; - } + /** + * + * + *
+     * The total number of tokens in the prompt.
+     * 
+ * + * int32 prompt_token_count = 1; + * + * @return The promptTokenCount. + */ + int getPromptTokenCount(); - public static final int QUERY_CATEGORIZATION_FAILURE_REASON_FIELD_NUMBER = 2; - private int queryCategorizationFailureReason_ = 0; + /** + * + * + *
+     * The total number of tokens in the generated candidates.
+     * 
+ * + * int32 candidates_token_count = 2; + * + * @return The candidatesTokenCount. + */ + int getCandidatesTokenCount(); - /** - * - * - *
-   * Reason for query categorization.
-   * 
- * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; - * - * - * @return The enum numeric value on the wire for queryCategorizationFailureReason. - */ - @java.lang.Override - public int getQueryCategorizationFailureReasonValue() { - return queryCategorizationFailureReason_; + /** + * + * + *
+     * The total number of tokens for the entire request.
+     * 
+ * + * int32 total_token_count = 3; + * + * @return The totalTokenCount. + */ + int getTotalTokenCount(); } /** * * *
-   * Reason for query categorization.
+   * Token usage metadata for query generation.
    * 
* - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; - * - * - * @return The queryCategorizationFailureReason. + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo} */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryCategorizationFailureReason - getQueryCategorizationFailureReason() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason - result = - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryCategorizationFailureReason.forNumber(queryCategorizationFailureReason_); - return result == null - ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryCategorizationFailureReason.UNRECOGNIZED - : result; - } + public static final class QueryGenerationDebugInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + QueryGenerationDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; - public static final int DATASTORE_RESPONSE_REASON_FIELD_NUMBER = 3; - private int datastoreResponseReason_ = 0; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryGenerationDebugInfo"); + } - /** - * - * - *
-   * Response reason from datastore which indicates data serving status or
-   * answer quality degradation.
-   * 
- * - * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; - * - * - * @return The enum numeric value on the wire for datastoreResponseReason. - */ - @java.lang.Override - public int getDatastoreResponseReasonValue() { - return datastoreResponseReason_; - } + // Use QueryGenerationDebugInfo.newBuilder() to construct. + private QueryGenerationDebugInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - /** - * - * - *
-   * Response reason from datastore which indicates data serving status or
-   * answer quality degradation.
-   * 
- * - * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; - * - * - * @return The datastoreResponseReason. - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason getDatastoreResponseReason() { - com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason result = - com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.forNumber( - datastoreResponseReason_); - return result == null - ? com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.UNRECOGNIZED - : result; - } + private QueryGenerationDebugInfo() {} - public static final int KNOWLEDGE_ASSIST_BEHAVIOR_FIELD_NUMBER = 4; - private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - knowledgeAssistBehavior_; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor; + } - /** - * - * - *
-   * Configured behaviors for Knowedge Assist.
-   * 
- * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * - * - * @return Whether the knowledgeAssistBehavior field is set. - */ - @java.lang.Override - public boolean hasKnowledgeAssistBehavior() { - return ((bitField0_ & 0x00000001) != 0); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .Builder.class); + } - /** - * - * - *
-   * Configured behaviors for Knowedge Assist.
-   * 
- * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * - * - * @return The knowledgeAssistBehavior. - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - getKnowledgeAssistBehavior() { - return knowledgeAssistBehavior_ == null - ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - .getDefaultInstance() - : knowledgeAssistBehavior_; - } + public static final int PROMPT_TOKEN_COUNT_FIELD_NUMBER = 1; + private int promptTokenCount_ = 0; - /** - * - * - *
-   * Configured behaviors for Knowedge Assist.
-   * 
- * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .KnowledgeAssistBehaviorOrBuilder - getKnowledgeAssistBehaviorOrBuilder() { - return knowledgeAssistBehavior_ == null - ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - .getDefaultInstance() - : knowledgeAssistBehavior_; - } + /** + * + * + *
+     * The total number of tokens in the prompt.
+     * 
+ * + * int32 prompt_token_count = 1; + * + * @return The promptTokenCount. + */ + @java.lang.Override + public int getPromptTokenCount() { + return promptTokenCount_; + } - public static final int INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER = 5; - private com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo - ingestedContextReferenceDebugInfo_; + public static final int CANDIDATES_TOKEN_COUNT_FIELD_NUMBER = 2; + private int candidatesTokenCount_ = 0; - /** - * - * - *
-   * Information about parameters ingested for search knowledge.
-   * 
- * - * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; - * - * - * @return Whether the ingestedContextReferenceDebugInfo field is set. - */ - @java.lang.Override - public boolean hasIngestedContextReferenceDebugInfo() { - return ((bitField0_ & 0x00000002) != 0); - } + /** + * + * + *
+     * The total number of tokens in the generated candidates.
+     * 
+ * + * int32 candidates_token_count = 2; + * + * @return The candidatesTokenCount. + */ + @java.lang.Override + public int getCandidatesTokenCount() { + return candidatesTokenCount_; + } - /** - * - * - *
-   * Information about parameters ingested for search knowledge.
-   * 
- * - * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; - * - * - * @return The ingestedContextReferenceDebugInfo. - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo - getIngestedContextReferenceDebugInfo() { - return ingestedContextReferenceDebugInfo_ == null - ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.getDefaultInstance() - : ingestedContextReferenceDebugInfo_; - } + public static final int TOTAL_TOKEN_COUNT_FIELD_NUMBER = 3; + private int totalTokenCount_ = 0; - /** - * - * - *
-   * Information about parameters ingested for search knowledge.
-   * 
- * - * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; - * - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder - getIngestedContextReferenceDebugInfoOrBuilder() { - return ingestedContextReferenceDebugInfo_ == null - ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.getDefaultInstance() - : ingestedContextReferenceDebugInfo_; - } + /** + * + * + *
+     * The total number of tokens for the entire request.
+     * 
+ * + * int32 total_token_count = 3; + * + * @return The totalTokenCount. + */ + @java.lang.Override + public int getTotalTokenCount() { + return totalTokenCount_; + } - public static final int SERVICE_LATENCY_FIELD_NUMBER = 6; - private com.google.cloud.dialogflow.v2beta1.ServiceLatency serviceLatency_; + private byte memoizedIsInitialized = -1; - /** - * - * - *
-   * The latency of the service.
-   * 
- * - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; - * - * @return Whether the serviceLatency field is set. - */ - @java.lang.Override - public boolean hasServiceLatency() { - return ((bitField0_ & 0x00000004) != 0); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** - * - * - *
-   * The latency of the service.
-   * 
- * - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; - * - * @return The serviceLatency. - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency() { - return serviceLatency_ == null - ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() - : serviceLatency_; - } + memoizedIsInitialized = 1; + return true; + } - /** - * - * - *
-   * The latency of the service.
-   * 
- * - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder getServiceLatencyOrBuilder() { - return serviceLatency_ == null - ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() - : serviceLatency_; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (promptTokenCount_ != 0) { + output.writeInt32(1, promptTokenCount_); + } + if (candidatesTokenCount_ != 0) { + output.writeInt32(2, candidatesTokenCount_); + } + if (totalTokenCount_ != 0) { + output.writeInt32(3, totalTokenCount_); + } + getUnknownFields().writeTo(output); + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + size = 0; + if (promptTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, promptTokenCount_); + } + if (candidatesTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, candidatesTokenCount_); + } + if (totalTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalTokenCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo other = + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + obj; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (queryGenerationFailureReason_ - != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason - .QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, queryGenerationFailureReason_); + if (getPromptTokenCount() != other.getPromptTokenCount()) return false; + if (getCandidatesTokenCount() != other.getCandidatesTokenCount()) return false; + if (getTotalTokenCount() != other.getTotalTokenCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - if (queryCategorizationFailureReason_ - != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryCategorizationFailureReason.QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, queryCategorizationFailureReason_); + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROMPT_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getPromptTokenCount(); + hash = (37 * hash) + CANDIDATES_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCandidatesTokenCount(); + hash = (37 * hash) + TOTAL_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalTokenCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - if (datastoreResponseReason_ - != com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason - .DATASTORE_RESPONSE_REASON_UNSPECIFIED - .getNumber()) { - output.writeEnum(3, datastoreResponseReason_); + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getKnowledgeAssistBehavior()); + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(5, getIngestedContextReferenceDebugInfo()); + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(6, getServiceLatency()); + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - size = 0; - if (queryGenerationFailureReason_ - != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason - .QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED - .getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(1, queryGenerationFailureReason_); + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - if (queryCategorizationFailureReason_ - != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryCategorizationFailureReason.QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED - .getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 2, queryCategorizationFailureReason_); + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - if (datastoreResponseReason_ - != com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason - .DATASTORE_RESPONSE_REASON_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, datastoreResponseReason_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getKnowledgeAssistBehavior()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, getIngestedContextReferenceDebugInfo()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getServiceLatency()); + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo)) { - return super.equals(obj); + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo other = - (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) obj; - if (queryGenerationFailureReason_ != other.queryGenerationFailureReason_) return false; - if (queryCategorizationFailureReason_ != other.queryCategorizationFailureReason_) return false; - if (datastoreResponseReason_ != other.datastoreResponseReason_) return false; - if (hasKnowledgeAssistBehavior() != other.hasKnowledgeAssistBehavior()) return false; - if (hasKnowledgeAssistBehavior()) { - if (!getKnowledgeAssistBehavior().equals(other.getKnowledgeAssistBehavior())) return false; + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - if (hasIngestedContextReferenceDebugInfo() != other.hasIngestedContextReferenceDebugInfo()) - return false; - if (hasIngestedContextReferenceDebugInfo()) { - if (!getIngestedContextReferenceDebugInfo() - .equals(other.getIngestedContextReferenceDebugInfo())) return false; + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - if (hasServiceLatency() != other.hasServiceLatency()) return false; - if (hasServiceLatency()) { - if (!getServiceLatency().equals(other.getServiceLatency())) return false; + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUERY_GENERATION_FAILURE_REASON_FIELD_NUMBER; - hash = (53 * hash) + queryGenerationFailureReason_; - hash = (37 * hash) + QUERY_CATEGORIZATION_FAILURE_REASON_FIELD_NUMBER; - hash = (53 * hash) + queryCategorizationFailureReason_; - hash = (37 * hash) + DATASTORE_RESPONSE_REASON_FIELD_NUMBER; - hash = (53 * hash) + datastoreResponseReason_; - if (hasKnowledgeAssistBehavior()) { - hash = (37 * hash) + KNOWLEDGE_ASSIST_BEHAVIOR_FIELD_NUMBER; - hash = (53 * hash) + getKnowledgeAssistBehavior().hashCode(); + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - if (hasIngestedContextReferenceDebugInfo()) { - hash = (37 * hash) + INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER; - hash = (53 * hash) + getIngestedContextReferenceDebugInfo().hashCode(); + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - if (hasServiceLatency()) { - hash = (37 * hash) + SERVICE_LATENCY_FIELD_NUMBER; - hash = (53 * hash) + getServiceLatency().hashCode(); + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
+     * Token usage metadata for query generation.
+     * 
+ * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo.Builder.class); + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + // Construct using + // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.newBuilder() + private Builder() {} - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + promptTokenCount_ = 0; + candidatesTokenCount_ = 0; + totalTokenCount_ = 0; + return this; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance(); + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + result = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.promptTokenCount_ = promptTokenCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.candidatesTokenCount_ = candidatesTokenCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalTokenCount_ = totalTokenCount_; + } + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance()) return this; + if (other.getPromptTokenCount() != 0) { + setPromptTokenCount(other.getPromptTokenCount()); + } + if (other.getCandidatesTokenCount() != 0) { + setCandidatesTokenCount(other.getCandidatesTokenCount()); + } + if (other.getTotalTokenCount() != 0) { + setTotalTokenCount(other.getTotalTokenCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + promptTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + candidatesTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + totalTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } - public static Builder newBuilder( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + private int bitField0_; - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + private int promptTokenCount_; - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * + * + *
+       * The total number of tokens in the prompt.
+       * 
+ * + * int32 prompt_token_count = 1; + * + * @return The promptTokenCount. + */ + @java.lang.Override + public int getPromptTokenCount() { + return promptTokenCount_; + } - /** - * - * - *
-   * Debug information related to Knowledge Assist feature.
-   * 
- * - * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor; - } + /** + * + * + *
+       * The total number of tokens in the prompt.
+       * 
+ * + * int32 prompt_token_count = 1; + * + * @param value The promptTokenCount to set. + * @return This builder for chaining. + */ + public Builder setPromptTokenCount(int value) { - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.class, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.Builder.class); - } + promptTokenCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - // Construct using com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + /** + * + * + *
+       * The total number of tokens in the prompt.
+       * 
+ * + * int32 prompt_token_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearPromptTokenCount() { + bitField0_ = (bitField0_ & ~0x00000001); + promptTokenCount_ = 0; + onChanged(); + return this; + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + private int candidatesTokenCount_; - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetKnowledgeAssistBehaviorFieldBuilder(); - internalGetIngestedContextReferenceDebugInfoFieldBuilder(); - internalGetServiceLatencyFieldBuilder(); + /** + * + * + *
+       * The total number of tokens in the generated candidates.
+       * 
+ * + * int32 candidates_token_count = 2; + * + * @return The candidatesTokenCount. + */ + @java.lang.Override + public int getCandidatesTokenCount() { + return candidatesTokenCount_; } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - queryGenerationFailureReason_ = 0; - queryCategorizationFailureReason_ = 0; - datastoreResponseReason_ = 0; - knowledgeAssistBehavior_ = null; - if (knowledgeAssistBehaviorBuilder_ != null) { - knowledgeAssistBehaviorBuilder_.dispose(); - knowledgeAssistBehaviorBuilder_ = null; - } - ingestedContextReferenceDebugInfo_ = null; - if (ingestedContextReferenceDebugInfoBuilder_ != null) { - ingestedContextReferenceDebugInfoBuilder_.dispose(); - ingestedContextReferenceDebugInfoBuilder_ = null; + /** + * + * + *
+       * The total number of tokens in the generated candidates.
+       * 
+ * + * int32 candidates_token_count = 2; + * + * @param value The candidatesTokenCount to set. + * @return This builder for chaining. + */ + public Builder setCandidatesTokenCount(int value) { + + candidatesTokenCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - serviceLatency_ = null; - if (serviceLatencyBuilder_ != null) { - serviceLatencyBuilder_.dispose(); - serviceLatencyBuilder_ = null; + + /** + * + * + *
+       * The total number of tokens in the generated candidates.
+       * 
+ * + * int32 candidates_token_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearCandidatesTokenCount() { + bitField0_ = (bitField0_ & ~0x00000002); + candidatesTokenCount_ = 0; + onChanged(); + return this; } - return this; - } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor; - } + private int totalTokenCount_; - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDefaultInstance(); - } + /** + * + * + *
+       * The total number of tokens for the entire request.
+       * 
+ * + * int32 total_token_count = 3; + * + * @return The totalTokenCount. + */ + @java.lang.Override + public int getTotalTokenCount() { + return totalTokenCount_; + } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo build() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
+       * The total number of tokens for the entire request.
+       * 
+ * + * int32 total_token_count = 3; + * + * @param value The totalTokenCount to set. + * @return This builder for chaining. + */ + public Builder setTotalTokenCount(int value) { + + totalTokenCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } - return result; - } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo buildPartial() { + /** + * + * + *
+       * The total number of tokens for the entire request.
+       * 
+ * + * int32 total_token_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalTokenCount() { + bitField0_ = (bitField0_ & ~0x00000004); + totalTokenCount_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo(); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryGenerationDebugInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int QUERY_GENERATION_FAILURE_REASON_FIELD_NUMBER = 1; + private int queryGenerationFailureReason_ = 0; + + /** + * + * + *
+   * Reason for query generation.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The enum numeric value on the wire for queryGenerationFailureReason. + */ + @java.lang.Override + public int getQueryGenerationFailureReasonValue() { + return queryGenerationFailureReason_; + } + + /** + * + * + *
+   * Reason for query generation.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The queryGenerationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + getQueryGenerationFailureReason() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + result = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationFailureReason.forNumber(queryGenerationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .UNRECOGNIZED + : result; + } + + public static final int QUERY_CATEGORIZATION_FAILURE_REASON_FIELD_NUMBER = 2; + private int queryCategorizationFailureReason_ = 0; + + /** + * + * + *
+   * Reason for query categorization.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The enum numeric value on the wire for queryCategorizationFailureReason. + */ + @java.lang.Override + public int getQueryCategorizationFailureReasonValue() { + return queryCategorizationFailureReason_; + } + + /** + * + * + *
+   * Reason for query categorization.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The queryCategorizationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason + getQueryCategorizationFailureReason() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + result = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.forNumber(queryCategorizationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.UNRECOGNIZED + : result; + } + + public static final int DATASTORE_RESPONSE_REASON_FIELD_NUMBER = 3; + private int datastoreResponseReason_ = 0; + + /** + * + * + *
+   * Response reason from datastore which indicates data serving status or
+   * answer quality degradation.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + @java.lang.Override + public int getDatastoreResponseReasonValue() { + return datastoreResponseReason_; + } + + /** + * + * + *
+   * Response reason from datastore which indicates data serving status or
+   * answer quality degradation.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The datastoreResponseReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason getDatastoreResponseReason() { + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason result = + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.forNumber( + datastoreResponseReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.UNRECOGNIZED + : result; + } + + public static final int KNOWLEDGE_ASSIST_BEHAVIOR_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + knowledgeAssistBehavior_; + + /** + * + * + *
+   * Configured behaviors for Knowedge Assist.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return Whether the knowledgeAssistBehavior field is set. + */ + @java.lang.Override + public boolean hasKnowledgeAssistBehavior() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Configured behaviors for Knowedge Assist.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return The knowledgeAssistBehavior. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getKnowledgeAssistBehavior() { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } + + /** + * + * + *
+   * Configured behaviors for Knowedge Assist.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder + getKnowledgeAssistBehaviorOrBuilder() { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } + + public static final int INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER = 5; + private com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + ingestedContextReferenceDebugInfo_; + + /** + * + * + *
+   * Information about parameters ingested for search knowledge.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + @java.lang.Override + public boolean hasIngestedContextReferenceDebugInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Information about parameters ingested for search knowledge.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo() { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + + /** + * + * + *
+   * Information about parameters ingested for search knowledge.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder() { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + + public static final int SERVICE_LATENCY_FIELD_NUMBER = 6; + private com.google.cloud.dialogflow.v2beta1.ServiceLatency serviceLatency_; + + /** + * + * + *
+   * The latency of the service.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * + * @return Whether the serviceLatency field is set. + */ + @java.lang.Override + public boolean hasServiceLatency() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * The latency of the service.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * + * @return The serviceLatency. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency() { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + + /** + * + * + *
+   * The latency of the service.
+   * 
+ * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder getServiceLatencyOrBuilder() { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + + public static final int QUERY_GENERATION_DEBUG_INFO_FIELD_NUMBER = 7; + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + queryGenerationDebugInfo_; + + /** + * + * + *
+   * Token usage metadata for query generation.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + * + * @return Whether the queryGenerationDebugInfo field is set. + */ + @java.lang.Override + public boolean hasQueryGenerationDebugInfo() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Token usage metadata for query generation.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + * + * @return The queryGenerationDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getQueryGenerationDebugInfo() { + return queryGenerationDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance() + : queryGenerationDebugInfo_; + } + + /** + * + * + *
+   * Token usage metadata for query generation.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfoOrBuilder + getQueryGenerationDebugInfoOrBuilder() { + return queryGenerationDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance() + : queryGenerationDebugInfo_; + } + + public static final int CES_DEBUG_INFO_FIELD_NUMBER = 8; + private com.google.protobuf.Struct cesDebugInfo_; + + /** + * + * + *
+   * Debug information from CES runtime API.
+   * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + * + * @return Whether the cesDebugInfo field is set. + */ + @java.lang.Override + public boolean hasCesDebugInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Debug information from CES runtime API.
+   * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + * + * @return The cesDebugInfo. + */ + @java.lang.Override + public com.google.protobuf.Struct getCesDebugInfo() { + return cesDebugInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : cesDebugInfo_; + } + + /** + * + * + *
+   * Debug information from CES runtime API.
+   * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCesDebugInfoOrBuilder() { + return cesDebugInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : cesDebugInfo_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (queryGenerationFailureReason_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, queryGenerationFailureReason_); + } + if (queryCategorizationFailureReason_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, queryCategorizationFailureReason_); + } + if (datastoreResponseReason_ + != com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason + .DATASTORE_RESPONSE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, datastoreResponseReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getKnowledgeAssistBehavior()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getIngestedContextReferenceDebugInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getServiceLatency()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(7, getQueryGenerationDebugInfo()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(8, getCesDebugInfo()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (queryGenerationFailureReason_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(1, queryGenerationFailureReason_); + } + if (queryCategorizationFailureReason_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 2, queryCategorizationFailureReason_); + } + if (datastoreResponseReason_ + != com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason + .DATASTORE_RESPONSE_REASON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, datastoreResponseReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getKnowledgeAssistBehavior()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getIngestedContextReferenceDebugInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getServiceLatency()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getQueryGenerationDebugInfo()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCesDebugInfo()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo other = + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) obj; + + if (queryGenerationFailureReason_ != other.queryGenerationFailureReason_) return false; + if (queryCategorizationFailureReason_ != other.queryCategorizationFailureReason_) return false; + if (datastoreResponseReason_ != other.datastoreResponseReason_) return false; + if (hasKnowledgeAssistBehavior() != other.hasKnowledgeAssistBehavior()) return false; + if (hasKnowledgeAssistBehavior()) { + if (!getKnowledgeAssistBehavior().equals(other.getKnowledgeAssistBehavior())) return false; + } + if (hasIngestedContextReferenceDebugInfo() != other.hasIngestedContextReferenceDebugInfo()) + return false; + if (hasIngestedContextReferenceDebugInfo()) { + if (!getIngestedContextReferenceDebugInfo() + .equals(other.getIngestedContextReferenceDebugInfo())) return false; + } + if (hasServiceLatency() != other.hasServiceLatency()) return false; + if (hasServiceLatency()) { + if (!getServiceLatency().equals(other.getServiceLatency())) return false; + } + if (hasQueryGenerationDebugInfo() != other.hasQueryGenerationDebugInfo()) return false; + if (hasQueryGenerationDebugInfo()) { + if (!getQueryGenerationDebugInfo().equals(other.getQueryGenerationDebugInfo())) return false; + } + if (hasCesDebugInfo() != other.hasCesDebugInfo()) return false; + if (hasCesDebugInfo()) { + if (!getCesDebugInfo().equals(other.getCesDebugInfo())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_GENERATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + queryGenerationFailureReason_; + hash = (37 * hash) + QUERY_CATEGORIZATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + queryCategorizationFailureReason_; + hash = (37 * hash) + DATASTORE_RESPONSE_REASON_FIELD_NUMBER; + hash = (53 * hash) + datastoreResponseReason_; + if (hasKnowledgeAssistBehavior()) { + hash = (37 * hash) + KNOWLEDGE_ASSIST_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + getKnowledgeAssistBehavior().hashCode(); + } + if (hasIngestedContextReferenceDebugInfo()) { + hash = (37 * hash) + INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getIngestedContextReferenceDebugInfo().hashCode(); + } + if (hasServiceLatency()) { + hash = (37 * hash) + SERVICE_LATENCY_FIELD_NUMBER; + hash = (53 * hash) + getServiceLatency().hashCode(); + } + if (hasQueryGenerationDebugInfo()) { + hash = (37 * hash) + QUERY_GENERATION_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getQueryGenerationDebugInfo().hashCode(); + } + if (hasCesDebugInfo()) { + hash = (37 * hash) + CES_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCesDebugInfo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Debug information related to Knowledge Assist feature.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetKnowledgeAssistBehaviorFieldBuilder(); + internalGetIngestedContextReferenceDebugInfoFieldBuilder(); + internalGetServiceLatencyFieldBuilder(); + internalGetQueryGenerationDebugInfoFieldBuilder(); + internalGetCesDebugInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + queryGenerationFailureReason_ = 0; + queryCategorizationFailureReason_ = 0; + datastoreResponseReason_ = 0; + knowledgeAssistBehavior_ = null; + if (knowledgeAssistBehaviorBuilder_ != null) { + knowledgeAssistBehaviorBuilder_.dispose(); + knowledgeAssistBehaviorBuilder_ = null; + } + ingestedContextReferenceDebugInfo_ = null; + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + ingestedContextReferenceDebugInfoBuilder_.dispose(); + ingestedContextReferenceDebugInfoBuilder_ = null; + } + serviceLatency_ = null; + if (serviceLatencyBuilder_ != null) { + serviceLatencyBuilder_.dispose(); + serviceLatencyBuilder_ = null; + } + queryGenerationDebugInfo_ = null; + if (queryGenerationDebugInfoBuilder_ != null) { + queryGenerationDebugInfoBuilder_.dispose(); + queryGenerationDebugInfoBuilder_ = null; + } + cesDebugInfo_ = null; + if (cesDebugInfoBuilder_ != null) { + cesDebugInfoBuilder_.dispose(); + cesDebugInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo buildPartial() { com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo result = new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo(this); if (bitField0_ != 0) { @@ -3703,197 +4635,664 @@ public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo buildPartial return result; } - private void buildPartial0( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.queryGenerationFailureReason_ = queryGenerationFailureReason_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.queryCategorizationFailureReason_ = queryCategorizationFailureReason_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.datastoreResponseReason_ = datastoreResponseReason_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.knowledgeAssistBehavior_ = - knowledgeAssistBehaviorBuilder_ == null - ? knowledgeAssistBehavior_ - : knowledgeAssistBehaviorBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.ingestedContextReferenceDebugInfo_ = - ingestedContextReferenceDebugInfoBuilder_ == null - ? ingestedContextReferenceDebugInfo_ - : ingestedContextReferenceDebugInfoBuilder_.build(); - to_bitField0_ |= 0x00000002; + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.queryGenerationFailureReason_ = queryGenerationFailureReason_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queryCategorizationFailureReason_ = queryCategorizationFailureReason_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.datastoreResponseReason_ = datastoreResponseReason_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.knowledgeAssistBehavior_ = + knowledgeAssistBehaviorBuilder_ == null + ? knowledgeAssistBehavior_ + : knowledgeAssistBehaviorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.ingestedContextReferenceDebugInfo_ = + ingestedContextReferenceDebugInfoBuilder_ == null + ? ingestedContextReferenceDebugInfo_ + : ingestedContextReferenceDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.serviceLatency_ = + serviceLatencyBuilder_ == null ? serviceLatency_ : serviceLatencyBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.queryGenerationDebugInfo_ = + queryGenerationDebugInfoBuilder_ == null + ? queryGenerationDebugInfo_ + : queryGenerationDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.cesDebugInfo_ = + cesDebugInfoBuilder_ == null ? cesDebugInfo_ : cesDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDefaultInstance()) + return this; + if (other.queryGenerationFailureReason_ != 0) { + setQueryGenerationFailureReasonValue(other.getQueryGenerationFailureReasonValue()); + } + if (other.queryCategorizationFailureReason_ != 0) { + setQueryCategorizationFailureReasonValue(other.getQueryCategorizationFailureReasonValue()); + } + if (other.datastoreResponseReason_ != 0) { + setDatastoreResponseReasonValue(other.getDatastoreResponseReasonValue()); + } + if (other.hasKnowledgeAssistBehavior()) { + mergeKnowledgeAssistBehavior(other.getKnowledgeAssistBehavior()); + } + if (other.hasIngestedContextReferenceDebugInfo()) { + mergeIngestedContextReferenceDebugInfo(other.getIngestedContextReferenceDebugInfo()); + } + if (other.hasServiceLatency()) { + mergeServiceLatency(other.getServiceLatency()); + } + if (other.hasQueryGenerationDebugInfo()) { + mergeQueryGenerationDebugInfo(other.getQueryGenerationDebugInfo()); + } + if (other.hasCesDebugInfo()) { + mergeCesDebugInfo(other.getCesDebugInfo()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + queryGenerationFailureReason_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + queryCategorizationFailureReason_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + datastoreResponseReason_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetKnowledgeAssistBehaviorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetServiceLatencyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetQueryGenerationDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetCesDebugInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int queryGenerationFailureReason_ = 0; + + /** + * + * + *
+     * Reason for query generation.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The enum numeric value on the wire for queryGenerationFailureReason. + */ + @java.lang.Override + public int getQueryGenerationFailureReasonValue() { + return queryGenerationFailureReason_; + } + + /** + * + * + *
+     * Reason for query generation.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @param value The enum numeric value on the wire for queryGenerationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryGenerationFailureReasonValue(int value) { + queryGenerationFailureReason_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Reason for query generation.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The queryGenerationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + getQueryGenerationFailureReason() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + result = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationFailureReason.forNumber(queryGenerationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationFailureReason.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Reason for query generation.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @param value The queryGenerationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryGenerationFailureReason( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + value) { + if (value == null) { + throw new NullPointerException(); } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.serviceLatency_ = - serviceLatencyBuilder_ == null ? serviceLatency_ : serviceLatencyBuilder_.build(); - to_bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; + queryGenerationFailureReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Reason for query generation.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearQueryGenerationFailureReason() { + bitField0_ = (bitField0_ & ~0x00000001); + queryGenerationFailureReason_ = 0; + onChanged(); + return this; + } + + private int queryCategorizationFailureReason_ = 0; + + /** + * + * + *
+     * Reason for query categorization.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The enum numeric value on the wire for queryCategorizationFailureReason. + */ + @java.lang.Override + public int getQueryCategorizationFailureReasonValue() { + return queryCategorizationFailureReason_; + } + + /** + * + * + *
+     * Reason for query categorization.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @param value The enum numeric value on the wire for queryCategorizationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryCategorizationFailureReasonValue(int value) { + queryCategorizationFailureReason_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Reason for query categorization.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The queryCategorizationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason + getQueryCategorizationFailureReason() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + result = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.forNumber(queryCategorizationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Reason for query categorization.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @param value The queryCategorizationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryCategorizationFailureReason( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason + value) { + if (value == null) { + throw new NullPointerException(); } - result.bitField0_ |= to_bitField0_; + bitField0_ |= 0x00000002; + queryCategorizationFailureReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Reason for query categorization.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearQueryCategorizationFailureReason() { + bitField0_ = (bitField0_ & ~0x00000002); + queryCategorizationFailureReason_ = 0; + onChanged(); + return this; + } + + private int datastoreResponseReason_ = 0; + + /** + * + * + *
+     * Response reason from datastore which indicates data serving status or
+     * answer quality degradation.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + @java.lang.Override + public int getDatastoreResponseReasonValue() { + return datastoreResponseReason_; + } + + /** + * + * + *
+     * Response reason from datastore which indicates data serving status or
+     * answer quality degradation.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @param value The enum numeric value on the wire for datastoreResponseReason to set. + * @return This builder for chaining. + */ + public Builder setDatastoreResponseReasonValue(int value) { + datastoreResponseReason_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } + /** + * + * + *
+     * Response reason from datastore which indicates data serving status or
+     * answer quality degradation.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The datastoreResponseReason. + */ @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) { - return mergeFrom((com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) other); - } else { - super.mergeFrom(other); - return this; - } + public com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason + getDatastoreResponseReason() { + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason result = + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.forNumber( + datastoreResponseReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.UNRECOGNIZED + : result; } - public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo other) { - if (other - == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDefaultInstance()) - return this; - if (other.queryGenerationFailureReason_ != 0) { - setQueryGenerationFailureReasonValue(other.getQueryGenerationFailureReasonValue()); - } - if (other.queryCategorizationFailureReason_ != 0) { - setQueryCategorizationFailureReasonValue(other.getQueryCategorizationFailureReasonValue()); - } - if (other.datastoreResponseReason_ != 0) { - setDatastoreResponseReasonValue(other.getDatastoreResponseReasonValue()); - } - if (other.hasKnowledgeAssistBehavior()) { - mergeKnowledgeAssistBehavior(other.getKnowledgeAssistBehavior()); - } - if (other.hasIngestedContextReferenceDebugInfo()) { - mergeIngestedContextReferenceDebugInfo(other.getIngestedContextReferenceDebugInfo()); - } - if (other.hasServiceLatency()) { - mergeServiceLatency(other.getServiceLatency()); + /** + * + * + *
+     * Response reason from datastore which indicates data serving status or
+     * answer quality degradation.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @param value The datastoreResponseReason to set. + * @return This builder for chaining. + */ + public Builder setDatastoreResponseReason( + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason value) { + if (value == null) { + throw new NullPointerException(); } - this.mergeUnknownFields(other.getUnknownFields()); + bitField0_ |= 0x00000004; + datastoreResponseReason_ = value.getNumber(); onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+     * Response reason from datastore which indicates data serving status or
+     * answer quality degradation.
+     * 
+ * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearDatastoreResponseReason() { + bitField0_ = (bitField0_ & ~0x00000004); + datastoreResponseReason_ = 0; + onChanged(); + return this; } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + knowledgeAssistBehavior_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder> + knowledgeAssistBehaviorBuilder_; + + /** + * + * + *
+     * Configured behaviors for Knowedge Assist.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return Whether the knowledgeAssistBehavior field is set. + */ + public boolean hasKnowledgeAssistBehavior() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Configured behaviors for Knowedge Assist.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return The knowledgeAssistBehavior. + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getKnowledgeAssistBehavior() { + if (knowledgeAssistBehaviorBuilder_ == null) { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } else { + return knowledgeAssistBehaviorBuilder_.getMessage(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - queryGenerationFailureReason_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - queryCategorizationFailureReason_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - datastoreResponseReason_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage( - internalGetKnowledgeAssistBehaviorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage( - internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage( - internalGetServiceLatencyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally + } + + /** + * + * + *
+     * Configured behaviors for Knowedge Assist.
+     * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public Builder setKnowledgeAssistBehavior( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + value) { + if (knowledgeAssistBehaviorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + knowledgeAssistBehavior_ = value; + } else { + knowledgeAssistBehaviorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); return this; } - private int bitField0_; - - private int queryGenerationFailureReason_ = 0; - /** * * *
-     * Reason for query generation.
+     * Configured behaviors for Knowedge Assist.
      * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; * - * - * @return The enum numeric value on the wire for queryGenerationFailureReason. */ - @java.lang.Override - public int getQueryGenerationFailureReasonValue() { - return queryGenerationFailureReason_; + public Builder setKnowledgeAssistBehavior( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior.Builder + builderForValue) { + if (knowledgeAssistBehaviorBuilder_ == null) { + knowledgeAssistBehavior_ = builderForValue.build(); + } else { + knowledgeAssistBehaviorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; } /** * * *
-     * Reason for query generation.
+     * Configured behaviors for Knowedge Assist.
      * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; * - * - * @param value The enum numeric value on the wire for queryGenerationFailureReason to set. - * @return This builder for chaining. */ - public Builder setQueryGenerationFailureReasonValue(int value) { - queryGenerationFailureReason_ = value; - bitField0_ |= 0x00000001; - onChanged(); + public Builder mergeKnowledgeAssistBehavior( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + value) { + if (knowledgeAssistBehaviorBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && knowledgeAssistBehavior_ != null + && knowledgeAssistBehavior_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior.getDefaultInstance()) { + getKnowledgeAssistBehaviorBuilder().mergeFrom(value); + } else { + knowledgeAssistBehavior_ = value; + } + } else { + knowledgeAssistBehaviorBuilder_.mergeFrom(value); + } + if (knowledgeAssistBehavior_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } @@ -3901,165 +5300,172 @@ public Builder setQueryGenerationFailureReasonValue(int value) { * * *
-     * Reason for query generation.
+     * Configured behaviors for Knowedge Assist.
      * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; * - * - * @return The queryGenerationFailureReason. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason - getQueryGenerationFailureReason() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason - result = - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryGenerationFailureReason.forNumber(queryGenerationFailureReason_); - return result == null - ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryGenerationFailureReason.UNRECOGNIZED - : result; + public Builder clearKnowledgeAssistBehavior() { + bitField0_ = (bitField0_ & ~0x00000008); + knowledgeAssistBehavior_ = null; + if (knowledgeAssistBehaviorBuilder_ != null) { + knowledgeAssistBehaviorBuilder_.dispose(); + knowledgeAssistBehaviorBuilder_ = null; + } + onChanged(); + return this; } /** * * *
-     * Reason for query generation.
+     * Configured behaviors for Knowedge Assist.
      * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; * - * - * @param value The queryGenerationFailureReason to set. - * @return This builder for chaining. */ - public Builder setQueryGenerationFailureReason( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason - value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - queryGenerationFailureReason_ = value.getNumber(); + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder + getKnowledgeAssistBehaviorBuilder() { + bitField0_ |= 0x00000008; onChanged(); - return this; + return internalGetKnowledgeAssistBehaviorFieldBuilder().getBuilder(); } /** * * *
-     * Reason for query generation.
+     * Configured behaviors for Knowedge Assist.
      * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; * - * - * @return This builder for chaining. */ - public Builder clearQueryGenerationFailureReason() { - bitField0_ = (bitField0_ & ~0x00000001); - queryGenerationFailureReason_ = 0; - onChanged(); - return this; + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder + getKnowledgeAssistBehaviorOrBuilder() { + if (knowledgeAssistBehaviorBuilder_ != null) { + return knowledgeAssistBehaviorBuilder_.getMessageOrBuilder(); + } else { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } } - private int queryCategorizationFailureReason_ = 0; - /** * * *
-     * Reason for query categorization.
+     * Configured behaviors for Knowedge Assist.
      * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; * - * - * @return The enum numeric value on the wire for queryCategorizationFailureReason. */ - @java.lang.Override - public int getQueryCategorizationFailureReasonValue() { - return queryCategorizationFailureReason_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder> + internalGetKnowledgeAssistBehaviorFieldBuilder() { + if (knowledgeAssistBehaviorBuilder_ == null) { + knowledgeAssistBehaviorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder>( + getKnowledgeAssistBehavior(), getParentForChildren(), isClean()); + knowledgeAssistBehavior_ = null; + } + return knowledgeAssistBehaviorBuilder_; } + private com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + ingestedContextReferenceDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder> + ingestedContextReferenceDebugInfoBuilder_; + /** * * *
-     * Reason for query categorization.
+     * Information about parameters ingested for search knowledge.
      * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; * * - * @param value The enum numeric value on the wire for queryCategorizationFailureReason to set. - * @return This builder for chaining. + * @return Whether the ingestedContextReferenceDebugInfo field is set. */ - public Builder setQueryCategorizationFailureReasonValue(int value) { - queryCategorizationFailureReason_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + public boolean hasIngestedContextReferenceDebugInfo() { + return ((bitField0_ & 0x00000010) != 0); } /** * * *
-     * Reason for query categorization.
+     * Information about parameters ingested for search knowledge.
      * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; * * - * @return The queryCategorizationFailureReason. + * @return The ingestedContextReferenceDebugInfo. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryCategorizationFailureReason - getQueryCategorizationFailureReason() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason - result = - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryCategorizationFailureReason.forNumber(queryCategorizationFailureReason_); - return result == null - ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryCategorizationFailureReason.UNRECOGNIZED - : result; + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo() { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } else { + return ingestedContextReferenceDebugInfoBuilder_.getMessage(); + } } /** * * *
-     * Reason for query categorization.
+     * Information about parameters ingested for search knowledge.
      * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; * - * - * @param value The queryCategorizationFailureReason to set. - * @return This builder for chaining. */ - public Builder setQueryCategorizationFailureReason( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryCategorizationFailureReason - value) { - if (value == null) { - throw new NullPointerException(); + public Builder setIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo value) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ingestedContextReferenceDebugInfo_ = value; + } else { + ingestedContextReferenceDebugInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; - queryCategorizationFailureReason_ = value.getNumber(); + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -4068,59 +5474,77 @@ public Builder setQueryCategorizationFailureReason( * * *
-     * Reason for query categorization.
+     * Information about parameters ingested for search knowledge.
      * 
* * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; * - * - * @return This builder for chaining. */ - public Builder clearQueryCategorizationFailureReason() { - bitField0_ = (bitField0_ & ~0x00000002); - queryCategorizationFailureReason_ = 0; + public Builder setIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder + builderForValue) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + ingestedContextReferenceDebugInfo_ = builderForValue.build(); + } else { + ingestedContextReferenceDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; onChanged(); return this; } - private int datastoreResponseReason_ = 0; - /** * * *
-     * Response reason from datastore which indicates data serving status or
-     * answer quality degradation.
+     * Information about parameters ingested for search knowledge.
      * 
* - * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; - * - * - * @return The enum numeric value on the wire for datastoreResponseReason. + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * */ - @java.lang.Override - public int getDatastoreResponseReasonValue() { - return datastoreResponseReason_; + public Builder mergeIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo value) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && ingestedContextReferenceDebugInfo_ != null + && ingestedContextReferenceDebugInfo_ + != com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance()) { + getIngestedContextReferenceDebugInfoBuilder().mergeFrom(value); + } else { + ingestedContextReferenceDebugInfo_ = value; + } + } else { + ingestedContextReferenceDebugInfoBuilder_.mergeFrom(value); + } + if (ingestedContextReferenceDebugInfo_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; } /** * * *
-     * Response reason from datastore which indicates data serving status or
-     * answer quality degradation.
+     * Information about parameters ingested for search knowledge.
      * 
* - * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; * - * - * @param value The enum numeric value on the wire for datastoreResponseReason to set. - * @return This builder for chaining. */ - public Builder setDatastoreResponseReasonValue(int value) { - datastoreResponseReason_ = value; - bitField0_ |= 0x00000004; + public Builder clearIngestedContextReferenceDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000010); + ingestedContextReferenceDebugInfo_ = null; + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + ingestedContextReferenceDebugInfoBuilder_.dispose(); + ingestedContextReferenceDebugInfoBuilder_ = null; + } onChanged(); return this; } @@ -4129,120 +5553,111 @@ public Builder setDatastoreResponseReasonValue(int value) { * * *
-     * Response reason from datastore which indicates data serving status or
-     * answer quality degradation.
+     * Information about parameters ingested for search knowledge.
      * 
* - * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; * - * - * @return The datastoreResponseReason. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason - getDatastoreResponseReason() { - com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason result = - com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.forNumber( - datastoreResponseReason_); - return result == null - ? com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.UNRECOGNIZED - : result; + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder + getIngestedContextReferenceDebugInfoBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(); } /** * * *
-     * Response reason from datastore which indicates data serving status or
-     * answer quality degradation.
+     * Information about parameters ingested for search knowledge.
      * 
* - * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; * - * - * @param value The datastoreResponseReason to set. - * @return This builder for chaining. */ - public Builder setDatastoreResponseReason( - com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder() { + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + return ingestedContextReferenceDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance() + : ingestedContextReferenceDebugInfo_; } - bitField0_ |= 0x00000004; - datastoreResponseReason_ = value.getNumber(); - onChanged(); - return this; } /** * * *
-     * Response reason from datastore which indicates data serving status or
-     * answer quality degradation.
+     * Information about parameters ingested for search knowledge.
      * 
* - * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; * - * - * @return This builder for chaining. */ - public Builder clearDatastoreResponseReason() { - bitField0_ = (bitField0_ & ~0x00000004); - datastoreResponseReason_ = 0; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder> + internalGetIngestedContextReferenceDebugInfoFieldBuilder() { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + ingestedContextReferenceDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder>( + getIngestedContextReferenceDebugInfo(), getParentForChildren(), isClean()); + ingestedContextReferenceDebugInfo_ = null; + } + return ingestedContextReferenceDebugInfoBuilder_; } - private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - knowledgeAssistBehavior_; + private com.google.cloud.dialogflow.v2beta1.ServiceLatency serviceLatency_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - .Builder, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .KnowledgeAssistBehaviorOrBuilder> - knowledgeAssistBehaviorBuilder_; + com.google.cloud.dialogflow.v2beta1.ServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder> + serviceLatencyBuilder_; /** * * *
-     * Configured behaviors for Knowedge Assist.
+     * The latency of the service.
      * 
* - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; * - * @return Whether the knowledgeAssistBehavior field is set. + * @return Whether the serviceLatency field is set. */ - public boolean hasKnowledgeAssistBehavior() { - return ((bitField0_ & 0x00000008) != 0); + public boolean hasServiceLatency() { + return ((bitField0_ & 0x00000020) != 0); } /** * * *
-     * Configured behaviors for Knowedge Assist.
+     * The latency of the service.
      * 
* - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; * - * @return The knowledgeAssistBehavior. + * @return The serviceLatency. */ - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - getKnowledgeAssistBehavior() { - if (knowledgeAssistBehaviorBuilder_ == null) { - return knowledgeAssistBehavior_ == null - ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - .getDefaultInstance() - : knowledgeAssistBehavior_; + public com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency() { + if (serviceLatencyBuilder_ == null) { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; } else { - return knowledgeAssistBehaviorBuilder_.getMessage(); + return serviceLatencyBuilder_.getMessage(); } } @@ -4250,25 +5665,21 @@ public boolean hasKnowledgeAssistBehavior() { * * *
-     * Configured behaviors for Knowedge Assist.
+     * The latency of the service.
      * 
* - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; */ - public Builder setKnowledgeAssistBehavior( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - value) { - if (knowledgeAssistBehaviorBuilder_ == null) { + public Builder setServiceLatency(com.google.cloud.dialogflow.v2beta1.ServiceLatency value) { + if (serviceLatencyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - knowledgeAssistBehavior_ = value; + serviceLatency_ = value; } else { - knowledgeAssistBehaviorBuilder_.setMessage(value); + serviceLatencyBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4277,22 +5688,19 @@ public Builder setKnowledgeAssistBehavior( * * *
-     * Configured behaviors for Knowedge Assist.
+     * The latency of the service.
      * 
* - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; */ - public Builder setKnowledgeAssistBehavior( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior.Builder - builderForValue) { - if (knowledgeAssistBehaviorBuilder_ == null) { - knowledgeAssistBehavior_ = builderForValue.build(); + public Builder setServiceLatency( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder builderForValue) { + if (serviceLatencyBuilder_ == null) { + serviceLatency_ = builderForValue.build(); } else { - knowledgeAssistBehaviorBuilder_.setMessage(builderForValue.build()); + serviceLatencyBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4301,31 +5709,26 @@ public Builder setKnowledgeAssistBehavior( * * *
-     * Configured behaviors for Knowedge Assist.
+     * The latency of the service.
      * 
* - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; */ - public Builder mergeKnowledgeAssistBehavior( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - value) { - if (knowledgeAssistBehaviorBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && knowledgeAssistBehavior_ != null - && knowledgeAssistBehavior_ - != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .KnowledgeAssistBehavior.getDefaultInstance()) { - getKnowledgeAssistBehaviorBuilder().mergeFrom(value); + public Builder mergeServiceLatency(com.google.cloud.dialogflow.v2beta1.ServiceLatency value) { + if (serviceLatencyBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && serviceLatency_ != null + && serviceLatency_ + != com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance()) { + getServiceLatencyBuilder().mergeFrom(value); } else { - knowledgeAssistBehavior_ = value; + serviceLatency_ = value; } } else { - knowledgeAssistBehaviorBuilder_.mergeFrom(value); + serviceLatencyBuilder_.mergeFrom(value); } - if (knowledgeAssistBehavior_ != null) { - bitField0_ |= 0x00000008; + if (serviceLatency_ != null) { + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -4335,19 +5738,17 @@ public Builder mergeKnowledgeAssistBehavior( * * *
-     * Configured behaviors for Knowedge Assist.
+     * The latency of the service.
      * 
* - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; */ - public Builder clearKnowledgeAssistBehavior() { - bitField0_ = (bitField0_ & ~0x00000008); - knowledgeAssistBehavior_ = null; - if (knowledgeAssistBehaviorBuilder_ != null) { - knowledgeAssistBehaviorBuilder_.dispose(); - knowledgeAssistBehaviorBuilder_ = null; + public Builder clearServiceLatency() { + bitField0_ = (bitField0_ & ~0x00000020); + serviceLatency_ = null; + if (serviceLatencyBuilder_ != null) { + serviceLatencyBuilder_.dispose(); + serviceLatencyBuilder_ = null; } onChanged(); return this; @@ -4357,42 +5758,34 @@ public Builder clearKnowledgeAssistBehavior() { * * *
-     * Configured behaviors for Knowedge Assist.
+     * The latency of the service.
      * 
* - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; */ - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - .Builder - getKnowledgeAssistBehaviorBuilder() { - bitField0_ |= 0x00000008; + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder getServiceLatencyBuilder() { + bitField0_ |= 0x00000020; onChanged(); - return internalGetKnowledgeAssistBehaviorFieldBuilder().getBuilder(); + return internalGetServiceLatencyFieldBuilder().getBuilder(); } /** * * *
-     * Configured behaviors for Knowedge Assist.
+     * The latency of the service.
      * 
* - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; */ - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .KnowledgeAssistBehaviorOrBuilder - getKnowledgeAssistBehaviorOrBuilder() { - if (knowledgeAssistBehaviorBuilder_ != null) { - return knowledgeAssistBehaviorBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder + getServiceLatencyOrBuilder() { + if (serviceLatencyBuilder_ != null) { + return serviceLatencyBuilder_.getMessageOrBuilder(); } else { - return knowledgeAssistBehavior_ == null - ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - .getDefaultInstance() - : knowledgeAssistBehavior_; + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; } } @@ -4400,82 +5793,77 @@ public Builder clearKnowledgeAssistBehavior() { * * *
-     * Configured behaviors for Knowedge Assist.
+     * The latency of the service.
      * 
* - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - .Builder, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .KnowledgeAssistBehaviorOrBuilder> - internalGetKnowledgeAssistBehaviorFieldBuilder() { - if (knowledgeAssistBehaviorBuilder_ == null) { - knowledgeAssistBehaviorBuilder_ = + com.google.cloud.dialogflow.v2beta1.ServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder> + internalGetServiceLatencyFieldBuilder() { + if (serviceLatencyBuilder_ == null) { + serviceLatencyBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .KnowledgeAssistBehavior, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - .Builder, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .KnowledgeAssistBehaviorOrBuilder>( - getKnowledgeAssistBehavior(), getParentForChildren(), isClean()); - knowledgeAssistBehavior_ = null; + com.google.cloud.dialogflow.v2beta1.ServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder>( + getServiceLatency(), getParentForChildren(), isClean()); + serviceLatency_ = null; } - return knowledgeAssistBehaviorBuilder_; + return serviceLatencyBuilder_; } - private com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo - ingestedContextReferenceDebugInfo_; + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + queryGenerationDebugInfo_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder> - ingestedContextReferenceDebugInfoBuilder_; + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfoOrBuilder> + queryGenerationDebugInfoBuilder_; /** * * *
-     * Information about parameters ingested for search knowledge.
+     * Token usage metadata for query generation.
      * 
* * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; * * - * @return Whether the ingestedContextReferenceDebugInfo field is set. + * @return Whether the queryGenerationDebugInfo field is set. */ - public boolean hasIngestedContextReferenceDebugInfo() { - return ((bitField0_ & 0x00000010) != 0); + public boolean hasQueryGenerationDebugInfo() { + return ((bitField0_ & 0x00000040) != 0); } /** * * *
-     * Information about parameters ingested for search knowledge.
+     * Token usage metadata for query generation.
      * 
* * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; * * - * @return The ingestedContextReferenceDebugInfo. + * @return The queryGenerationDebugInfo. */ - public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo - getIngestedContextReferenceDebugInfo() { - if (ingestedContextReferenceDebugInfoBuilder_ == null) { - return ingestedContextReferenceDebugInfo_ == null - ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getQueryGenerationDebugInfo() { + if (queryGenerationDebugInfoBuilder_ == null) { + return queryGenerationDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo .getDefaultInstance() - : ingestedContextReferenceDebugInfo_; + : queryGenerationDebugInfo_; } else { - return ingestedContextReferenceDebugInfoBuilder_.getMessage(); + return queryGenerationDebugInfoBuilder_.getMessage(); } } @@ -4483,24 +5871,25 @@ public boolean hasIngestedContextReferenceDebugInfo() { * * *
-     * Information about parameters ingested for search knowledge.
+     * Token usage metadata for query generation.
      * 
* * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; * */ - public Builder setIngestedContextReferenceDebugInfo( - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo value) { - if (ingestedContextReferenceDebugInfoBuilder_ == null) { + public Builder setQueryGenerationDebugInfo( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + value) { + if (queryGenerationDebugInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ingestedContextReferenceDebugInfo_ = value; + queryGenerationDebugInfo_ = value; } else { - ingestedContextReferenceDebugInfoBuilder_.setMessage(value); + queryGenerationDebugInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4509,22 +5898,23 @@ public Builder setIngestedContextReferenceDebugInfo( * * *
-     * Information about parameters ingested for search knowledge.
+     * Token usage metadata for query generation.
      * 
* * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; * */ - public Builder setIngestedContextReferenceDebugInfo( - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder + public Builder setQueryGenerationDebugInfo( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .Builder builderForValue) { - if (ingestedContextReferenceDebugInfoBuilder_ == null) { - ingestedContextReferenceDebugInfo_ = builderForValue.build(); + if (queryGenerationDebugInfoBuilder_ == null) { + queryGenerationDebugInfo_ = builderForValue.build(); } else { - ingestedContextReferenceDebugInfoBuilder_.setMessage(builderForValue.build()); + queryGenerationDebugInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4533,30 +5923,31 @@ public Builder setIngestedContextReferenceDebugInfo( * * *
-     * Information about parameters ingested for search knowledge.
+     * Token usage metadata for query generation.
      * 
* * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; * */ - public Builder mergeIngestedContextReferenceDebugInfo( - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo value) { - if (ingestedContextReferenceDebugInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && ingestedContextReferenceDebugInfo_ != null - && ingestedContextReferenceDebugInfo_ - != com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo - .getDefaultInstance()) { - getIngestedContextReferenceDebugInfoBuilder().mergeFrom(value); + public Builder mergeQueryGenerationDebugInfo( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + value) { + if (queryGenerationDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && queryGenerationDebugInfo_ != null + && queryGenerationDebugInfo_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo.getDefaultInstance()) { + getQueryGenerationDebugInfoBuilder().mergeFrom(value); } else { - ingestedContextReferenceDebugInfo_ = value; + queryGenerationDebugInfo_ = value; } } else { - ingestedContextReferenceDebugInfoBuilder_.mergeFrom(value); + queryGenerationDebugInfoBuilder_.mergeFrom(value); } - if (ingestedContextReferenceDebugInfo_ != null) { - bitField0_ |= 0x00000010; + if (queryGenerationDebugInfo_ != null) { + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -4566,19 +5957,19 @@ public Builder mergeIngestedContextReferenceDebugInfo( * * *
-     * Information about parameters ingested for search knowledge.
+     * Token usage metadata for query generation.
      * 
* * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; * */ - public Builder clearIngestedContextReferenceDebugInfo() { - bitField0_ = (bitField0_ & ~0x00000010); - ingestedContextReferenceDebugInfo_ = null; - if (ingestedContextReferenceDebugInfoBuilder_ != null) { - ingestedContextReferenceDebugInfoBuilder_.dispose(); - ingestedContextReferenceDebugInfoBuilder_ = null; + public Builder clearQueryGenerationDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000040); + queryGenerationDebugInfo_ = null; + if (queryGenerationDebugInfoBuilder_ != null) { + queryGenerationDebugInfoBuilder_.dispose(); + queryGenerationDebugInfoBuilder_ = null; } onChanged(); return this; @@ -4588,40 +5979,42 @@ public Builder clearIngestedContextReferenceDebugInfo() { * * *
-     * Information about parameters ingested for search knowledge.
+     * Token usage metadata for query generation.
      * 
* * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; * */ - public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder - getIngestedContextReferenceDebugInfoBuilder() { - bitField0_ |= 0x00000010; + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .Builder + getQueryGenerationDebugInfoBuilder() { + bitField0_ |= 0x00000040; onChanged(); - return internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(); + return internalGetQueryGenerationDebugInfoFieldBuilder().getBuilder(); } /** * * *
-     * Information about parameters ingested for search knowledge.
+     * Token usage metadata for query generation.
      * 
* * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; * */ - public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder - getIngestedContextReferenceDebugInfoOrBuilder() { - if (ingestedContextReferenceDebugInfoBuilder_ != null) { - return ingestedContextReferenceDebugInfoBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfoOrBuilder + getQueryGenerationDebugInfoOrBuilder() { + if (queryGenerationDebugInfoBuilder_ != null) { + return queryGenerationDebugInfoBuilder_.getMessageOrBuilder(); } else { - return ingestedContextReferenceDebugInfo_ == null - ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + return queryGenerationDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo .getDefaultInstance() - : ingestedContextReferenceDebugInfo_; + : queryGenerationDebugInfo_; } } @@ -4629,70 +6022,75 @@ public Builder clearIngestedContextReferenceDebugInfo() { * * *
-     * Information about parameters ingested for search knowledge.
+     * Token usage metadata for query generation.
      * 
* * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder> - internalGetIngestedContextReferenceDebugInfoFieldBuilder() { - if (ingestedContextReferenceDebugInfoBuilder_ == null) { - ingestedContextReferenceDebugInfoBuilder_ = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfoOrBuilder> + internalGetQueryGenerationDebugInfoFieldBuilder() { + if (queryGenerationDebugInfoBuilder_ == null) { + queryGenerationDebugInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder>( - getIngestedContextReferenceDebugInfo(), getParentForChildren(), isClean()); - ingestedContextReferenceDebugInfo_ = null; + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfoOrBuilder>( + getQueryGenerationDebugInfo(), getParentForChildren(), isClean()); + queryGenerationDebugInfo_ = null; } - return ingestedContextReferenceDebugInfoBuilder_; + return queryGenerationDebugInfoBuilder_; } - private com.google.cloud.dialogflow.v2beta1.ServiceLatency serviceLatency_; + private com.google.protobuf.Struct cesDebugInfo_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.ServiceLatency, - com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, - com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder> - serviceLatencyBuilder_; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + cesDebugInfoBuilder_; /** * * *
-     * The latency of the service.
+     * Debug information from CES runtime API.
      * 
* - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * .google.protobuf.Struct ces_debug_info = 8; * - * @return Whether the serviceLatency field is set. + * @return Whether the cesDebugInfo field is set. */ - public boolean hasServiceLatency() { - return ((bitField0_ & 0x00000020) != 0); + public boolean hasCesDebugInfo() { + return ((bitField0_ & 0x00000080) != 0); } /** * * *
-     * The latency of the service.
+     * Debug information from CES runtime API.
      * 
* - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * .google.protobuf.Struct ces_debug_info = 8; * - * @return The serviceLatency. + * @return The cesDebugInfo. */ - public com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency() { - if (serviceLatencyBuilder_ == null) { - return serviceLatency_ == null - ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() - : serviceLatency_; + public com.google.protobuf.Struct getCesDebugInfo() { + if (cesDebugInfoBuilder_ == null) { + return cesDebugInfo_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : cesDebugInfo_; } else { - return serviceLatencyBuilder_.getMessage(); + return cesDebugInfoBuilder_.getMessage(); } } @@ -4700,21 +6098,21 @@ public com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency() { * * *
-     * The latency of the service.
+     * Debug information from CES runtime API.
      * 
* - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * .google.protobuf.Struct ces_debug_info = 8; */ - public Builder setServiceLatency(com.google.cloud.dialogflow.v2beta1.ServiceLatency value) { - if (serviceLatencyBuilder_ == null) { + public Builder setCesDebugInfo(com.google.protobuf.Struct value) { + if (cesDebugInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - serviceLatency_ = value; + cesDebugInfo_ = value; } else { - serviceLatencyBuilder_.setMessage(value); + cesDebugInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4723,19 +6121,18 @@ public Builder setServiceLatency(com.google.cloud.dialogflow.v2beta1.ServiceLate * * *
-     * The latency of the service.
+     * Debug information from CES runtime API.
      * 
* - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * .google.protobuf.Struct ces_debug_info = 8; */ - public Builder setServiceLatency( - com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder builderForValue) { - if (serviceLatencyBuilder_ == null) { - serviceLatency_ = builderForValue.build(); + public Builder setCesDebugInfo(com.google.protobuf.Struct.Builder builderForValue) { + if (cesDebugInfoBuilder_ == null) { + cesDebugInfo_ = builderForValue.build(); } else { - serviceLatencyBuilder_.setMessage(builderForValue.build()); + cesDebugInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4744,26 +6141,25 @@ public Builder setServiceLatency( * * *
-     * The latency of the service.
+     * Debug information from CES runtime API.
      * 
* - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * .google.protobuf.Struct ces_debug_info = 8; */ - public Builder mergeServiceLatency(com.google.cloud.dialogflow.v2beta1.ServiceLatency value) { - if (serviceLatencyBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && serviceLatency_ != null - && serviceLatency_ - != com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance()) { - getServiceLatencyBuilder().mergeFrom(value); + public Builder mergeCesDebugInfo(com.google.protobuf.Struct value) { + if (cesDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && cesDebugInfo_ != null + && cesDebugInfo_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCesDebugInfoBuilder().mergeFrom(value); } else { - serviceLatency_ = value; + cesDebugInfo_ = value; } } else { - serviceLatencyBuilder_.mergeFrom(value); + cesDebugInfoBuilder_.mergeFrom(value); } - if (serviceLatency_ != null) { - bitField0_ |= 0x00000020; + if (cesDebugInfo_ != null) { + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -4773,17 +6169,17 @@ public Builder mergeServiceLatency(com.google.cloud.dialogflow.v2beta1.ServiceLa * * *
-     * The latency of the service.
+     * Debug information from CES runtime API.
      * 
* - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * .google.protobuf.Struct ces_debug_info = 8; */ - public Builder clearServiceLatency() { - bitField0_ = (bitField0_ & ~0x00000020); - serviceLatency_ = null; - if (serviceLatencyBuilder_ != null) { - serviceLatencyBuilder_.dispose(); - serviceLatencyBuilder_ = null; + public Builder clearCesDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000080); + cesDebugInfo_ = null; + if (cesDebugInfoBuilder_ != null) { + cesDebugInfoBuilder_.dispose(); + cesDebugInfoBuilder_ = null; } onChanged(); return this; @@ -4793,34 +6189,33 @@ public Builder clearServiceLatency() { * * *
-     * The latency of the service.
+     * Debug information from CES runtime API.
      * 
* - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * .google.protobuf.Struct ces_debug_info = 8; */ - public com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder getServiceLatencyBuilder() { - bitField0_ |= 0x00000020; + public com.google.protobuf.Struct.Builder getCesDebugInfoBuilder() { + bitField0_ |= 0x00000080; onChanged(); - return internalGetServiceLatencyFieldBuilder().getBuilder(); + return internalGetCesDebugInfoFieldBuilder().getBuilder(); } /** * * *
-     * The latency of the service.
+     * Debug information from CES runtime API.
      * 
* - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * .google.protobuf.Struct ces_debug_info = 8; */ - public com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder - getServiceLatencyOrBuilder() { - if (serviceLatencyBuilder_ != null) { - return serviceLatencyBuilder_.getMessageOrBuilder(); + public com.google.protobuf.StructOrBuilder getCesDebugInfoOrBuilder() { + if (cesDebugInfoBuilder_ != null) { + return cesDebugInfoBuilder_.getMessageOrBuilder(); } else { - return serviceLatency_ == null - ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() - : serviceLatency_; + return cesDebugInfo_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : cesDebugInfo_; } } @@ -4828,26 +6223,26 @@ public com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder getServiceLate * * *
-     * The latency of the service.
+     * Debug information from CES runtime API.
      * 
* - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * .google.protobuf.Struct ces_debug_info = 8; */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.ServiceLatency, - com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, - com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder> - internalGetServiceLatencyFieldBuilder() { - if (serviceLatencyBuilder_ == null) { - serviceLatencyBuilder_ = + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetCesDebugInfoFieldBuilder() { + if (cesDebugInfoBuilder_ == null) { + cesDebugInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.ServiceLatency, - com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, - com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder>( - getServiceLatency(), getParentForChildren(), isClean()); - serviceLatency_ = null; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCesDebugInfo(), getParentForChildren(), isClean()); + cesDebugInfo_ = null; } - return serviceLatencyBuilder_; + return cesDebugInfoBuilder_; } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfoOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfoOrBuilder.java index 152900bb067e..3f930a806ca1 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfoOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfoOrBuilder.java @@ -244,4 +244,86 @@ public interface KnowledgeAssistDebugInfoOrBuilder * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; */ com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder getServiceLatencyOrBuilder(); + + /** + * + * + *
+   * Token usage metadata for query generation.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + * + * @return Whether the queryGenerationDebugInfo field is set. + */ + boolean hasQueryGenerationDebugInfo(); + + /** + * + * + *
+   * Token usage metadata for query generation.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + * + * @return The queryGenerationDebugInfo. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getQueryGenerationDebugInfo(); + + /** + * + * + *
+   * Token usage metadata for query generation.
+   * 
+ * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfoOrBuilder + getQueryGenerationDebugInfoOrBuilder(); + + /** + * + * + *
+   * Debug information from CES runtime API.
+   * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + * + * @return Whether the cesDebugInfo field is set. + */ + boolean hasCesDebugInfo(); + + /** + * + * + *
+   * Debug information from CES runtime API.
+   * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + * + * @return The cesDebugInfo. + */ + com.google.protobuf.Struct getCesDebugInfo(); + + /** + * + * + *
+   * Debug information from CES runtime API.
+   * 
+ * + * .google.protobuf.Struct ces_debug_info = 8; + */ + com.google.protobuf.StructOrBuilder getCesDebugInfoOrBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java index 7e25b70ee5cc..4ab092572273 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java @@ -56,11 +56,12 @@ public enum OutputAudioEncoding implements com.google.protobuf.ProtocolMessageEn * * *
-   * MP3 audio at 32kbps.
+   * MP3 audio at 64kbps.
    * 
* - * OUTPUT_AUDIO_ENCODING_MP3 = 2; + * OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; */ + @java.lang.Deprecated OUTPUT_AUDIO_ENCODING_MP3(2), /** * @@ -145,12 +146,12 @@ public enum OutputAudioEncoding implements com.google.protobuf.ProtocolMessageEn * * *
-   * MP3 audio at 32kbps.
+   * MP3 audio at 64kbps.
    * 
* - * OUTPUT_AUDIO_ENCODING_MP3 = 2; + * OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; */ - public static final int OUTPUT_AUDIO_ENCODING_MP3_VALUE = 2; + @java.lang.Deprecated public static final int OUTPUT_AUDIO_ENCODING_MP3_VALUE = 2; /** * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Participant.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Participant.java index 1879bcc7ce8a..044d9164902f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Participant.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Participant.java @@ -647,8 +647,8 @@ public com.google.cloud.dialogflow.v2beta1.Participant.Role getRole() { * * 2. If you set this field in * [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * @@ -660,6 +660,11 @@ public com.google.cloud.dialogflow.v2beta1.Participant.Role getRole() { * personalization. For example, Dialogflow can use it to provide personalized * smart reply suggestions for this user. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -703,8 +708,8 @@ public java.lang.String getObfuscatedExternalUserId() { * * 2. If you set this field in * [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * @@ -716,6 +721,11 @@ public java.lang.String getObfuscatedExternalUserId() { * personalization. For example, Dialogflow can use it to provide personalized * smart reply suggestions for this user. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -1694,8 +1704,8 @@ public Builder clearRole() { * * 2. If you set this field in * [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * @@ -1707,6 +1717,11 @@ public Builder clearRole() { * personalization. For example, Dialogflow can use it to provide personalized * smart reply suggestions for this user. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -1750,8 +1765,8 @@ public java.lang.String getObfuscatedExternalUserId() { * * 2. If you set this field in * [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * @@ -1763,6 +1778,11 @@ public java.lang.String getObfuscatedExternalUserId() { * personalization. For example, Dialogflow can use it to provide personalized * smart reply suggestions for this user. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -1806,8 +1826,8 @@ public com.google.protobuf.ByteString getObfuscatedExternalUserIdBytes() { * * 2. If you set this field in * [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * @@ -1819,6 +1839,11 @@ public com.google.protobuf.ByteString getObfuscatedExternalUserIdBytes() { * personalization. For example, Dialogflow can use it to provide personalized * smart reply suggestions for this user. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -1861,8 +1886,8 @@ public Builder setObfuscatedExternalUserId(java.lang.String value) { * * 2. If you set this field in * [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * @@ -1874,6 +1899,11 @@ public Builder setObfuscatedExternalUserId(java.lang.String value) { * personalization. For example, Dialogflow can use it to provide personalized * smart reply suggestions for this user. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -1912,8 +1942,8 @@ public Builder clearObfuscatedExternalUserId() { * * 2. If you set this field in * [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * @@ -1925,6 +1955,11 @@ public Builder clearObfuscatedExternalUserId() { * personalization. For example, Dialogflow can use it to provide personalized * smart reply suggestions for this user. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantOrBuilder.java index 212e25aeb52d..a02d6497f55b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantOrBuilder.java @@ -105,8 +105,8 @@ public interface ParticipantOrBuilder * * 2. If you set this field in * [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * @@ -118,6 +118,11 @@ public interface ParticipantOrBuilder * personalization. For example, Dialogflow can use it to provide personalized * smart reply suggestions for this user. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -150,8 +155,8 @@ public interface ParticipantOrBuilder * * 2. If you set this field in * [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * @@ -163,6 +168,11 @@ public interface ParticipantOrBuilder * personalization. For example, Dialogflow can use it to provide personalized * smart reply suggestions for this user. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java index e4c78d9777d9..e0a5af0a5102 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java @@ -300,6 +300,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -308,6 +312,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -324,6 +336,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -340,6 +356,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponses_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponses_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Input_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -356,6 +380,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_TurnComplete_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_TurnComplete_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCall_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCall_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCalls_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCalls_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -796,22 +828,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016latest_message\030\002 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\031\n" + "\014context_size\030\003 \001(\005B\003\340A\001\022%\n" - + "\030previous_suggested_query\030\004 \001(\tB\003\340A\001\"\254\001\n" + + "\030previous_suggested_query\030\004 \001(\tB\003\340A\001\"\265\002\n" + "\036SuggestKnowledgeAssistResponse\022\\\n" + "\027knowledge_assist_answer\030\001" + " \001(\01326.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswerB\003\340A\003\022\026\n" + "\016latest_message\030\002 \001(\t\022\024\n" - + "\014context_size\030\003 \001(\005\"\303\005\n" + + "\014context_size\030\003 \001(\005\022\206\001\n" + + "\"additional_suggested_query_results\030\004" + + " \003(\0132U.google.cloud.dialogflow.v2beta1.K" + + "nowledgeAssistAnswer.AdditionalSuggestedQueryResultB\003\340A\001\"\303\005\n" + "!IngestedContextReferenceDebugInfo\022\037\n" + "\027project_not_allowlisted\030\001 \001(\010\022#\n" + "\033context_reference_retrieved\030\002 \001(\010\022\205\001\n" - + "\036ingested_parameters_debug_info\030\003 \003(\0132].google.cl" - + "oud.dialogflow.v2beta1.IngestedContextRe" - + "ferenceDebugInfo.IngestedParameterDebugInfo\032\317\003\n" + + "\036ingested_parameters_debug_info\030\003" + + " \003(\0132].google.cloud.dialogflow.v2beta1." + + "IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo\032\317\003\n" + "\032IngestedParameterDebugInfo\022\021\n" + "\tparameter\030\001 \001(\t\022\207\001\n" - + "\020ingestion_status\030\002 \001(\0162m.google.cloud.dialogflow.v2beta1.Inges" - + "tedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus\"\223\002\n" + + "\020ingestion_status\030\002 \001(\0162m.google.cloud.dialogf" + + "low.v2beta1.IngestedContextReferenceDebu" + + "gInfo.IngestedParameterDebugInfo.IngestionStatus\"\223\002\n" + "\017IngestionStatus\022 \n" + "\034INGESTION_STATUS_UNSPECIFIED\020\000\022\036\n" + "\032INGESTION_STATUS_SUCCEEDED\020\001\022*\n" @@ -821,28 +857,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037INGESTION_STATUS_INVALID_FORMAT\020\005\022&\n" + "\"INGESTION_STATUS_LANGUAGE_MISMATCH\020\006\"\234\002\n" + "\016ServiceLatency\022j\n" - + "\032internal_service_latencies\030\001" - + " \003(\0132F.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency\032\235\001\n" + + "\032internal_service_latencies\030\001 \003(\0132F.google.cloud.dia" + + "logflow.v2beta1.ServiceLatency.InternalServiceLatency\032\235\001\n" + "\026InternalServiceLatency\022\014\n" - + "\004step\030\001 \001(\t\022\022\n" - + "\n" + + "\004step\030\001 \001(\t\022\022\n\n" + "latency_ms\030\002 \001(\002\022.\n\n" + "start_time\030\003 \001(\0132\032.google.protobuf.Timestamp\0221\n\r" - + "complete_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\222\020\n" + + "complete_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\257\022\n" + "\030KnowledgeAssistDebugInfo\022\177\n" - + "\037query_generation_failure_reason\030\001 \001(\0162V.google.clou" - + "d.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason\022\207\001\n" - + "#query_categorization_failure_reason\030\002 \001(\016" - + "2Z.google.cloud.dialogflow.v2beta1.Knowl" - + "edgeAssistDebugInfo.QueryCategorizationFailureReason\022[\n" - + "\031datastore_response_reason\030\003" - + " \001(\01628.google.cloud.dialogflow.v2beta1.DatastoreResponseReason\022t\n" - + "\031knowledge_assist_behavior\030\004 \001(\0132Q.google.cloud.dial" - + "ogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior\022q\n" - + "%ingested_context_reference_debug_info\030\005 \001(\0132B.google." - + "cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo\022H\n" - + "\017service_latency\030\006 " - + "\001(\0132/.google.cloud.dialogflow.v2beta1.ServiceLatency\032\271\005\n" + + "\037query_generation_failure_reason\030\001 " + + "\001(\0162V.google.cloud.dialogflow.v2beta1.Kn" + + "owledgeAssistDebugInfo.QueryGenerationFailureReason\022\207\001\n" + + "#query_categorization_failure_reason\030\002 \001(\0162Z.google.cloud.dialogf" + + "low.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason\022[\n" + + "\031datastore_response_reason\030\003 \001(\01628.google.cloud." + + "dialogflow.v2beta1.DatastoreResponseReason\022t\n" + + "\031knowledge_assist_behavior\030\004 \001(\0132Q." + + "google.cloud.dialogflow.v2beta1.Knowledg" + + "eAssistDebugInfo.KnowledgeAssistBehavior\022q\n" + + "%ingested_context_reference_debug_info\030\005" + + " \001(\0132B.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo\022H\n" + + "\017service_latency\030\006" + + " \001(\0132/.google.cloud.dialogflow.v2beta1.ServiceLatency\022w\n" + + "\033query_generation_debug_info\030\007 \001(\0132R.google.clou" + + "d.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo\022/\n" + + "\016ces_debug_info\030\010 \001(\0132\027.google.protobuf.Struct\032", + "\271\005\n" + "\027KnowledgeAssistBehavior\022%\n" + "\035answer_generation_rewriter_on\030\001 \001(\010\022\"\n" + "\032end_user_metadata_included\030\002 \001(\010\022\031\n" @@ -852,8 +892,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031previous_queries_included\030\007 \001(\010\022\036\n" + "\026use_translated_message\030\010 \001(\010\022&\n" + "\036use_custom_safety_filter_level\030\t \001(\010\0223\n" - + "+convers", - "ation_transcript_has_mixed_languages\030\n" + + "+conversation_transcript_has_mixed_languages\030\n" + " \001(\010\0220\n" + "(query_generation_agent_language_mismatch\030\013 \001(\010\0223\n" + "+query_generation_end_user_language_mismatch\030\014 \001(\010\022%\n" @@ -863,7 +902,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036query_contained_search_context\030\017 \001(\010\022.\n" + "&invalid_items_query_suggestion_skipped\030\020 \001(\010\022+\n" + "#primary_query_redacted_and_replaced\030\021 \001(\010\022%\n" - + "\035appended_search_context_count\030\022 \001(\005\"\317\003\n" + + "\035appended_search_context_count\030\022 \001(\005\032q\n" + + "\030QueryGenerationDebugInfo\022\032\n" + + "\022prompt_token_count\030\001 \001(\005\022\036\n" + + "\026candidates_token_count\030\002 \001(\005\022\031\n" + + "\021total_token_count\030\003 \001(\005\"\317\003\n" + "\034QueryGenerationFailureReason\022/\n" + "+QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED\020\000\022!\n" + "\035QUERY_GENERATION_OUT_OF_QUOTA\020\001\022\033\n" @@ -882,86 +925,122 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED\020\000\022\'\n" + "#QUERY_CATEGORIZATION_INVALID_CONFIG\020\001\022)\n" + "%QUERY_CATEGORIZATION_RESULT_NOT_FOUND\020\002\022\037\n" - + "\033QUERY_CATEGORIZATION_FAILED\020\003\"\224\007\n" + + "\033QUERY_CATEGORIZATION_FAILED\020\003\"\370\014\n" + "\025KnowledgeAssistAnswer\022^\n" - + "\017suggested_query\030\001 \001(\0132E.g" - + "oogle.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery\022f\n" - + "\026suggested_query_answer\030\002 \001(\0132F.google.cloud.dialo" - + "gflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" + + "\017suggested_query\030\001 \001(\0132E.google.cloud.dialog" + + "flow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery\022f\n" + + "\026suggested_query_answer\030\002 \001(" + + "\0132F.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" + "answer_record\030\003 \001(\t\022^\n" - + "\033knowledge_assist_debug_info\030\007 \001(\01329.google" - + ".cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo\032$\n" + + "\033knowledge_assist_debug_info\030\007" + + " \001(\01329.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo\032\316\001\n" + "\016SuggestedQuery\022\022\n\n" - + "query_text\030\001 \001(\t\032\225\004\n" + + "query_text\030\001 \001(\t\022q\n" + + "\017search_contexts\030\004 \003(\0132S.google.cloud.dialogfl" + + "ow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContextB\003\340A\001\0325\n\r" + + "SearchContext\022\020\n" + + "\003key\030\001 \001(\tB\003\340A\001\022\022\n" + + "\005value\030\002 \001(\tB\003\340A\001\032\314\001\n" + + "\036AdditionalSuggestedQueryResult\022c\n" + + "\017suggested_query\030\001 \001(\0132E.google.cloud.dia" + + "logflow.v2beta1.KnowledgeAssistAnswer.SuggestedQueryB\003\340A\003\022E\n\r" + + "answer_record\030\005 \001(\tB.\340A\003\372A(\n" + + "&dialogflow.googleapis.com/AnswerRecord\032\377\006\n" + "\017KnowledgeAnswer\022\023\n" + "\013answer_text\030\001 \001(\t\022f\n\n" + "faq_source\030\003 \001(\0132P.google.c" + "loud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022t\n" + "\021generative_source\030\004 \001(\0132W.google.cloud.dial" - + "ogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\032\035\n" + + "ogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\022r\n" + + "\017playbook_source\030\007 \001(\0132W.google.cloud.dialogfl" + + "ow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\022j\n" + + "\014event_source\030\010 \001(\0132R.google.cloud.dialogflow.v2be" + + "ta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSourceH\000\032\035\n" + "\tFaqSource\022\020\n" + "\010question\030\002 \001(\t\032\345\001\n" + "\020GenerativeSource\022q\n" - + "\010snippets\030\001 \003(\0132_.google.cloud.dia" - + "logflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + + "\010snippets\030\001 \003(\0132_.google.cloud.dialogflow.v2beta1." + + "KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + "\007Snippet\022\013\n" + "\003uri\030\002 \001(\t\022\014\n" + "\004text\030\003 \001(\t\022\r\n" + "\005title\030\004 \001(\t\022)\n" - + "\010metadata\030\005 \001(\0132\027.google.protobuf.StructB\010\n" - + "\006source\"\327\n\n" + + "\010metadata\030\005 \001(\0132\027.google.protobuf.Struct\032\207\001\n" + + "\013EventSource\022\r\n" + + "\005event\030\001 \001(\t\022i\n" + + "\010snippets\030\002 \001(\0132W.google.cloud.dialogflow.v2beta" + + "1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceB\010\n" + + "\006source\"\300\r\n" + "\"BidiStreamingAnalyzeContentRequest\022\\\n" - + "\006config\030\001 \001(\0132" - + "J.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.ConfigH\000\022Z\n" - + "\005input\030\002 \001(\0132I.google.cloud.dialogflow.v" - + "2beta1.BidiStreamingAnalyzeContentRequest.InputH\000\032\352\005\n" + + "\006config\030\001 \001(\0132J.google.cloud.dialogflow.v2beta1.Bidi" + + "StreamingAnalyzeContentRequest.ConfigH\000\022Z\n" + + "\005input\030\002 \001(\0132I.google.cloud.dialogflow" + + ".v2beta1.BidiStreamingAnalyzeContentRequest.InputH\000\032\352\005\n" + "\006Config\022B\n" + "\013participant\030\001 \001(\tB-\340A\002\372A\'\n" + "%dialogflow.googleapis.com/Participant\022}\n" - + "\024voice_session_config\030\002 \001(\0132].google.cloud.dialogflow.v2beta1.BidiStr" - + "eamingAnalyzeContentRequest.Config.VoiceSessionConfigH\000\022A\n" + + "\024voice_session_config\030\002 \001(\0132].google.cloud.dialogflow.v2beta1.BidiS" + + "treamingAnalyzeContentRequest.Config.VoiceSessionConfigH\000\022A\n" + " initial_virtual_agent_parameters\030\003" + " \001(\0132\027.google.protobuf.Struct\022\\\n" + "\"initial_virtual_agent_query_params\030\004" + " \001(\01320.google.cloud.dialogflow.v2beta1.QueryParameters\032\361\002\n" + "\022VoiceSessionConfig\022Q\n" - + "\024input_audio_encoding\030\001 \001(\0162..google.c" - + "loud.dialogflow.v2beta1.AudioEncodingB\003\340A\002\022*\n" + + "\024input_audio_encoding\030\001 \001(\0162..google" + + ".cloud.dialogflow.v2beta1.AudioEncodingB\003\340A\002\022*\n" + "\035input_audio_sample_rate_hertz\030\002 \001(\005B\003\340A\002\022X\n" - + "\025output_audio_encoding\030\003 \001(\01624." - + "google.cloud.dialogflow.v2beta1.OutputAudioEncodingB\003\340A\002\022+\n" + + "\025output_audio_encoding\030\003 \001(\0162" + + "4.google.cloud.dialogflow.v2beta1.OutputAudioEncodingB\003\340A\002\022+\n" + "\036output_audio_sample_rate_hertz\030\004 \001(\005B\003\340A\002\022+\n" + "\036enable_cx_proactive_processing\030\005 \001(\010B\003\340A\001\022(\n" + "\033enable_streaming_synthesize\030\027 \001(\010B\003\340A\001B\010\n" - + "\006config\032\265\001\n" + + "\006config\032\236\004\n" + "\tTurnInput\022\016\n" + "\004text\030\001 \001(\tH\000\0227\n" + "\006intent\030\002 \001(\tB%\372A\"\n" + " dialogflow.googleapis.com/IntentH\000\022\017\n" + "\005event\030\003 \001(\tH\000\022>\n" + "\030virtual_agent_parameters\030\004" - + " \001(\0132\027.google.protobuf.StructB\003\340A\001B\016\n" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001\022x\n" + + "\016tool_responses\030\005 \001(\0132[.google.cloud.dialogflow.v2beta1.BidiStreaming" + + "AnalyzeContentRequest.TurnInput.ToolResponsesB\003\340A\001\032b\n" + + "\014ToolResponse\022\017\n" + + "\002id\030\001 \001(\tB\003\340A\002\022\021\n" + + "\004tool\030\002 \001(\tB\003\340A\002\022.\n" + + "\010response\030\003" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001\032\210\001\n\r" + + "ToolResponses\022w\n" + + "\016tool_responses\030\001 \003(\0132Z.google.cloud.dialogflow.v2beta1.BidiStreaming" + + "AnalyzeContentRequest.TurnInput.ToolResponseB\003\340A\001B\016\n" + "\014main_content\032\306\001\n" + "\005Input\022\017\n" + "\005audio\030\001 \001(\014H\000\022D\n" - + "\004dtmf\030\002 \001(\01324.google.cloud.d" - + "ialogflow.v2beta1.TelephonyDtmfEventsH\000\022]\n" - + "\004turn\030\003 \001(\0132M.google.cloud.dialogflow." - + "v2beta1.BidiStreamingAnalyzeContentRequest.TurnInputH\000B\007\n" + + "\004dtmf\030\002 \001(\01324.google.clou" + + "d.dialogflow.v2beta1.TelephonyDtmfEventsH\000\022]\n" + + "\004turn\030\003 \001(\0132M.google.cloud.dialogfl" + + "ow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInputH\000B\007\n" + "\005inputB\t\n" - + "\007request\"\345\003\n" + + "\007request\"\210\006\n" + "#BidiStreamingAnalyzeContentResponse\022Y\n" - + "\022recognition_result\030\001 \001(\0132;.google.cloud.di" - + "alogflow.v2beta1.StreamingRecognitionResultH\000\022m\n" - + "\017barge_in_signal\030\002 \001(\0132R.google." - + "cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignalH\000\022[\n" - + "\030analyze_content_response\030\003 \001(\01327.google." - + "cloud.dialogflow.v2beta1.AnalyzeContentResponseH\000\022j\n\r" - + "turn_complete\030\004 \001(\0132Q.googl" - + "e.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnCompleteH\000\032\017\n" - + "\r" + + "\022recognition_result\030\001 \001(\0132;.google.cloud" + + ".dialogflow.v2beta1.StreamingRecognitionResultH\000\022m\n" + + "\017barge_in_signal\030\002 \001(\0132R.google.cloud.dialogflow.v2beta1.BidiStreamin" + + "gAnalyzeContentResponse.BargeInSignalH\000\022[\n" + + "\030analyze_content_response\030\003 \001(\01327.goog" + + "le.cloud.dialogflow.v2beta1.AnalyzeContentResponseH\000\022j\n\r" + + "turn_complete\030\004 \001(\0132Q.google.cloud.dialogflow.v2beta1.BidiStream" + + "ingAnalyzeContentResponse.TurnCompleteH\000\022d\n\n" + + "tool_calls\030\005 \001(\0132N.google.cloud.dial" + + "ogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCallsH\000\032\017\n\r" + "BargeInSignal\032\016\n" - + "\014TurnCompleteB\n\n" + + "\014TurnComplete\032K\n" + + "\010ToolCall\022\n\n" + + "\002id\030\001 \001(\t\022\014\n" + + "\004tool\030\002 \001(\t\022%\n" + + "\004args\030\003 \001(\0132\027.google.protobuf.Struct\032n\n" + + "\tToolCalls\022a\n\n" + + "tool_calls\030\001 \003(\0132M.google.cloud.dialogflow.v2beta1." + + "BidiStreamingAnalyzeContentResponse.ToolCallB\n\n" + "\010response*\326\002\n" + "\027DatastoreResponseReason\022)\n" + "%DATASTORE_RESPONSE_REASON_UNSPECIFIED\020\000\022\010\n" @@ -975,81 +1054,85 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034ANSWER_GENERATION_RAI_FAILED\020\010\022\"\n" + "\036ANSWER_GENERATION_NOT_GROUNDED\020\t2\262\037\n" + "\014Participants\022\271\002\n" - + "\021CreateParticipant\0229.google.cloud.dialogflow.v2beta1.CreateParticipantRe" - + "quest\032,.google.cloud.dialogflow.v2beta1." - + "Participant\"\272\001\332A\022parent,participant\202\323\344\223\002" - + "\236\001\"9/v2beta1/{parent=projects/*/conversa" - + "tions/*}/participants:\013participantZT\"E/v2beta1/{parent=projects/*/locations/*/co" - + "nversations/*}/participants:\013participant\022\213\002\n" - + "\016GetParticipant\0226.google.cloud.dialogflow.v2beta1.GetParticipantRequest\032,.go" - + "ogle.cloud.dialogflow.v2beta1.Participan" - + "t\"\222\001\332A\004name\202\323\344\223\002\204\001\0229/v2beta1/{name=proje" - + "cts/*/conversations/*/participants/*}ZG\022" - + "E/v2beta1/{name=projects/*/locations/*/conversations/*/participants/*}\022\236\002\n" - + "\020ListParticipants\0228.google.cloud.dialogflow.v2" - + "beta1.ListParticipantsRequest\0329.google.cloud.dialogflow.v2beta1.ListParticipants" - + "Response\"\224\001\332A\006parent\202\323\344\223\002\204\001\0229/v2beta1/{p" - + "arent=projects/*/conversations/*}/participantsZG\022E/v2beta1/{parent=projects/*/lo" - + "cations/*/conversations/*}/participants\022\326\002\n" - + "\021UpdateParticipant\0229.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest" - + "\032,.google.cloud.dialogflow.v2beta1.Parti" - + "cipant\"\327\001\332A\027participant,update_mask\202\323\344\223\002" - + "\266\0012E/v2beta1/{participant.name=projects/" - + "*/conversations/*/participants/*}:\013participantZ`2Q/v2beta1/{participant.name=pro" - + "jects/*/locations/*/conversations/*/participants/*}:\013participant\022\216\003\n" - + "\016AnalyzeContent\0226.google.cloud.dialogflow.v2beta1.An" - + "alyzeContentRequest\0327.google.cloud.dialo" - + "gflow.v2beta1.AnalyzeContentResponse\"\212\002\332" - + "A\026participant,text_input\332A\027participant,a" - + "udio_input\332A\027participant,event_input\202\323\344\223" - + "\002\266\001\"O/v2beta1/{participant=projects/*/co" - + "nversations/*/participants/*}:analyzeContent:\001*Z`\"[/v2beta1/{participant=project" - + "s/*/locations/*/conversations/*/participants/*}:analyzeContent:\001*\022\242\001\n" - + "\027StreamingAnalyzeContent\022?.google.cloud.dialogflow." - + "v2beta1.StreamingAnalyzeContentRequest\032@" - + ".google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse\"\000(\0010\001\022\256\001\n" - + "\033BidiStreamingAnalyzeContent\022C.google.cloud.di" - + "alogflow.v2beta1.BidiStreamingAnalyzeContentRequest\032D.google.cloud.dialogflow.v2" - + "beta1.BidiStreamingAnalyzeContentResponse\"\000(\0010\001\022\335\002\n" - + "\017SuggestArticles\0227.google.cloud.dialogflow.v2beta1.SuggestArticlesReq" - + "uest\0328.google.cloud.dialogflow.v2beta1.S" - + "uggestArticlesResponse\"\326\001\332A\006parent\202\323\344\223\002\306" - + "\001\"W/v2beta1/{parent=projects/*/conversations/*/participants/*}/suggestions:sugge" - + "stArticles:\001*Zh\"c/v2beta1/{parent=projects/*/locations/*/conversations/*/partici" - + "pants/*}/suggestions:suggestArticles:\001*\022\347\002\n" - + "\021SuggestFaqAnswers\0229.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest" - + "\032:.google.cloud.dialogflow.v2beta1.Sugge" - + "stFaqAnswersResponse\"\332\001\332A\006parent\202\323\344\223\002\312\001\"" - + "Y/v2beta1/{parent=projects/*/conversations/*/participants/*}/suggestions:suggest" - + "FaqAnswers:\001*Zj\"e/v2beta1/{parent=projects/*/locations/*/conversations/*/partici" - + "pants/*}/suggestions:suggestFaqAnswers:\001*\022\361\002\n" - + "\023SuggestSmartReplies\022;.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesR" - + "equest\032<.google.cloud.dialogflow.v2beta1" - + ".SuggestSmartRepliesResponse\"\336\001\332A\006parent" - + "\202\323\344\223\002\316\001\"[/v2beta1/{parent=projects/*/con" - + "versations/*/participants/*}/suggestions:suggestSmartReplies:\001*Zl\"g/v2beta1/{par" - + "ent=projects/*/locations/*/conversations" - + "/*/participants/*}/suggestions:suggestSmartReplies:\001*\022\367\002\n" - + "\026SuggestKnowledgeAssist\022>.google.cloud.dialogflow.v2beta1.Sugge" - + "stKnowledgeAssistRequest\032?.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssis" - + "tResponse\"\333\001\202\323\344\223\002\324\001\"^/v2beta1/{parent=pr" - + "ojects/*/conversations/*/participants/*}/suggestions:suggestKnowledgeAssist:\001*Zo" - + "\"j/v2beta1/{parent=projects/*/locations/" - + "*/conversations/*/participants/*}/suggestions:suggestKnowledgeAssist:\001*\022\330\001\n" - + "\017ListSuggestions\0227.google.cloud.dialogflow.v2" - + "beta1.ListSuggestionsRequest\0328.google.cloud.dialogflow.v2beta1.ListSuggestionsRe" - + "sponse\"R\210\002\001\202\323\344\223\002I\022G/v2beta1/{parent=proj" - + "ects/*/conversations/*/participants/*}/suggestions\022\351\001\n" - + "\021CompileSuggestion\0229.google.cloud.dialogflow.v2beta1.CompileSugges" - + "tionRequest\032:.google.cloud.dialogflow.v2" - + "beta1.CompileSuggestionResponse\"]\210\002\001\202\323\344\223" - + "\002T\"O/v2beta1/{parent=projects/*/conversations/*/participants/*}/suggestions:comp" - + "ile:\001*\032x\312A\031dialogflow.googleapis.com\322AYh" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tform,https://www.googleapis.com/auth/dialogflowB\245\001\n" - + "#com.google.cloud.dialogflow.v2beta1B\020ParticipantProtoP\001ZCcloud.goog" - + "le.com/go/dialogflow/apiv2beta1/dialogfl" - + "owpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1b\006proto3" + + "\021CreateParticipant\0229.google.cloud.dialogflow.v2beta1.Creat" + + "eParticipantRequest\032,.google.cloud.dialo" + + "gflow.v2beta1.Participant\"\272\001\332A\022parent,pa" + + "rticipant\202\323\344\223\002\236\001\"9/v2beta1/{parent=proje" + + "cts/*/conversations/*}/participants:\013participantZT\"E/v2beta1/{parent=projects/*/" + + "locations/*/conversations/*}/participants:\013participant\022\213\002\n" + + "\016GetParticipant\0226.google.cloud.dialogflow.v2beta1.GetParticipa" + + "ntRequest\032,.google.cloud.dialogflow.v2be" + + "ta1.Participant\"\222\001\332A\004name\202\323\344\223\002\204\001\0229/v2bet" + + "a1/{name=projects/*/conversations/*/participants/*}ZG\022E/v2beta1/{name=projects/*" + + "/locations/*/conversations/*/participants/*}\022\236\002\n" + + "\020ListParticipants\0228.google.cloud.dialogflow.v2beta1.ListParticipantsRequ" + + "est\0329.google.cloud.dialogflow.v2beta1.Li" + + "stParticipantsResponse\"\224\001\332A\006parent\202\323\344\223\002\204" + + "\001\0229/v2beta1/{parent=projects/*/conversat" + + "ions/*}/participantsZG\022E/v2beta1/{parent" + + "=projects/*/locations/*/conversations/*}/participants\022\326\002\n" + + "\021UpdateParticipant\0229.google.cloud.dialogflow.v2beta1.UpdatePart" + + "icipantRequest\032,.google.cloud.dialogflow" + + ".v2beta1.Participant\"\327\001\332A\027participant,up" + + "date_mask\202\323\344\223\002\266\0012E/v2beta1/{participant." + + "name=projects/*/conversations/*/participants/*}:\013participantZ`2Q/v2beta1/{partic" + + "ipant.name=projects/*/locations/*/conver" + + "sations/*/participants/*}:\013participant\022\216\003\n" + + "\016AnalyzeContent\0226.google.cloud.dialogf" + + "low.v2beta1.AnalyzeContentRequest\0327.google.cloud.dialogflow.v2beta1.AnalyzeConte" + + "ntResponse\"\212\002\332A\026participant,text_input\332A" + + "\027participant,audio_input\332A\027participant,e" + + "vent_input\202\323\344\223\002\266\001\"O/v2beta1/{participant" + + "=projects/*/conversations/*/participants/*}:analyzeContent:\001*Z`\"[/v2beta1/{parti" + + "cipant=projects/*/locations/*/conversati" + + "ons/*/participants/*}:analyzeContent:\001*\022\242\001\n" + + "\027StreamingAnalyzeContent\022?.google.cloud.dialogflow.v2beta1.StreamingAnalyzeCo" + + "ntentRequest\032@.google.cloud.dialogflow.v" + + "2beta1.StreamingAnalyzeContentResponse\"\000(\0010\001\022\256\001\n" + + "\033BidiStreamingAnalyzeContent\022C.google.cloud.dialogflow.v2beta1.BidiStrea" + + "mingAnalyzeContentRequest\032D.google.cloud" + + ".dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse\"\000(\0010\001\022\335\002\n" + + "\017SuggestArticles\0227.google.cloud.dialogflow.v2beta1.Sugg" + + "estArticlesRequest\0328.google.cloud.dialog" + + "flow.v2beta1.SuggestArticlesResponse\"\326\001\332" + + "A\006parent\202\323\344\223\002\306\001\"W/v2beta1/{parent=projec" + + "ts/*/conversations/*/participants/*}/suggestions:suggestArticles:\001*Zh\"c/v2beta1/" + + "{parent=projects/*/locations/*/conversat" + + "ions/*/participants/*}/suggestions:suggestArticles:\001*\022\347\002\n" + + "\021SuggestFaqAnswers\0229.google.cloud.dialogflow.v2beta1.SuggestFaq" + + "AnswersRequest\032:.google.cloud.dialogflow" + + ".v2beta1.SuggestFaqAnswersResponse\"\332\001\332A\006" + + "parent\202\323\344\223\002\312\001\"Y/v2beta1/{parent=projects" + + "/*/conversations/*/participants/*}/suggestions:suggestFaqAnswers:\001*Zj\"e/v2beta1/" + + "{parent=projects/*/locations/*/conversat" + + "ions/*/participants/*}/suggestions:suggestFaqAnswers:\001*\022\361\002\n" + + "\023SuggestSmartReplies\022;.google.cloud.dialogflow.v2beta1.Sugges" + + "tSmartRepliesRequest\032<.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRespon" + + "se\"\336\001\332A\006parent\202\323\344\223\002\316\001\"[/v2beta1/{parent=" + + "projects/*/conversations/*/participants/*}/suggestions:suggestSmartReplies:\001*Zl\"" + + "g/v2beta1/{parent=projects/*/locations/*" + + "/conversations/*/participants/*}/suggestions:suggestSmartReplies:\001*\022\367\002\n" + + "\026SuggestKnowledgeAssist\022>.google.cloud.dialogflow" + + ".v2beta1.SuggestKnowledgeAssistRequest\032?.google.cloud.dialogflow.v2beta1.Suggest" + + "KnowledgeAssistResponse\"\333\001\202\323\344\223\002\324\001\"^/v2be" + + "ta1/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestKnowle" + + "dgeAssist:\001*Zo\"j/v2beta1/{parent=projects/*/locations/*/conversations/*/particip" + + "ants/*}/suggestions:suggestKnowledgeAssist:\001*\022\330\001\n" + + "\017ListSuggestions\0227.google.cloud.dialogflow.v2beta1.ListSuggestionsReque" + + "st\0328.google.cloud.dialogflow.v2beta1.Lis" + + "tSuggestionsResponse\"R\210\002\001\202\323\344\223\002I\022G/v2beta" + + "1/{parent=projects/*/conversations/*/participants/*}/suggestions\022\351\001\n" + + "\021CompileSuggestion\0229.google.cloud.dialogflow.v2beta1" + + ".CompileSuggestionRequest\032:.google.cloud.dialogflow.v2beta1.CompileSuggestionRes" + + "ponse\"]\210\002\001\202\323\344\223\002T\"O/v2beta1/{parent=proje" + + "cts/*/conversations/*/participants/*}/su" + + "ggestions:compile:\001*\032x\312A\031dialogflow.goog" + + "leapis.com\322AYhttps://www.googleapis.com/" + + "auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\245\001\n" + + "#com.google.cloud.dialogflow.v2beta1B\020ParticipantProto" + + "P\001ZCcloud.google.com/go/dialogflow/apiv2" + + "beta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037G" + + "oogle.Cloud.Dialogflow.V2Beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1625,7 +1708,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SuggestKnowledgeAssistResponse_descriptor, new java.lang.String[] { - "KnowledgeAssistAnswer", "LatestMessage", "ContextSize", + "KnowledgeAssistAnswer", + "LatestMessage", + "ContextSize", + "AdditionalSuggestedQueryResults", }); internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_descriptor = getDescriptor().getMessageType(44); @@ -1672,6 +1758,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "KnowledgeAssistBehavior", "IngestedContextReferenceDebugInfo", "ServiceLatency", + "QueryGenerationDebugInfo", + "CesDebugInfo", }); internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor = internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor @@ -1698,6 +1786,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrimaryQueryRedactedAndReplaced", "AppendedSearchContextCount", }); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor + .getNestedType(1); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor, + new java.lang.String[] { + "PromptTokenCount", "CandidatesTokenCount", "TotalTokenCount", + }); internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_descriptor = getDescriptor().getMessageType(47); internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_fieldAccessorTable = @@ -1713,16 +1810,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_descriptor, new java.lang.String[] { - "QueryText", + "QueryText", "SearchContexts", }); - internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_descriptor + .getNestedType(0); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor = internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_descriptor .getNestedType(1); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor, + new java.lang.String[] { + "SuggestedQuery", "AnswerRecord", + }); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_descriptor + .getNestedType(2); internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor, new java.lang.String[] { - "AnswerText", "FaqSource", "GenerativeSource", "Source", + "AnswerText", + "FaqSource", + "GenerativeSource", + "PlaybookSource", + "EventSource", + "Source", }); internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor = internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor @@ -1751,6 +1871,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Uri", "Text", "Title", "Metadata", }); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor + .getNestedType(2); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor, + new java.lang.String[] { + "Event", "Snippets", + }); internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_descriptor = getDescriptor().getMessageType(48); internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_fieldAccessorTable = @@ -1793,7 +1922,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_descriptor, new java.lang.String[] { - "Text", "Intent", "Event", "VirtualAgentParameters", "MainContent", + "Text", "Intent", "Event", "VirtualAgentParameters", "ToolResponses", "MainContent", + }); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponse_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_descriptor + .getNestedType(0); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponse_descriptor, + new java.lang.String[] { + "Id", "Tool", "Response", + }); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponses_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_descriptor + .getNestedType(1); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponses_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponses_descriptor, + new java.lang.String[] { + "ToolResponses", }); internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Input_descriptor = internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_descriptor @@ -1814,6 +1961,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BargeInSignal", "AnalyzeContentResponse", "TurnComplete", + "ToolCalls", "Response", }); internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_BargeInSignal_descriptor = @@ -1830,6 +1978,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_TurnComplete_descriptor, new java.lang.String[] {}); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCall_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_descriptor + .getNestedType(2); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCall_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCall_descriptor, + new java.lang.String[] { + "Id", "Tool", "Args", + }); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCalls_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_descriptor + .getNestedType(3); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCalls_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCalls_descriptor, + new java.lang.String[] { + "ToolCalls", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeAnswer.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeAnswer.java index 9b60449330db..29dd3c4a9110 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeAnswer.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeAnswer.java @@ -123,6 +123,26 @@ public enum AnswerType implements com.google.protobuf.ProtocolMessageEnum { * INTENT = 3; */ INTENT(3), + /** + * + * + *
+     * The answer is from Playbook.
+     * 
+ * + * PLAYBOOK = 4; + */ + PLAYBOOK(4), + /** + * + * + *
+     * The answer is from event.
+     * 
+ * + * EVENT = 5; + */ + EVENT(5), UNRECOGNIZED(-1), ; @@ -180,6 +200,28 @@ public enum AnswerType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INTENT_VALUE = 3; + /** + * + * + *
+     * The answer is from Playbook.
+     * 
+ * + * PLAYBOOK = 4; + */ + public static final int PLAYBOOK_VALUE = 4; + + /** + * + * + *
+     * The answer is from event.
+     * 
+ * + * EVENT = 5; + */ + public static final int EVENT_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -212,6 +254,10 @@ public static AnswerType forNumber(int value) { return GENERATIVE; case 3: return INTENT; + case 4: + return PLAYBOOK; + case 5: + return EVENT; default: return null; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipConfig.java new file mode 100644 index 000000000000..3c897281bdfc --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipConfig.java @@ -0,0 +1,1537 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/conversation_profile.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
+ * Defines the SIP configuration.
+ * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SipConfig} + */ +@com.google.protobuf.Generated +public final class SipConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SipConfig) + SipConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SipConfig"); + } + + // Use SipConfig.newBuilder() to construct. + private SipConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SipConfig() { + copyInboundCallLegHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2beta1_SipConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2beta1_SipConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SipConfig.class, + com.google.cloud.dialogflow.v2beta1.SipConfig.Builder.class); + } + + private int bitField0_; + public static final int CREATE_CONVERSATION_ON_THE_FLY_FIELD_NUMBER = 1; + private boolean createConversationOnTheFly_ = false; + + /** + * + * + *
+   * Asks Dialogflow Telephony to create the conversation provided in the SIP
+   * header on the fly when the call comes in.
+   * 
+ * + * bool create_conversation_on_the_fly = 1; + * + * @return The createConversationOnTheFly. + */ + @java.lang.Override + public boolean getCreateConversationOnTheFly() { + return createConversationOnTheFly_; + } + + public static final int INACTIVE_START_FIELD_NUMBER = 3; + private boolean inactiveStart_ = false; + + /** + * + * + *
+   * Starts the conversation with inactive SDP directives
+   * 
+ * + * bool inactive_start = 3; + * + * @return The inactiveStart. + */ + @java.lang.Override + public boolean getInactiveStart() { + return inactiveStart_; + } + + public static final int MAX_AUDIO_RECORDING_DURATION_FIELD_NUMBER = 4; + private com.google.protobuf.Duration maxAudioRecordingDuration_; + + /** + * + * + *
+   * Max duration for audio recording.
+   * Overrides the default value of 15 min.
+   * Max value is 8 hours.
+   * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return Whether the maxAudioRecordingDuration field is set. + */ + @java.lang.Override + public boolean hasMaxAudioRecordingDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Max duration for audio recording.
+   * Overrides the default value of 15 min.
+   * Max value is 8 hours.
+   * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return The maxAudioRecordingDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getMaxAudioRecordingDuration() { + return maxAudioRecordingDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxAudioRecordingDuration_; + } + + /** + * + * + *
+   * Max duration for audio recording.
+   * Overrides the default value of 15 min.
+   * Max value is 8 hours.
+   * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getMaxAudioRecordingDurationOrBuilder() { + return maxAudioRecordingDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxAudioRecordingDuration_; + } + + public static final int ALLOW_VIRTUAL_AGENT_INTERACTION_FIELD_NUMBER = 5; + private boolean allowVirtualAgentInteraction_ = false; + + /** + * + * + *
+   * Allows interactions with a Dialogflow virtual agent even if the call is
+   * connected for SIPREC purposes.
+   * 
+ * + * bool allow_virtual_agent_interaction = 5; + * + * @return The allowVirtualAgentInteraction. + */ + @java.lang.Override + public boolean getAllowVirtualAgentInteraction() { + return allowVirtualAgentInteraction_; + } + + public static final int KEEP_CONVERSATION_RUNNING_FIELD_NUMBER = 6; + private boolean keepConversationRunning_ = false; + + /** + * + * + *
+   * Keeps the conversation running even if the call is disconnected.
+   * 
+ * + * bool keep_conversation_running = 6; + * + * @return The keepConversationRunning. + */ + @java.lang.Override + public boolean getKeepConversationRunning() { + return keepConversationRunning_; + } + + public static final int COPY_INBOUND_CALL_LEG_HEADERS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList copyInboundCallLegHeaders_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * List of inbound call leg headers to be copied to outbound call legs created
+   * later.
+   * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return A list containing the copyInboundCallLegHeaders. + */ + public com.google.protobuf.ProtocolStringList getCopyInboundCallLegHeadersList() { + return copyInboundCallLegHeaders_; + } + + /** + * + * + *
+   * List of inbound call leg headers to be copied to outbound call legs created
+   * later.
+   * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return The count of copyInboundCallLegHeaders. + */ + public int getCopyInboundCallLegHeadersCount() { + return copyInboundCallLegHeaders_.size(); + } + + /** + * + * + *
+   * List of inbound call leg headers to be copied to outbound call legs created
+   * later.
+   * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the element to return. + * @return The copyInboundCallLegHeaders at the given index. + */ + public java.lang.String getCopyInboundCallLegHeaders(int index) { + return copyInboundCallLegHeaders_.get(index); + } + + /** + * + * + *
+   * List of inbound call leg headers to be copied to outbound call legs created
+   * later.
+   * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the value to return. + * @return The bytes of the copyInboundCallLegHeaders at the given index. + */ + public com.google.protobuf.ByteString getCopyInboundCallLegHeadersBytes(int index) { + return copyInboundCallLegHeaders_.getByteString(index); + } + + public static final int IGNORE_REINVITE_MEDIA_DIRECTION_FIELD_NUMBER = 9; + private boolean ignoreReinviteMediaDirection_ = false; + + /** + * + * + *
+   * Ignores any media direction in the reINVITE SDP offer. Reuse the previous
+   * media direction.
+   * 
+ * + * bool ignore_reinvite_media_direction = 9; + * + * @return The ignoreReinviteMediaDirection. + */ + @java.lang.Override + public boolean getIgnoreReinviteMediaDirection() { + return ignoreReinviteMediaDirection_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (createConversationOnTheFly_ != false) { + output.writeBool(1, createConversationOnTheFly_); + } + if (inactiveStart_ != false) { + output.writeBool(3, inactiveStart_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getMaxAudioRecordingDuration()); + } + if (allowVirtualAgentInteraction_ != false) { + output.writeBool(5, allowVirtualAgentInteraction_); + } + if (keepConversationRunning_ != false) { + output.writeBool(6, keepConversationRunning_); + } + for (int i = 0; i < copyInboundCallLegHeaders_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 8, copyInboundCallLegHeaders_.getRaw(i)); + } + if (ignoreReinviteMediaDirection_ != false) { + output.writeBool(9, ignoreReinviteMediaDirection_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createConversationOnTheFly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, createConversationOnTheFly_); + } + if (inactiveStart_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, inactiveStart_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getMaxAudioRecordingDuration()); + } + if (allowVirtualAgentInteraction_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(5, allowVirtualAgentInteraction_); + } + if (keepConversationRunning_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, keepConversationRunning_); + } + { + int dataSize = 0; + for (int i = 0; i < copyInboundCallLegHeaders_.size(); i++) { + dataSize += computeStringSizeNoTag(copyInboundCallLegHeaders_.getRaw(i)); + } + size += dataSize; + size += 1 * getCopyInboundCallLegHeadersList().size(); + } + if (ignoreReinviteMediaDirection_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(9, ignoreReinviteMediaDirection_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.SipConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SipConfig other = + (com.google.cloud.dialogflow.v2beta1.SipConfig) obj; + + if (getCreateConversationOnTheFly() != other.getCreateConversationOnTheFly()) return false; + if (getInactiveStart() != other.getInactiveStart()) return false; + if (hasMaxAudioRecordingDuration() != other.hasMaxAudioRecordingDuration()) return false; + if (hasMaxAudioRecordingDuration()) { + if (!getMaxAudioRecordingDuration().equals(other.getMaxAudioRecordingDuration())) + return false; + } + if (getAllowVirtualAgentInteraction() != other.getAllowVirtualAgentInteraction()) return false; + if (getKeepConversationRunning() != other.getKeepConversationRunning()) return false; + if (!getCopyInboundCallLegHeadersList().equals(other.getCopyInboundCallLegHeadersList())) + return false; + if (getIgnoreReinviteMediaDirection() != other.getIgnoreReinviteMediaDirection()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CREATE_CONVERSATION_ON_THE_FLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCreateConversationOnTheFly()); + hash = (37 * hash) + INACTIVE_START_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInactiveStart()); + if (hasMaxAudioRecordingDuration()) { + hash = (37 * hash) + MAX_AUDIO_RECORDING_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getMaxAudioRecordingDuration().hashCode(); + } + hash = (37 * hash) + ALLOW_VIRTUAL_AGENT_INTERACTION_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowVirtualAgentInteraction()); + hash = (37 * hash) + KEEP_CONVERSATION_RUNNING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeepConversationRunning()); + if (getCopyInboundCallLegHeadersCount() > 0) { + hash = (37 * hash) + COPY_INBOUND_CALL_LEG_HEADERS_FIELD_NUMBER; + hash = (53 * hash) + getCopyInboundCallLegHeadersList().hashCode(); + } + hash = (37 * hash) + IGNORE_REINVITE_MEDIA_DIRECTION_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreReinviteMediaDirection()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.SipConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Defines the SIP configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SipConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SipConfig) + com.google.cloud.dialogflow.v2beta1.SipConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2beta1_SipConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2beta1_SipConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SipConfig.class, + com.google.cloud.dialogflow.v2beta1.SipConfig.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.SipConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMaxAudioRecordingDurationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createConversationOnTheFly_ = false; + inactiveStart_ = false; + maxAudioRecordingDuration_ = null; + if (maxAudioRecordingDurationBuilder_ != null) { + maxAudioRecordingDurationBuilder_.dispose(); + maxAudioRecordingDurationBuilder_ = null; + } + allowVirtualAgentInteraction_ = false; + keepConversationRunning_ = false; + copyInboundCallLegHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + ignoreReinviteMediaDirection_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2beta1_SipConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SipConfig getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SipConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SipConfig build() { + com.google.cloud.dialogflow.v2beta1.SipConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SipConfig buildPartial() { + com.google.cloud.dialogflow.v2beta1.SipConfig result = + new com.google.cloud.dialogflow.v2beta1.SipConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.SipConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createConversationOnTheFly_ = createConversationOnTheFly_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inactiveStart_ = inactiveStart_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxAudioRecordingDuration_ = + maxAudioRecordingDurationBuilder_ == null + ? maxAudioRecordingDuration_ + : maxAudioRecordingDurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.allowVirtualAgentInteraction_ = allowVirtualAgentInteraction_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.keepConversationRunning_ = keepConversationRunning_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + copyInboundCallLegHeaders_.makeImmutable(); + result.copyInboundCallLegHeaders_ = copyInboundCallLegHeaders_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.ignoreReinviteMediaDirection_ = ignoreReinviteMediaDirection_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.SipConfig) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.SipConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.SipConfig other) { + if (other == com.google.cloud.dialogflow.v2beta1.SipConfig.getDefaultInstance()) return this; + if (other.getCreateConversationOnTheFly() != false) { + setCreateConversationOnTheFly(other.getCreateConversationOnTheFly()); + } + if (other.getInactiveStart() != false) { + setInactiveStart(other.getInactiveStart()); + } + if (other.hasMaxAudioRecordingDuration()) { + mergeMaxAudioRecordingDuration(other.getMaxAudioRecordingDuration()); + } + if (other.getAllowVirtualAgentInteraction() != false) { + setAllowVirtualAgentInteraction(other.getAllowVirtualAgentInteraction()); + } + if (other.getKeepConversationRunning() != false) { + setKeepConversationRunning(other.getKeepConversationRunning()); + } + if (!other.copyInboundCallLegHeaders_.isEmpty()) { + if (copyInboundCallLegHeaders_.isEmpty()) { + copyInboundCallLegHeaders_ = other.copyInboundCallLegHeaders_; + bitField0_ |= 0x00000020; + } else { + ensureCopyInboundCallLegHeadersIsMutable(); + copyInboundCallLegHeaders_.addAll(other.copyInboundCallLegHeaders_); + } + onChanged(); + } + if (other.getIgnoreReinviteMediaDirection() != false) { + setIgnoreReinviteMediaDirection(other.getIgnoreReinviteMediaDirection()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + createConversationOnTheFly_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 24: + { + inactiveStart_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetMaxAudioRecordingDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 40: + { + allowVirtualAgentInteraction_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: + { + keepConversationRunning_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCopyInboundCallLegHeadersIsMutable(); + copyInboundCallLegHeaders_.add(s); + break; + } // case 66 + case 72: + { + ignoreReinviteMediaDirection_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean createConversationOnTheFly_; + + /** + * + * + *
+     * Asks Dialogflow Telephony to create the conversation provided in the SIP
+     * header on the fly when the call comes in.
+     * 
+ * + * bool create_conversation_on_the_fly = 1; + * + * @return The createConversationOnTheFly. + */ + @java.lang.Override + public boolean getCreateConversationOnTheFly() { + return createConversationOnTheFly_; + } + + /** + * + * + *
+     * Asks Dialogflow Telephony to create the conversation provided in the SIP
+     * header on the fly when the call comes in.
+     * 
+ * + * bool create_conversation_on_the_fly = 1; + * + * @param value The createConversationOnTheFly to set. + * @return This builder for chaining. + */ + public Builder setCreateConversationOnTheFly(boolean value) { + + createConversationOnTheFly_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Asks Dialogflow Telephony to create the conversation provided in the SIP
+     * header on the fly when the call comes in.
+     * 
+ * + * bool create_conversation_on_the_fly = 1; + * + * @return This builder for chaining. + */ + public Builder clearCreateConversationOnTheFly() { + bitField0_ = (bitField0_ & ~0x00000001); + createConversationOnTheFly_ = false; + onChanged(); + return this; + } + + private boolean inactiveStart_; + + /** + * + * + *
+     * Starts the conversation with inactive SDP directives
+     * 
+ * + * bool inactive_start = 3; + * + * @return The inactiveStart. + */ + @java.lang.Override + public boolean getInactiveStart() { + return inactiveStart_; + } + + /** + * + * + *
+     * Starts the conversation with inactive SDP directives
+     * 
+ * + * bool inactive_start = 3; + * + * @param value The inactiveStart to set. + * @return This builder for chaining. + */ + public Builder setInactiveStart(boolean value) { + + inactiveStart_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Starts the conversation with inactive SDP directives
+     * 
+ * + * bool inactive_start = 3; + * + * @return This builder for chaining. + */ + public Builder clearInactiveStart() { + bitField0_ = (bitField0_ & ~0x00000002); + inactiveStart_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Duration maxAudioRecordingDuration_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + maxAudioRecordingDurationBuilder_; + + /** + * + * + *
+     * Max duration for audio recording.
+     * Overrides the default value of 15 min.
+     * Max value is 8 hours.
+     * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return Whether the maxAudioRecordingDuration field is set. + */ + public boolean hasMaxAudioRecordingDuration() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Max duration for audio recording.
+     * Overrides the default value of 15 min.
+     * Max value is 8 hours.
+     * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return The maxAudioRecordingDuration. + */ + public com.google.protobuf.Duration getMaxAudioRecordingDuration() { + if (maxAudioRecordingDurationBuilder_ == null) { + return maxAudioRecordingDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxAudioRecordingDuration_; + } else { + return maxAudioRecordingDurationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Max duration for audio recording.
+     * Overrides the default value of 15 min.
+     * Max value is 8 hours.
+     * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public Builder setMaxAudioRecordingDuration(com.google.protobuf.Duration value) { + if (maxAudioRecordingDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxAudioRecordingDuration_ = value; + } else { + maxAudioRecordingDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Max duration for audio recording.
+     * Overrides the default value of 15 min.
+     * Max value is 8 hours.
+     * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public Builder setMaxAudioRecordingDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (maxAudioRecordingDurationBuilder_ == null) { + maxAudioRecordingDuration_ = builderForValue.build(); + } else { + maxAudioRecordingDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Max duration for audio recording.
+     * Overrides the default value of 15 min.
+     * Max value is 8 hours.
+     * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public Builder mergeMaxAudioRecordingDuration(com.google.protobuf.Duration value) { + if (maxAudioRecordingDurationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && maxAudioRecordingDuration_ != null + && maxAudioRecordingDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMaxAudioRecordingDurationBuilder().mergeFrom(value); + } else { + maxAudioRecordingDuration_ = value; + } + } else { + maxAudioRecordingDurationBuilder_.mergeFrom(value); + } + if (maxAudioRecordingDuration_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Max duration for audio recording.
+     * Overrides the default value of 15 min.
+     * Max value is 8 hours.
+     * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public Builder clearMaxAudioRecordingDuration() { + bitField0_ = (bitField0_ & ~0x00000004); + maxAudioRecordingDuration_ = null; + if (maxAudioRecordingDurationBuilder_ != null) { + maxAudioRecordingDurationBuilder_.dispose(); + maxAudioRecordingDurationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Max duration for audio recording.
+     * Overrides the default value of 15 min.
+     * Max value is 8 hours.
+     * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public com.google.protobuf.Duration.Builder getMaxAudioRecordingDurationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetMaxAudioRecordingDurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Max duration for audio recording.
+     * Overrides the default value of 15 min.
+     * Max value is 8 hours.
+     * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public com.google.protobuf.DurationOrBuilder getMaxAudioRecordingDurationOrBuilder() { + if (maxAudioRecordingDurationBuilder_ != null) { + return maxAudioRecordingDurationBuilder_.getMessageOrBuilder(); + } else { + return maxAudioRecordingDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxAudioRecordingDuration_; + } + } + + /** + * + * + *
+     * Max duration for audio recording.
+     * Overrides the default value of 15 min.
+     * Max value is 8 hours.
+     * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetMaxAudioRecordingDurationFieldBuilder() { + if (maxAudioRecordingDurationBuilder_ == null) { + maxAudioRecordingDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMaxAudioRecordingDuration(), getParentForChildren(), isClean()); + maxAudioRecordingDuration_ = null; + } + return maxAudioRecordingDurationBuilder_; + } + + private boolean allowVirtualAgentInteraction_; + + /** + * + * + *
+     * Allows interactions with a Dialogflow virtual agent even if the call is
+     * connected for SIPREC purposes.
+     * 
+ * + * bool allow_virtual_agent_interaction = 5; + * + * @return The allowVirtualAgentInteraction. + */ + @java.lang.Override + public boolean getAllowVirtualAgentInteraction() { + return allowVirtualAgentInteraction_; + } + + /** + * + * + *
+     * Allows interactions with a Dialogflow virtual agent even if the call is
+     * connected for SIPREC purposes.
+     * 
+ * + * bool allow_virtual_agent_interaction = 5; + * + * @param value The allowVirtualAgentInteraction to set. + * @return This builder for chaining. + */ + public Builder setAllowVirtualAgentInteraction(boolean value) { + + allowVirtualAgentInteraction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Allows interactions with a Dialogflow virtual agent even if the call is
+     * connected for SIPREC purposes.
+     * 
+ * + * bool allow_virtual_agent_interaction = 5; + * + * @return This builder for chaining. + */ + public Builder clearAllowVirtualAgentInteraction() { + bitField0_ = (bitField0_ & ~0x00000008); + allowVirtualAgentInteraction_ = false; + onChanged(); + return this; + } + + private boolean keepConversationRunning_; + + /** + * + * + *
+     * Keeps the conversation running even if the call is disconnected.
+     * 
+ * + * bool keep_conversation_running = 6; + * + * @return The keepConversationRunning. + */ + @java.lang.Override + public boolean getKeepConversationRunning() { + return keepConversationRunning_; + } + + /** + * + * + *
+     * Keeps the conversation running even if the call is disconnected.
+     * 
+ * + * bool keep_conversation_running = 6; + * + * @param value The keepConversationRunning to set. + * @return This builder for chaining. + */ + public Builder setKeepConversationRunning(boolean value) { + + keepConversationRunning_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Keeps the conversation running even if the call is disconnected.
+     * 
+ * + * bool keep_conversation_running = 6; + * + * @return This builder for chaining. + */ + public Builder clearKeepConversationRunning() { + bitField0_ = (bitField0_ & ~0x00000010); + keepConversationRunning_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList copyInboundCallLegHeaders_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCopyInboundCallLegHeadersIsMutable() { + if (!copyInboundCallLegHeaders_.isModifiable()) { + copyInboundCallLegHeaders_ = + new com.google.protobuf.LazyStringArrayList(copyInboundCallLegHeaders_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * List of inbound call leg headers to be copied to outbound call legs created
+     * later.
+     * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return A list containing the copyInboundCallLegHeaders. + */ + public com.google.protobuf.ProtocolStringList getCopyInboundCallLegHeadersList() { + copyInboundCallLegHeaders_.makeImmutable(); + return copyInboundCallLegHeaders_; + } + + /** + * + * + *
+     * List of inbound call leg headers to be copied to outbound call legs created
+     * later.
+     * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return The count of copyInboundCallLegHeaders. + */ + public int getCopyInboundCallLegHeadersCount() { + return copyInboundCallLegHeaders_.size(); + } + + /** + * + * + *
+     * List of inbound call leg headers to be copied to outbound call legs created
+     * later.
+     * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the element to return. + * @return The copyInboundCallLegHeaders at the given index. + */ + public java.lang.String getCopyInboundCallLegHeaders(int index) { + return copyInboundCallLegHeaders_.get(index); + } + + /** + * + * + *
+     * List of inbound call leg headers to be copied to outbound call legs created
+     * later.
+     * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the value to return. + * @return The bytes of the copyInboundCallLegHeaders at the given index. + */ + public com.google.protobuf.ByteString getCopyInboundCallLegHeadersBytes(int index) { + return copyInboundCallLegHeaders_.getByteString(index); + } + + /** + * + * + *
+     * List of inbound call leg headers to be copied to outbound call legs created
+     * later.
+     * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index to set the value at. + * @param value The copyInboundCallLegHeaders to set. + * @return This builder for chaining. + */ + public Builder setCopyInboundCallLegHeaders(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCopyInboundCallLegHeadersIsMutable(); + copyInboundCallLegHeaders_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * List of inbound call leg headers to be copied to outbound call legs created
+     * later.
+     * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param value The copyInboundCallLegHeaders to add. + * @return This builder for chaining. + */ + public Builder addCopyInboundCallLegHeaders(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCopyInboundCallLegHeadersIsMutable(); + copyInboundCallLegHeaders_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * List of inbound call leg headers to be copied to outbound call legs created
+     * later.
+     * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param values The copyInboundCallLegHeaders to add. + * @return This builder for chaining. + */ + public Builder addAllCopyInboundCallLegHeaders(java.lang.Iterable values) { + ensureCopyInboundCallLegHeadersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, copyInboundCallLegHeaders_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * List of inbound call leg headers to be copied to outbound call legs created
+     * later.
+     * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return This builder for chaining. + */ + public Builder clearCopyInboundCallLegHeaders() { + copyInboundCallLegHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * List of inbound call leg headers to be copied to outbound call legs created
+     * later.
+     * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param value The bytes of the copyInboundCallLegHeaders to add. + * @return This builder for chaining. + */ + public Builder addCopyInboundCallLegHeadersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCopyInboundCallLegHeadersIsMutable(); + copyInboundCallLegHeaders_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private boolean ignoreReinviteMediaDirection_; + + /** + * + * + *
+     * Ignores any media direction in the reINVITE SDP offer. Reuse the previous
+     * media direction.
+     * 
+ * + * bool ignore_reinvite_media_direction = 9; + * + * @return The ignoreReinviteMediaDirection. + */ + @java.lang.Override + public boolean getIgnoreReinviteMediaDirection() { + return ignoreReinviteMediaDirection_; + } + + /** + * + * + *
+     * Ignores any media direction in the reINVITE SDP offer. Reuse the previous
+     * media direction.
+     * 
+ * + * bool ignore_reinvite_media_direction = 9; + * + * @param value The ignoreReinviteMediaDirection to set. + * @return This builder for chaining. + */ + public Builder setIgnoreReinviteMediaDirection(boolean value) { + + ignoreReinviteMediaDirection_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Ignores any media direction in the reINVITE SDP offer. Reuse the previous
+     * media direction.
+     * 
+ * + * bool ignore_reinvite_media_direction = 9; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreReinviteMediaDirection() { + bitField0_ = (bitField0_ & ~0x00000040); + ignoreReinviteMediaDirection_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SipConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SipConfig) + private static final com.google.cloud.dialogflow.v2beta1.SipConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.SipConfig(); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SipConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SipConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipConfigOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipConfigOrBuilder.java new file mode 100644 index 000000000000..bc8c2e8d8b55 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipConfigOrBuilder.java @@ -0,0 +1,197 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/conversation_profile.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public interface SipConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SipConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Asks Dialogflow Telephony to create the conversation provided in the SIP
+   * header on the fly when the call comes in.
+   * 
+ * + * bool create_conversation_on_the_fly = 1; + * + * @return The createConversationOnTheFly. + */ + boolean getCreateConversationOnTheFly(); + + /** + * + * + *
+   * Starts the conversation with inactive SDP directives
+   * 
+ * + * bool inactive_start = 3; + * + * @return The inactiveStart. + */ + boolean getInactiveStart(); + + /** + * + * + *
+   * Max duration for audio recording.
+   * Overrides the default value of 15 min.
+   * Max value is 8 hours.
+   * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return Whether the maxAudioRecordingDuration field is set. + */ + boolean hasMaxAudioRecordingDuration(); + + /** + * + * + *
+   * Max duration for audio recording.
+   * Overrides the default value of 15 min.
+   * Max value is 8 hours.
+   * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return The maxAudioRecordingDuration. + */ + com.google.protobuf.Duration getMaxAudioRecordingDuration(); + + /** + * + * + *
+   * Max duration for audio recording.
+   * Overrides the default value of 15 min.
+   * Max value is 8 hours.
+   * 
+ * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + com.google.protobuf.DurationOrBuilder getMaxAudioRecordingDurationOrBuilder(); + + /** + * + * + *
+   * Allows interactions with a Dialogflow virtual agent even if the call is
+   * connected for SIPREC purposes.
+   * 
+ * + * bool allow_virtual_agent_interaction = 5; + * + * @return The allowVirtualAgentInteraction. + */ + boolean getAllowVirtualAgentInteraction(); + + /** + * + * + *
+   * Keeps the conversation running even if the call is disconnected.
+   * 
+ * + * bool keep_conversation_running = 6; + * + * @return The keepConversationRunning. + */ + boolean getKeepConversationRunning(); + + /** + * + * + *
+   * List of inbound call leg headers to be copied to outbound call legs created
+   * later.
+   * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return A list containing the copyInboundCallLegHeaders. + */ + java.util.List getCopyInboundCallLegHeadersList(); + + /** + * + * + *
+   * List of inbound call leg headers to be copied to outbound call legs created
+   * later.
+   * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return The count of copyInboundCallLegHeaders. + */ + int getCopyInboundCallLegHeadersCount(); + + /** + * + * + *
+   * List of inbound call leg headers to be copied to outbound call legs created
+   * later.
+   * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the element to return. + * @return The copyInboundCallLegHeaders at the given index. + */ + java.lang.String getCopyInboundCallLegHeaders(int index); + + /** + * + * + *
+   * List of inbound call leg headers to be copied to outbound call legs created
+   * later.
+   * 
+ * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the value to return. + * @return The bytes of the copyInboundCallLegHeaders at the given index. + */ + com.google.protobuf.ByteString getCopyInboundCallLegHeadersBytes(int index); + + /** + * + * + *
+   * Ignores any media direction in the reINVITE SDP offer. Reuse the previous
+   * media direction.
+   * 
+ * + * bool ignore_reinvite_media_direction = 9; + * + * @return The ignoreReinviteMediaDirection. + */ + boolean getIgnoreReinviteMediaDirection(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentResponse.java index 858337eea809..d9e8905555c7 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentResponse.java @@ -30,8 +30,11 @@ * * 1. If the input was set to streaming audio, the first one or more messages * contain `recognition_result`. Each `recognition_result` represents a more - * complete transcript of what the user said. The last `recognition_result` - * has `is_final` set to `true`. + * complete transcript of what the user said. When a user speaks multiple + * sentences, the API will emit multiple messages where `is_final = true`. + * Each time the system detects a distinct pause or completed thought, it + * locks in that segment, marks it `is_final = true`, and then immediately + * starts a new recognition cycle for the next sentence on the same stream. * * 2. In virtual agent stage: if `enable_partial_automated_agent_reply` is * true, the following N (currently 1 <= N <= 4) messages @@ -1081,8 +1084,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * 1. If the input was set to streaming audio, the first one or more messages * contain `recognition_result`. Each `recognition_result` represents a more - * complete transcript of what the user said. The last `recognition_result` - * has `is_final` set to `true`. + * complete transcript of what the user said. When a user speaks multiple + * sentences, the API will emit multiple messages where `is_final = true`. + * Each time the system detects a distinct pause or completed thought, it + * locks in that segment, marks it `is_final = true`, and then immediately + * starts a new recognition cycle for the next sentence on the same stream. * * 2. In virtual agent stage: if `enable_partial_automated_agent_reply` is * true, the following N (currently 1 <= N <= 4) messages diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java index bbedef36fd34..25f637d31ec6 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java @@ -44,20 +44,24 @@ * finalized transcript values received for the series of results. * * In the following example, single utterance is enabled. In the case where - * single utterance is not enabled, result 7 would not occur. + * single utterance is not enabled, result 8 would not occur. * * ``` - * Num | transcript | message_type | is_final - * --- | ----------------------- | ----------------------- | -------- - * 1 | "tube" | TRANSCRIPT | false - * 2 | "to be a" | TRANSCRIPT | false - * 3 | "to be" | TRANSCRIPT | false - * 4 | "to be or not to be" | TRANSCRIPT | true - * 5 | "that's" | TRANSCRIPT | false - * 6 | "that is | TRANSCRIPT | false - * 7 | unset | END_OF_SINGLE_UTTERANCE | unset - * 8 | " that is the question" | TRANSCRIPT | true + * Num | transcript | message_type | is_final + * --- | ------------------------ | ----------------------- | -------- + * 1 | "tube" | TRANSCRIPT | false + * 2 | "to be a" | TRANSCRIPT | false + * 3 | "to be" | TRANSCRIPT | false + * 4 | "to be or not to be" | TRANSCRIPT | true + * 5 | "that's" | TRANSCRIPT | false + * 6 | "that is | TRANSCRIPT | false + * 7 | " that is the question" | TRANSCRIPT | true + * 8 | unset | END_OF_SINGLE_UTTERANCE | unset + * 9 | ". Whether 'tis nobler" | TRANSCRIPT | true + * 10 | " in the mind" | TRANSCRIPT | false + * 11 | " in the mind to suffer" | TRANSCRIPT | true * ``` + * * Concatenating the finalized transcripts with `is_final` set to true, * the complete utterance becomes "to be or not to be that is the question". *
@@ -1045,20 +1049,24 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * finalized transcript values received for the series of results. * * In the following example, single utterance is enabled. In the case where - * single utterance is not enabled, result 7 would not occur. + * single utterance is not enabled, result 8 would not occur. * * ``` - * Num | transcript | message_type | is_final - * --- | ----------------------- | ----------------------- | -------- - * 1 | "tube" | TRANSCRIPT | false - * 2 | "to be a" | TRANSCRIPT | false - * 3 | "to be" | TRANSCRIPT | false - * 4 | "to be or not to be" | TRANSCRIPT | true - * 5 | "that's" | TRANSCRIPT | false - * 6 | "that is | TRANSCRIPT | false - * 7 | unset | END_OF_SINGLE_UTTERANCE | unset - * 8 | " that is the question" | TRANSCRIPT | true + * Num | transcript | message_type | is_final + * --- | ------------------------ | ----------------------- | -------- + * 1 | "tube" | TRANSCRIPT | false + * 2 | "to be a" | TRANSCRIPT | false + * 3 | "to be" | TRANSCRIPT | false + * 4 | "to be or not to be" | TRANSCRIPT | true + * 5 | "that's" | TRANSCRIPT | false + * 6 | "that is | TRANSCRIPT | false + * 7 | " that is the question" | TRANSCRIPT | true + * 8 | unset | END_OF_SINGLE_UTTERANCE | unset + * 9 | ". Whether 'tis nobler" | TRANSCRIPT | true + * 10 | " in the mind" | TRANSCRIPT | false + * 11 | " in the mind to suffer" | TRANSCRIPT | true * ``` + * * Concatenating the finalized transcripts with `is_final` set to true, * the complete utterance becomes "to be or not to be that is the question". *
diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestKnowledgeAssistResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestKnowledgeAssistResponse.java index 4cc433352fcf..28b784796496 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestKnowledgeAssistResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestKnowledgeAssistResponse.java @@ -54,6 +54,7 @@ private SuggestKnowledgeAssistResponse(com.google.protobuf.GeneratedMessage.Buil private SuggestKnowledgeAssistResponse() { latestMessage_ = ""; + additionalSuggestedQueryResults_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -212,6 +213,112 @@ public int getContextSize() { return contextSize_; } + public static final int ADDITIONAL_SUGGESTED_QUERY_RESULTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult> + additionalSuggestedQueryResults_; + + /** + * + * + *
+   * Optional. The list of additional suggested queries based on the context.
+   * This is used for the cases when we want to generate multiple queries
+   * for a single request.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult> + getAdditionalSuggestedQueryResultsList() { + return additionalSuggestedQueryResults_; + } + + /** + * + * + *
+   * Optional. The list of additional suggested queries based on the context.
+   * This is used for the cases when we want to generate multiple queries
+   * for a single request.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder> + getAdditionalSuggestedQueryResultsOrBuilderList() { + return additionalSuggestedQueryResults_; + } + + /** + * + * + *
+   * Optional. The list of additional suggested queries based on the context.
+   * This is used for the cases when we want to generate multiple queries
+   * for a single request.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAdditionalSuggestedQueryResultsCount() { + return additionalSuggestedQueryResults_.size(); + } + + /** + * + * + *
+   * Optional. The list of additional suggested queries based on the context.
+   * This is used for the cases when we want to generate multiple queries
+   * for a single request.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + getAdditionalSuggestedQueryResults(int index) { + return additionalSuggestedQueryResults_.get(index); + } + + /** + * + * + *
+   * Optional. The list of additional suggested queries based on the context.
+   * This is used for the cases when we want to generate multiple queries
+   * for a single request.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder + getAdditionalSuggestedQueryResultsOrBuilder(int index) { + return additionalSuggestedQueryResults_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -235,6 +342,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (contextSize_ != 0) { output.writeInt32(3, contextSize_); } + for (int i = 0; i < additionalSuggestedQueryResults_.size(); i++) { + output.writeMessage(4, additionalSuggestedQueryResults_.get(i)); + } getUnknownFields().writeTo(output); } @@ -254,6 +364,11 @@ public int getSerializedSize() { if (contextSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, contextSize_); } + for (int i = 0; i < additionalSuggestedQueryResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, additionalSuggestedQueryResults_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -276,6 +391,8 @@ public boolean equals(final java.lang.Object obj) { } if (!getLatestMessage().equals(other.getLatestMessage())) return false; if (getContextSize() != other.getContextSize()) return false; + if (!getAdditionalSuggestedQueryResultsList() + .equals(other.getAdditionalSuggestedQueryResultsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -295,6 +412,10 @@ public int hashCode() { hash = (53 * hash) + getLatestMessage().hashCode(); hash = (37 * hash) + CONTEXT_SIZE_FIELD_NUMBER; hash = (53 * hash) + getContextSize(); + if (getAdditionalSuggestedQueryResultsCount() > 0) { + hash = (37 * hash) + ADDITIONAL_SUGGESTED_QUERY_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalSuggestedQueryResultsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -441,6 +562,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetKnowledgeAssistAnswerFieldBuilder(); + internalGetAdditionalSuggestedQueryResultsFieldBuilder(); } } @@ -455,6 +577,13 @@ public Builder clear() { } latestMessage_ = ""; contextSize_ = 0; + if (additionalSuggestedQueryResultsBuilder_ == null) { + additionalSuggestedQueryResults_ = java.util.Collections.emptyList(); + } else { + additionalSuggestedQueryResults_ = null; + additionalSuggestedQueryResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -484,6 +613,7 @@ public com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse build( public com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse buildPartial() { com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse result = new com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -491,6 +621,20 @@ public com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse buildP return result; } + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse result) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + additionalSuggestedQueryResults_ = + java.util.Collections.unmodifiableList(additionalSuggestedQueryResults_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.additionalSuggestedQueryResults_ = additionalSuggestedQueryResults_; + } else { + result.additionalSuggestedQueryResults_ = additionalSuggestedQueryResultsBuilder_.build(); + } + } + private void buildPartial0( com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse result) { int from_bitField0_ = bitField0_; @@ -538,6 +682,34 @@ public Builder mergeFrom( if (other.getContextSize() != 0) { setContextSize(other.getContextSize()); } + if (additionalSuggestedQueryResultsBuilder_ == null) { + if (!other.additionalSuggestedQueryResults_.isEmpty()) { + if (additionalSuggestedQueryResults_.isEmpty()) { + additionalSuggestedQueryResults_ = other.additionalSuggestedQueryResults_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.addAll(other.additionalSuggestedQueryResults_); + } + onChanged(); + } + } else { + if (!other.additionalSuggestedQueryResults_.isEmpty()) { + if (additionalSuggestedQueryResultsBuilder_.isEmpty()) { + additionalSuggestedQueryResultsBuilder_.dispose(); + additionalSuggestedQueryResultsBuilder_ = null; + additionalSuggestedQueryResults_ = other.additionalSuggestedQueryResults_; + bitField0_ = (bitField0_ & ~0x00000008); + additionalSuggestedQueryResultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAdditionalSuggestedQueryResultsFieldBuilder() + : null; + } else { + additionalSuggestedQueryResultsBuilder_.addAllMessages( + other.additionalSuggestedQueryResults_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -583,6 +755,23 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 24 + case 34: + { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.parser(), + extensionRegistry); + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.add(m); + } else { + additionalSuggestedQueryResultsBuilder_.addMessage(m); + } + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1009,6 +1198,505 @@ public Builder clearContextSize() { return this; } + private java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult> + additionalSuggestedQueryResults_ = java.util.Collections.emptyList(); + + private void ensureAdditionalSuggestedQueryResultsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + additionalSuggestedQueryResults_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult>(additionalSuggestedQueryResults_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder> + additionalSuggestedQueryResultsBuilder_; + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult> + getAdditionalSuggestedQueryResultsList() { + if (additionalSuggestedQueryResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(additionalSuggestedQueryResults_); + } else { + return additionalSuggestedQueryResultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAdditionalSuggestedQueryResultsCount() { + if (additionalSuggestedQueryResultsBuilder_ == null) { + return additionalSuggestedQueryResults_.size(); + } else { + return additionalSuggestedQueryResultsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + getAdditionalSuggestedQueryResults(int index) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + return additionalSuggestedQueryResults_.get(index); + } else { + return additionalSuggestedQueryResultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdditionalSuggestedQueryResults( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + value) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.set(index, value); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdditionalSuggestedQueryResults( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder + builderForValue) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.set(index, builderForValue.build()); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAdditionalSuggestedQueryResults( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + value) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.add(value); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAdditionalSuggestedQueryResults( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + value) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.add(index, value); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAdditionalSuggestedQueryResults( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder + builderForValue) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.add(builderForValue.build()); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAdditionalSuggestedQueryResults( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder + builderForValue) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.add(index, builderForValue.build()); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAdditionalSuggestedQueryResults( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult> + values) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, additionalSuggestedQueryResults_); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAdditionalSuggestedQueryResults() { + if (additionalSuggestedQueryResultsBuilder_ == null) { + additionalSuggestedQueryResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAdditionalSuggestedQueryResults(int index) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.remove(index); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder + getAdditionalSuggestedQueryResultsBuilder(int index) { + return internalGetAdditionalSuggestedQueryResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder + getAdditionalSuggestedQueryResultsOrBuilder(int index) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + return additionalSuggestedQueryResults_.get(index); + } else { + return additionalSuggestedQueryResultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder> + getAdditionalSuggestedQueryResultsOrBuilderList() { + if (additionalSuggestedQueryResultsBuilder_ != null) { + return additionalSuggestedQueryResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(additionalSuggestedQueryResults_); + } + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder + addAdditionalSuggestedQueryResultsBuilder() { + return internalGetAdditionalSuggestedQueryResultsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder + addAdditionalSuggestedQueryResultsBuilder(int index) { + return internalGetAdditionalSuggestedQueryResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The list of additional suggested queries based on the context.
+     * This is used for the cases when we want to generate multiple queries
+     * for a single request.
+     * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder> + getAdditionalSuggestedQueryResultsBuilderList() { + return internalGetAdditionalSuggestedQueryResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder> + internalGetAdditionalSuggestedQueryResultsFieldBuilder() { + if (additionalSuggestedQueryResultsBuilder_ == null) { + additionalSuggestedQueryResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder>( + additionalSuggestedQueryResults_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + additionalSuggestedQueryResults_ = null; + } + return additionalSuggestedQueryResultsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestKnowledgeAssistResponseOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestKnowledgeAssistResponseOrBuilder.java index 1cedfae7dcff..04946ef21bc5 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestKnowledgeAssistResponseOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestKnowledgeAssistResponseOrBuilder.java @@ -116,4 +116,87 @@ public interface SuggestKnowledgeAssistResponseOrBuilder * @return The contextSize. */ int getContextSize(); + + /** + * + * + *
+   * Optional. The list of additional suggested queries based on the context.
+   * This is used for the cases when we want to generate multiple queries
+   * for a single request.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult> + getAdditionalSuggestedQueryResultsList(); + + /** + * + * + *
+   * Optional. The list of additional suggested queries based on the context.
+   * This is used for the cases when we want to generate multiple queries
+   * for a single request.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + getAdditionalSuggestedQueryResults(int index); + + /** + * + * + *
+   * Optional. The list of additional suggested queries based on the context.
+   * This is used for the cases when we want to generate multiple queries
+   * for a single request.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAdditionalSuggestedQueryResultsCount(); + + /** + * + * + *
+   * Optional. The list of additional suggested queries based on the context.
+   * This is used for the cases when we want to generate multiple queries
+   * for a single request.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder> + getAdditionalSuggestedQueryResultsOrBuilderList(); + + /** + * + * + *
+   * Optional. The list of additional suggested queries based on the context.
+   * This is used for the cases when we want to generate multiple queries
+   * for a single request.
+   * 
+ * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResultOrBuilder + getAdditionalSuggestedQueryResultsOrBuilder(int index); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto index be89c0b9b754..c94b691a1407 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto @@ -597,8 +597,8 @@ enum OutputAudioEncoding { // Audio content returned as LINEAR16 also contains a WAV header. OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1; - // MP3 audio at 32kbps. - OUTPUT_AUDIO_ENCODING_MP3 = 2; + // MP3 audio at 64kbps. + OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; // MP3 audio at 64kbps. OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/ces_app.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/ces_app.proto index 7ca2c052537e..144a691c9f78 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/ces_app.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/ces_app.proto @@ -43,4 +43,16 @@ message CesAppSpec { // Optional. Indicates whether the app requires human confirmation. Tool.ConfirmationRequirement confirmation_requirement = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Only applicable for CompanionAgent. + // Indicates whether the ces app is enabled in proactive mode. + // At least one of `proactive_enabled` or `reactive_enabled` should be + // true; otherwise, the ces app will be ignored. + optional bool proactive_enabled = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Only applicable for CompanionAgent. + // Indicates whether the ces app is enabled in reactive mode. + // At least one of `proactive_enabled` or `reactive_enabled` should be + // true; otherwise, the ces app will be ignored. + optional bool reactive_enabled = 4 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto index baf437a5b5e1..2fdc05c14a08 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto @@ -1289,6 +1289,12 @@ message SearchKnowledgeAnswer { // The answer is from intent matching. INTENT = 3; + + // The answer is from Playbook. + PLAYBOOK = 4; + + // The answer is from event. + EVENT = 5; } // The sources of the answers. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto index 68a5f84631a3..f677102f15ef 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto @@ -39,10 +39,6 @@ option (google.api.resource_definition) = { type: "dialogflow.googleapis.com/CXSecuritySettings" pattern: "projects/{project}/locations/{location}/securitySettings/{security_settings}" }; -option (google.api.resource_definition) = { - type: "dialogflow.googleapis.com/ConversationModel" - pattern: "projects/{project}/locations/{location}/conversationModels/{conversation_model}" -}; // Service for managing // [ConversationProfiles][google.cloud.dialogflow.v2beta1.ConversationProfile]. @@ -267,6 +263,9 @@ message ConversationProfile { // language tag. Example: "en-US". string language_code = 10; + // Optional. Configuration for SIP connections. + SipConfig sip_config = 16 [(google.api.field_behavior) = OPTIONAL]; + // The time zone of this conversational profile from the // [time zone database](https://www.iana.org/time-zones), e.g., // America/New_York, Europe/Paris. Defaults to America/New_York. @@ -288,7 +287,7 @@ message ConversationProfile { // Defines the Automated Agent to connect to a conversation. message AutomatedAgentConfig { - // Required. ID of the Dialogflow agent environment to use. + // Required. The resource name of the Dialogflow agent environment to use. // // This project needs to either be the same project as the conversation or you // need to grant `service-/conversationModels/`. - string model = 1 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/ConversationModel" - }]; - - // Version of current baseline model. It will be ignored if - // [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model] - // is set. Valid versions are: - // - // - Article Suggestion baseline model: - // - 0.9 - // - 1.0 (default) - // - Summarization baseline model: - // - 1.0 - string baseline_model_version = 8; - } - // Config to process conversation. message ConversationProcessConfig { // Number of recent non-small-talk sentences to use as context for article @@ -830,6 +819,36 @@ message LoggingConfig { bool enable_stackdriver_logging = 3; } +// Defines the SIP configuration. +message SipConfig { + // Asks Dialogflow Telephony to create the conversation provided in the SIP + // header on the fly when the call comes in. + bool create_conversation_on_the_fly = 1; + + // Starts the conversation with inactive SDP directives + bool inactive_start = 3; + + // Max duration for audio recording. + // Overrides the default value of 15 min. + // Max value is 8 hours. + google.protobuf.Duration max_audio_recording_duration = 4; + + // Allows interactions with a Dialogflow virtual agent even if the call is + // connected for SIPREC purposes. + bool allow_virtual_agent_interaction = 5; + + // Keeps the conversation running even if the call is disconnected. + bool keep_conversation_running = 6; + + // List of inbound call leg headers to be copied to outbound call legs created + // later. + repeated string copy_inbound_call_leg_headers = 8; + + // Ignores any media direction in the reINVITE SDP offer. Reuse the previous + // media direction. + bool ignore_reinvite_media_direction = 9; +} + // The request message for // [ConversationProfiles.ListConversationProfiles][google.cloud.dialogflow.v2beta1.ConversationProfiles.ListConversationProfiles]. message ListConversationProfilesRequest { diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto index b15ae6e9561b..4a8d24ff25f8 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto @@ -322,8 +322,8 @@ message Participant { // // 2. If you set this field in // [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] - // or - // [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + // or [StreamingAnalyzeContent] + // [google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], // Dialogflow will update // [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. // @@ -335,6 +335,11 @@ message Participant { // personalization. For example, Dialogflow can use it to provide personalized // smart reply suggestions for this user. // + // Additionally, to link an escalated Virtual Agent conversation + // with its corresponding Agent Assist conversation for analytics, this field + // in Agent Assist conversations should be populated to indicate the user id + // of the `END_USER` participant in the escalated conversation. + // // Note: // // * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -1060,8 +1065,11 @@ message StreamingAnalyzeContentRequest { // // 1. If the input was set to streaming audio, the first one or more messages // contain `recognition_result`. Each `recognition_result` represents a more -// complete transcript of what the user said. The last `recognition_result` -// has `is_final` set to `true`. +// complete transcript of what the user said. When a user speaks multiple +// sentences, the API will emit multiple messages where `is_final = true`. +// Each time the system detects a distinct pause or completed thought, it +// locks in that segment, marks it `is_final = true`, and then immediately +// starts a new recognition cycle for the next sentence on the same stream. // // 2. In virtual agent stage: if `enable_partial_automated_agent_reply` is // true, the following N (currently 1 <= N <= 4) messages @@ -1857,6 +1865,13 @@ message SuggestKnowledgeAssistResponse { // [SuggestKnowledgeAssistRequest.context_size][google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistRequest.context_size] // field in the request if there are fewer messages in the conversation. int32 context_size = 3; + + // Optional. The list of additional suggested queries based on the context. + // This is used for the cases when we want to generate multiple queries + // for a single request. + repeated KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + additional_suggested_query_results = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Debug information related to ingested context reference. @@ -2050,6 +2065,18 @@ message KnowledgeAssistDebugInfo { int32 appended_search_context_count = 18; } + // Token usage metadata for query generation. + message QueryGenerationDebugInfo { + // The total number of tokens in the prompt. + int32 prompt_token_count = 1; + + // The total number of tokens in the generated candidates. + int32 candidates_token_count = 2; + + // The total number of tokens for the entire request. + int32 total_token_count = 3; + } + // Reason for query generation. QueryGenerationFailureReason query_generation_failure_reason = 1; @@ -2068,14 +2095,56 @@ message KnowledgeAssistDebugInfo { // The latency of the service. ServiceLatency service_latency = 6; + + // Token usage metadata for query generation. + QueryGenerationDebugInfo query_generation_debug_info = 7; + + // Debug information from CES runtime API. + google.protobuf.Struct ces_debug_info = 8; } // Represents a Knowledge Assist answer. message KnowledgeAssistAnswer { // Represents a suggested query. message SuggestedQuery { + // Search context is information useful for knowledge search that helps + // enrich the query. + // Example: + // search_context { + // key: "application name" + // value: "DesignApp" + // } + message SearchContext { + // Optional. The key of the search context, e.g. "application name". + string key = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The value of the search context, e.g. "DesignApp". + string value = 2 [(google.api.field_behavior) = OPTIONAL]; + } + // Suggested query text. string query_text = 1; + + // Optional. The search contexts for the query. + repeated SearchContext search_contexts = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Represents a single suggested query result. + message AdditionalSuggestedQueryResult { + // Output only. The suggested query based on the context. + SuggestedQuery suggested_query = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The name of the answer record. + // Format: `projects//locations//answerRecords/` + string answer_record = 5 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/AnswerRecord" + } + ]; } // Represents an answer from Knowledge. Currently supports FAQ and Generative @@ -2109,6 +2178,15 @@ message KnowledgeAssistAnswer { repeated Snippet snippets = 1; } + // Details about source of Event answer. + message EventSource { + // Name of the triggered event. + string event = 1; + + // Sources used in event fulfillment. + GenerativeSource snippets = 2; + } + // The piece of text from the `source` that answers this suggested query. string answer_text = 1; @@ -2119,6 +2197,12 @@ message KnowledgeAssistAnswer { // Populated if the prediction was Generative. GenerativeSource generative_source = 4; + + // Populated if the prediction was from Playbook. + GenerativeSource playbook_source = 7; + + // Populated if the prediction was from an event. + EventSource event_source = 8; } } @@ -2197,6 +2281,26 @@ message BidiStreamingAnalyzeContentRequest { // Input that forms data for a single turn. message TurnInput { + // The execution result of a specific tool from the client. + message ToolResponse { + // Required. The matching ID of the tool call the response is for. + string id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The identifier of the tool that got executed. + string tool = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The tool execution result in JSON object format. + google.protobuf.Struct response = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + + // The tool responses from the client. + message ToolResponses { + // Optional. The list of tool responses. + repeated ToolResponse tool_responses = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + // Content that indicates the end of the turn. oneof main_content { // The UTF-8 encoded natural language text to be processed. @@ -2220,6 +2324,9 @@ message BidiStreamingAnalyzeContentRequest { // Optional. Parameters to be passed to the virtual agent. google.protobuf.Struct virtual_agent_parameters = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The tool responses from the client. + ToolResponses tool_responses = 5 [(google.api.field_behavior) = OPTIONAL]; } // Input for the conversation. @@ -2259,6 +2366,24 @@ message BidiStreamingAnalyzeContentResponse { // Indicate that the turn is complete. message TurnComplete {} + // Request for the client to execute the specified tool. + message ToolCall { + // The unique identifier of the tool call. + string id = 1; + + // The identifier of the tool to execute. + string tool = 2; + + // The input parameters and values for the tool in JSON object format. + google.protobuf.Struct args = 3; + } + + // The tool calls from the server. + message ToolCalls { + // The list of tool calls. + repeated ToolCall tool_calls = 1; + } + // The output response. oneof response { // The result of speech recognition. @@ -2274,6 +2399,9 @@ message BidiStreamingAnalyzeContentResponse { // Indicate that the turn is complete. TurnComplete turn_complete = 4; + + // The tool calls from the server. + ToolCalls tool_calls = 5; } } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto index 159b2c9f0818..f5985a7d1b3a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto @@ -744,20 +744,24 @@ message StreamingDetectIntentResponse { // finalized transcript values received for the series of results. // // In the following example, single utterance is enabled. In the case where -// single utterance is not enabled, result 7 would not occur. +// single utterance is not enabled, result 8 would not occur. // // ``` -// Num | transcript | message_type | is_final -// --- | ----------------------- | ----------------------- | -------- -// 1 | "tube" | TRANSCRIPT | false -// 2 | "to be a" | TRANSCRIPT | false -// 3 | "to be" | TRANSCRIPT | false -// 4 | "to be or not to be" | TRANSCRIPT | true -// 5 | "that's" | TRANSCRIPT | false -// 6 | "that is | TRANSCRIPT | false -// 7 | unset | END_OF_SINGLE_UTTERANCE | unset -// 8 | " that is the question" | TRANSCRIPT | true +// Num | transcript | message_type | is_final +// --- | ------------------------ | ----------------------- | -------- +// 1 | "tube" | TRANSCRIPT | false +// 2 | "to be a" | TRANSCRIPT | false +// 3 | "to be" | TRANSCRIPT | false +// 4 | "to be or not to be" | TRANSCRIPT | true +// 5 | "that's" | TRANSCRIPT | false +// 6 | "that is | TRANSCRIPT | false +// 7 | " that is the question" | TRANSCRIPT | true +// 8 | unset | END_OF_SINGLE_UTTERANCE | unset +// 9 | ". Whether 'tis nobler" | TRANSCRIPT | true +// 10 | " in the mind" | TRANSCRIPT | false +// 11 | " in the mind to suffer" | TRANSCRIPT | true // ``` +// // Concatenating the finalized transcripts with `is_final` set to true, // the complete utterance becomes "to be or not to be that is the question". message StreamingRecognitionResult {