From b7d46d2cf9c99d77a88566afc79fae469c981517 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Sun, 29 Dec 2024 17:10:42 -0800 Subject: [PATCH] chore: regenerate contactcenterinsights client --- .../v1/2.0.0/README.md | 4 +- .../v1/Contactcenterinsights.java | 12533 +++++++++++----- ...sV1AnalysisResultCallAnalysisMetadata.java | 24 + ...udContactcenterinsightsV1AnalysisRule.java | 259 + ...tactcenterinsightsV1AnnotatorSelector.java | 48 + ...erinsightsV1AnnotatorSelectorQaConfig.java | 67 + ...nnotatorSelectorQaConfigScorecardList.java | 67 + ...sV1BulkDownloadFeedbackLabelsMetadata.java | 163 + ...adFeedbackLabelsMetadataDownloadStats.java | 142 + ...tsV1BulkDownloadFeedbackLabelsRequest.java | 238 + ...adFeedbackLabelsRequestGcsDestination.java | 178 + ...sV1BulkDownloadFeedbackLabelsResponse.java | 43 + ...ghtsV1BulkUploadFeedbackLabelsRequest.java | 94 + ...kUploadFeedbackLabelsRequestGcsSource.java | 94 + ...udContactcenterinsightsV1Conversation.java | 33 +- ...1ConversationQualityMetadataAgentInfo.java | 81 +- ...ctcenterinsightsV1CreateIssueMetadata.java | 115 + ...actcenterinsightsV1CreateIssueRequest.java | 91 + ...htsV1DeployQaScorecardRevisionRequest.java | 43 + ...CloudContactcenterinsightsV1Dimension.java | 164 + ...ghtsV1DimensionAgentDimensionMetadata.java | 115 + ...ghtsV1DimensionIssueDimensionMetadata.java | 115 + ...sionQaQuestionAnswerDimensionMetadata.java | 140 + ...1DimensionQaQuestionDimensionMetadata.java | 115 + ...ContactcenterinsightsV1EncryptionSpec.java | 104 + ...dContactcenterinsightsV1FeedbackLabel.java | 190 + ...terinsightsV1ImportIssueModelResponse.java | 24 + ...V1IngestConversationsRequestGcsSource.java | 6 +- ...htsV1InitializeEncryptionSpecMetadata.java | 142 + ...ghtsV1InitializeEncryptionSpecRequest.java | 76 + ...htsV1InitializeEncryptionSpecResponse.java | 43 + ...ogleCloudContactcenterinsightsV1Issue.java | 24 + ...sightsV1ListAllFeedbackLabelsResponse.java | 100 + ...erinsightsV1ListAnalysisRulesResponse.java | 100 + ...rinsightsV1ListFeedbackLabelsResponse.java | 97 + ...nterinsightsV1ListQaQuestionsResponse.java | 94 + ...htsV1ListQaScorecardRevisionsResponse.java | 94 + ...terinsightsV1ListQaScorecardsResponse.java | 94 + ...eCloudContactcenterinsightsV1QaAnswer.java | 190 + ...tcenterinsightsV1QaAnswerAnswerSource.java | 92 + ...ctcenterinsightsV1QaAnswerAnswerValue.java | 236 + ...loudContactcenterinsightsV1QaQuestion.java | 325 + ...enterinsightsV1QaQuestionAnswerChoice.java | 193 + ...tactcenterinsightsV1QaQuestionMetrics.java | 71 + ...terinsightsV1QaQuestionTuningMetadata.java | 119 + ...oudContactcenterinsightsV1QaScorecard.java | 166 + ...tactcenterinsightsV1QaScorecardResult.java | 323 + ...nsightsV1QaScorecardResultQaTagResult.java | 139 + ...nsightsV1QaScorecardResultScoreSource.java | 173 + ...ctcenterinsightsV1QaScorecardRevision.java | 172 + ...tcenterinsightsV1QueryMetricsMetadata.java | 43 + ...ctcenterinsightsV1QueryMetricsRequest.java | 169 + ...tcenterinsightsV1QueryMetricsResponse.java | 151 + ...erinsightsV1QueryMetricsResponseSlice.java | 131 + ...sV1QueryMetricsResponseSliceDataPoint.java | 97 + ...onseSliceDataPointConversationMeasure.java | 286 + ...ataPointConversationMeasureQaTagScore.java | 91 + ...V1QueryMetricsResponseSliceTimeSeries.java | 73 + ...ightsV1TuneQaScorecardRevisionRequest.java | 106 + ...sV1UndeployQaScorecardRevisionRequest.java | 43 + ...ha1AnalysisResultCallAnalysisMetadata.java | 24 + ...nterinsightsV1alpha1AnnotatorSelector.java | 48 + ...ghtsV1alpha1AnnotatorSelectorQaConfig.java | 67 + ...nnotatorSelectorQaConfigScorecardList.java | 67 + ...actcenterinsightsV1alpha1Conversation.java | 33 +- ...1ConversationQualityMetadataAgentInfo.java | 81 +- ...erinsightsV1alpha1CreateIssueMetadata.java | 115 + ...terinsightsV1alpha1CreateIssueRequest.java | 91 + ...ontactcenterinsightsV1alpha1Dimension.java | 164 + ...alpha1DimensionAgentDimensionMetadata.java | 115 + ...alpha1DimensionIssueDimensionMetadata.java | 115 + ...sionQaQuestionAnswerDimensionMetadata.java | 140 + ...1DimensionQaQuestionDimensionMetadata.java | 115 + ...tcenterinsightsV1alpha1EncryptionSpec.java | 104 + ...ctcenterinsightsV1alpha1FeedbackLabel.java | 190 + ...ightsV1alpha1ImportIssueModelResponse.java | 24 + ...a1IngestConversationsRequestGcsSource.java | 6 +- ...lpha1InitializeEncryptionSpecMetadata.java | 142 + ...alpha1InitializeEncryptionSpecRequest.java | 76 + ...lpha1InitializeEncryptionSpecResponse.java | 43 + ...oudContactcenterinsightsV1alpha1Issue.java | 190 + ...V1alpha1ListAllFeedbackLabelsResponse.java | 100 + ...htsV1alpha1ListFeedbackLabelsResponse.java | 97 + ...ContactcenterinsightsV1alpha1QaAnswer.java | 190 + ...rinsightsV1alpha1QaAnswerAnswerSource.java | 92 + ...erinsightsV1alpha1QaAnswerAnswerValue.java | 236 + ...nterinsightsV1alpha1QaScorecardResult.java | 323 + ...sV1alpha1QaScorecardResultQaTagResult.java | 139 + ...sV1alpha1QaScorecardResultScoreSource.java | 173 + ...rinsightsV1alpha1QueryMetricsMetadata.java | 43 + ...rinsightsV1alpha1QueryMetricsResponse.java | 151 + ...ghtsV1alpha1QueryMetricsResponseSlice.java | 131 + ...ha1QueryMetricsResponseSliceDataPoint.java | 97 + ...onseSliceDataPointConversationMeasure.java | 286 + ...ataPointConversationMeasureQaTagScore.java | 91 + ...a1QueryMetricsResponseSliceTimeSeries.java | 73 + .../v1/model/GoogleTypeInterval.java | 100 + .../v1/2.0.0/pom.xml | 12 +- .../v1/README.md | 4 +- 99 files changed, 20421 insertions(+), 3410 deletions(-) create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AnalysisRule.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsResponse.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1CreateIssueMetadata.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1CreateIssueRequest.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Dimension.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1EncryptionSpec.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1FeedbackLabel.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaAnswer.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaQuestion.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaQuestionMetrics.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaScorecard.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaScorecardResult.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaScorecardRevision.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsMetadata.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsRequest.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponse.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1CreateIssueMetadata.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1Dimension.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1Issue.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1ListAllFeedbackLabelsResponse.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1ListFeedbackLabelsResponse.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaAnswer.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsMetadata.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries.java create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleTypeInterval.java diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/README.md b/clients/google-api-services-contactcenterinsights/v1/2.0.0/README.md index 46a0486d6ed..8b4fff8f9da 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/README.md +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-contactcenterinsights - v1-rev20240701-2.0.0 + v1-rev20241218-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-contactcenterinsights:v1-rev20240701-2.0.0' + implementation 'com.google.apis:google-api-services-contactcenterinsights:v1-rev20241218-2.0.0' } ``` diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/Contactcenterinsights.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/Contactcenterinsights.java index 1f9f28bcbeb..6aa349eaba1 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/Contactcenterinsights.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/Contactcenterinsights.java @@ -174,789 +174,1112 @@ public Locations locations() { public class Locations { /** - * Gets project-level settings. + * Download feedback labels in bulk. * - * Create a request for the method "locations.getSettings". + * Create a request for the method "locations.bulkDownloadFeedbackLabels". * * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link GetSettings#execute()} method to invoke the remote - * operation. + * optional parameters, call the {@link BulkDownloadFeedbackLabels#execute()} method to invoke the + * remote operation. * - * @param name Required. The name of the settings resource to get. + * @param parent Required. The parent resource for new feedback labels. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest} * @return the request */ - public GetSettings getSettings(java.lang.String name) throws java.io.IOException { - GetSettings result = new GetSettings(name); + public BulkDownloadFeedbackLabels bulkDownloadFeedbackLabels(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest content) throws java.io.IOException { + BulkDownloadFeedbackLabels result = new BulkDownloadFeedbackLabels(parent, content); initialize(result); return result; } - public class GetSettings extends ContactcenterinsightsRequest { + public class BulkDownloadFeedbackLabels extends ContactcenterinsightsRequest { - private static final String REST_PATH = "v1/{+name}"; + private static final String REST_PATH = "v1/{+parent}:bulkDownloadFeedbackLabels"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/settings$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Gets project-level settings. + * Download feedback labels in bulk. * - * Create a request for the method "locations.getSettings". + * Create a request for the method "locations.bulkDownloadFeedbackLabels". * * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link GetSettings#execute()} method to invoke the - * remote operation.

{@link - * GetSettings#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * setting any optional parameters, call the {@link BulkDownloadFeedbackLabels#execute()} method + * to invoke the remote operation.

{@link BulkDownloadFeedbackLabels#initialize(com.google.api + * .client.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this + * instance immediately after invoking the constructor.

* - * @param name Required. The name of the settings resource to get. + * @param parent Required. The parent resource for new feedback labels. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest} * @since 1.13 */ - protected GetSettings(java.lang.String name) { - super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Settings.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected BulkDownloadFeedbackLabels(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/settings$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public BulkDownloadFeedbackLabels set$Xgafv(java.lang.String $Xgafv) { + return (BulkDownloadFeedbackLabels) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public BulkDownloadFeedbackLabels setAccessToken(java.lang.String accessToken) { + return (BulkDownloadFeedbackLabels) super.setAccessToken(accessToken); } @Override - public GetSettings set$Xgafv(java.lang.String $Xgafv) { - return (GetSettings) super.set$Xgafv($Xgafv); + public BulkDownloadFeedbackLabels setAlt(java.lang.String alt) { + return (BulkDownloadFeedbackLabels) super.setAlt(alt); } @Override - public GetSettings setAccessToken(java.lang.String accessToken) { - return (GetSettings) super.setAccessToken(accessToken); + public BulkDownloadFeedbackLabels setCallback(java.lang.String callback) { + return (BulkDownloadFeedbackLabels) super.setCallback(callback); } @Override - public GetSettings setAlt(java.lang.String alt) { - return (GetSettings) super.setAlt(alt); + public BulkDownloadFeedbackLabels setFields(java.lang.String fields) { + return (BulkDownloadFeedbackLabels) super.setFields(fields); } @Override - public GetSettings setCallback(java.lang.String callback) { - return (GetSettings) super.setCallback(callback); + public BulkDownloadFeedbackLabels setKey(java.lang.String key) { + return (BulkDownloadFeedbackLabels) super.setKey(key); } @Override - public GetSettings setFields(java.lang.String fields) { - return (GetSettings) super.setFields(fields); + public BulkDownloadFeedbackLabels setOauthToken(java.lang.String oauthToken) { + return (BulkDownloadFeedbackLabels) super.setOauthToken(oauthToken); } @Override - public GetSettings setKey(java.lang.String key) { - return (GetSettings) super.setKey(key); + public BulkDownloadFeedbackLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BulkDownloadFeedbackLabels) super.setPrettyPrint(prettyPrint); } @Override - public GetSettings setOauthToken(java.lang.String oauthToken) { - return (GetSettings) super.setOauthToken(oauthToken); + public BulkDownloadFeedbackLabels setQuotaUser(java.lang.String quotaUser) { + return (BulkDownloadFeedbackLabels) super.setQuotaUser(quotaUser); } @Override - public GetSettings setPrettyPrint(java.lang.Boolean prettyPrint) { - return (GetSettings) super.setPrettyPrint(prettyPrint); + public BulkDownloadFeedbackLabels setUploadType(java.lang.String uploadType) { + return (BulkDownloadFeedbackLabels) super.setUploadType(uploadType); } @Override - public GetSettings setQuotaUser(java.lang.String quotaUser) { - return (GetSettings) super.setQuotaUser(quotaUser); + public BulkDownloadFeedbackLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (BulkDownloadFeedbackLabels) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource for new feedback labels. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource for new feedback labels. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource for new feedback labels. */ + public BulkDownloadFeedbackLabels setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; } @Override - public GetSettings setUploadType(java.lang.String uploadType) { - return (GetSettings) super.setUploadType(uploadType); + public BulkDownloadFeedbackLabels set(String parameterName, Object value) { + return (BulkDownloadFeedbackLabels) super.set(parameterName, value); + } + } + /** + * Upload feedback labels in bulk. + * + * Create a request for the method "locations.bulkUploadFeedbackLabels". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link BulkUploadFeedbackLabels#execute()} method to invoke the + * remote operation. + * + * @param parent Required. The parent resource for new feedback labels. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest} + * @return the request + */ + public BulkUploadFeedbackLabels bulkUploadFeedbackLabels(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest content) throws java.io.IOException { + BulkUploadFeedbackLabels result = new BulkUploadFeedbackLabels(parent, content); + initialize(result); + return result; + } + + public class BulkUploadFeedbackLabels extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+parent}:bulkUploadFeedbackLabels"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Upload feedback labels in bulk. + * + * Create a request for the method "locations.bulkUploadFeedbackLabels". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link BulkUploadFeedbackLabels#execute()} method to + * invoke the remote operation.

{@link BulkUploadFeedbackLabels#initialize(com.google.api.clie + * nt.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource for new feedback labels. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest} + * @since 1.13 + */ + protected BulkUploadFeedbackLabels(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } } @Override - public GetSettings setUploadProtocol(java.lang.String uploadProtocol) { - return (GetSettings) super.setUploadProtocol(uploadProtocol); + public BulkUploadFeedbackLabels set$Xgafv(java.lang.String $Xgafv) { + return (BulkUploadFeedbackLabels) super.set$Xgafv($Xgafv); } - /** Required. The name of the settings resource to get. */ + @Override + public BulkUploadFeedbackLabels setAccessToken(java.lang.String accessToken) { + return (BulkUploadFeedbackLabels) super.setAccessToken(accessToken); + } + + @Override + public BulkUploadFeedbackLabels setAlt(java.lang.String alt) { + return (BulkUploadFeedbackLabels) super.setAlt(alt); + } + + @Override + public BulkUploadFeedbackLabels setCallback(java.lang.String callback) { + return (BulkUploadFeedbackLabels) super.setCallback(callback); + } + + @Override + public BulkUploadFeedbackLabels setFields(java.lang.String fields) { + return (BulkUploadFeedbackLabels) super.setFields(fields); + } + + @Override + public BulkUploadFeedbackLabels setKey(java.lang.String key) { + return (BulkUploadFeedbackLabels) super.setKey(key); + } + + @Override + public BulkUploadFeedbackLabels setOauthToken(java.lang.String oauthToken) { + return (BulkUploadFeedbackLabels) super.setOauthToken(oauthToken); + } + + @Override + public BulkUploadFeedbackLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BulkUploadFeedbackLabels) super.setPrettyPrint(prettyPrint); + } + + @Override + public BulkUploadFeedbackLabels setQuotaUser(java.lang.String quotaUser) { + return (BulkUploadFeedbackLabels) super.setQuotaUser(quotaUser); + } + + @Override + public BulkUploadFeedbackLabels setUploadType(java.lang.String uploadType) { + return (BulkUploadFeedbackLabels) super.setUploadType(uploadType); + } + + @Override + public BulkUploadFeedbackLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (BulkUploadFeedbackLabels) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource for new feedback labels. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. The name of the settings resource to get. + /** Required. The parent resource for new feedback labels. */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** Required. The name of the settings resource to get. */ - public GetSettings setName(java.lang.String name) { + /** Required. The parent resource for new feedback labels. */ + public BulkUploadFeedbackLabels setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/settings$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } @Override - public GetSettings set(String parameterName, Object value) { - return (GetSettings) super.set(parameterName, value); + public BulkUploadFeedbackLabels set(String parameterName, Object value) { + return (BulkUploadFeedbackLabels) super.set(parameterName, value); } } /** - * Updates project-level settings. + * Gets location-level encryption key specification. * - * Create a request for the method "locations.updateSettings". + * Create a request for the method "locations.getEncryptionSpec". * * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link UpdateSettings#execute()} method to invoke the remote + * optional parameters, call the {@link GetEncryptionSpec#execute()} method to invoke the remote * operation. * - * @param name Immutable. The resource name of the settings resource. Format: - * projects/{project}/locations/{location}/settings - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Settings} + * @param name Required. The name of the encryption spec resource to get. * @return the request */ - public UpdateSettings updateSettings(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Settings content) throws java.io.IOException { - UpdateSettings result = new UpdateSettings(name, content); + public GetEncryptionSpec getEncryptionSpec(java.lang.String name) throws java.io.IOException { + GetEncryptionSpec result = new GetEncryptionSpec(name); initialize(result); return result; } - public class UpdateSettings extends ContactcenterinsightsRequest { + public class GetEncryptionSpec extends ContactcenterinsightsRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/settings$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/encryptionSpec$"); /** - * Updates project-level settings. + * Gets location-level encryption key specification. * - * Create a request for the method "locations.updateSettings". + * Create a request for the method "locations.getEncryptionSpec". * * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link UpdateSettings#execute()} method to invoke the - * remote operation.

{@link UpdateSettings#initialize(com.google.api.client.googleapis.service - * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

+ * setting any optional parameters, call the {@link GetEncryptionSpec#execute()} method to invoke + * the remote operation.

{@link GetEncryptionSpec#initialize(com.google.api.client.googleapis. + * services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.

* - * @param name Immutable. The resource name of the settings resource. Format: - * projects/{project}/locations/{location}/settings - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Settings} + * @param name Required. The name of the encryption spec resource to get. * @since 1.13 */ - protected UpdateSettings(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Settings content) { - super(Contactcenterinsights.this, "PATCH", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Settings.class); + protected GetEncryptionSpec(java.lang.String name) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1EncryptionSpec.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/settings$"); + "^projects/[^/]+/locations/[^/]+/encryptionSpec$"); } } @Override - public UpdateSettings set$Xgafv(java.lang.String $Xgafv) { - return (UpdateSettings) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public UpdateSettings setAccessToken(java.lang.String accessToken) { - return (UpdateSettings) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public UpdateSettings setAlt(java.lang.String alt) { - return (UpdateSettings) super.setAlt(alt); + public GetEncryptionSpec set$Xgafv(java.lang.String $Xgafv) { + return (GetEncryptionSpec) super.set$Xgafv($Xgafv); } @Override - public UpdateSettings setCallback(java.lang.String callback) { - return (UpdateSettings) super.setCallback(callback); + public GetEncryptionSpec setAccessToken(java.lang.String accessToken) { + return (GetEncryptionSpec) super.setAccessToken(accessToken); } @Override - public UpdateSettings setFields(java.lang.String fields) { - return (UpdateSettings) super.setFields(fields); + public GetEncryptionSpec setAlt(java.lang.String alt) { + return (GetEncryptionSpec) super.setAlt(alt); } @Override - public UpdateSettings setKey(java.lang.String key) { - return (UpdateSettings) super.setKey(key); + public GetEncryptionSpec setCallback(java.lang.String callback) { + return (GetEncryptionSpec) super.setCallback(callback); } @Override - public UpdateSettings setOauthToken(java.lang.String oauthToken) { - return (UpdateSettings) super.setOauthToken(oauthToken); + public GetEncryptionSpec setFields(java.lang.String fields) { + return (GetEncryptionSpec) super.setFields(fields); } @Override - public UpdateSettings setPrettyPrint(java.lang.Boolean prettyPrint) { - return (UpdateSettings) super.setPrettyPrint(prettyPrint); + public GetEncryptionSpec setKey(java.lang.String key) { + return (GetEncryptionSpec) super.setKey(key); } @Override - public UpdateSettings setQuotaUser(java.lang.String quotaUser) { - return (UpdateSettings) super.setQuotaUser(quotaUser); + public GetEncryptionSpec setOauthToken(java.lang.String oauthToken) { + return (GetEncryptionSpec) super.setOauthToken(oauthToken); } @Override - public UpdateSettings setUploadType(java.lang.String uploadType) { - return (UpdateSettings) super.setUploadType(uploadType); + public GetEncryptionSpec setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetEncryptionSpec) super.setPrettyPrint(prettyPrint); } @Override - public UpdateSettings setUploadProtocol(java.lang.String uploadProtocol) { - return (UpdateSettings) super.setUploadProtocol(uploadProtocol); + public GetEncryptionSpec setQuotaUser(java.lang.String quotaUser) { + return (GetEncryptionSpec) super.setQuotaUser(quotaUser); } - /** - * Immutable. The resource name of the settings resource. Format: - * projects/{project}/locations/{location}/settings - */ + @Override + public GetEncryptionSpec setUploadType(java.lang.String uploadType) { + return (GetEncryptionSpec) super.setUploadType(uploadType); + } + + @Override + public GetEncryptionSpec setUploadProtocol(java.lang.String uploadProtocol) { + return (GetEncryptionSpec) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the encryption spec resource to get. */ @com.google.api.client.util.Key private java.lang.String name; - /** Immutable. The resource name of the settings resource. Format: - projects/{project}/locations/{location}/settings + /** Required. The name of the encryption spec resource to get. */ public java.lang.String getName() { return name; } - /** - * Immutable. The resource name of the settings resource. Format: - * projects/{project}/locations/{location}/settings - */ - public UpdateSettings setName(java.lang.String name) { + /** Required. The name of the encryption spec resource to get. */ + public GetEncryptionSpec setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/settings$"); + "^projects/[^/]+/locations/[^/]+/encryptionSpec$"); } this.name = name; return this; } - /** Required. The list of fields to be updated. */ - @com.google.api.client.util.Key - private String updateMask; - - /** Required. The list of fields to be updated. - */ - public String getUpdateMask() { - return updateMask; - } - - /** Required. The list of fields to be updated. */ - public UpdateSettings setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - @Override - public UpdateSettings set(String parameterName, Object value) { - return (UpdateSettings) super.set(parameterName, value); + public GetEncryptionSpec set(String parameterName, Object value) { + return (GetEncryptionSpec) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Conversations collection. + * Gets project-level settings. * - *

The typical use is:

- *
-       *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
-       *   {@code Contactcenterinsights.Conversations.List request = contactcenterinsights.conversations().list(parameters ...)}
-       * 
+ * Create a request for the method "locations.getSettings". * - * @return the resource collection + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link GetSettings#execute()} method to invoke the remote + * operation. + * + * @param name Required. The name of the settings resource to get. + * @return the request */ - public Conversations conversations() { - return new Conversations(); + public GetSettings getSettings(java.lang.String name) throws java.io.IOException { + GetSettings result = new GetSettings(name); + initialize(result); + return result; } - /** - * The "conversations" collection of methods. - */ - public class Conversations { + public class GetSettings extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/settings$"); /** - * Analyzes multiple conversations in a single request. + * Gets project-level settings. * - * Create a request for the method "conversations.bulkAnalyze". + * Create a request for the method "locations.getSettings". * - * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link BulkAnalyze#execute()} method to invoke the remote - * operation. + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link GetSettings#execute()} method to invoke the + * remote operation.

{@link + * GetSettings#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

* - * @param parent Required. The parent resource to create analyses in. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest} - * @return the request + * @param name Required. The name of the settings resource to get. + * @since 1.13 */ - public BulkAnalyze bulkAnalyze(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest content) throws java.io.IOException { - BulkAnalyze result = new BulkAnalyze(parent, content); - initialize(result); - return result; + protected GetSettings(java.lang.String name) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Settings.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/settings$"); + } } - public class BulkAnalyze extends ContactcenterinsightsRequest { + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private static final String REST_PATH = "v1/{+parent}/conversations:bulkAnalyze"; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + @Override + public GetSettings set$Xgafv(java.lang.String $Xgafv) { + return (GetSettings) super.set$Xgafv($Xgafv); + } - /** - * Analyzes multiple conversations in a single request. - * - * Create a request for the method "conversations.bulkAnalyze". - * - * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link BulkAnalyze#execute()} method to invoke the - * remote operation.

{@link - * BulkAnalyze#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param parent Required. The parent resource to create analyses in. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest} - * @since 1.13 - */ - protected BulkAnalyze(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest content) { - super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } + @Override + public GetSettings setAccessToken(java.lang.String accessToken) { + return (GetSettings) super.setAccessToken(accessToken); + } - @Override - public BulkAnalyze set$Xgafv(java.lang.String $Xgafv) { - return (BulkAnalyze) super.set$Xgafv($Xgafv); - } + @Override + public GetSettings setAlt(java.lang.String alt) { + return (GetSettings) super.setAlt(alt); + } - @Override - public BulkAnalyze setAccessToken(java.lang.String accessToken) { - return (BulkAnalyze) super.setAccessToken(accessToken); - } + @Override + public GetSettings setCallback(java.lang.String callback) { + return (GetSettings) super.setCallback(callback); + } - @Override - public BulkAnalyze setAlt(java.lang.String alt) { - return (BulkAnalyze) super.setAlt(alt); - } + @Override + public GetSettings setFields(java.lang.String fields) { + return (GetSettings) super.setFields(fields); + } - @Override - public BulkAnalyze setCallback(java.lang.String callback) { - return (BulkAnalyze) super.setCallback(callback); - } + @Override + public GetSettings setKey(java.lang.String key) { + return (GetSettings) super.setKey(key); + } - @Override - public BulkAnalyze setFields(java.lang.String fields) { - return (BulkAnalyze) super.setFields(fields); - } + @Override + public GetSettings setOauthToken(java.lang.String oauthToken) { + return (GetSettings) super.setOauthToken(oauthToken); + } - @Override - public BulkAnalyze setKey(java.lang.String key) { - return (BulkAnalyze) super.setKey(key); - } + @Override + public GetSettings setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GetSettings) super.setPrettyPrint(prettyPrint); + } - @Override - public BulkAnalyze setOauthToken(java.lang.String oauthToken) { - return (BulkAnalyze) super.setOauthToken(oauthToken); - } + @Override + public GetSettings setQuotaUser(java.lang.String quotaUser) { + return (GetSettings) super.setQuotaUser(quotaUser); + } - @Override - public BulkAnalyze setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BulkAnalyze) super.setPrettyPrint(prettyPrint); - } + @Override + public GetSettings setUploadType(java.lang.String uploadType) { + return (GetSettings) super.setUploadType(uploadType); + } - @Override - public BulkAnalyze setQuotaUser(java.lang.String quotaUser) { - return (BulkAnalyze) super.setQuotaUser(quotaUser); - } + @Override + public GetSettings setUploadProtocol(java.lang.String uploadProtocol) { + return (GetSettings) super.setUploadProtocol(uploadProtocol); + } - @Override - public BulkAnalyze setUploadType(java.lang.String uploadType) { - return (BulkAnalyze) super.setUploadType(uploadType); - } + /** Required. The name of the settings resource to get. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public BulkAnalyze setUploadProtocol(java.lang.String uploadProtocol) { - return (BulkAnalyze) super.setUploadProtocol(uploadProtocol); + /** Required. The name of the settings resource to get. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the settings resource to get. */ + public GetSettings setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/settings$"); } + this.name = name; + return this; + } - /** Required. The parent resource to create analyses in. */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public GetSettings set(String parameterName, Object value) { + return (GetSettings) super.set(parameterName, value); + } + } + /** + * List all feedback labels by project number. + * + * Create a request for the method "locations.listAllFeedbackLabels". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link ListAllFeedbackLabels#execute()} method to invoke the remote + * operation. + * + * @param parent Required. The parent resource of all feedback labels per project. + * @return the request + */ + public ListAllFeedbackLabels listAllFeedbackLabels(java.lang.String parent) throws java.io.IOException { + ListAllFeedbackLabels result = new ListAllFeedbackLabels(parent); + initialize(result); + return result; + } - /** Required. The parent resource to create analyses in. - */ - public java.lang.String getParent() { - return parent; - } + public class ListAllFeedbackLabels extends ContactcenterinsightsRequest { - /** Required. The parent resource to create analyses in. */ - public BulkAnalyze setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } + private static final String REST_PATH = "v1/{+parent}:listAllFeedbackLabels"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - @Override - public BulkAnalyze set(String parameterName, Object value) { - return (BulkAnalyze) super.set(parameterName, value); - } - } /** - * Deletes multiple conversations in a single request. + * List all feedback labels by project number. * - * Create a request for the method "conversations.bulkDelete". + * Create a request for the method "locations.listAllFeedbackLabels". * - * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link BulkDelete#execute()} method to invoke the remote operation. + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link ListAllFeedbackLabels#execute()} method to + * invoke the remote operation.

{@link ListAllFeedbackLabels#initialize(com.google.api.client. + * googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.

* - * @param parent Required. The parent resource to delete conversations from. Format: - * projects/{project}/locations/{location} - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest} - * @return the request + * @param parent Required. The parent resource of all feedback labels per project. + * @since 1.13 */ - public BulkDelete bulkDelete(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest content) throws java.io.IOException { - BulkDelete result = new BulkDelete(parent, content); - initialize(result); - return result; + protected ListAllFeedbackLabels(java.lang.String parent) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } } - public class BulkDelete extends ContactcenterinsightsRequest { + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - private static final String REST_PATH = "v1/{+parent}/conversations:bulkDelete"; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + @Override + public ListAllFeedbackLabels set$Xgafv(java.lang.String $Xgafv) { + return (ListAllFeedbackLabels) super.set$Xgafv($Xgafv); + } - /** - * Deletes multiple conversations in a single request. - * - * Create a request for the method "conversations.bulkDelete". - * - * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link BulkDelete#execute()} method to invoke the - * remote operation.

{@link - * BulkDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

- * - * @param parent Required. The parent resource to delete conversations from. Format: - * projects/{project}/locations/{location} - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest} - * @since 1.13 - */ - protected BulkDelete(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest content) { - super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } + @Override + public ListAllFeedbackLabels setAccessToken(java.lang.String accessToken) { + return (ListAllFeedbackLabels) super.setAccessToken(accessToken); + } - @Override - public BulkDelete set$Xgafv(java.lang.String $Xgafv) { - return (BulkDelete) super.set$Xgafv($Xgafv); - } - - @Override - public BulkDelete setAccessToken(java.lang.String accessToken) { - return (BulkDelete) super.setAccessToken(accessToken); - } + @Override + public ListAllFeedbackLabels setAlt(java.lang.String alt) { + return (ListAllFeedbackLabels) super.setAlt(alt); + } - @Override - public BulkDelete setAlt(java.lang.String alt) { - return (BulkDelete) super.setAlt(alt); - } + @Override + public ListAllFeedbackLabels setCallback(java.lang.String callback) { + return (ListAllFeedbackLabels) super.setCallback(callback); + } - @Override - public BulkDelete setCallback(java.lang.String callback) { - return (BulkDelete) super.setCallback(callback); - } + @Override + public ListAllFeedbackLabels setFields(java.lang.String fields) { + return (ListAllFeedbackLabels) super.setFields(fields); + } - @Override - public BulkDelete setFields(java.lang.String fields) { - return (BulkDelete) super.setFields(fields); - } + @Override + public ListAllFeedbackLabels setKey(java.lang.String key) { + return (ListAllFeedbackLabels) super.setKey(key); + } - @Override - public BulkDelete setKey(java.lang.String key) { - return (BulkDelete) super.setKey(key); - } + @Override + public ListAllFeedbackLabels setOauthToken(java.lang.String oauthToken) { + return (ListAllFeedbackLabels) super.setOauthToken(oauthToken); + } - @Override - public BulkDelete setOauthToken(java.lang.String oauthToken) { - return (BulkDelete) super.setOauthToken(oauthToken); - } + @Override + public ListAllFeedbackLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListAllFeedbackLabels) super.setPrettyPrint(prettyPrint); + } - @Override - public BulkDelete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (BulkDelete) super.setPrettyPrint(prettyPrint); - } + @Override + public ListAllFeedbackLabels setQuotaUser(java.lang.String quotaUser) { + return (ListAllFeedbackLabels) super.setQuotaUser(quotaUser); + } - @Override - public BulkDelete setQuotaUser(java.lang.String quotaUser) { - return (BulkDelete) super.setQuotaUser(quotaUser); - } + @Override + public ListAllFeedbackLabels setUploadType(java.lang.String uploadType) { + return (ListAllFeedbackLabels) super.setUploadType(uploadType); + } - @Override - public BulkDelete setUploadType(java.lang.String uploadType) { - return (BulkDelete) super.setUploadType(uploadType); - } + @Override + public ListAllFeedbackLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (ListAllFeedbackLabels) super.setUploadProtocol(uploadProtocol); + } - @Override - public BulkDelete setUploadProtocol(java.lang.String uploadProtocol) { - return (BulkDelete) super.setUploadProtocol(uploadProtocol); - } + /** Required. The parent resource of all feedback labels per project. */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * Required. The parent resource to delete conversations from. Format: - * projects/{project}/locations/{location} - */ - @com.google.api.client.util.Key - private java.lang.String parent; + /** Required. The parent resource of all feedback labels per project. + */ + public java.lang.String getParent() { + return parent; + } - /** Required. The parent resource to delete conversations from. Format: - projects/{project}/locations/{location} - */ - public java.lang.String getParent() { - return parent; + /** Required. The parent resource of all feedback labels per project. */ + public ListAllFeedbackLabels setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + this.parent = parent; + return this; + } - /** - * Required. The parent resource to delete conversations from. Format: - * projects/{project}/locations/{location} - */ - public BulkDelete setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } + /** + * Optional. A filter to reduce results to a specific subset in the entire project. Supports + * disjunctions (OR) and conjunctions (AND). Supported fields: * `issue_model_id` * + * `qa_question_id` * `min_create_time` * `max_create_time` * `min_update_time` * + * `max_update_time` * `feedback_label_type`: QUALITY_AI, TOPIC_MODELING + */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public BulkDelete set(String parameterName, Object value) { - return (BulkDelete) super.set(parameterName, value); - } + /** Optional. A filter to reduce results to a specific subset in the entire project. Supports + disjunctions (OR) and conjunctions (AND). Supported fields: * `issue_model_id` * `qa_question_id` * + `min_create_time` * `max_create_time` * `min_update_time` * `max_update_time` * + `feedback_label_type`: QUALITY_AI, TOPIC_MODELING + */ + public java.lang.String getFilter() { + return filter; } + /** - * Gets conversation statistics. - * - * Create a request for the method "conversations.calculateStats". - * - * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link CalculateStats#execute()} method to invoke the remote - * operation. - * - * @param location Required. The location of the conversations. - * @return the request + * Optional. A filter to reduce results to a specific subset in the entire project. Supports + * disjunctions (OR) and conjunctions (AND). Supported fields: * `issue_model_id` * + * `qa_question_id` * `min_create_time` * `max_create_time` * `min_update_time` * + * `max_update_time` * `feedback_label_type`: QUALITY_AI, TOPIC_MODELING */ - public CalculateStats calculateStats(java.lang.String location) throws java.io.IOException { - CalculateStats result = new CalculateStats(location); - initialize(result); - return result; + public ListAllFeedbackLabels setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - public class CalculateStats extends ContactcenterinsightsRequest { + /** + * Optional. The maximum number of feedback labels to return in the response. A valid page + * size ranges from 0 to 100,000 inclusive. If the page size is zero or unspecified, a + * default page size of 100 will be chosen. Note that a call might return fewer results than + * the requested page size. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - private static final String REST_PATH = "v1/{+location}/conversations:calculateStats"; + /** Optional. The maximum number of feedback labels to return in the response. A valid page size ranges + from 0 to 100,000 inclusive. If the page size is zero or unspecified, a default page size of 100 + will be chosen. Note that a call might return fewer results than the requested page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - private final java.util.regex.Pattern LOCATION_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** + * Optional. The maximum number of feedback labels to return in the response. A valid page + * size ranges from 0 to 100,000 inclusive. If the page size is zero or unspecified, a + * default page size of 100 will be chosen. Note that a call might return fewer results than + * the requested page size. + */ + public ListAllFeedbackLabels setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - /** - * Gets conversation statistics. - * - * Create a request for the method "conversations.calculateStats". - * - * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link CalculateStats#execute()} method to invoke the - * remote operation.

{@link CalculateStats#initialize(com.google.api.client.googleapis.service - * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after - * invoking the constructor.

- * - * @param location Required. The location of the conversations. - * @since 1.13 - */ - protected CalculateStats(java.lang.String location) { - super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1CalculateStatsResponse.class); - this.location = com.google.api.client.util.Preconditions.checkNotNull(location, "Required parameter location must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), - "Parameter location must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } + /** + * Optional. The value returned by the last `ListAllFeedbackLabelsResponse`. This value + * indicates that this is a continuation of a prior `ListAllFeedbackLabels` call and that + * the system should return the next page of data. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** Optional. The value returned by the last `ListAllFeedbackLabelsResponse`. This value indicates that + this is a continuation of a prior `ListAllFeedbackLabels` call and that the system should return + the next page of data. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** + * Optional. The value returned by the last `ListAllFeedbackLabelsResponse`. This value + * indicates that this is a continuation of a prior `ListAllFeedbackLabels` call and that + * the system should return the next page of data. + */ + public ListAllFeedbackLabels setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public CalculateStats set$Xgafv(java.lang.String $Xgafv) { - return (CalculateStats) super.set$Xgafv($Xgafv); - } + @Override + public ListAllFeedbackLabels set(String parameterName, Object value) { + return (ListAllFeedbackLabels) super.set(parameterName, value); + } + } + /** + * Query metrics. + * + * Create a request for the method "locations.queryMetrics". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link QueryMetrics#execute()} method to invoke the remote + * operation. + * + * @param location Required. The location of the data. "projects/{project}/locations/{location}" + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QueryMetricsRequest} + * @return the request + */ + public QueryMetrics queryMetrics(java.lang.String location, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QueryMetricsRequest content) throws java.io.IOException { + QueryMetrics result = new QueryMetrics(location, content); + initialize(result); + return result; + } - @Override - public CalculateStats setAccessToken(java.lang.String accessToken) { - return (CalculateStats) super.setAccessToken(accessToken); - } + public class QueryMetrics extends ContactcenterinsightsRequest { - @Override - public CalculateStats setAlt(java.lang.String alt) { - return (CalculateStats) super.setAlt(alt); - } + private static final String REST_PATH = "v1/{+location}:queryMetrics"; - @Override - public CalculateStats setCallback(java.lang.String callback) { - return (CalculateStats) super.setCallback(callback); - } + private final java.util.regex.Pattern LOCATION_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - @Override - public CalculateStats setFields(java.lang.String fields) { - return (CalculateStats) super.setFields(fields); + /** + * Query metrics. + * + * Create a request for the method "locations.queryMetrics". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link QueryMetrics#execute()} method to invoke the + * remote operation.

{@link + * QueryMetrics#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param location Required. The location of the data. "projects/{project}/locations/{location}" + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QueryMetricsRequest} + * @since 1.13 + */ + protected QueryMetrics(java.lang.String location, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QueryMetricsRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.location = com.google.api.client.util.Preconditions.checkNotNull(location, "Required parameter location must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), + "Parameter location must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + } - @Override - public CalculateStats setKey(java.lang.String key) { - return (CalculateStats) super.setKey(key); - } + @Override + public QueryMetrics set$Xgafv(java.lang.String $Xgafv) { + return (QueryMetrics) super.set$Xgafv($Xgafv); + } - @Override - public CalculateStats setOauthToken(java.lang.String oauthToken) { - return (CalculateStats) super.setOauthToken(oauthToken); - } + @Override + public QueryMetrics setAccessToken(java.lang.String accessToken) { + return (QueryMetrics) super.setAccessToken(accessToken); + } - @Override - public CalculateStats setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CalculateStats) super.setPrettyPrint(prettyPrint); - } + @Override + public QueryMetrics setAlt(java.lang.String alt) { + return (QueryMetrics) super.setAlt(alt); + } - @Override - public CalculateStats setQuotaUser(java.lang.String quotaUser) { - return (CalculateStats) super.setQuotaUser(quotaUser); - } + @Override + public QueryMetrics setCallback(java.lang.String callback) { + return (QueryMetrics) super.setCallback(callback); + } - @Override - public CalculateStats setUploadType(java.lang.String uploadType) { - return (CalculateStats) super.setUploadType(uploadType); - } + @Override + public QueryMetrics setFields(java.lang.String fields) { + return (QueryMetrics) super.setFields(fields); + } - @Override - public CalculateStats setUploadProtocol(java.lang.String uploadProtocol) { - return (CalculateStats) super.setUploadProtocol(uploadProtocol); - } + @Override + public QueryMetrics setKey(java.lang.String key) { + return (QueryMetrics) super.setKey(key); + } - /** Required. The location of the conversations. */ - @com.google.api.client.util.Key - private java.lang.String location; + @Override + public QueryMetrics setOauthToken(java.lang.String oauthToken) { + return (QueryMetrics) super.setOauthToken(oauthToken); + } - /** Required. The location of the conversations. - */ - public java.lang.String getLocation() { - return location; - } + @Override + public QueryMetrics setPrettyPrint(java.lang.Boolean prettyPrint) { + return (QueryMetrics) super.setPrettyPrint(prettyPrint); + } - /** Required. The location of the conversations. */ - public CalculateStats setLocation(java.lang.String location) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), - "Parameter location must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.location = location; - return this; - } + @Override + public QueryMetrics setQuotaUser(java.lang.String quotaUser) { + return (QueryMetrics) super.setQuotaUser(quotaUser); + } - /** - * A filter to reduce results to a specific subset. This field is useful for getting - * statistics about conversations with specific properties. - */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public QueryMetrics setUploadType(java.lang.String uploadType) { + return (QueryMetrics) super.setUploadType(uploadType); + } - /** A filter to reduce results to a specific subset. This field is useful for getting statistics about - conversations with specific properties. - */ - public java.lang.String getFilter() { - return filter; + @Override + public QueryMetrics setUploadProtocol(java.lang.String uploadProtocol) { + return (QueryMetrics) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The location of the data. "projects/{project}/locations/{location}" */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** Required. The location of the data. "projects/{project}/locations/{location}" + */ + public java.lang.String getLocation() { + return location; + } + + /** Required. The location of the data. "projects/{project}/locations/{location}" */ + public QueryMetrics setLocation(java.lang.String location) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), + "Parameter location must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } + this.location = location; + return this; + } - /** - * A filter to reduce results to a specific subset. This field is useful for getting - * statistics about conversations with specific properties. - */ - public CalculateStats setFilter(java.lang.String filter) { - this.filter = filter; - return this; + @Override + public QueryMetrics set(String parameterName, Object value) { + return (QueryMetrics) super.set(parameterName, value); + } + } + /** + * Updates project-level settings. + * + * Create a request for the method "locations.updateSettings". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link UpdateSettings#execute()} method to invoke the remote + * operation. + * + * @param name Immutable. The resource name of the settings resource. Format: + * projects/{project}/locations/{location}/settings + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Settings} + * @return the request + */ + public UpdateSettings updateSettings(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Settings content) throws java.io.IOException { + UpdateSettings result = new UpdateSettings(name, content); + initialize(result); + return result; + } + + public class UpdateSettings extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/settings$"); + + /** + * Updates project-level settings. + * + * Create a request for the method "locations.updateSettings". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link UpdateSettings#execute()} method to invoke the + * remote operation.

{@link UpdateSettings#initialize(com.google.api.client.googleapis.service + * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

+ * + * @param name Immutable. The resource name of the settings resource. Format: + * projects/{project}/locations/{location}/settings + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Settings} + * @since 1.13 + */ + protected UpdateSettings(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Settings content) { + super(Contactcenterinsights.this, "PATCH", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Settings.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/settings$"); } + } - @Override - public CalculateStats set(String parameterName, Object value) { - return (CalculateStats) super.set(parameterName, value); + @Override + public UpdateSettings set$Xgafv(java.lang.String $Xgafv) { + return (UpdateSettings) super.set$Xgafv($Xgafv); + } + + @Override + public UpdateSettings setAccessToken(java.lang.String accessToken) { + return (UpdateSettings) super.setAccessToken(accessToken); + } + + @Override + public UpdateSettings setAlt(java.lang.String alt) { + return (UpdateSettings) super.setAlt(alt); + } + + @Override + public UpdateSettings setCallback(java.lang.String callback) { + return (UpdateSettings) super.setCallback(callback); + } + + @Override + public UpdateSettings setFields(java.lang.String fields) { + return (UpdateSettings) super.setFields(fields); + } + + @Override + public UpdateSettings setKey(java.lang.String key) { + return (UpdateSettings) super.setKey(key); + } + + @Override + public UpdateSettings setOauthToken(java.lang.String oauthToken) { + return (UpdateSettings) super.setOauthToken(oauthToken); + } + + @Override + public UpdateSettings setPrettyPrint(java.lang.Boolean prettyPrint) { + return (UpdateSettings) super.setPrettyPrint(prettyPrint); + } + + @Override + public UpdateSettings setQuotaUser(java.lang.String quotaUser) { + return (UpdateSettings) super.setQuotaUser(quotaUser); + } + + @Override + public UpdateSettings setUploadType(java.lang.String uploadType) { + return (UpdateSettings) super.setUploadType(uploadType); + } + + @Override + public UpdateSettings setUploadProtocol(java.lang.String uploadProtocol) { + return (UpdateSettings) super.setUploadProtocol(uploadProtocol); + } + + /** + * Immutable. The resource name of the settings resource. Format: + * projects/{project}/locations/{location}/settings + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Immutable. The resource name of the settings resource. Format: + projects/{project}/locations/{location}/settings + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. The resource name of the settings resource. Format: + * projects/{project}/locations/{location}/settings + */ + public UpdateSettings setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/settings$"); } + this.name = name; + return this; + } + + /** Required. The list of fields to be updated. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The list of fields to be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. The list of fields to be updated. */ + public UpdateSettings setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public UpdateSettings set(String parameterName, Object value) { + return (UpdateSettings) super.set(parameterName, value); } + } + + /** + * An accessor for creating requests from the AnalysisRules collection. + * + *

The typical use is:

+ *
+       *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
+       *   {@code Contactcenterinsights.AnalysisRules.List request = contactcenterinsights.analysisRules().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public AnalysisRules analysisRules() { + return new AnalysisRules(); + } + + /** + * The "analysisRules" collection of methods. + */ + public class AnalysisRules { + /** - * Creates a conversation. Does not support audio transcription or DLP redaction. Use - * `conversations.upload` instead. + * Creates a analysis rule. * - * Create a request for the method "conversations.create". + * Create a request for the method "analysisRules.create". * * This request holds the parameters needed by the contactcenterinsights server. After setting any * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param parent Required. The parent resource of the conversation. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation} + * @param parent Required. The parent resource of the analysis rule. Required. The location to create a analysis rule + * for. Format: `projects//locations/` or `projects//locations/` + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AnalysisRule} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation content) throws java.io.IOException { + public Create create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AnalysisRule content) throws java.io.IOException { Create result = new Create(parent, content); initialize(result); return result; } - public class Create extends ContactcenterinsightsRequest { + public class Create extends ContactcenterinsightsRequest { - private static final String REST_PATH = "v1/{+parent}/conversations"; + private static final String REST_PATH = "v1/{+parent}/analysisRules"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Creates a conversation. Does not support audio transcription or DLP redaction. Use - * `conversations.upload` instead. + * Creates a analysis rule. * - * Create a request for the method "conversations.create". + * Create a request for the method "analysisRules.create". * * This request holds the parameters needed by the the contactcenterinsights server. After * setting any optional parameters, call the {@link Create#execute()} method to invoke the remote @@ -964,12 +1287,13 @@ public class Create extends ContactcenterinsightsRequest * - * @param parent Required. The parent resource of the conversation. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation} + * @param parent Required. The parent resource of the analysis rule. Required. The location to create a analysis rule + * for. Format: `projects//locations/` or `projects//locations/` + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AnalysisRule} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation content) { - super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation.class); + protected Create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AnalysisRule content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AnalysisRule.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -1033,17 +1357,24 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { return (Create) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent resource of the conversation. */ + /** + * Required. The parent resource of the analysis rule. Required. The location to create a + * analysis rule for. Format: `projects//locations/` or `projects//locations/` + */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent resource of the conversation. + /** Required. The parent resource of the analysis rule. Required. The location to create a analysis + rule for. Format: `projects//locations/` or `projects//locations/` */ public java.lang.String getParent() { return parent; } - /** Required. The parent resource of the conversation. */ + /** + * Required. The parent resource of the analysis rule. Required. The location to create a + * analysis rule for. Format: `projects//locations/` or `projects//locations/` + */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -1054,48 +1385,20 @@ public Create setParent(java.lang.String parent) { return this; } - /** - * A unique ID for the new conversation. This ID will become the final component of the - * conversation's resource name. If no ID is specified, a server-generated ID will be - * used. This value should be 4-64 characters and must match the regular expression - * `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` - */ - @com.google.api.client.util.Key - private java.lang.String conversationId; - - /** A unique ID for the new conversation. This ID will become the final component of the conversation's - resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 - characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` - */ - public java.lang.String getConversationId() { - return conversationId; - } - - /** - * A unique ID for the new conversation. This ID will become the final component of the - * conversation's resource name. If no ID is specified, a server-generated ID will be - * used. This value should be 4-64 characters and must match the regular expression - * `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` - */ - public Create setConversationId(java.lang.String conversationId) { - this.conversationId = conversationId; - return this; - } - @Override public Create set(String parameterName, Object value) { return (Create) super.set(parameterName, value); } } /** - * Deletes a conversation. + * Deletes a analysis rule. * - * Create a request for the method "conversations.delete". + * Create a request for the method "analysisRules.delete". * * This request holds the parameters needed by the contactcenterinsights server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The name of the conversation to delete. + * @param name Required. The name of the analysis rule to delete. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -1109,12 +1412,12 @@ public class Delete extends ContactcenterinsightsRequest * - * @param name Required. The name of the conversation to delete. + * @param name Required. The name of the analysis rule to delete. * @since 1.13 */ protected Delete(java.lang.String name) { @@ -1131,7 +1434,7 @@ protected Delete(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/analysisRules/[^/]+$"); } } @@ -1190,64 +1493,41 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the conversation to delete. */ + /** Required. The name of the analysis rule to delete. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the conversation to delete. + /** Required. The name of the analysis rule to delete. */ public java.lang.String getName() { return name; } - /** Required. The name of the conversation to delete. */ + /** Required. The name of the analysis rule to delete. */ public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/analysisRules/[^/]+$"); } this.name = name; return this; } - /** - * If set to true, all of this conversation's analyses will also be deleted. Otherwise, - * the request will only succeed if the conversation has no analyses. - */ - @com.google.api.client.util.Key - private java.lang.Boolean force; - - /** If set to true, all of this conversation's analyses will also be deleted. Otherwise, the request - will only succeed if the conversation has no analyses. - */ - public java.lang.Boolean getForce() { - return force; - } - - /** - * If set to true, all of this conversation's analyses will also be deleted. Otherwise, - * the request will only succeed if the conversation has no analyses. - */ - public Delete setForce(java.lang.Boolean force) { - this.force = force; - return this; - } - @Override public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } /** - * Gets a conversation. + * Get a analysis rule. * - * Create a request for the method "conversations.get". + * Create a request for the method "analysisRules.get". * * This request holds the parameters needed by the contactcenterinsights server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The name of the conversation to get. + * @param name Required. The name of the AnalysisRule to get. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -1256,17 +1536,17 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends ContactcenterinsightsRequest { + public class Get extends ContactcenterinsightsRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/analysisRules/[^/]+$"); /** - * Gets a conversation. + * Get a analysis rule. * - * Create a request for the method "conversations.get". + * Create a request for the method "analysisRules.get". * * This request holds the parameters needed by the the contactcenterinsights server. After * setting any optional parameters, call the {@link Get#execute()} method to invoke the remote @@ -1274,16 +1554,16 @@ public class Get extends ContactcenterinsightsRequest * - * @param name Required. The name of the conversation to get. + * @param name Required. The name of the AnalysisRule to get. * @since 1.13 */ protected Get(java.lang.String name) { - super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation.class); + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AnalysisRule.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/analysisRules/[^/]+$"); } } @@ -1352,188 +1632,41 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the conversation to get. */ + /** Required. The name of the AnalysisRule to get. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the conversation to get. + /** Required. The name of the AnalysisRule to get. */ public java.lang.String getName() { return name; } - /** Required. The name of the conversation to get. */ + /** Required. The name of the AnalysisRule to get. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/analysisRules/[^/]+$"); } this.name = name; return this; } - /** The level of details of the conversation. Default is `FULL`. */ - @com.google.api.client.util.Key - private java.lang.String view; - - /** The level of details of the conversation. Default is `FULL`. - */ - public java.lang.String getView() { - return view; - } - - /** The level of details of the conversation. Default is `FULL`. */ - public Get setView(java.lang.String view) { - this.view = view; - return this; - } - @Override public Get set(String parameterName, Object value) { return (Get) super.set(parameterName, value); } } /** - * Imports conversations and processes them according to the user's configuration. - * - * Create a request for the method "conversations.ingest". - * - * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link Ingest#execute()} method to invoke the remote operation. - * - * @param parent Required. The parent resource for new conversations. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IngestConversationsRequest} - * @return the request - */ - public Ingest ingest(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IngestConversationsRequest content) throws java.io.IOException { - Ingest result = new Ingest(parent, content); - initialize(result); - return result; - } - - public class Ingest extends ContactcenterinsightsRequest { - - private static final String REST_PATH = "v1/{+parent}/conversations:ingest"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); - - /** - * Imports conversations and processes them according to the user's configuration. - * - * Create a request for the method "conversations.ingest". - * - * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link Ingest#execute()} method to invoke the remote - * operation.

{@link - * Ingest#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param parent Required. The parent resource for new conversations. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IngestConversationsRequest} - * @since 1.13 - */ - protected Ingest(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IngestConversationsRequest content) { - super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public Ingest set$Xgafv(java.lang.String $Xgafv) { - return (Ingest) super.set$Xgafv($Xgafv); - } - - @Override - public Ingest setAccessToken(java.lang.String accessToken) { - return (Ingest) super.setAccessToken(accessToken); - } - - @Override - public Ingest setAlt(java.lang.String alt) { - return (Ingest) super.setAlt(alt); - } - - @Override - public Ingest setCallback(java.lang.String callback) { - return (Ingest) super.setCallback(callback); - } - - @Override - public Ingest setFields(java.lang.String fields) { - return (Ingest) super.setFields(fields); - } - - @Override - public Ingest setKey(java.lang.String key) { - return (Ingest) super.setKey(key); - } - - @Override - public Ingest setOauthToken(java.lang.String oauthToken) { - return (Ingest) super.setOauthToken(oauthToken); - } - - @Override - public Ingest setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Ingest) super.setPrettyPrint(prettyPrint); - } - - @Override - public Ingest setQuotaUser(java.lang.String quotaUser) { - return (Ingest) super.setQuotaUser(quotaUser); - } - - @Override - public Ingest setUploadType(java.lang.String uploadType) { - return (Ingest) super.setUploadType(uploadType); - } - - @Override - public Ingest setUploadProtocol(java.lang.String uploadProtocol) { - return (Ingest) super.setUploadProtocol(uploadProtocol); - } - - /** Required. The parent resource for new conversations. */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The parent resource for new conversations. - */ - public java.lang.String getParent() { - return parent; - } - - /** Required. The parent resource for new conversations. */ - public Ingest setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - @Override - public Ingest set(String parameterName, Object value) { - return (Ingest) super.set(parameterName, value); - } - } - /** - * Lists conversations. + * Lists analysis rules. * - * Create a request for the method "conversations.list". + * Create a request for the method "analysisRules.list". * * This request holds the parameters needed by the contactcenterinsights server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The parent resource of the conversation. + * @param parent Required. The parent resource of the analysis rules. * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -1542,17 +1675,17 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends ContactcenterinsightsRequest { + public class List extends ContactcenterinsightsRequest { - private static final String REST_PATH = "v1/{+parent}/conversations"; + private static final String REST_PATH = "v1/{+parent}/analysisRules"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Lists conversations. + * Lists analysis rules. * - * Create a request for the method "conversations.list". + * Create a request for the method "analysisRules.list". * * This request holds the parameters needed by the the contactcenterinsights server. After * setting any optional parameters, call the {@link List#execute()} method to invoke the remote @@ -1560,11 +1693,11 @@ public class List extends ContactcenterinsightsRequest * - * @param parent Required. The parent resource of the conversation. + * @param parent Required. The parent resource of the analysis rules. * @since 1.13 */ protected List(java.lang.String parent) { - super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListConversationsResponse.class); + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -1638,17 +1771,17 @@ public List setUploadProtocol(java.lang.String uploadProtocol) { return (List) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent resource of the conversation. */ + /** Required. The parent resource of the analysis rules. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent resource of the conversation. + /** Required. The parent resource of the analysis rules. */ public java.lang.String getParent() { return parent; } - /** Required. The parent resource of the conversation. */ + /** Required. The parent resource of the analysis rules. */ public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -1660,167 +1793,94 @@ public List setParent(java.lang.String parent) { } /** - * A filter to reduce results to a specific subset. Useful for querying conversations with - * specific properties. + * Optional. The maximum number of analysis rule to return in the response. If this value + * is zero, the service will select a default size. A call may return fewer objects than + * requested. A non-empty `next_page_token` in the response indicates that more data is + * available. */ @com.google.api.client.util.Key - private java.lang.String filter; + private java.lang.Integer pageSize; - /** A filter to reduce results to a specific subset. Useful for querying conversations with specific - properties. + /** Optional. The maximum number of analysis rule to return in the response. If this value is zero, the + service will select a default size. A call may return fewer objects than requested. A non-empty + `next_page_token` in the response indicates that more data is available. */ - public java.lang.String getFilter() { - return filter; + public java.lang.Integer getPageSize() { + return pageSize; } /** - * A filter to reduce results to a specific subset. Useful for querying conversations with - * specific properties. + * Optional. The maximum number of analysis rule to return in the response. If this value + * is zero, the service will select a default size. A call may return fewer objects than + * requested. A non-empty `next_page_token` in the response indicates that more data is + * available. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } /** - * Optional. The attribute by which to order conversations in the response. If empty, - * conversations will be ordered by descending creation time. Supported values are one of - * the following: * create_time * customer_satisfaction_rating * duration * - * latest_analysis * start_time * turn_count The default sort order is ascending. To - * specify order, append `asc` or `desc` (`create_time desc`). For more details, see - * [Google AIPs Ordering](https://google.aip.dev/132#ordering). + * Optional. The value returned by the last `ListAnalysisRulesResponse`; indicates that + * this is a continuation of a prior `ListAnalysisRules` call and the system should return + * the next page of data. */ @com.google.api.client.util.Key - private java.lang.String orderBy; + private java.lang.String pageToken; - /** Optional. The attribute by which to order conversations in the response. If empty, conversations - will be ordered by descending creation time. Supported values are one of the following: * - create_time * customer_satisfaction_rating * duration * latest_analysis * start_time * turn_count - The default sort order is ascending. To specify order, append `asc` or `desc` (`create_time desc`). - For more details, see [Google AIPs Ordering](https://google.aip.dev/132#ordering). - */ - public java.lang.String getOrderBy() { - return orderBy; - } - - /** - * Optional. The attribute by which to order conversations in the response. If empty, - * conversations will be ordered by descending creation time. Supported values are one of - * the following: * create_time * customer_satisfaction_rating * duration * - * latest_analysis * start_time * turn_count The default sort order is ascending. To - * specify order, append `asc` or `desc` (`create_time desc`). For more details, see - * [Google AIPs Ordering](https://google.aip.dev/132#ordering). - */ - public List setOrderBy(java.lang.String orderBy) { - this.orderBy = orderBy; - return this; - } - - /** - * The maximum number of conversations to return in the response. A valid page size ranges - * from 0 to 1,000 inclusive. If the page size is zero or unspecified, a default page size - * of 100 will be chosen. Note that a call might return fewer results than the requested - * page size. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; - - /** The maximum number of conversations to return in the response. A valid page size ranges from 0 to - 1,000 inclusive. If the page size is zero or unspecified, a default page size of 100 will be - chosen. Note that a call might return fewer results than the requested page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } - - /** - * The maximum number of conversations to return in the response. A valid page size ranges - * from 0 to 1,000 inclusive. If the page size is zero or unspecified, a default page size - * of 100 will be chosen. Note that a call might return fewer results than the requested - * page size. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } - - /** - * The value returned by the last `ListConversationsResponse`. This value indicates that - * this is a continuation of a prior `ListConversations` call and that the system should - * return the next page of data. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; - - /** The value returned by the last `ListConversationsResponse`. This value indicates that this is a - continuation of a prior `ListConversations` call and that the system should return the next page of - data. + /** Optional. The value returned by the last `ListAnalysisRulesResponse`; indicates that this is a + continuation of a prior `ListAnalysisRules` call and the system should return the next page of + data. */ public java.lang.String getPageToken() { return pageToken; } /** - * The value returned by the last `ListConversationsResponse`. This value indicates that - * this is a continuation of a prior `ListConversations` call and that the system should - * return the next page of data. + * Optional. The value returned by the last `ListAnalysisRulesResponse`; indicates that + * this is a continuation of a prior `ListAnalysisRules` call and the system should return + * the next page of data. */ public List setPageToken(java.lang.String pageToken) { this.pageToken = pageToken; return this; } - /** The level of details of the conversation. Default is `BASIC`. */ - @com.google.api.client.util.Key - private java.lang.String view; - - /** The level of details of the conversation. Default is `BASIC`. - */ - public java.lang.String getView() { - return view; - } - - /** The level of details of the conversation. Default is `BASIC`. */ - public List setView(java.lang.String view) { - this.view = view; - return this; - } - @Override public List set(String parameterName, Object value) { return (List) super.set(parameterName, value); } } /** - * Updates a conversation. + * Updates a analysis rule. * - * Create a request for the method "conversations.patch". + * Create a request for the method "analysisRules.patch". * * This request holds the parameters needed by the contactcenterinsights server. After setting any * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Immutable. The resource name of the conversation. Format: - * projects/{project}/locations/{location}/conversations/{conversation} - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation} + * @param name Identifier. The resource name of the analysis rule. Format: + * projects/{project}/locations/{location}/analysisRules/{analysis_rule} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AnalysisRule} * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation content) throws java.io.IOException { + public Patch patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AnalysisRule content) throws java.io.IOException { Patch result = new Patch(name, content); initialize(result); return result; } - public class Patch extends ContactcenterinsightsRequest { + public class Patch extends ContactcenterinsightsRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/analysisRules/[^/]+$"); /** - * Updates a conversation. + * Updates a analysis rule. * - * Create a request for the method "conversations.patch". + * Create a request for the method "analysisRules.patch". * * This request holds the parameters needed by the the contactcenterinsights server. After * setting any optional parameters, call the {@link Patch#execute()} method to invoke the remote @@ -1828,18 +1888,18 @@ public class Patch extends ContactcenterinsightsRequest * - * @param name Immutable. The resource name of the conversation. Format: - * projects/{project}/locations/{location}/conversations/{conversation} - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation} + * @param name Identifier. The resource name of the analysis rule. Format: + * projects/{project}/locations/{location}/analysisRules/{analysis_rule} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AnalysisRule} * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation content) { - super(Contactcenterinsights.this, "PATCH", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation.class); + protected Patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AnalysisRule content) { + super(Contactcenterinsights.this, "PATCH", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AnalysisRule.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/analysisRules/[^/]+$"); } } @@ -1899,58 +1959,50 @@ public Patch setUploadProtocol(java.lang.String uploadProtocol) { } /** - * Immutable. The resource name of the conversation. Format: - * projects/{project}/locations/{location}/conversations/{conversation} + * Identifier. The resource name of the analysis rule. Format: + * projects/{project}/locations/{location}/analysisRules/{analysis_rule} */ @com.google.api.client.util.Key private java.lang.String name; - /** Immutable. The resource name of the conversation. Format: - projects/{project}/locations/{location}/conversations/{conversation} + /** Identifier. The resource name of the analysis rule. Format: + projects/{project}/locations/{location}/analysisRules/{analysis_rule} */ public java.lang.String getName() { return name; } /** - * Immutable. The resource name of the conversation. Format: - * projects/{project}/locations/{location}/conversations/{conversation} + * Identifier. The resource name of the analysis rule. Format: + * projects/{project}/locations/{location}/analysisRules/{analysis_rule} */ public Patch setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/analysisRules/[^/]+$"); } this.name = name; return this; } /** - * The list of fields to be updated. All possible fields can be updated by passing `*`, or - * a subset of the following updateable fields can be provided: * `agent_id` * - * `language_code` * `labels` * `metadata` * `quality_metadata` * `call_metadata` * - * `start_time` * `expire_time` or `ttl` * `data_source.gcs_source.audio_uri` or - * `data_source.dialogflow_source.audio_uri` + * Optional. The list of fields to be updated. If the update_mask is not provided, the + * update will be applied to all fields. */ @com.google.api.client.util.Key private String updateMask; - /** The list of fields to be updated. All possible fields can be updated by passing `*`, or a subset of - the following updateable fields can be provided: * `agent_id` * `language_code` * `labels` * - `metadata` * `quality_metadata` * `call_metadata` * `start_time` * `expire_time` or `ttl` * - `data_source.gcs_source.audio_uri` or `data_source.dialogflow_source.audio_uri` + /** Optional. The list of fields to be updated. If the update_mask is not provided, the update will be + applied to all fields. */ public String getUpdateMask() { return updateMask; } /** - * The list of fields to be updated. All possible fields can be updated by passing `*`, or - * a subset of the following updateable fields can be provided: * `agent_id` * - * `language_code` * `labels` * `metadata` * `quality_metadata` * `call_metadata` * - * `start_time` * `expire_time` or `ttl` * `data_source.gcs_source.audio_uri` or - * `data_source.dialogflow_source.audio_uri` + * Optional. The list of fields to be updated. If the update_mask is not provided, the + * update will be applied to all fields. */ public Patch setUpdateMask(String updateMask) { this.updateMask = updateMask; @@ -1962,414 +2014,5436 @@ public Patch set(String parameterName, Object value) { return (Patch) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the AuthorizedViewSets collection. + * + *

The typical use is:

+ *
+       *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
+       *   {@code Contactcenterinsights.AuthorizedViewSets.List request = contactcenterinsights.authorizedViewSets().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public AuthorizedViewSets authorizedViewSets() { + return new AuthorizedViewSets(); + } + + /** + * The "authorizedViewSets" collection of methods. + */ + public class AuthorizedViewSets { + /** - * Create a long-running conversation upload operation. This method differs from - * `CreateConversation` by allowing audio transcription and optional DLP redaction. - * - * Create a request for the method "conversations.upload". + * An accessor for creating requests from the AuthorizedViews collection. * - * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. + *

The typical use is:

+ *
+         *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
+         *   {@code Contactcenterinsights.AuthorizedViews.List request = contactcenterinsights.authorizedViews().list(parameters ...)}
+         * 
* - * @param parent Required. The parent resource of the conversation. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UploadConversationRequest} - * @return the request + * @return the resource collection */ - public Upload upload(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UploadConversationRequest content) throws java.io.IOException { - Upload result = new Upload(parent, content); - initialize(result); - return result; + public AuthorizedViews authorizedViews() { + return new AuthorizedViews(); } - public class Upload extends ContactcenterinsightsRequest { - - private static final String REST_PATH = "v1/{+parent}/conversations:upload"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** + * The "authorizedViews" collection of methods. + */ + public class AuthorizedViews { /** - * Create a long-running conversation upload operation. This method differs from - * `CreateConversation` by allowing audio transcription and optional DLP redaction. + * Query metrics. * - * Create a request for the method "conversations.upload". + * Create a request for the method "authorizedViews.queryMetrics". * - * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link Upload#execute()} method to invoke the remote - * operation.

{@link - * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link QueryMetrics#execute()} method to invoke the remote + * operation. * - * @param parent Required. The parent resource of the conversation. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UploadConversationRequest} - * @since 1.13 + * @param location Required. The location of the data. "projects/{project}/locations/{location}" + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QueryMetricsRequest} + * @return the request */ - protected Upload(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UploadConversationRequest content) { - super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } + public QueryMetrics queryMetrics(java.lang.String location, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QueryMetricsRequest content) throws java.io.IOException { + QueryMetrics result = new QueryMetrics(location, content); + initialize(result); + return result; } - @Override - public Upload set$Xgafv(java.lang.String $Xgafv) { - return (Upload) super.set$Xgafv($Xgafv); - } + public class QueryMetrics extends ContactcenterinsightsRequest { - @Override - public Upload setAccessToken(java.lang.String accessToken) { - return (Upload) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1/{+location}:queryMetrics"; - @Override - public Upload setAlt(java.lang.String alt) { - return (Upload) super.setAlt(alt); - } + private final java.util.regex.Pattern LOCATION_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$"); - @Override - public Upload setCallback(java.lang.String callback) { - return (Upload) super.setCallback(callback); - } + /** + * Query metrics. + * + * Create a request for the method "authorizedViews.queryMetrics". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link QueryMetrics#execute()} method to invoke the + * remote operation.

{@link + * QueryMetrics#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param location Required. The location of the data. "projects/{project}/locations/{location}" + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QueryMetricsRequest} + * @since 1.13 + */ + protected QueryMetrics(java.lang.String location, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QueryMetricsRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.location = com.google.api.client.util.Preconditions.checkNotNull(location, "Required parameter location must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), + "Parameter location must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$"); + } + } - @Override - public Upload setFields(java.lang.String fields) { - return (Upload) super.setFields(fields); - } + @Override + public QueryMetrics set$Xgafv(java.lang.String $Xgafv) { + return (QueryMetrics) super.set$Xgafv($Xgafv); + } - @Override - public Upload setKey(java.lang.String key) { - return (Upload) super.setKey(key); - } + @Override + public QueryMetrics setAccessToken(java.lang.String accessToken) { + return (QueryMetrics) super.setAccessToken(accessToken); + } - @Override - public Upload setOauthToken(java.lang.String oauthToken) { - return (Upload) super.setOauthToken(oauthToken); - } + @Override + public QueryMetrics setAlt(java.lang.String alt) { + return (QueryMetrics) super.setAlt(alt); + } - @Override - public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Upload) super.setPrettyPrint(prettyPrint); - } + @Override + public QueryMetrics setCallback(java.lang.String callback) { + return (QueryMetrics) super.setCallback(callback); + } - @Override - public Upload setQuotaUser(java.lang.String quotaUser) { - return (Upload) super.setQuotaUser(quotaUser); - } + @Override + public QueryMetrics setFields(java.lang.String fields) { + return (QueryMetrics) super.setFields(fields); + } - @Override - public Upload setUploadType(java.lang.String uploadType) { - return (Upload) super.setUploadType(uploadType); - } + @Override + public QueryMetrics setKey(java.lang.String key) { + return (QueryMetrics) super.setKey(key); + } - @Override - public Upload setUploadProtocol(java.lang.String uploadProtocol) { - return (Upload) super.setUploadProtocol(uploadProtocol); - } + @Override + public QueryMetrics setOauthToken(java.lang.String oauthToken) { + return (QueryMetrics) super.setOauthToken(oauthToken); + } - /** Required. The parent resource of the conversation. */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public QueryMetrics setPrettyPrint(java.lang.Boolean prettyPrint) { + return (QueryMetrics) super.setPrettyPrint(prettyPrint); + } - /** Required. The parent resource of the conversation. - */ - public java.lang.String getParent() { - return parent; - } - - /** Required. The parent resource of the conversation. */ - public Upload setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } - - @Override - public Upload set(String parameterName, Object value) { - return (Upload) super.set(parameterName, value); - } - } - - /** - * An accessor for creating requests from the Analyses collection. - * - *

The typical use is:

- *
-         *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
-         *   {@code Contactcenterinsights.Analyses.List request = contactcenterinsights.analyses().list(parameters ...)}
-         * 
- * - * @return the resource collection - */ - public Analyses analyses() { - return new Analyses(); - } - - /** - * The "analyses" collection of methods. - */ - public class Analyses { - - /** - * Creates an analysis. The long running operation is done when the analysis has completed. - * - * Create a request for the method "analyses.create". - * - * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - * - * @param parent Required. The parent resource of the analysis. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Analysis} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Analysis content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; - } - - public class Create extends ContactcenterinsightsRequest { - - private static final String REST_PATH = "v1/{+parent}/analyses"; - - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); - - /** - * Creates an analysis. The long running operation is done when the analysis has completed. - * - * Create a request for the method "analyses.create". - * - * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link Create#execute()} method to invoke the remote - * operation.

{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param parent Required. The parent resource of the analysis. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Analysis} - * @since 1.13 - */ - protected Create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Analysis content) { - super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); - } - } - - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } - - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } - - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } - - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } - - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } - - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + @Override + public QueryMetrics setQuotaUser(java.lang.String quotaUser) { + return (QueryMetrics) super.setQuotaUser(quotaUser); + } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } - - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } - - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } - - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public QueryMetrics setUploadType(java.lang.String uploadType) { + return (QueryMetrics) super.setUploadType(uploadType); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public QueryMetrics setUploadProtocol(java.lang.String uploadProtocol) { + return (QueryMetrics) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent resource of the analysis. */ + /** Required. The location of the data. "projects/{project}/locations/{location}" */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String location; - /** Required. The parent resource of the analysis. + /** Required. The location of the data. "projects/{project}/locations/{location}" */ - public java.lang.String getParent() { - return parent; + public java.lang.String getLocation() { + return location; } - /** Required. The parent resource of the analysis. */ - public Create setParent(java.lang.String parent) { + /** Required. The location of the data. "projects/{project}/locations/{location}" */ + public QueryMetrics setLocation(java.lang.String location) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), + "Parameter location must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$"); } - this.parent = parent; + this.location = location; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public QueryMetrics set(String parameterName, Object value) { + return (QueryMetrics) super.set(parameterName, value); } } + /** - * Deletes an analysis. - * - * Create a request for the method "analyses.delete". + * An accessor for creating requests from the Conversations collection. * - * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + *

The typical use is:

+ *
+           *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
+           *   {@code Contactcenterinsights.Conversations.List request = contactcenterinsights.conversations().list(parameters ...)}
+           * 
* - * @param name Required. The name of the analysis to delete. - * @return the request + * @return the resource collection */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + public Conversations conversations() { + return new Conversations(); } - public class Delete extends ContactcenterinsightsRequest { - - private static final String REST_PATH = "v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+$"); + /** + * The "conversations" collection of methods. + */ + public class Conversations { /** - * Deletes an analysis. + * Gets conversation statistics. * - * Create a request for the method "analyses.delete". + * Create a request for the method "conversations.calculateStats". * - * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link Delete#execute()} method to invoke the remote - * operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link CalculateStats#execute()} method to invoke the remote + * operation. * - * @param name Required. The name of the analysis to delete. - * @since 1.13 + * @param location Required. The location of the conversations. + * @return the request */ - protected Delete(java.lang.String name) { - super(Contactcenterinsights.this, "DELETE", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleProtobufEmpty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+$"); + public CalculateStats calculateStats(java.lang.String location) throws java.io.IOException { + CalculateStats result = new CalculateStats(location); + initialize(result); + return result; + } + + public class CalculateStats extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+location}/conversations:calculateStats"; + + private final java.util.regex.Pattern LOCATION_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$"); + + /** + * Gets conversation statistics. + * + * Create a request for the method "conversations.calculateStats". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link CalculateStats#execute()} method to invoke the + * remote operation.

{@link CalculateStats#initialize(com.google.api.client.googleapis.service + * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

+ * + * @param location Required. The location of the conversations. + * @since 1.13 + */ + protected CalculateStats(java.lang.String location) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1CalculateStatsResponse.class); + this.location = com.google.api.client.util.Preconditions.checkNotNull(location, "Required parameter location must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), + "Parameter location must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$"); + } } - } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public CalculateStats set$Xgafv(java.lang.String $Xgafv) { + return (CalculateStats) super.set$Xgafv($Xgafv); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public CalculateStats setAccessToken(java.lang.String accessToken) { + return (CalculateStats) super.setAccessToken(accessToken); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public CalculateStats setAlt(java.lang.String alt) { + return (CalculateStats) super.setAlt(alt); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public CalculateStats setCallback(java.lang.String callback) { + return (CalculateStats) super.setCallback(callback); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public CalculateStats setFields(java.lang.String fields) { + return (CalculateStats) super.setFields(fields); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public CalculateStats setKey(java.lang.String key) { + return (CalculateStats) super.setKey(key); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public CalculateStats setOauthToken(java.lang.String oauthToken) { + return (CalculateStats) super.setOauthToken(oauthToken); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public CalculateStats setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CalculateStats) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public CalculateStats setQuotaUser(java.lang.String quotaUser) { + return (CalculateStats) super.setQuotaUser(quotaUser); + } - /** Required. The name of the analysis to delete. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public CalculateStats setUploadType(java.lang.String uploadType) { + return (CalculateStats) super.setUploadType(uploadType); + } - /** Required. The name of the analysis to delete. - */ - public java.lang.String getName() { - return name; - } + @Override + public CalculateStats setUploadProtocol(java.lang.String uploadProtocol) { + return (CalculateStats) super.setUploadProtocol(uploadProtocol); + } - /** Required. The name of the analysis to delete. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+$"); + /** Required. The location of the conversations. */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** Required. The location of the conversations. + */ + public java.lang.String getLocation() { + return location; } - this.name = name; - return this; - } + + /** Required. The location of the conversations. */ + public CalculateStats setLocation(java.lang.String location) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), + "Parameter location must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$"); + } + this.location = location; + return this; + } + + /** + * A filter to reduce results to a specific subset. This field is useful for getting + * statistics about conversations with specific properties. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter to reduce results to a specific subset. This field is useful for getting statistics about + conversations with specific properties. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter to reduce results to a specific subset. This field is useful for getting + * statistics about conversations with specific properties. + */ + public CalculateStats setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + @Override + public CalculateStats set(String parameterName, Object value) { + return (CalculateStats) super.set(parameterName, value); + } + } + + } + } + } + /** + * An accessor for creating requests from the Conversations collection. + * + *

The typical use is:

+ *
+       *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
+       *   {@code Contactcenterinsights.Conversations.List request = contactcenterinsights.conversations().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Conversations conversations() { + return new Conversations(); + } + + /** + * The "conversations" collection of methods. + */ + public class Conversations { + + /** + * Analyzes multiple conversations in a single request. + * + * Create a request for the method "conversations.bulkAnalyze". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link BulkAnalyze#execute()} method to invoke the remote + * operation. + * + * @param parent Required. The parent resource to create analyses in. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest} + * @return the request + */ + public BulkAnalyze bulkAnalyze(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest content) throws java.io.IOException { + BulkAnalyze result = new BulkAnalyze(parent, content); + initialize(result); + return result; + } + + public class BulkAnalyze extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+parent}/conversations:bulkAnalyze"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Analyzes multiple conversations in a single request. + * + * Create a request for the method "conversations.bulkAnalyze". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link BulkAnalyze#execute()} method to invoke the + * remote operation.

{@link + * BulkAnalyze#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource to create analyses in. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest} + * @since 1.13 + */ + protected BulkAnalyze(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public BulkAnalyze set$Xgafv(java.lang.String $Xgafv) { + return (BulkAnalyze) super.set$Xgafv($Xgafv); + } + + @Override + public BulkAnalyze setAccessToken(java.lang.String accessToken) { + return (BulkAnalyze) super.setAccessToken(accessToken); + } + + @Override + public BulkAnalyze setAlt(java.lang.String alt) { + return (BulkAnalyze) super.setAlt(alt); + } + + @Override + public BulkAnalyze setCallback(java.lang.String callback) { + return (BulkAnalyze) super.setCallback(callback); + } + + @Override + public BulkAnalyze setFields(java.lang.String fields) { + return (BulkAnalyze) super.setFields(fields); + } + + @Override + public BulkAnalyze setKey(java.lang.String key) { + return (BulkAnalyze) super.setKey(key); + } + + @Override + public BulkAnalyze setOauthToken(java.lang.String oauthToken) { + return (BulkAnalyze) super.setOauthToken(oauthToken); + } + + @Override + public BulkAnalyze setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BulkAnalyze) super.setPrettyPrint(prettyPrint); + } + + @Override + public BulkAnalyze setQuotaUser(java.lang.String quotaUser) { + return (BulkAnalyze) super.setQuotaUser(quotaUser); + } + + @Override + public BulkAnalyze setUploadType(java.lang.String uploadType) { + return (BulkAnalyze) super.setUploadType(uploadType); + } + + @Override + public BulkAnalyze setUploadProtocol(java.lang.String uploadProtocol) { + return (BulkAnalyze) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource to create analyses in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource to create analyses in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource to create analyses in. */ + public BulkAnalyze setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public BulkAnalyze set(String parameterName, Object value) { + return (BulkAnalyze) super.set(parameterName, value); + } + } + /** + * Deletes multiple conversations in a single request. + * + * Create a request for the method "conversations.bulkDelete". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link BulkDelete#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource to delete conversations from. Format: + * projects/{project}/locations/{location} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest} + * @return the request + */ + public BulkDelete bulkDelete(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest content) throws java.io.IOException { + BulkDelete result = new BulkDelete(parent, content); + initialize(result); + return result; + } + + public class BulkDelete extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+parent}/conversations:bulkDelete"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Deletes multiple conversations in a single request. + * + * Create a request for the method "conversations.bulkDelete". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link BulkDelete#execute()} method to invoke the + * remote operation.

{@link + * BulkDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource to delete conversations from. Format: + * projects/{project}/locations/{location} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest} + * @since 1.13 + */ + protected BulkDelete(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public BulkDelete set$Xgafv(java.lang.String $Xgafv) { + return (BulkDelete) super.set$Xgafv($Xgafv); + } + + @Override + public BulkDelete setAccessToken(java.lang.String accessToken) { + return (BulkDelete) super.setAccessToken(accessToken); + } + + @Override + public BulkDelete setAlt(java.lang.String alt) { + return (BulkDelete) super.setAlt(alt); + } + + @Override + public BulkDelete setCallback(java.lang.String callback) { + return (BulkDelete) super.setCallback(callback); + } + + @Override + public BulkDelete setFields(java.lang.String fields) { + return (BulkDelete) super.setFields(fields); + } + + @Override + public BulkDelete setKey(java.lang.String key) { + return (BulkDelete) super.setKey(key); + } + + @Override + public BulkDelete setOauthToken(java.lang.String oauthToken) { + return (BulkDelete) super.setOauthToken(oauthToken); + } + + @Override + public BulkDelete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BulkDelete) super.setPrettyPrint(prettyPrint); + } + + @Override + public BulkDelete setQuotaUser(java.lang.String quotaUser) { + return (BulkDelete) super.setQuotaUser(quotaUser); + } + + @Override + public BulkDelete setUploadType(java.lang.String uploadType) { + return (BulkDelete) super.setUploadType(uploadType); + } + + @Override + public BulkDelete setUploadProtocol(java.lang.String uploadProtocol) { + return (BulkDelete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource to delete conversations from. Format: + * projects/{project}/locations/{location} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource to delete conversations from. Format: + projects/{project}/locations/{location} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource to delete conversations from. Format: + * projects/{project}/locations/{location} + */ + public BulkDelete setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public BulkDelete set(String parameterName, Object value) { + return (BulkDelete) super.set(parameterName, value); + } + } + /** + * Gets conversation statistics. + * + * Create a request for the method "conversations.calculateStats". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link CalculateStats#execute()} method to invoke the remote + * operation. + * + * @param location Required. The location of the conversations. + * @return the request + */ + public CalculateStats calculateStats(java.lang.String location) throws java.io.IOException { + CalculateStats result = new CalculateStats(location); + initialize(result); + return result; + } + + public class CalculateStats extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+location}/conversations:calculateStats"; + + private final java.util.regex.Pattern LOCATION_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Gets conversation statistics. + * + * Create a request for the method "conversations.calculateStats". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link CalculateStats#execute()} method to invoke the + * remote operation.

{@link CalculateStats#initialize(com.google.api.client.googleapis.service + * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after + * invoking the constructor.

+ * + * @param location Required. The location of the conversations. + * @since 1.13 + */ + protected CalculateStats(java.lang.String location) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1CalculateStatsResponse.class); + this.location = com.google.api.client.util.Preconditions.checkNotNull(location, "Required parameter location must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), + "Parameter location must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public CalculateStats set$Xgafv(java.lang.String $Xgafv) { + return (CalculateStats) super.set$Xgafv($Xgafv); + } + + @Override + public CalculateStats setAccessToken(java.lang.String accessToken) { + return (CalculateStats) super.setAccessToken(accessToken); + } + + @Override + public CalculateStats setAlt(java.lang.String alt) { + return (CalculateStats) super.setAlt(alt); + } + + @Override + public CalculateStats setCallback(java.lang.String callback) { + return (CalculateStats) super.setCallback(callback); + } + + @Override + public CalculateStats setFields(java.lang.String fields) { + return (CalculateStats) super.setFields(fields); + } + + @Override + public CalculateStats setKey(java.lang.String key) { + return (CalculateStats) super.setKey(key); + } + + @Override + public CalculateStats setOauthToken(java.lang.String oauthToken) { + return (CalculateStats) super.setOauthToken(oauthToken); + } + + @Override + public CalculateStats setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CalculateStats) super.setPrettyPrint(prettyPrint); + } + + @Override + public CalculateStats setQuotaUser(java.lang.String quotaUser) { + return (CalculateStats) super.setQuotaUser(quotaUser); + } + + @Override + public CalculateStats setUploadType(java.lang.String uploadType) { + return (CalculateStats) super.setUploadType(uploadType); + } + + @Override + public CalculateStats setUploadProtocol(java.lang.String uploadProtocol) { + return (CalculateStats) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The location of the conversations. */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** Required. The location of the conversations. + */ + public java.lang.String getLocation() { + return location; + } + + /** Required. The location of the conversations. */ + public CalculateStats setLocation(java.lang.String location) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), + "Parameter location must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.location = location; + return this; + } + + /** + * A filter to reduce results to a specific subset. This field is useful for getting + * statistics about conversations with specific properties. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter to reduce results to a specific subset. This field is useful for getting statistics about + conversations with specific properties. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter to reduce results to a specific subset. This field is useful for getting + * statistics about conversations with specific properties. + */ + public CalculateStats setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + @Override + public CalculateStats set(String parameterName, Object value) { + return (CalculateStats) super.set(parameterName, value); + } + } + /** + * Creates a conversation. Note that this method does not support audio transcription or redaction. + * Use `conversations.upload` instead. + * + * Create a request for the method "conversations.create". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource of the conversation. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+parent}/conversations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a conversation. Note that this method does not support audio transcription or + * redaction. Use `conversations.upload` instead. + * + * Create a request for the method "conversations.create". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Create#execute()} method to invoke the remote + * operation.

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource of the conversation. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource of the conversation. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the conversation. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource of the conversation. */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * A unique ID for the new conversation. This ID will become the final component of the + * conversation's resource name. If no ID is specified, a server-generated ID will be + * used. This value should be 4-64 characters and must match the regular expression + * `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` + */ + @com.google.api.client.util.Key + private java.lang.String conversationId; + + /** A unique ID for the new conversation. This ID will become the final component of the conversation's + resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 + characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` + */ + public java.lang.String getConversationId() { + return conversationId; + } + + /** + * A unique ID for the new conversation. This ID will become the final component of the + * conversation's resource name. If no ID is specified, a server-generated ID will be + * used. This value should be 4-64 characters and must match the regular expression + * `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-` + */ + public Create setConversationId(java.lang.String conversationId) { + this.conversationId = conversationId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a conversation. + * + * Create a request for the method "conversations.delete". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the conversation to delete. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + + /** + * Deletes a conversation. + * + * Create a request for the method "conversations.delete". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Delete#execute()} method to invoke the remote + * operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the conversation to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Contactcenterinsights.this, "DELETE", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the conversation to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the conversation to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the conversation to delete. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * If set to true, all of this conversation's analyses will also be deleted. Otherwise, + * the request will only succeed if the conversation has no analyses. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** If set to true, all of this conversation's analyses will also be deleted. Otherwise, the request + will only succeed if the conversation has no analyses. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * If set to true, all of this conversation's analyses will also be deleted. Otherwise, + * the request will only succeed if the conversation has no analyses. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets a conversation. + * + * Create a request for the method "conversations.get". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the conversation to get. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + + /** + * Gets a conversation. + * + * Create a request for the method "conversations.get". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Get#execute()} method to invoke the remote + * operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the conversation to get. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the conversation to get. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the conversation to get. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the conversation to get. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + } + this.name = name; + return this; + } + + /** The level of details of the conversation. Default is `FULL`. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** The level of details of the conversation. Default is `FULL`. + */ + public java.lang.String getView() { + return view; + } + + /** The level of details of the conversation. Default is `FULL`. */ + public Get setView(java.lang.String view) { + this.view = view; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Imports conversations and processes them according to the user's configuration. + * + * Create a request for the method "conversations.ingest". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Ingest#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource for new conversations. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IngestConversationsRequest} + * @return the request + */ + public Ingest ingest(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IngestConversationsRequest content) throws java.io.IOException { + Ingest result = new Ingest(parent, content); + initialize(result); + return result; + } + + public class Ingest extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+parent}/conversations:ingest"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Imports conversations and processes them according to the user's configuration. + * + * Create a request for the method "conversations.ingest". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Ingest#execute()} method to invoke the remote + * operation.

{@link + * Ingest#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource for new conversations. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IngestConversationsRequest} + * @since 1.13 + */ + protected Ingest(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IngestConversationsRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Ingest set$Xgafv(java.lang.String $Xgafv) { + return (Ingest) super.set$Xgafv($Xgafv); + } + + @Override + public Ingest setAccessToken(java.lang.String accessToken) { + return (Ingest) super.setAccessToken(accessToken); + } + + @Override + public Ingest setAlt(java.lang.String alt) { + return (Ingest) super.setAlt(alt); + } + + @Override + public Ingest setCallback(java.lang.String callback) { + return (Ingest) super.setCallback(callback); + } + + @Override + public Ingest setFields(java.lang.String fields) { + return (Ingest) super.setFields(fields); + } + + @Override + public Ingest setKey(java.lang.String key) { + return (Ingest) super.setKey(key); + } + + @Override + public Ingest setOauthToken(java.lang.String oauthToken) { + return (Ingest) super.setOauthToken(oauthToken); + } + + @Override + public Ingest setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Ingest) super.setPrettyPrint(prettyPrint); + } + + @Override + public Ingest setQuotaUser(java.lang.String quotaUser) { + return (Ingest) super.setQuotaUser(quotaUser); + } + + @Override + public Ingest setUploadType(java.lang.String uploadType) { + return (Ingest) super.setUploadType(uploadType); + } + + @Override + public Ingest setUploadProtocol(java.lang.String uploadProtocol) { + return (Ingest) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource for new conversations. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource for new conversations. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource for new conversations. */ + public Ingest setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Ingest set(String parameterName, Object value) { + return (Ingest) super.set(parameterName, value); + } + } + /** + * Lists conversations. + * + * Create a request for the method "conversations.list". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource of the conversation. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+parent}/conversations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists conversations. + * + * Create a request for the method "conversations.list". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link List#execute()} method to invoke the remote + * operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource of the conversation. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListConversationsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource of the conversation. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the conversation. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource of the conversation. */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * A filter to reduce results to a specific subset. Useful for querying conversations with + * specific properties. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter to reduce results to a specific subset. Useful for querying conversations with specific + properties. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter to reduce results to a specific subset. Useful for querying conversations with + * specific properties. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. The attribute by which to order conversations in the response. If empty, + * conversations will be ordered by descending creation time. Supported values are one of + * the following: * create_time * customer_satisfaction_rating * duration * + * latest_analysis * start_time * turn_count The default sort order is ascending. To + * specify order, append `asc` or `desc` (`create_time desc`). For more details, see + * [Google AIPs Ordering](https://google.aip.dev/132#ordering). + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. The attribute by which to order conversations in the response. If empty, conversations + will be ordered by descending creation time. Supported values are one of the following: * + create_time * customer_satisfaction_rating * duration * latest_analysis * start_time * turn_count + The default sort order is ascending. To specify order, append `asc` or `desc` (`create_time desc`). + For more details, see [Google AIPs Ordering](https://google.aip.dev/132#ordering). + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. The attribute by which to order conversations in the response. If empty, + * conversations will be ordered by descending creation time. Supported values are one of + * the following: * create_time * customer_satisfaction_rating * duration * + * latest_analysis * start_time * turn_count The default sort order is ascending. To + * specify order, append `asc` or `desc` (`create_time desc`). For more details, see + * [Google AIPs Ordering](https://google.aip.dev/132#ordering). + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * The maximum number of conversations to return in the response. A valid page size ranges + * from 0 to 100,000 inclusive. If the page size is zero or unspecified, a default page + * size of 100 will be chosen. Note that a call might return fewer results than the + * requested page size. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of conversations to return in the response. A valid page size ranges from 0 to + 100,000 inclusive. If the page size is zero or unspecified, a default page size of 100 will be + chosen. Note that a call might return fewer results than the requested page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of conversations to return in the response. A valid page size ranges + * from 0 to 100,000 inclusive. If the page size is zero or unspecified, a default page + * size of 100 will be chosen. Note that a call might return fewer results than the + * requested page size. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * The value returned by the last `ListConversationsResponse`. This value indicates that + * this is a continuation of a prior `ListConversations` call and that the system should + * return the next page of data. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The value returned by the last `ListConversationsResponse`. This value indicates that this is a + continuation of a prior `ListConversations` call and that the system should return the next page of + data. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * The value returned by the last `ListConversationsResponse`. This value indicates that + * this is a continuation of a prior `ListConversations` call and that the system should + * return the next page of data. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** The level of details of the conversation. Default is `BASIC`. */ + @com.google.api.client.util.Key + private java.lang.String view; + + /** The level of details of the conversation. Default is `BASIC`. + */ + public java.lang.String getView() { + return view; + } + + /** The level of details of the conversation. Default is `BASIC`. */ + public List setView(java.lang.String view) { + this.view = view; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates a conversation. + * + * Create a request for the method "conversations.patch". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Immutable. The resource name of the conversation. Format: + * projects/{project}/locations/{location}/conversations/{conversation} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + + /** + * Updates a conversation. + * + * Create a request for the method "conversations.patch". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Patch#execute()} method to invoke the remote + * operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Immutable. The resource name of the conversation. Format: + * projects/{project}/locations/{location}/conversations/{conversation} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation content) { + super(Contactcenterinsights.this, "PATCH", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Conversation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Immutable. The resource name of the conversation. Format: + * projects/{project}/locations/{location}/conversations/{conversation} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Immutable. The resource name of the conversation. Format: + projects/{project}/locations/{location}/conversations/{conversation} + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. The resource name of the conversation. Format: + * projects/{project}/locations/{location}/conversations/{conversation} + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * The list of fields to be updated. All possible fields can be updated by passing `*`, or + * a subset of the following updateable fields can be provided: * `agent_id` * + * `language_code` * `labels` * `metadata` * `quality_metadata` * `call_metadata` * + * `start_time` * `expire_time` or `ttl` * `data_source.gcs_source.audio_uri` or + * `data_source.dialogflow_source.audio_uri` + */ + @com.google.api.client.util.Key + private String updateMask; + + /** The list of fields to be updated. All possible fields can be updated by passing `*`, or a subset of + the following updateable fields can be provided: * `agent_id` * `language_code` * `labels` * + `metadata` * `quality_metadata` * `call_metadata` * `start_time` * `expire_time` or `ttl` * + `data_source.gcs_source.audio_uri` or `data_source.dialogflow_source.audio_uri` + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * The list of fields to be updated. All possible fields can be updated by passing `*`, or + * a subset of the following updateable fields can be provided: * `agent_id` * + * `language_code` * `labels` * `metadata` * `quality_metadata` * `call_metadata` * + * `start_time` * `expire_time` or `ttl` * `data_source.gcs_source.audio_uri` or + * `data_source.dialogflow_source.audio_uri` + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Create a long-running conversation upload operation. This method differs from + * `CreateConversation` by allowing audio transcription and optional DLP redaction. + * + * Create a request for the method "conversations.upload". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Upload#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource of the conversation. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UploadConversationRequest} + * @return the request + */ + public Upload upload(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UploadConversationRequest content) throws java.io.IOException { + Upload result = new Upload(parent, content); + initialize(result); + return result; + } + + public class Upload extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+parent}/conversations:upload"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Create a long-running conversation upload operation. This method differs from + * `CreateConversation` by allowing audio transcription and optional DLP redaction. + * + * Create a request for the method "conversations.upload". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Upload#execute()} method to invoke the remote + * operation.

{@link + * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource of the conversation. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UploadConversationRequest} + * @since 1.13 + */ + protected Upload(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UploadConversationRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Upload set$Xgafv(java.lang.String $Xgafv) { + return (Upload) super.set$Xgafv($Xgafv); + } + + @Override + public Upload setAccessToken(java.lang.String accessToken) { + return (Upload) super.setAccessToken(accessToken); + } + + @Override + public Upload setAlt(java.lang.String alt) { + return (Upload) super.setAlt(alt); + } + + @Override + public Upload setCallback(java.lang.String callback) { + return (Upload) super.setCallback(callback); + } + + @Override + public Upload setFields(java.lang.String fields) { + return (Upload) super.setFields(fields); + } + + @Override + public Upload setKey(java.lang.String key) { + return (Upload) super.setKey(key); + } + + @Override + public Upload setOauthToken(java.lang.String oauthToken) { + return (Upload) super.setOauthToken(oauthToken); + } + + @Override + public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Upload) super.setPrettyPrint(prettyPrint); + } + + @Override + public Upload setQuotaUser(java.lang.String quotaUser) { + return (Upload) super.setQuotaUser(quotaUser); + } + + @Override + public Upload setUploadType(java.lang.String uploadType) { + return (Upload) super.setUploadType(uploadType); + } + + @Override + public Upload setUploadProtocol(java.lang.String uploadProtocol) { + return (Upload) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource of the conversation. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the conversation. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource of the conversation. */ + public Upload setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Upload set(String parameterName, Object value) { + return (Upload) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Analyses collection. + * + *

The typical use is:

+ *
+         *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
+         *   {@code Contactcenterinsights.Analyses.List request = contactcenterinsights.analyses().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Analyses analyses() { + return new Analyses(); + } + + /** + * The "analyses" collection of methods. + */ + public class Analyses { + + /** + * Creates an analysis. The long running operation is done when the analysis has completed. + * + * Create a request for the method "analyses.create". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource of the analysis. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Analysis} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Analysis content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+parent}/analyses"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + + /** + * Creates an analysis. The long running operation is done when the analysis has completed. + * + * Create a request for the method "analyses.create". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Create#execute()} method to invoke the remote + * operation.

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource of the analysis. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Analysis} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Analysis content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource of the analysis. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the analysis. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource of the analysis. */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes an analysis. + * + * Create a request for the method "analyses.delete". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the analysis to delete. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+$"); + + /** + * Deletes an analysis. + * + * Create a request for the method "analyses.delete". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Delete#execute()} method to invoke the remote + * operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the analysis to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Contactcenterinsights.this, "DELETE", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the analysis to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the analysis to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the analysis to delete. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets an analysis. + * + * Create a request for the method "analyses.get". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the analysis to get. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+$"); + + /** + * Gets an analysis. + * + * Create a request for the method "analyses.get". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Get#execute()} method to invoke the remote + * operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the analysis to get. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Analysis.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the analysis to get. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the analysis to get. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the analysis to get. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists analyses. + * + * Create a request for the method "analyses.list". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource of the analyses. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+parent}/analyses"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + + /** + * Lists analyses. + * + * Create a request for the method "analyses.list". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link List#execute()} method to invoke the remote + * operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource of the analyses. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListAnalysesResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource of the analyses. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the analyses. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource of the analyses. */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * A filter to reduce results to a specific subset. Useful for querying conversations + * with specific properties. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter to reduce results to a specific subset. Useful for querying conversations with specific + properties. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter to reduce results to a specific subset. Useful for querying conversations + * with specific properties. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of analyses to return in the response. If this value is zero, the + * service will select a default size. A call might return fewer objects than requested. + * A non-empty `next_page_token` in the response indicates that more data is available. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of analyses to return in the response. If this value is zero, the service will + select a default size. A call might return fewer objects than requested. A non-empty + `next_page_token` in the response indicates that more data is available. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of analyses to return in the response. If this value is zero, the + * service will select a default size. A call might return fewer objects than requested. + * A non-empty `next_page_token` in the response indicates that more data is available. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * The value returned by the last `ListAnalysesResponse`; indicates that this is a + * continuation of a prior `ListAnalyses` call and the system should return the next + * page of data. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The value returned by the last `ListAnalysesResponse`; indicates that this is a continuation of a + prior `ListAnalyses` call and the system should return the next page of data. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * The value returned by the last `ListAnalysesResponse`; indicates that this is a + * continuation of a prior `ListAnalyses` call and the system should return the next + * page of data. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the FeedbackLabels collection. + * + *

The typical use is:

+ *
+         *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
+         *   {@code Contactcenterinsights.FeedbackLabels.List request = contactcenterinsights.feedbackLabels().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public FeedbackLabels feedbackLabels() { + return new FeedbackLabels(); + } + + /** + * The "feedbackLabels" collection of methods. + */ + public class FeedbackLabels { + + /** + * Create feedback label. + * + * Create a request for the method "feedbackLabels.create". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource of the feedback label. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1FeedbackLabel} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1FeedbackLabel content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+parent}/feedbackLabels"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + + /** + * Create feedback label. + * + * Create a request for the method "feedbackLabels.create". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Create#execute()} method to invoke the remote + * operation.

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource of the feedback label. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1FeedbackLabel} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1FeedbackLabel content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1FeedbackLabel.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource of the feedback label. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the feedback label. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource of the feedback label. */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID of the feedback label to create. If one is not specified it will be + * generated by the server. + */ + @com.google.api.client.util.Key + private java.lang.String feedbackLabelId; + + /** Optional. The ID of the feedback label to create. If one is not specified it will be generated by + the server. + */ + public java.lang.String getFeedbackLabelId() { + return feedbackLabelId; + } + + /** + * Optional. The ID of the feedback label to create. If one is not specified it will be + * generated by the server. + */ + public Create setFeedbackLabelId(java.lang.String feedbackLabelId) { + this.feedbackLabelId = feedbackLabelId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Delete feedback label. + * + * Create a request for the method "feedbackLabels.delete". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the feedback label to delete. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$"); + + /** + * Delete feedback label. + * + * Create a request for the method "feedbackLabels.delete". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Delete#execute()} method to invoke the remote + * operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the feedback label to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Contactcenterinsights.this, "DELETE", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the feedback label to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the feedback label to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the feedback label to delete. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Get feedback label. + * + * Create a request for the method "feedbackLabels.get". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the feedback label to get. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$"); + + /** + * Get feedback label. + * + * Create a request for the method "feedbackLabels.get". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Get#execute()} method to invoke the remote + * operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the feedback label to get. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1FeedbackLabel.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the feedback label to get. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the feedback label to get. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the feedback label to get. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * List feedback labels. + * + * Create a request for the method "feedbackLabels.list". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource of the feedback labels. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+parent}/feedbackLabels"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + + /** + * List feedback labels. + * + * Create a request for the method "feedbackLabels.list". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link List#execute()} method to invoke the remote + * operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource of the feedback labels. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource of the feedback labels. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the feedback labels. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource of the feedback labels. */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. A filter to reduce results to a specific subset. Supports disjunctions (OR) + * and conjunctions (AND). Automatically sorts by conversation ID. To sort by all + * feedback labels in a project see ListAllFeedbackLabels. Supported fields: * + * `issue_model_id` * `qa_question_id` * `qa_scorecard_id` * `min_create_time` * + * `max_create_time` * `min_update_time` * `max_update_time` * `feedback_label_type`: + * QUALITY_AI, TOPIC_MODELING + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. A filter to reduce results to a specific subset. Supports disjunctions (OR) and + conjunctions (AND). Automatically sorts by conversation ID. To sort by all feedback labels in a + project see ListAllFeedbackLabels. Supported fields: * `issue_model_id` * `qa_question_id` * + `qa_scorecard_id` * `min_create_time` * `max_create_time` * `min_update_time` * `max_update_time` * + `feedback_label_type`: QUALITY_AI, TOPIC_MODELING + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. A filter to reduce results to a specific subset. Supports disjunctions (OR) + * and conjunctions (AND). Automatically sorts by conversation ID. To sort by all + * feedback labels in a project see ListAllFeedbackLabels. Supported fields: * + * `issue_model_id` * `qa_question_id` * `qa_scorecard_id` * `min_create_time` * + * `max_create_time` * `min_update_time` * `max_update_time` * `feedback_label_type`: + * QUALITY_AI, TOPIC_MODELING + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. The maximum number of feedback labels to return in the response. A valid + * page size ranges from 0 to 100,000 inclusive. If the page size is zero or + * unspecified, a default page size of 100 will be chosen. Note that a call might return + * fewer results than the requested page size. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of feedback labels to return in the response. A valid page size ranges + from 0 to 100,000 inclusive. If the page size is zero or unspecified, a default page size of 100 + will be chosen. Note that a call might return fewer results than the requested page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of feedback labels to return in the response. A valid + * page size ranges from 0 to 100,000 inclusive. If the page size is zero or + * unspecified, a default page size of 100 will be chosen. Note that a call might return + * fewer results than the requested page size. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The value returned by the last `ListFeedbackLabelsResponse`. This value + * indicates that this is a continuation of a prior `ListFeedbackLabels` call and that + * the system should return the next page of data. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The value returned by the last `ListFeedbackLabelsResponse`. This value indicates that + this is a continuation of a prior `ListFeedbackLabels` call and that the system should return the + next page of data. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The value returned by the last `ListFeedbackLabelsResponse`. This value + * indicates that this is a continuation of a prior `ListFeedbackLabels` call and that + * the system should return the next page of data. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Update feedback label. + * + * Create a request for the method "feedbackLabels.patch". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Immutable. Resource name of the FeedbackLabel. Format: + * projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedb + * ack_label} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1FeedbackLabel} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1FeedbackLabel content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$"); + + /** + * Update feedback label. + * + * Create a request for the method "feedbackLabels.patch". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Patch#execute()} method to invoke the remote + * operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Immutable. Resource name of the FeedbackLabel. Format: + * projects/{project}/locations/{location}/conversations/{conversation}/feedbackLabels/{feedb + * ack_label} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1FeedbackLabel} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1FeedbackLabel content) { + super(Contactcenterinsights.this, "PATCH", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1FeedbackLabel.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Immutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{ + * location}/conversations/{conversation}/feedbackLabels/{feedback_label} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Immutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{location}/conv + ersations/{conversation}/feedbackLabels/{feedback_label} + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{ + * location}/conversations/{conversation}/feedbackLabels/{feedback_label} + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/feedbackLabels/[^/]+$"); + } + this.name = name; + return this; + } + + /** Required. The list of fields to be updated. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The list of fields to be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Required. The list of fields to be updated. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + } + /** + * An accessor for creating requests from the EncryptionSpec collection. + * + *

The typical use is:

+ *
+       *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
+       *   {@code Contactcenterinsights.EncryptionSpec.List request = contactcenterinsights.encryptionSpec().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public EncryptionSpec encryptionSpec() { + return new EncryptionSpec(); + } + + /** + * The "encryptionSpec" collection of methods. + */ + public class EncryptionSpec { + + /** + * Initializes a location-level encryption key specification. An error will result if the location + * has resources already created before the initialization. After the encryption specification is + * initialized at a location, it is immutable and all newly created resources under the location + * will be encrypted with the existing specification. + * + * Create a request for the method "encryptionSpec.initialize". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Initialize#execute()} method to invoke the remote operation. + * + * @param name Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest} + * @return the request + */ + public Initialize initialize(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest content) throws java.io.IOException { + Initialize result = new Initialize(name, content); + initialize(result); + return result; + } + + public class Initialize extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}:initialize"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/encryptionSpec$"); + + /** + * Initializes a location-level encryption key specification. An error will result if the location + * has resources already created before the initialization. After the encryption specification is + * initialized at a location, it is immutable and all newly created resources under the location + * will be encrypted with the existing specification. + * + * Create a request for the method "encryptionSpec.initialize". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Initialize#execute()} method to invoke the + * remote operation.

{@link + * Initialize#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest} + * @since 1.13 + */ + protected Initialize(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/encryptionSpec$"); + } + } + + @Override + public Initialize set$Xgafv(java.lang.String $Xgafv) { + return (Initialize) super.set$Xgafv($Xgafv); + } + + @Override + public Initialize setAccessToken(java.lang.String accessToken) { + return (Initialize) super.setAccessToken(accessToken); + } + + @Override + public Initialize setAlt(java.lang.String alt) { + return (Initialize) super.setAlt(alt); + } + + @Override + public Initialize setCallback(java.lang.String callback) { + return (Initialize) super.setCallback(callback); + } + + @Override + public Initialize setFields(java.lang.String fields) { + return (Initialize) super.setFields(fields); + } + + @Override + public Initialize setKey(java.lang.String key) { + return (Initialize) super.setKey(key); + } + + @Override + public Initialize setOauthToken(java.lang.String oauthToken) { + return (Initialize) super.setOauthToken(oauthToken); + } + + @Override + public Initialize setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Initialize) super.setPrettyPrint(prettyPrint); + } + + @Override + public Initialize setQuotaUser(java.lang.String quotaUser) { + return (Initialize) super.setQuotaUser(quotaUser); + } + + @Override + public Initialize setUploadType(java.lang.String uploadType) { + return (Initialize) super.setUploadType(uploadType); + } + + @Override + public Initialize setUploadProtocol(java.lang.String uploadProtocol) { + return (Initialize) super.setUploadProtocol(uploadProtocol); + } + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Immutable. The resource name of the encryption key specification resource. Format: + projects/{project}/locations/{location}/encryptionSpec + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + */ + public Initialize setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/encryptionSpec$"); + } + this.name = name; + return this; + } + + @Override + public Initialize set(String parameterName, Object value) { + return (Initialize) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Insightsdata collection. + * + *

The typical use is:

+ *
+       *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
+       *   {@code Contactcenterinsights.Insightsdata.List request = contactcenterinsights.insightsdata().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Insightsdata insightsdata() { + return new Insightsdata(); + } + + /** + * The "insightsdata" collection of methods. + */ + public class Insightsdata { + + /** + * Export insights data to a destination defined in the request body. + * + * Create a request for the method "insightsdata.export". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Export#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource to export data from. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest} + * @return the request + */ + public Export export(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest content) throws java.io.IOException { + Export result = new Export(parent, content); + initialize(result); + return result; + } + + public class Export extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+parent}/insightsdata:export"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Export insights data to a destination defined in the request body. + * + * Create a request for the method "insightsdata.export". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Export#execute()} method to invoke the remote + * operation.

{@link + * Export#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource to export data from. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest} + * @since 1.13 + */ + protected Export(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Export set$Xgafv(java.lang.String $Xgafv) { + return (Export) super.set$Xgafv($Xgafv); + } + + @Override + public Export setAccessToken(java.lang.String accessToken) { + return (Export) super.setAccessToken(accessToken); + } + + @Override + public Export setAlt(java.lang.String alt) { + return (Export) super.setAlt(alt); + } + + @Override + public Export setCallback(java.lang.String callback) { + return (Export) super.setCallback(callback); + } + + @Override + public Export setFields(java.lang.String fields) { + return (Export) super.setFields(fields); + } + + @Override + public Export setKey(java.lang.String key) { + return (Export) super.setKey(key); + } + + @Override + public Export setOauthToken(java.lang.String oauthToken) { + return (Export) super.setOauthToken(oauthToken); + } + + @Override + public Export setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Export) super.setPrettyPrint(prettyPrint); + } + + @Override + public Export setQuotaUser(java.lang.String quotaUser) { + return (Export) super.setQuotaUser(quotaUser); + } + + @Override + public Export setUploadType(java.lang.String uploadType) { + return (Export) super.setUploadType(uploadType); + } + + @Override + public Export setUploadProtocol(java.lang.String uploadProtocol) { + return (Export) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource to export data from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource to export data from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource to export data from. */ + public Export setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Export set(String parameterName, Object value) { + return (Export) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the IssueModels collection. + * + *

The typical use is:

+ *
+       *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
+       *   {@code Contactcenterinsights.IssueModels.List request = contactcenterinsights.issueModels().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public IssueModels issueModels() { + return new IssueModels(); + } + + /** + * The "issueModels" collection of methods. + */ + public class IssueModels { + + /** + * Gets an issue model's statistics. + * + * Create a request for the method "issueModels.calculateIssueModelStats". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link CalculateIssueModelStats#execute()} method to invoke the + * remote operation. + * + * @param issueModel Required. The resource name of the issue model to query against. + * @return the request + */ + public CalculateIssueModelStats calculateIssueModelStats(java.lang.String issueModel) throws java.io.IOException { + CalculateIssueModelStats result = new CalculateIssueModelStats(issueModel); + initialize(result); + return result; + } + + public class CalculateIssueModelStats extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+issueModel}:calculateIssueModelStats"; + + private final java.util.regex.Pattern ISSUE_MODEL_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + + /** + * Gets an issue model's statistics. + * + * Create a request for the method "issueModels.calculateIssueModelStats". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link CalculateIssueModelStats#execute()} method to + * invoke the remote operation.

{@link CalculateIssueModelStats#initialize(com.google.api.clie + * nt.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.

+ * + * @param issueModel Required. The resource name of the issue model to query against. + * @since 1.13 + */ + protected CalculateIssueModelStats(java.lang.String issueModel) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse.class); + this.issueModel = com.google.api.client.util.Preconditions.checkNotNull(issueModel, "Required parameter issueModel must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ISSUE_MODEL_PATTERN.matcher(issueModel).matches(), + "Parameter issueModel must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public CalculateIssueModelStats set$Xgafv(java.lang.String $Xgafv) { + return (CalculateIssueModelStats) super.set$Xgafv($Xgafv); + } + + @Override + public CalculateIssueModelStats setAccessToken(java.lang.String accessToken) { + return (CalculateIssueModelStats) super.setAccessToken(accessToken); + } + + @Override + public CalculateIssueModelStats setAlt(java.lang.String alt) { + return (CalculateIssueModelStats) super.setAlt(alt); + } + + @Override + public CalculateIssueModelStats setCallback(java.lang.String callback) { + return (CalculateIssueModelStats) super.setCallback(callback); + } + + @Override + public CalculateIssueModelStats setFields(java.lang.String fields) { + return (CalculateIssueModelStats) super.setFields(fields); + } + + @Override + public CalculateIssueModelStats setKey(java.lang.String key) { + return (CalculateIssueModelStats) super.setKey(key); + } + + @Override + public CalculateIssueModelStats setOauthToken(java.lang.String oauthToken) { + return (CalculateIssueModelStats) super.setOauthToken(oauthToken); + } + + @Override + public CalculateIssueModelStats setPrettyPrint(java.lang.Boolean prettyPrint) { + return (CalculateIssueModelStats) super.setPrettyPrint(prettyPrint); + } + + @Override + public CalculateIssueModelStats setQuotaUser(java.lang.String quotaUser) { + return (CalculateIssueModelStats) super.setQuotaUser(quotaUser); + } + + @Override + public CalculateIssueModelStats setUploadType(java.lang.String uploadType) { + return (CalculateIssueModelStats) super.setUploadType(uploadType); + } + + @Override + public CalculateIssueModelStats setUploadProtocol(java.lang.String uploadProtocol) { + return (CalculateIssueModelStats) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the issue model to query against. */ + @com.google.api.client.util.Key + private java.lang.String issueModel; + + /** Required. The resource name of the issue model to query against. + */ + public java.lang.String getIssueModel() { + return issueModel; + } + + /** Required. The resource name of the issue model to query against. */ + public CalculateIssueModelStats setIssueModel(java.lang.String issueModel) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(ISSUE_MODEL_PATTERN.matcher(issueModel).matches(), + "Parameter issueModel must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + } + this.issueModel = issueModel; + return this; + } + + @Override + public CalculateIssueModelStats set(String parameterName, Object value) { + return (CalculateIssueModelStats) super.set(parameterName, value); + } + } + /** + * Creates an issue model. + * + * Create a request for the method "issueModels.create". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource of the issue model. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+parent}/issueModels"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates an issue model. + * + * Create a request for the method "issueModels.create". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Create#execute()} method to invoke the remote + * operation.

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource of the issue model. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource of the issue model. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the issue model. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource of the issue model. */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes an issue model. + * + * Create a request for the method "issueModels.delete". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the issue model to delete. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + + /** + * Deletes an issue model. + * + * Create a request for the method "issueModels.delete". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Delete#execute()} method to invoke the remote + * operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the issue model to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Contactcenterinsights.this, "DELETE", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the issue model to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the issue model to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the issue model to delete. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Deploys an issue model. Returns an error if a model is already deployed. An issue model can only + * be used in analysis after it has been deployed. + * + * Create a request for the method "issueModels.deploy". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Deploy#execute()} method to invoke the remote operation. + * + * @param name Required. The issue model to deploy. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1DeployIssueModelRequest} + * @return the request + */ + public Deploy deploy(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1DeployIssueModelRequest content) throws java.io.IOException { + Deploy result = new Deploy(name, content); + initialize(result); + return result; + } + + public class Deploy extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}:deploy"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + + /** + * Deploys an issue model. Returns an error if a model is already deployed. An issue model can + * only be used in analysis after it has been deployed. + * + * Create a request for the method "issueModels.deploy". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Deploy#execute()} method to invoke the remote + * operation.

{@link + * Deploy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The issue model to deploy. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1DeployIssueModelRequest} + * @since 1.13 + */ + protected Deploy(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1DeployIssueModelRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + } + } + + @Override + public Deploy set$Xgafv(java.lang.String $Xgafv) { + return (Deploy) super.set$Xgafv($Xgafv); + } + + @Override + public Deploy setAccessToken(java.lang.String accessToken) { + return (Deploy) super.setAccessToken(accessToken); + } + + @Override + public Deploy setAlt(java.lang.String alt) { + return (Deploy) super.setAlt(alt); + } + + @Override + public Deploy setCallback(java.lang.String callback) { + return (Deploy) super.setCallback(callback); + } + + @Override + public Deploy setFields(java.lang.String fields) { + return (Deploy) super.setFields(fields); + } + + @Override + public Deploy setKey(java.lang.String key) { + return (Deploy) super.setKey(key); + } + + @Override + public Deploy setOauthToken(java.lang.String oauthToken) { + return (Deploy) super.setOauthToken(oauthToken); + } + + @Override + public Deploy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Deploy) super.setPrettyPrint(prettyPrint); + } + + @Override + public Deploy setQuotaUser(java.lang.String quotaUser) { + return (Deploy) super.setQuotaUser(quotaUser); + } + + @Override + public Deploy setUploadType(java.lang.String uploadType) { + return (Deploy) super.setUploadType(uploadType); + } + + @Override + public Deploy setUploadProtocol(java.lang.String uploadProtocol) { + return (Deploy) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The issue model to deploy. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The issue model to deploy. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The issue model to deploy. */ + public Deploy setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Deploy set(String parameterName, Object value) { + return (Deploy) super.set(parameterName, value); + } + } + /** + * Exports an issue model to the provided destination. + * + * Create a request for the method "issueModels.export". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Export#execute()} method to invoke the remote operation. + * + * @param name Required. The issue model to export. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequest} + * @return the request + */ + public Export export(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequest content) throws java.io.IOException { + Export result = new Export(name, content); + initialize(result); + return result; + } + + public class Export extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}:export"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + + /** + * Exports an issue model to the provided destination. + * + * Create a request for the method "issueModels.export". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Export#execute()} method to invoke the remote + * operation.

{@link + * Export#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The issue model to export. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequest} + * @since 1.13 + */ + protected Export(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + } + } + + @Override + public Export set$Xgafv(java.lang.String $Xgafv) { + return (Export) super.set$Xgafv($Xgafv); + } + + @Override + public Export setAccessToken(java.lang.String accessToken) { + return (Export) super.setAccessToken(accessToken); + } + + @Override + public Export setAlt(java.lang.String alt) { + return (Export) super.setAlt(alt); + } + + @Override + public Export setCallback(java.lang.String callback) { + return (Export) super.setCallback(callback); + } + + @Override + public Export setFields(java.lang.String fields) { + return (Export) super.setFields(fields); + } + + @Override + public Export setKey(java.lang.String key) { + return (Export) super.setKey(key); + } + + @Override + public Export setOauthToken(java.lang.String oauthToken) { + return (Export) super.setOauthToken(oauthToken); + } + + @Override + public Export setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Export) super.setPrettyPrint(prettyPrint); + } + + @Override + public Export setQuotaUser(java.lang.String quotaUser) { + return (Export) super.setQuotaUser(quotaUser); + } + + @Override + public Export setUploadType(java.lang.String uploadType) { + return (Export) super.setUploadType(uploadType); + } + + @Override + public Export setUploadProtocol(java.lang.String uploadProtocol) { + return (Export) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The issue model to export. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The issue model to export. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The issue model to export. */ + public Export setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Export set(String parameterName, Object value) { + return (Export) super.set(parameterName, value); + } + } + /** + * Gets an issue model. + * + * Create a request for the method "issueModels.get". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the issue model to get. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + + /** + * Gets an issue model. + * + * Create a request for the method "issueModels.get". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Get#execute()} method to invoke the remote + * operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the issue model to get. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the issue model to get. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the issue model to get. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the issue model to get. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Imports an issue model from a Cloud Storage bucket. + * + * Create a request for the method "issueModels.import". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link ContactcenterinsightsImport#execute()} method to invoke the + * remote operation. + * + * @param parent Required. The parent resource of the issue model. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequest} + * @return the request + */ + public ContactcenterinsightsImport contactcenterinsightsImport(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequest content) throws java.io.IOException { + ContactcenterinsightsImport result = new ContactcenterinsightsImport(parent, content); + initialize(result); + return result; + } + + public class ContactcenterinsightsImport extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+parent}/issueModels:import"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Imports an issue model from a Cloud Storage bucket. + * + * Create a request for the method "issueModels.import". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link ContactcenterinsightsImport#execute()} method + * to invoke the remote operation.

{@link ContactcenterinsightsImport#initialize(com.google.ap + * i.client.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this + * instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource of the issue model. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequest} + * @since 1.13 + */ + protected ContactcenterinsightsImport(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public ContactcenterinsightsImport set$Xgafv(java.lang.String $Xgafv) { + return (ContactcenterinsightsImport) super.set$Xgafv($Xgafv); + } + + @Override + public ContactcenterinsightsImport setAccessToken(java.lang.String accessToken) { + return (ContactcenterinsightsImport) super.setAccessToken(accessToken); + } + + @Override + public ContactcenterinsightsImport setAlt(java.lang.String alt) { + return (ContactcenterinsightsImport) super.setAlt(alt); + } + + @Override + public ContactcenterinsightsImport setCallback(java.lang.String callback) { + return (ContactcenterinsightsImport) super.setCallback(callback); + } + + @Override + public ContactcenterinsightsImport setFields(java.lang.String fields) { + return (ContactcenterinsightsImport) super.setFields(fields); + } + + @Override + public ContactcenterinsightsImport setKey(java.lang.String key) { + return (ContactcenterinsightsImport) super.setKey(key); + } + + @Override + public ContactcenterinsightsImport setOauthToken(java.lang.String oauthToken) { + return (ContactcenterinsightsImport) super.setOauthToken(oauthToken); + } + + @Override + public ContactcenterinsightsImport setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ContactcenterinsightsImport) super.setPrettyPrint(prettyPrint); + } + + @Override + public ContactcenterinsightsImport setQuotaUser(java.lang.String quotaUser) { + return (ContactcenterinsightsImport) super.setQuotaUser(quotaUser); + } + + @Override + public ContactcenterinsightsImport setUploadType(java.lang.String uploadType) { + return (ContactcenterinsightsImport) super.setUploadType(uploadType); + } + + @Override + public ContactcenterinsightsImport setUploadProtocol(java.lang.String uploadProtocol) { + return (ContactcenterinsightsImport) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource of the issue model. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the issue model. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource of the issue model. */ + public ContactcenterinsightsImport setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public ContactcenterinsightsImport set(String parameterName, Object value) { + return (ContactcenterinsightsImport) super.set(parameterName, value); + } + } + /** + * Lists issue models. + * + * Create a request for the method "issueModels.list". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource of the issue model. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+parent}/issueModels"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists issue models. + * + * Create a request for the method "issueModels.list". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link List#execute()} method to invoke the remote + * operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource of the issue model. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListIssueModelsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource of the issue model. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the issue model. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource of the issue model. */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates an issue model. + * + * Create a request for the method "issueModels.patch". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Immutable. The resource name of the issue model. Format: + * projects/{project}/locations/{location}/issueModels/{issue_model} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + + /** + * Updates an issue model. + * + * Create a request for the method "issueModels.patch". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Patch#execute()} method to invoke the remote + * operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Immutable. The resource name of the issue model. Format: + * projects/{project}/locations/{location}/issueModels/{issue_model} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel content) { + super(Contactcenterinsights.this, "PATCH", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Immutable. The resource name of the issue model. Format: + * projects/{project}/locations/{location}/issueModels/{issue_model} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Immutable. The resource name of the issue model. Format: + projects/{project}/locations/{location}/issueModels/{issue_model} + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. The resource name of the issue model. Format: + * projects/{project}/locations/{location}/issueModels/{issue_model} + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + } + this.name = name; + return this; + } + + /** The list of fields to be updated. */ + @com.google.api.client.util.Key + private String updateMask; + + /** The list of fields to be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** The list of fields to be updated. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Undeploys an issue model. An issue model can not be used in analysis after it has been + * undeployed. + * + * Create a request for the method "issueModels.undeploy". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Undeploy#execute()} method to invoke the remote operation. + * + * @param name Required. The issue model to undeploy. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest} + * @return the request + */ + public Undeploy undeploy(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest content) throws java.io.IOException { + Undeploy result = new Undeploy(name, content); + initialize(result); + return result; + } + + public class Undeploy extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}:undeploy"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + + /** + * Undeploys an issue model. An issue model can not be used in analysis after it has been + * undeployed. + * + * Create a request for the method "issueModels.undeploy". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Undeploy#execute()} method to invoke the + * remote operation.

{@link + * Undeploy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The issue model to undeploy. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest} + * @since 1.13 + */ + protected Undeploy(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + } + } + + @Override + public Undeploy set$Xgafv(java.lang.String $Xgafv) { + return (Undeploy) super.set$Xgafv($Xgafv); + } + + @Override + public Undeploy setAccessToken(java.lang.String accessToken) { + return (Undeploy) super.setAccessToken(accessToken); + } + + @Override + public Undeploy setAlt(java.lang.String alt) { + return (Undeploy) super.setAlt(alt); + } + + @Override + public Undeploy setCallback(java.lang.String callback) { + return (Undeploy) super.setCallback(callback); + } + + @Override + public Undeploy setFields(java.lang.String fields) { + return (Undeploy) super.setFields(fields); + } + + @Override + public Undeploy setKey(java.lang.String key) { + return (Undeploy) super.setKey(key); + } + + @Override + public Undeploy setOauthToken(java.lang.String oauthToken) { + return (Undeploy) super.setOauthToken(oauthToken); + } + + @Override + public Undeploy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Undeploy) super.setPrettyPrint(prettyPrint); + } + + @Override + public Undeploy setQuotaUser(java.lang.String quotaUser) { + return (Undeploy) super.setQuotaUser(quotaUser); + } + + @Override + public Undeploy setUploadType(java.lang.String uploadType) { + return (Undeploy) super.setUploadType(uploadType); + } + + @Override + public Undeploy setUploadProtocol(java.lang.String uploadProtocol) { + return (Undeploy) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The issue model to undeploy. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The issue model to undeploy. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The issue model to undeploy. */ + public Undeploy setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Undeploy set(String parameterName, Object value) { + return (Undeploy) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Issues collection. + * + *

The typical use is:

+ *
+         *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
+         *   {@code Contactcenterinsights.Issues.List request = contactcenterinsights.issues().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Issues issues() { + return new Issues(); + } + + /** + * The "issues" collection of methods. + */ + public class Issues { + + /** + * Creates an issue. + * + * Create a request for the method "issues.create". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource of the issue. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Issue} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Issue content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+parent}/issues"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + + /** + * Creates an issue. + * + * Create a request for the method "issues.create". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Create#execute()} method to invoke the remote + * operation.

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource of the issue. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Issue} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Issue content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource of the issue. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the issue. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource of the issue. */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes an issue. + * + * Create a request for the method "issues.delete". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the issue to delete. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$"); + + /** + * Deletes an issue. + * + * Create a request for the method "issues.delete". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Delete#execute()} method to invoke the remote + * operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the issue to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Contactcenterinsights.this, "DELETE", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the issue to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the issue to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the issue to delete. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$"); + } + this.name = name; + return this; + } @Override public Delete set(String parameterName, Object value) { @@ -2377,14 +7451,14 @@ public Delete set(String parameterName, Object value) { } } /** - * Gets an analysis. + * Gets an issue. * - * Create a request for the method "analyses.get". + * Create a request for the method "issues.get". * * This request holds the parameters needed by the contactcenterinsights server. After setting any * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The name of the analysis to get. + * @param name Required. The name of the issue to get. * @return the request */ public Get get(java.lang.String name) throws java.io.IOException { @@ -2393,17 +7467,17 @@ public Get get(java.lang.String name) throws java.io.IOException { return result; } - public class Get extends ContactcenterinsightsRequest { + public class Get extends ContactcenterinsightsRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$"); /** - * Gets an analysis. + * Gets an issue. * - * Create a request for the method "analyses.get". + * Create a request for the method "issues.get". * * This request holds the parameters needed by the the contactcenterinsights server. After * setting any optional parameters, call the {@link Get#execute()} method to invoke the remote @@ -2411,16 +7485,16 @@ public class Get extends ContactcenterinsightsRequest * - * @param name Required. The name of the analysis to get. + * @param name Required. The name of the issue to get. * @since 1.13 */ protected Get(java.lang.String name) { - super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Analysis.class); + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Issue.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$"); } } @@ -2489,22 +7563,22 @@ public Get setUploadProtocol(java.lang.String uploadProtocol) { return (Get) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the analysis to get. */ + /** Required. The name of the issue to get. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the analysis to get. + /** Required. The name of the issue to get. */ public java.lang.String getName() { return name; } - /** Required. The name of the analysis to get. */ + /** Required. The name of the issue to get. */ public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/conversations/[^/]+/analyses/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$"); } this.name = name; return this; @@ -2516,14 +7590,14 @@ public Get set(String parameterName, Object value) { } } /** - * Lists analyses. + * Lists issues. * - * Create a request for the method "analyses.list". + * Create a request for the method "issues.list". * * This request holds the parameters needed by the contactcenterinsights server. After setting any * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param parent Required. The parent resource of the analyses. + * @param parent Required. The parent resource of the issue. * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -2532,17 +7606,17 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends ContactcenterinsightsRequest { + public class List extends ContactcenterinsightsRequest { - private static final String REST_PATH = "v1/{+parent}/analyses"; + private static final String REST_PATH = "v1/{+parent}/issues"; private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); /** - * Lists analyses. + * Lists issues. * - * Create a request for the method "analyses.list". + * Create a request for the method "issues.list". * * This request holds the parameters needed by the the contactcenterinsights server. After * setting any optional parameters, call the {@link List#execute()} method to invoke the remote @@ -2550,16 +7624,16 @@ public class List extends ContactcenterinsightsRequest * - * @param parent Required. The parent resource of the analyses. + * @param parent Required. The parent resource of the issue. * @since 1.13 */ protected List(java.lang.String parent) { - super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListAnalysesResponse.class); + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListIssuesResponse.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); } } @@ -2624,332 +7698,544 @@ public List setUploadType(java.lang.String uploadType) { } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource of the issue. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the issue. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource of the issue. */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates an issue. + * + * Create a request for the method "issues.patch". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Immutable. The resource name of the issue. Format: + * projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Issue} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Issue content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$"); + + /** + * Updates an issue. + * + * Create a request for the method "issues.patch". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Patch#execute()} method to invoke the remote + * operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Immutable. The resource name of the issue. Format: + * projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Issue} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Issue content) { + super(Contactcenterinsights.this, "PATCH", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Issue.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } - /** Required. The parent resource of the analyses. */ - @com.google.api.client.util.Key - private java.lang.String parent; - - /** Required. The parent resource of the analyses. - */ - public java.lang.String getParent() { - return parent; + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } - /** Required. The parent resource of the analyses. */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/conversations/[^/]+$"); - } - this.parent = parent; - return this; + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } - /** - * A filter to reduce results to a specific subset. Useful for querying conversations - * with specific properties. - */ - @com.google.api.client.util.Key - private java.lang.String filter; - - /** A filter to reduce results to a specific subset. Useful for querying conversations with specific - properties. - */ - public java.lang.String getFilter() { - return filter; + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } - /** - * A filter to reduce results to a specific subset. Useful for querying conversations - * with specific properties. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } /** - * The maximum number of analyses to return in the response. If this value is zero, the - * service will select a default size. A call might return fewer objects than requested. - * A non-empty `next_page_token` in the response indicates that more data is available. + * Immutable. The resource name of the issue. Format: + * projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} */ @com.google.api.client.util.Key - private java.lang.Integer pageSize; + private java.lang.String name; - /** The maximum number of analyses to return in the response. If this value is zero, the service will - select a default size. A call might return fewer objects than requested. A non-empty - `next_page_token` in the response indicates that more data is available. + /** Immutable. The resource name of the issue. Format: + projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} */ - public java.lang.Integer getPageSize() { - return pageSize; + public java.lang.String getName() { + return name; } /** - * The maximum number of analyses to return in the response. If this value is zero, the - * service will select a default size. A call might return fewer objects than requested. - * A non-empty `next_page_token` in the response indicates that more data is available. + * Immutable. The resource name of the issue. Format: + * projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$"); + } + this.name = name; return this; } - /** - * The value returned by the last `ListAnalysesResponse`; indicates that this is a - * continuation of a prior `ListAnalyses` call and the system should return the next - * page of data. - */ + /** The list of fields to be updated. */ @com.google.api.client.util.Key - private java.lang.String pageToken; + private String updateMask; - /** The value returned by the last `ListAnalysesResponse`; indicates that this is a continuation of a - prior `ListAnalyses` call and the system should return the next page of data. + /** The list of fields to be updated. */ - public java.lang.String getPageToken() { - return pageToken; + public String getUpdateMask() { + return updateMask; } - /** - * The value returned by the last `ListAnalysesResponse`; indicates that this is a - * continuation of a prior `ListAnalyses` call and the system should return the next - * page of data. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; + /** The list of fields to be updated. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } } } /** - * An accessor for creating requests from the Insightsdata collection. + * An accessor for creating requests from the Operations collection. * *

The typical use is:

*
        *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
-       *   {@code Contactcenterinsights.Insightsdata.List request = contactcenterinsights.insightsdata().list(parameters ...)}
+       *   {@code Contactcenterinsights.Operations.List request = contactcenterinsights.operations().list(parameters ...)}
        * 
* * @return the resource collection */ - public Insightsdata insightsdata() { - return new Insightsdata(); + public Operations operations() { + return new Operations(); } /** - * The "insightsdata" collection of methods. + * The "operations" collection of methods. */ - public class Insightsdata { + public class Operations { + + /** + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. + * + * Create a request for the method "operations.cancel". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be cancelled. + * @return the request + */ + public Cancel cancel(java.lang.String name) throws java.io.IOException { + Cancel result = new Cancel(name); + initialize(result); + return result; + } + + public class Cancel extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}:cancel"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + + /** + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. + * + * Create a request for the method "operations.cancel". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Cancel#execute()} method to invoke the remote + * operation.

{@link + * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name The name of the operation resource to be cancelled. + * @since 1.13 + */ + protected Cancel(java.lang.String name) { + super(Contactcenterinsights.this, "POST", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } /** - * Export insights data to a destination defined in the request body. + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. * - * Create a request for the method "insightsdata.export". + * Create a request for the method "operations.get". * * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link Export#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param parent Required. The parent resource to export data from. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest} + * @param name The name of the operation resource. * @return the request */ - public Export export(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest content) throws java.io.IOException { - Export result = new Export(parent, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Export extends ContactcenterinsightsRequest { + public class Get extends ContactcenterinsightsRequest { - private static final String REST_PATH = "v1/{+parent}/insightsdata:export"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); /** - * Export insights data to a destination defined in the request body. + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. * - * Create a request for the method "insightsdata.export". + * Create a request for the method "operations.get". * * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link Export#execute()} method to invoke the remote + * setting any optional parameters, call the {@link Get#execute()} method to invoke the remote * operation.

{@link - * Export#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* - * @param parent Required. The parent resource to export data from. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest} + * @param name The name of the operation resource. * @since 1.13 */ - protected Export(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest content) { - super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + protected Get(java.lang.String name) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } } @Override - public Export set$Xgafv(java.lang.String $Xgafv) { - return (Export) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Export setAccessToken(java.lang.String accessToken) { - return (Export) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Export setAlt(java.lang.String alt) { - return (Export) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Export setCallback(java.lang.String callback) { - return (Export) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Export setFields(java.lang.String fields) { - return (Export) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Export setKey(java.lang.String key) { - return (Export) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Export setOauthToken(java.lang.String oauthToken) { - return (Export) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Export setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Export) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Export setQuotaUser(java.lang.String quotaUser) { - return (Export) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Export setUploadType(java.lang.String uploadType) { - return (Export) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Export setUploadProtocol(java.lang.String uploadProtocol) { - return (Export) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - /** Required. The parent resource to export data from. */ + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The parent resource to export data from. + /** The name of the operation resource. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** Required. The parent resource to export data from. */ - public Export setParent(java.lang.String parent) { + /** The name of the operation resource. */ + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } @Override - public Export set(String parameterName, Object value) { - return (Export) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } - - } - /** - * An accessor for creating requests from the IssueModels collection. - * - *

The typical use is:

- *
-       *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
-       *   {@code Contactcenterinsights.IssueModels.List request = contactcenterinsights.issueModels().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public IssueModels issueModels() { - return new IssueModels(); - } - - /** - * The "issueModels" collection of methods. - */ - public class IssueModels { - /** - * Gets an issue model's statistics. + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. * - * Create a request for the method "issueModels.calculateIssueModelStats". + * Create a request for the method "operations.list". * * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link CalculateIssueModelStats#execute()} method to invoke the - * remote operation. + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param issueModel Required. The resource name of the issue model to query against. + * @param name The name of the operation's parent resource. * @return the request */ - public CalculateIssueModelStats calculateIssueModelStats(java.lang.String issueModel) throws java.io.IOException { - CalculateIssueModelStats result = new CalculateIssueModelStats(issueModel); + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); initialize(result); return result; } - public class CalculateIssueModelStats extends ContactcenterinsightsRequest { + public class List extends ContactcenterinsightsRequest { - private static final String REST_PATH = "v1/{+issueModel}:calculateIssueModelStats"; + private static final String REST_PATH = "v1/{+name}/operations"; - private final java.util.regex.Pattern ISSUE_MODEL_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Gets an issue model's statistics. + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. * - * Create a request for the method "issueModels.calculateIssueModelStats". + * Create a request for the method "operations.list". * * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link CalculateIssueModelStats#execute()} method to - * invoke the remote operation.

{@link CalculateIssueModelStats#initialize(com.google.api.clie - * nt.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance - * immediately after invoking the constructor.

+ * setting any optional parameters, call the {@link List#execute()} method to invoke the remote + * operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* - * @param issueModel Required. The resource name of the issue model to query against. + * @param name The name of the operation's parent resource. * @since 1.13 */ - protected CalculateIssueModelStats(java.lang.String issueModel) { - super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse.class); - this.issueModel = com.google.api.client.util.Preconditions.checkNotNull(issueModel, "Required parameter issueModel must be specified."); + protected List(java.lang.String name) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningListOperationsResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ISSUE_MODEL_PATTERN.matcher(issueModel).matches(), - "Parameter issueModel must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @@ -2964,115 +8250,186 @@ public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws } @Override - public CalculateIssueModelStats set$Xgafv(java.lang.String $Xgafv) { - return (CalculateIssueModelStats) super.set$Xgafv($Xgafv); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public CalculateIssueModelStats setAccessToken(java.lang.String accessToken) { - return (CalculateIssueModelStats) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public CalculateIssueModelStats setAlt(java.lang.String alt) { - return (CalculateIssueModelStats) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public CalculateIssueModelStats setCallback(java.lang.String callback) { - return (CalculateIssueModelStats) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public CalculateIssueModelStats setFields(java.lang.String fields) { - return (CalculateIssueModelStats) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } - @Override - public CalculateIssueModelStats setKey(java.lang.String key) { - return (CalculateIssueModelStats) super.setKey(key); + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; } - @Override - public CalculateIssueModelStats setOauthToken(java.lang.String oauthToken) { - return (CalculateIssueModelStats) super.setOauthToken(oauthToken); + /** The name of the operation's parent resource. */ + public List setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.name = name; + return this; } - @Override - public CalculateIssueModelStats setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CalculateIssueModelStats) super.setPrettyPrint(prettyPrint); + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; } - @Override - public CalculateIssueModelStats setQuotaUser(java.lang.String quotaUser) { - return (CalculateIssueModelStats) super.setQuotaUser(quotaUser); + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - @Override - public CalculateIssueModelStats setUploadType(java.lang.String uploadType) { - return (CalculateIssueModelStats) super.setUploadType(uploadType); + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; } - @Override - public CalculateIssueModelStats setUploadProtocol(java.lang.String uploadProtocol) { - return (CalculateIssueModelStats) super.setUploadProtocol(uploadProtocol); + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; } - /** Required. The resource name of the issue model to query against. */ + /** The standard list page token. */ @com.google.api.client.util.Key - private java.lang.String issueModel; + private java.lang.String pageToken; - /** Required. The resource name of the issue model to query against. + /** The standard list page token. */ - public java.lang.String getIssueModel() { - return issueModel; + public java.lang.String getPageToken() { + return pageToken; } - /** Required. The resource name of the issue model to query against. */ - public CalculateIssueModelStats setIssueModel(java.lang.String issueModel) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(ISSUE_MODEL_PATTERN.matcher(issueModel).matches(), - "Parameter issueModel must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); - } - this.issueModel = issueModel; + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public CalculateIssueModelStats set(String parameterName, Object value) { - return (CalculateIssueModelStats) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the PhraseMatchers collection. + * + *

The typical use is:

+ *
+       *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
+       *   {@code Contactcenterinsights.PhraseMatchers.List request = contactcenterinsights.phraseMatchers().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public PhraseMatchers phraseMatchers() { + return new PhraseMatchers(); + } + + /** + * The "phraseMatchers" collection of methods. + */ + public class PhraseMatchers { + /** - * Creates an issue model. + * Creates a phrase matcher. * - * Create a request for the method "issueModels.create". + * Create a request for the method "phraseMatchers.create". * * This request holds the parameters needed by the contactcenterinsights server. After setting any * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param parent Required. The parent resource of the issue model. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel} + * @param parent Required. The parent resource of the phrase matcher. Required. The location to create a phrase + * matcher for. Format: `projects//locations/` or `projects//locations/` + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher} * @return the request */ - public Create create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel content) throws java.io.IOException { + public Create create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher content) throws java.io.IOException { Create result = new Create(parent, content); initialize(result); return result; } - public class Create extends ContactcenterinsightsRequest { + public class Create extends ContactcenterinsightsRequest { - private static final String REST_PATH = "v1/{+parent}/issueModels"; + private static final String REST_PATH = "v1/{+parent}/phraseMatchers"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Creates an issue model. + * Creates a phrase matcher. * - * Create a request for the method "issueModels.create". + * Create a request for the method "phraseMatchers.create". * * This request holds the parameters needed by the the contactcenterinsights server. After * setting any optional parameters, call the {@link Create#execute()} method to invoke the remote @@ -3080,12 +8437,13 @@ public class Create extends ContactcenterinsightsRequest * - * @param parent Required. The parent resource of the issue model. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel} + * @param parent Required. The parent resource of the phrase matcher. Required. The location to create a phrase + * matcher for. Format: `projects//locations/` or `projects//locations/` + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher} * @since 1.13 */ - protected Create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel content) { - super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + protected Create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -3149,17 +8507,24 @@ public Create setUploadProtocol(java.lang.String uploadProtocol) { return (Create) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent resource of the issue model. */ + /** + * Required. The parent resource of the phrase matcher. Required. The location to create a + * phrase matcher for. Format: `projects//locations/` or `projects//locations/` + */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent resource of the issue model. + /** Required. The parent resource of the phrase matcher. Required. The location to create a phrase + matcher for. Format: `projects//locations/` or `projects//locations/` */ public java.lang.String getParent() { return parent; } - /** Required. The parent resource of the issue model. */ + /** + * Required. The parent resource of the phrase matcher. Required. The location to create a + * phrase matcher for. Format: `projects//locations/` or `projects//locations/` + */ public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -3176,14 +8541,14 @@ public Create set(String parameterName, Object value) { } } /** - * Deletes an issue model. + * Deletes a phrase matcher. * - * Create a request for the method "issueModels.delete". + * Create a request for the method "phraseMatchers.delete". * * This request holds the parameters needed by the contactcenterinsights server. After setting any * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The name of the issue model to delete. + * @param name Required. The name of the phrase matcher to delete. * @return the request */ public Delete delete(java.lang.String name) throws java.io.IOException { @@ -3192,17 +8557,17 @@ public Delete delete(java.lang.String name) throws java.io.IOException { return result; } - public class Delete extends ContactcenterinsightsRequest { + public class Delete extends ContactcenterinsightsRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$"); /** - * Deletes an issue model. + * Deletes a phrase matcher. * - * Create a request for the method "issueModels.delete". + * Create a request for the method "phraseMatchers.delete". * * This request holds the parameters needed by the the contactcenterinsights server. After * setting any optional parameters, call the {@link Delete#execute()} method to invoke the remote @@ -3210,16 +8575,16 @@ public class Delete extends ContactcenterinsightsRequest * - * @param name Required. The name of the issue model to delete. + * @param name Required. The name of the phrase matcher to delete. * @since 1.13 */ protected Delete(java.lang.String name) { - super(Contactcenterinsights.this, "DELETE", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + super(Contactcenterinsights.this, "DELETE", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleProtobufEmpty.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$"); } } @@ -3278,22 +8643,22 @@ public Delete setUploadProtocol(java.lang.String uploadProtocol) { return (Delete) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the issue model to delete. */ + /** Required. The name of the phrase matcher to delete. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the issue model to delete. + /** Required. The name of the phrase matcher to delete. */ public java.lang.String getName() { return name; } - /** Required. The name of the issue model to delete. */ + /** Required. The name of the phrase matcher to delete. */ public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$"); } this.name = name; return this; @@ -3305,451 +8670,580 @@ public Delete set(String parameterName, Object value) { } } /** - * Deploys an issue model. Returns an error if a model is already deployed. An issue model can only - * be used in analysis after it has been deployed. + * Gets a phrase matcher. * - * Create a request for the method "issueModels.deploy". + * Create a request for the method "phraseMatchers.get". * * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link Deploy#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Required. The issue model to deploy. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1DeployIssueModelRequest} + * @param name Required. The name of the phrase matcher to get. * @return the request */ - public Deploy deploy(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1DeployIssueModelRequest content) throws java.io.IOException { - Deploy result = new Deploy(name, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Deploy extends ContactcenterinsightsRequest { + public class Get extends ContactcenterinsightsRequest { - private static final String REST_PATH = "v1/{+name}:deploy"; + private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$"); /** - * Deploys an issue model. Returns an error if a model is already deployed. An issue model can - * only be used in analysis after it has been deployed. + * Gets a phrase matcher. * - * Create a request for the method "issueModels.deploy". + * Create a request for the method "phraseMatchers.get". * * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link Deploy#execute()} method to invoke the remote + * setting any optional parameters, call the {@link Get#execute()} method to invoke the remote * operation.

{@link - * Deploy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* - * @param name Required. The issue model to deploy. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1DeployIssueModelRequest} + * @param name Required. The name of the phrase matcher to get. * @since 1.13 */ - protected Deploy(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1DeployIssueModelRequest content) { - super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + protected Get(java.lang.String name) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$"); } } @Override - public Deploy set$Xgafv(java.lang.String $Xgafv) { - return (Deploy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Deploy setAccessToken(java.lang.String accessToken) { - return (Deploy) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Deploy setAlt(java.lang.String alt) { - return (Deploy) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Deploy setCallback(java.lang.String callback) { - return (Deploy) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Deploy setFields(java.lang.String fields) { - return (Deploy) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Deploy setKey(java.lang.String key) { - return (Deploy) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Deploy setOauthToken(java.lang.String oauthToken) { - return (Deploy) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Deploy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Deploy) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Deploy setQuotaUser(java.lang.String quotaUser) { - return (Deploy) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Deploy setUploadType(java.lang.String uploadType) { - return (Deploy) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public Deploy setUploadProtocol(java.lang.String uploadProtocol) { - return (Deploy) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); } - /** Required. The issue model to deploy. */ + /** Required. The name of the phrase matcher to get. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The issue model to deploy. + /** Required. The name of the phrase matcher to get. */ public java.lang.String getName() { return name; } - /** Required. The issue model to deploy. */ - public Deploy setName(java.lang.String name) { + /** Required. The name of the phrase matcher to get. */ + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$"); } this.name = name; return this; } @Override - public Deploy set(String parameterName, Object value) { - return (Deploy) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Exports an issue model to the provided destination. + * Lists phrase matchers. * - * Create a request for the method "issueModels.export". + * Create a request for the method "phraseMatchers.list". * * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link Export#execute()} method to invoke the remote operation. + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name Required. The issue model to export. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequest} + * @param parent Required. The parent resource of the phrase matcher. * @return the request */ - public Export export(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequest content) throws java.io.IOException { - Export result = new Export(name, content); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Export extends ContactcenterinsightsRequest { + public class List extends ContactcenterinsightsRequest { - private static final String REST_PATH = "v1/{+name}:export"; + private static final String REST_PATH = "v1/{+parent}/phraseMatchers"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Exports an issue model to the provided destination. + * Lists phrase matchers. * - * Create a request for the method "issueModels.export". + * Create a request for the method "phraseMatchers.list". * * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link Export#execute()} method to invoke the remote + * setting any optional parameters, call the {@link List#execute()} method to invoke the remote * operation.

{@link - * Export#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* - * @param name Required. The issue model to export. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequest} + * @param parent Required. The parent resource of the phrase matcher. * @since 1.13 */ - protected Export(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ExportIssueModelRequest content) { - super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected List(java.lang.String parent) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public Export set$Xgafv(java.lang.String $Xgafv) { - return (Export) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Export setAccessToken(java.lang.String accessToken) { - return (Export) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Export setAlt(java.lang.String alt) { - return (Export) super.setAlt(alt); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Export setCallback(java.lang.String callback) { - return (Export) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Export setFields(java.lang.String fields) { - return (Export) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Export setKey(java.lang.String key) { - return (Export) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Export setOauthToken(java.lang.String oauthToken) { - return (Export) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Export setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Export) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Export setQuotaUser(java.lang.String quotaUser) { - return (Export) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Export setUploadType(java.lang.String uploadType) { - return (Export) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Export setUploadProtocol(java.lang.String uploadProtocol) { - return (Export) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - /** Required. The issue model to export. */ + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource of the phrase matcher. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. The issue model to export. + /** Required. The parent resource of the phrase matcher. */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** Required. The issue model to export. */ - public Export setName(java.lang.String name) { + /** Required. The parent resource of the phrase matcher. */ + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; + return this; + } + + /** + * A filter to reduce results to a specific subset. Useful for querying phrase matchers + * with specific properties. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter to reduce results to a specific subset. Useful for querying phrase matchers with specific + properties. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter to reduce results to a specific subset. Useful for querying phrase matchers + * with specific properties. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The maximum number of phrase matchers to return in the response. If this value is zero, + * the service will select a default size. A call might return fewer objects than + * requested. A non-empty `next_page_token` in the response indicates that more data is + * available. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of phrase matchers to return in the response. If this value is zero, the service + will select a default size. A call might return fewer objects than requested. A non-empty + `next_page_token` in the response indicates that more data is available. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * The maximum number of phrase matchers to return in the response. If this value is zero, + * the service will select a default size. A call might return fewer objects than + * requested. A non-empty `next_page_token` in the response indicates that more data is + * available. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * The value returned by the last `ListPhraseMatchersResponse`. This value indicates that + * this is a continuation of a prior `ListPhraseMatchers` call and that the system should + * return the next page of data. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The value returned by the last `ListPhraseMatchersResponse`. This value indicates that this is a + continuation of a prior `ListPhraseMatchers` call and that the system should return the next page + of data. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * The value returned by the last `ListPhraseMatchersResponse`. This value indicates that + * this is a continuation of a prior `ListPhraseMatchers` call and that the system should + * return the next page of data. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; return this; } @Override - public Export set(String parameterName, Object value) { - return (Export) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Gets an issue model. + * Updates a phrase matcher. * - * Create a request for the method "issueModels.get". + * Create a request for the method "phraseMatchers.patch". * * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. * - * @param name Required. The name of the issue model to get. + * @param name The resource name of the phrase matcher. Format: + * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher} * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Patch patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher content) throws java.io.IOException { + Patch result = new Patch(name, content); initialize(result); return result; } - public class Get extends ContactcenterinsightsRequest { + public class Patch extends ContactcenterinsightsRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$"); /** - * Gets an issue model. + * Updates a phrase matcher. * - * Create a request for the method "issueModels.get". + * Create a request for the method "phraseMatchers.patch". * * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link Get#execute()} method to invoke the remote + * setting any optional parameters, call the {@link Patch#execute()} method to invoke the remote * operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param name Required. The name of the issue model to get. + * @param name The resource name of the phrase matcher. Format: + * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher} * @since 1.13 */ - protected Get(java.lang.String name) { - super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel.class); + protected Patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher content) { + super(Contactcenterinsights.this, "PATCH", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the issue model to get. */ + /** + * The resource name of the phrase matcher. Format: + * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} + */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the issue model to get. + /** The resource name of the phrase matcher. Format: + projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} */ public java.lang.String getName() { return name; } - /** Required. The name of the issue model to get. */ - public Get setName(java.lang.String name) { + /** + * The resource name of the phrase matcher. Format: + * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} + */ + public Patch setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$"); } this.name = name; return this; } + /** The list of fields to be updated. */ + @com.google.api.client.util.Key + private String updateMask; + + /** The list of fields to be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** The list of fields to be updated. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } + + } + /** + * An accessor for creating requests from the QaScorecards collection. + * + *

The typical use is:

+ *
+       *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
+       *   {@code Contactcenterinsights.QaScorecards.List request = contactcenterinsights.qaScorecards().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public QaScorecards qaScorecards() { + return new QaScorecards(); + } + + /** + * The "qaScorecards" collection of methods. + */ + public class QaScorecards { + /** - * Imports an issue model from a Cloud Storage bucket. + * Create a QaScorecard. * - * Create a request for the method "issueModels.import". + * Create a request for the method "qaScorecards.create". * * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link ContactcenterinsightsImport#execute()} method to invoke the - * remote operation. + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param parent Required. The parent resource of the issue model. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequest} + * @param parent Required. The parent resource of the QaScorecard. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecard} * @return the request */ - public ContactcenterinsightsImport contactcenterinsightsImport(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequest content) throws java.io.IOException { - ContactcenterinsightsImport result = new ContactcenterinsightsImport(parent, content); + public Create create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecard content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class ContactcenterinsightsImport extends ContactcenterinsightsRequest { + public class Create extends ContactcenterinsightsRequest { - private static final String REST_PATH = "v1/{+parent}/issueModels:import"; + private static final String REST_PATH = "v1/{+parent}/qaScorecards"; private final java.util.regex.Pattern PARENT_PATTERN = java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Imports an issue model from a Cloud Storage bucket. + * Create a QaScorecard. * - * Create a request for the method "issueModels.import". + * Create a request for the method "qaScorecards.create". * * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link ContactcenterinsightsImport#execute()} method - * to invoke the remote operation.

{@link ContactcenterinsightsImport#initialize(com.google.ap - * i.client.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this - * instance immediately after invoking the constructor.

+ * setting any optional parameters, call the {@link Create#execute()} method to invoke the remote + * operation.

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param parent Required. The parent resource of the issue model. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequest} + * @param parent Required. The parent resource of the QaScorecard. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecard} * @since 1.13 */ - protected ContactcenterinsightsImport(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequest content) { - super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + protected Create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecard content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecard.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), @@ -3759,72 +9253,72 @@ protected ContactcenterinsightsImport(java.lang.String parent, com.google.api.se } @Override - public ContactcenterinsightsImport set$Xgafv(java.lang.String $Xgafv) { - return (ContactcenterinsightsImport) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public ContactcenterinsightsImport setAccessToken(java.lang.String accessToken) { - return (ContactcenterinsightsImport) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public ContactcenterinsightsImport setAlt(java.lang.String alt) { - return (ContactcenterinsightsImport) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public ContactcenterinsightsImport setCallback(java.lang.String callback) { - return (ContactcenterinsightsImport) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public ContactcenterinsightsImport setFields(java.lang.String fields) { - return (ContactcenterinsightsImport) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public ContactcenterinsightsImport setKey(java.lang.String key) { - return (ContactcenterinsightsImport) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public ContactcenterinsightsImport setOauthToken(java.lang.String oauthToken) { - return (ContactcenterinsightsImport) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public ContactcenterinsightsImport setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ContactcenterinsightsImport) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public ContactcenterinsightsImport setQuotaUser(java.lang.String quotaUser) { - return (ContactcenterinsightsImport) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public ContactcenterinsightsImport setUploadType(java.lang.String uploadType) { - return (ContactcenterinsightsImport) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public ContactcenterinsightsImport setUploadProtocol(java.lang.String uploadProtocol) { - return (ContactcenterinsightsImport) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent resource of the issue model. */ + /** Required. The parent resource of the QaScorecard. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent resource of the issue model. + /** Required. The parent resource of the QaScorecard. */ public java.lang.String getParent() { return parent; } - /** Required. The parent resource of the issue model. */ - public ContactcenterinsightsImport setParent(java.lang.String parent) { + /** Required. The parent resource of the QaScorecard. */ + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + @@ -3834,2320 +9328,2595 @@ public ContactcenterinsightsImport setParent(java.lang.String parent) { return this; } + /** + * Optional. A unique ID for the new QaScorecard. This ID will become the final component + * of the QaScorecard's resource name. If no ID is specified, a server-generated ID will + * be used. This value should be 4-64 characters and must match the regular expression + * `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`. + */ + @com.google.api.client.util.Key + private java.lang.String qaScorecardId; + + /** Optional. A unique ID for the new QaScorecard. This ID will become the final component of the + QaScorecard's resource name. If no ID is specified, a server-generated ID will be used. This value + should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid + characters are `a-z-`. + */ + public java.lang.String getQaScorecardId() { + return qaScorecardId; + } + + /** + * Optional. A unique ID for the new QaScorecard. This ID will become the final component + * of the QaScorecard's resource name. If no ID is specified, a server-generated ID will + * be used. This value should be 4-64 characters and must match the regular expression + * `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`. + */ + public Create setQaScorecardId(java.lang.String qaScorecardId) { + this.qaScorecardId = qaScorecardId; + return this; + } + @Override - public ContactcenterinsightsImport set(String parameterName, Object value) { - return (ContactcenterinsightsImport) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Lists issue models. + * Deletes a QaScorecard. * - * Create a request for the method "issueModels.list". + * Create a request for the method "qaScorecards.delete". * * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param parent Required. The parent resource of the issue model. + * @param name Required. The name of the QaScorecard to delete. * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class List extends ContactcenterinsightsRequest { + public class Delete extends ContactcenterinsightsRequest { - private static final String REST_PATH = "v1/{+parent}/issueModels"; + private static final String REST_PATH = "v1/{+name}"; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$"); /** - * Lists issue models. + * Deletes a QaScorecard. * - * Create a request for the method "issueModels.list". + * Create a request for the method "qaScorecards.delete". * * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link List#execute()} method to invoke the remote + * setting any optional parameters, call the {@link Delete#execute()} method to invoke the remote * operation.

{@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param parent Required. The parent resource of the issue model. + * @param name Required. The name of the QaScorecard to delete. * @since 1.13 */ - protected List(java.lang.String parent) { - super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListIssueModelsResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + protected Delete(java.lang.String name) { + super(Contactcenterinsights.this, "DELETE", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$"); + } } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent resource of the issue model. */ + /** Required. The name of the QaScorecard to delete. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The parent resource of the issue model. + /** Required. The name of the QaScorecard to delete. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** Required. The parent resource of the issue model. */ - public List setParent(java.lang.String parent) { + /** Required. The name of the QaScorecard to delete. */ + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$"); } - this.parent = parent; + this.name = name; + return this; + } + + /** + * Optional. If set to true, all of this QaScorecard's child resources will also be + * deleted. Otherwise, the request will only succeed if it has none. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. If set to true, all of this QaScorecard's child resources will also be deleted. + Otherwise, the request will only succeed if it has none. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. If set to true, all of this QaScorecard's child resources will also be + * deleted. Otherwise, the request will only succeed if it has none. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Updates an issue model. + * Gets a QaScorecard. * - * Create a request for the method "issueModels.patch". + * Create a request for the method "qaScorecards.get". * * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name Immutable. The resource name of the issue model. Format: - * projects/{project}/locations/{location}/issueModels/{issue_model} - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel} + * @param name Required. The name of the QaScorecard to get. * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel content) throws java.io.IOException { - Patch result = new Patch(name, content); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Patch extends ContactcenterinsightsRequest { + public class Get extends ContactcenterinsightsRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$"); /** - * Updates an issue model. + * Gets a QaScorecard. * - * Create a request for the method "issueModels.patch". + * Create a request for the method "qaScorecards.get". * * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link Patch#execute()} method to invoke the remote + * setting any optional parameters, call the {@link Get#execute()} method to invoke the remote * operation.

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* - * @param name Immutable. The resource name of the issue model. Format: - * projects/{project}/locations/{location}/issueModels/{issue_model} - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel} + * @param name Required. The name of the QaScorecard to get. * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel content) { - super(Contactcenterinsights.this, "PATCH", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel.class); + protected Get(java.lang.String name) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecard.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - /** - * Immutable. The resource name of the issue model. Format: - * projects/{project}/locations/{location}/issueModels/{issue_model} - */ + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the QaScorecard to get. */ @com.google.api.client.util.Key private java.lang.String name; - /** Immutable. The resource name of the issue model. Format: - projects/{project}/locations/{location}/issueModels/{issue_model} + /** Required. The name of the QaScorecard to get. */ public java.lang.String getName() { return name; } - /** - * Immutable. The resource name of the issue model. Format: - * projects/{project}/locations/{location}/issueModels/{issue_model} - */ - public Patch setName(java.lang.String name) { + /** Required. The name of the QaScorecard to get. */ + public Get setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$"); } this.name = name; return this; } - /** The list of fields to be updated. */ - @com.google.api.client.util.Key - private String updateMask; - - /** The list of fields to be updated. - */ - public String getUpdateMask() { - return updateMask; - } - - /** The list of fields to be updated. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Undeploys an issue model. An issue model can not be used in analysis after it has been - * undeployed. + * Lists QaScorecards. * - * Create a request for the method "issueModels.undeploy". + * Create a request for the method "qaScorecards.list". * * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link Undeploy#execute()} method to invoke the remote operation. + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name Required. The issue model to undeploy. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest} + * @param parent Required. The parent resource of the scorecards. * @return the request */ - public Undeploy undeploy(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest content) throws java.io.IOException { - Undeploy result = new Undeploy(name, content); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Undeploy extends ContactcenterinsightsRequest { + public class List extends ContactcenterinsightsRequest { - private static final String REST_PATH = "v1/{+name}:undeploy"; + private static final String REST_PATH = "v1/{+parent}/qaScorecards"; - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); /** - * Undeploys an issue model. An issue model can not be used in analysis after it has been - * undeployed. + * Lists QaScorecards. * - * Create a request for the method "issueModels.undeploy". + * Create a request for the method "qaScorecards.list". * * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link Undeploy#execute()} method to invoke the - * remote operation.

{@link - * Undeploy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} - * must be called to initialize this instance immediately after invoking the constructor.

+ * setting any optional parameters, call the {@link List#execute()} method to invoke the remote + * operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

* - * @param name Required. The issue model to undeploy. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest} + * @param parent Required. The parent resource of the scorecards. * @since 1.13 */ - protected Undeploy(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest content) { - super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + protected List(java.lang.String parent) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } } @Override - public Undeploy set$Xgafv(java.lang.String $Xgafv) { - return (Undeploy) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Undeploy setAccessToken(java.lang.String accessToken) { - return (Undeploy) super.setAccessToken(accessToken); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Undeploy setAlt(java.lang.String alt) { - return (Undeploy) super.setAlt(alt); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Undeploy setCallback(java.lang.String callback) { - return (Undeploy) super.setCallback(callback); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Undeploy setFields(java.lang.String fields) { - return (Undeploy) super.setFields(fields); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Undeploy setKey(java.lang.String key) { - return (Undeploy) super.setKey(key); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Undeploy setOauthToken(java.lang.String oauthToken) { - return (Undeploy) super.setOauthToken(oauthToken); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Undeploy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Undeploy) super.setPrettyPrint(prettyPrint); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Undeploy setQuotaUser(java.lang.String quotaUser) { - return (Undeploy) super.setQuotaUser(quotaUser); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } @Override - public Undeploy setUploadType(java.lang.String uploadType) { - return (Undeploy) super.setUploadType(uploadType); + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); } @Override - public Undeploy setUploadProtocol(java.lang.String uploadProtocol) { - return (Undeploy) super.setUploadProtocol(uploadProtocol); + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); } - /** Required. The issue model to undeploy. */ + /** Required. The parent resource of the scorecards. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. The issue model to undeploy. + /** Required. The parent resource of the scorecards. */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** Required. The issue model to undeploy. */ - public Undeploy setName(java.lang.String name) { + /** Required. The parent resource of the scorecards. */ + public List setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); } - this.name = name; + this.parent = parent; return this; } - @Override - public Undeploy set(String parameterName, Object value) { - return (Undeploy) super.set(parameterName, value); - } - } - - /** - * An accessor for creating requests from the Issues collection. - * - *

The typical use is:

- *
-         *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
-         *   {@code Contactcenterinsights.Issues.List request = contactcenterinsights.issues().list(parameters ...)}
-         * 
- * - * @return the resource collection - */ - public Issues issues() { - return new Issues(); - } + /** + * Optional. The maximum number of scorecards to return in the response. If the value is + * zero, the service will select a default size. A call might return fewer objects than + * requested. A non-empty `next_page_token` in the response indicates that more data is + * available. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - /** - * The "issues" collection of methods. - */ - public class Issues { + /** Optional. The maximum number of scorecards to return in the response. If the value is zero, the + service will select a default size. A call might return fewer objects than requested. A non-empty + `next_page_token` in the response indicates that more data is available. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } /** - * Deletes an issue. - * - * Create a request for the method "issues.delete". - * - * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the issue to delete. - * @return the request + * Optional. The maximum number of scorecards to return in the response. If the value is + * zero, the service will select a default size. A call might return fewer objects than + * requested. A non-empty `next_page_token` in the response indicates that more data is + * available. */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; } - public class Delete extends ContactcenterinsightsRequest { - - private static final String REST_PATH = "v1/{+name}"; - - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$"); - - /** - * Deletes an issue. - * - * Create a request for the method "issues.delete". - * - * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link Delete#execute()} method to invoke the remote - * operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param name Required. The name of the issue to delete. - * @since 1.13 - */ - protected Delete(java.lang.String name) { - super(Contactcenterinsights.this, "DELETE", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleProtobufEmpty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$"); - } - } - - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } - - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } - - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } - - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } - - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } - - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } - - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } - - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + /** + * Optional. The value returned by the last `ListQaScorecardsResponse`. This value + * indicates that this is a continuation of a prior `ListQaScorecards` call and that the + * system should return the next page of data. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** Optional. The value returned by the last `ListQaScorecardsResponse`. This value indicates that this + is a continuation of a prior `ListQaScorecards` call and that the system should return the next + page of data. + */ + public java.lang.String getPageToken() { + return pageToken; + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + /** + * Optional. The value returned by the last `ListQaScorecardsResponse`. This value + * indicates that this is a continuation of a prior `ListQaScorecards` call and that the + * system should return the next page of data. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates a QaScorecard. + * + * Create a request for the method "qaScorecards.patch". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The scorecard name. Format: + * projects/{project}/locations/{location}/qaScorecards/{qa_scorecard} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecard} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecard content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } - /** Required. The name of the issue to delete. */ - @com.google.api.client.util.Key - private java.lang.String name; + public class Patch extends ContactcenterinsightsRequest { - /** Required. The name of the issue to delete. - */ - public java.lang.String getName() { - return name; - } + private static final String REST_PATH = "v1/{+name}"; - /** Required. The name of the issue to delete. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$"); - } - this.name = name; - return this; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$"); - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } /** - * Gets an issue. + * Updates a QaScorecard. * - * Create a request for the method "issues.get". - * - * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * Create a request for the method "qaScorecards.patch". * - * @param name Required. The name of the issue to get. - * @return the request + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Patch#execute()} method to invoke the remote + * operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Identifier. The scorecard name. Format: + * projects/{project}/locations/{location}/qaScorecards/{qa_scorecard} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecard} + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected Patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecard content) { + super(Contactcenterinsights.this, "PATCH", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecard.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$"); + } } - public class Get extends ContactcenterinsightsRequest { + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - private static final String REST_PATH = "v1/{+name}"; + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$"); + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - /** - * Gets an issue. - * - * Create a request for the method "issues.get". - * - * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link Get#execute()} method to invoke the remote - * operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

- * - * @param name Required. The name of the issue to get. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Issue.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$"); - } - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + /** + * Identifier. The scorecard name. Format: + * projects/{project}/locations/{location}/qaScorecards/{qa_scorecard} + */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + /** Identifier. The scorecard name. Format: + projects/{project}/locations/{location}/qaScorecards/{qa_scorecard} + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + /** + * Identifier. The scorecard name. Format: + * projects/{project}/locations/{location}/qaScorecards/{qa_scorecard} + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** + * Required. The list of fields to be updated. All possible fields can be updated by + * passing `*`, or a subset of the following updateable fields can be provided: * + * `description` * `display_name` + */ + @com.google.api.client.util.Key + private String updateMask; - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + /** Required. The list of fields to be updated. All possible fields can be updated by passing `*`, or a + subset of the following updateable fields can be provided: * `description` * `display_name` + */ + public String getUpdateMask() { + return updateMask; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + /** + * Required. The list of fields to be updated. All possible fields can be updated by + * passing `*`, or a subset of the following updateable fields can be provided: * + * `description` * `display_name` + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } - /** Required. The name of the issue to get. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } - /** Required. The name of the issue to get. - */ - public java.lang.String getName() { - return name; - } + /** + * An accessor for creating requests from the Revisions collection. + * + *

The typical use is:

+ *
+         *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
+         *   {@code Contactcenterinsights.Revisions.List request = contactcenterinsights.revisions().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Revisions revisions() { + return new Revisions(); + } - /** Required. The name of the issue to get. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$"); - } - this.name = name; - return this; - } + /** + * The "revisions" collection of methods. + */ + public class Revisions { - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } /** - * Lists issues. + * Creates a QaScorecardRevision. * - * Create a request for the method "issues.list". + * Create a request for the method "revisions.create". * * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param parent Required. The parent resource of the issue. + * @param parent Required. The parent resource of the QaScorecardRevision. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecardRevision} * @return the request */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + public Create create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecardRevision content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class List extends ContactcenterinsightsRequest { + public class Create extends ContactcenterinsightsRequest { - private static final String REST_PATH = "v1/{+parent}/issues"; + private static final String REST_PATH = "v1/{+parent}/revisions"; private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$"); /** - * Lists issues. + * Creates a QaScorecardRevision. * - * Create a request for the method "issues.list". + * Create a request for the method "revisions.create". * * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link List#execute()} method to invoke the remote + * setting any optional parameters, call the {@link Create#execute()} method to invoke the remote * operation.

{@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

+ * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

* - * @param parent Required. The parent resource of the issue. + * @param parent Required. The parent resource of the QaScorecardRevision. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecardRevision} * @since 1.13 */ - protected List(java.lang.String parent) { - super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListIssuesResponse.class); + protected Create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecardRevision content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecardRevision.class); this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } - - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } - - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent resource of the issue. */ + /** Required. The parent resource of the QaScorecardRevision. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent resource of the issue. + /** Required. The parent resource of the QaScorecardRevision. */ public java.lang.String getParent() { return parent; } - /** Required. The parent resource of the issue. */ - public List setParent(java.lang.String parent) { + /** Required. The parent resource of the QaScorecardRevision. */ + public Create setParent(java.lang.String parent) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$"); } this.parent = parent; return this; } + /** + * Optional. A unique ID for the new QaScorecardRevision. This ID will become the final + * component of the QaScorecardRevision's resource name. If no ID is specified, a + * server-generated ID will be used. This value should be 4-64 characters and must match + * the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`. + */ + @com.google.api.client.util.Key + private java.lang.String qaScorecardRevisionId; + + /** Optional. A unique ID for the new QaScorecardRevision. This ID will become the final component of + the QaScorecardRevision's resource name. If no ID is specified, a server-generated ID will be used. + This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. + Valid characters are `a-z-`. + */ + public java.lang.String getQaScorecardRevisionId() { + return qaScorecardRevisionId; + } + + /** + * Optional. A unique ID for the new QaScorecardRevision. This ID will become the final + * component of the QaScorecardRevision's resource name. If no ID is specified, a + * server-generated ID will be used. This value should be 4-64 characters and must match + * the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`. + */ + public Create setQaScorecardRevisionId(java.lang.String qaScorecardRevisionId) { + this.qaScorecardRevisionId = qaScorecardRevisionId; + return this; + } + @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Updates an issue. + * Deletes a QaScorecardRevision. * - * Create a request for the method "issues.patch". + * Create a request for the method "revisions.delete". * * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Immutable. The resource name of the issue. Format: - * projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Issue} + * @param name Required. The name of the QaScorecardRevision to delete. * @return the request */ - public Patch patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Issue content) throws java.io.IOException { - Patch result = new Patch(name, content); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Patch extends ContactcenterinsightsRequest { + public class Delete extends ContactcenterinsightsRequest { private static final String REST_PATH = "v1/{+name}"; private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$"); + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); /** - * Updates an issue. + * Deletes a QaScorecardRevision. * - * Create a request for the method "issues.patch". + * Create a request for the method "revisions.delete". * * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link Patch#execute()} method to invoke the remote + * setting any optional parameters, call the {@link Delete#execute()} method to invoke the remote * operation.

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must * be called to initialize this instance immediately after invoking the constructor.

* - * @param name Immutable. The resource name of the issue. Format: - * projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Issue} + * @param name Required. The name of the QaScorecardRevision to delete. * @since 1.13 */ - protected Patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Issue content) { - super(Contactcenterinsights.this, "PATCH", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Issue.class); + protected Delete(java.lang.String name) { + super(Contactcenterinsights.this, "DELETE", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleProtobufEmpty.class); this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); } } @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** - * Immutable. The resource name of the issue. Format: - * projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} - */ + /** Required. The name of the QaScorecardRevision to delete. */ @com.google.api.client.util.Key private java.lang.String name; - /** Immutable. The resource name of the issue. Format: - projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} + /** Required. The name of the QaScorecardRevision to delete. */ public java.lang.String getName() { return name; } - /** - * Immutable. The resource name of the issue. Format: - * projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} - */ - public Patch setName(java.lang.String name) { + /** Required. The name of the QaScorecardRevision to delete. */ + public Delete setName(java.lang.String name) { if (!getSuppressPatternChecks()) { com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); } this.name = name; return this; } - /** The list of fields to be updated. */ + /** + * Optional. If set to true, all of this QaScorecardRevision's child resources will also + * be deleted. Otherwise, the request will only succeed if it has none. + */ @com.google.api.client.util.Key - private String updateMask; + private java.lang.Boolean force; - /** The list of fields to be updated. + /** Optional. If set to true, all of this QaScorecardRevision's child resources will also be deleted. + Otherwise, the request will only succeed if it has none. */ - public String getUpdateMask() { - return updateMask; + public java.lang.Boolean getForce() { + return force; } - /** The list of fields to be updated. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** + * Optional. If set to true, all of this QaScorecardRevision's child resources will also + * be deleted. Otherwise, the request will only succeed if it has none. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; return this; } @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } + /** + * Deploy a QaScorecardRevision. + * + * Create a request for the method "revisions.deploy". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Deploy#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the QaScorecardRevision to deploy. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest} + * @return the request + */ + public Deploy deploy(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest content) throws java.io.IOException { + Deploy result = new Deploy(name, content); + initialize(result); + return result; + } - } - } - /** - * An accessor for creating requests from the Operations collection. - * - *

The typical use is:

- *
-       *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
-       *   {@code Contactcenterinsights.Operations.List request = contactcenterinsights.operations().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public Operations operations() { - return new Operations(); - } + public class Deploy extends ContactcenterinsightsRequest { - /** - * The "operations" collection of methods. - */ - public class Operations { + private static final String REST_PATH = "v1/{+name}:deploy"; - /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to - * `Code.CANCELLED`. - * - * Create a request for the method "operations.cancel". - * - * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link Cancel#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource to be cancelled. - * @return the request - */ - public Cancel cancel(java.lang.String name) throws java.io.IOException { - Cancel result = new Cancel(name); - initialize(result); - return result; - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); + + /** + * Deploy a QaScorecardRevision. + * + * Create a request for the method "revisions.deploy". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Deploy#execute()} method to invoke the remote + * operation.

{@link + * Deploy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the QaScorecardRevision to deploy. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest} + * @since 1.13 + */ + protected Deploy(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecardRevision.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); + } + } + + @Override + public Deploy set$Xgafv(java.lang.String $Xgafv) { + return (Deploy) super.set$Xgafv($Xgafv); + } + + @Override + public Deploy setAccessToken(java.lang.String accessToken) { + return (Deploy) super.setAccessToken(accessToken); + } + + @Override + public Deploy setAlt(java.lang.String alt) { + return (Deploy) super.setAlt(alt); + } + + @Override + public Deploy setCallback(java.lang.String callback) { + return (Deploy) super.setCallback(callback); + } + + @Override + public Deploy setFields(java.lang.String fields) { + return (Deploy) super.setFields(fields); + } + + @Override + public Deploy setKey(java.lang.String key) { + return (Deploy) super.setKey(key); + } + + @Override + public Deploy setOauthToken(java.lang.String oauthToken) { + return (Deploy) super.setOauthToken(oauthToken); + } + + @Override + public Deploy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Deploy) super.setPrettyPrint(prettyPrint); + } + + @Override + public Deploy setQuotaUser(java.lang.String quotaUser) { + return (Deploy) super.setQuotaUser(quotaUser); + } + + @Override + public Deploy setUploadType(java.lang.String uploadType) { + return (Deploy) super.setUploadType(uploadType); + } + + @Override + public Deploy setUploadProtocol(java.lang.String uploadProtocol) { + return (Deploy) super.setUploadProtocol(uploadProtocol); + } - public class Cancel extends ContactcenterinsightsRequest { + /** Required. The name of the QaScorecardRevision to deploy. */ + @com.google.api.client.util.Key + private java.lang.String name; - private static final String REST_PATH = "v1/{+name}:cancel"; + /** Required. The name of the QaScorecardRevision to deploy. + */ + public java.lang.String getName() { + return name; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + /** Required. The name of the QaScorecardRevision to deploy. */ + public Deploy setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); + } + this.name = name; + return this; + } + @Override + public Deploy set(String parameterName, Object value) { + return (Deploy) super.set(parameterName, value); + } + } /** - * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to - * cancel the operation, but success is not guaranteed. If the server doesn't support this method, - * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other - * methods to check whether the cancellation succeeded or whether the operation completed despite - * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an - * operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to - * `Code.CANCELLED`. + * Gets a QaScorecardRevision. * - * Create a request for the method "operations.cancel". + * Create a request for the method "revisions.get". * - * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link Cancel#execute()} method to invoke the remote - * operation.

{@link - * Cancel#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. * - * @param name The name of the operation resource to be cancelled. - * @since 1.13 + * @param name Required. The name of the QaScorecardRevision to get. + * @return the request */ - protected Cancel(java.lang.String name) { - super(Contactcenterinsights.this, "POST", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleProtobufEmpty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); - } - } - - @Override - public Cancel set$Xgafv(java.lang.String $Xgafv) { - return (Cancel) super.set$Xgafv($Xgafv); - } - - @Override - public Cancel setAccessToken(java.lang.String accessToken) { - return (Cancel) super.setAccessToken(accessToken); - } - - @Override - public Cancel setAlt(java.lang.String alt) { - return (Cancel) super.setAlt(alt); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public Cancel setCallback(java.lang.String callback) { - return (Cancel) super.setCallback(callback); - } + public class Get extends ContactcenterinsightsRequest { - @Override - public Cancel setFields(java.lang.String fields) { - return (Cancel) super.setFields(fields); - } + private static final String REST_PATH = "v1/{+name}"; - @Override - public Cancel setKey(java.lang.String key) { - return (Cancel) super.setKey(key); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); - @Override - public Cancel setOauthToken(java.lang.String oauthToken) { - return (Cancel) super.setOauthToken(oauthToken); - } + /** + * Gets a QaScorecardRevision. + * + * Create a request for the method "revisions.get". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Get#execute()} method to invoke the remote + * operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the QaScorecardRevision to get. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecardRevision.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); + } + } - @Override - public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Cancel) super.setPrettyPrint(prettyPrint); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Cancel setQuotaUser(java.lang.String quotaUser) { - return (Cancel) super.setQuotaUser(quotaUser); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Cancel setUploadType(java.lang.String uploadType) { - return (Cancel) super.setUploadType(uploadType); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Cancel setUploadProtocol(java.lang.String uploadProtocol) { - return (Cancel) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - /** The name of the operation resource to be cancelled. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - /** The name of the operation resource to be cancelled. - */ - public java.lang.String getName() { - return name; - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** The name of the operation resource to be cancelled. */ - public Cancel setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } - this.name = name; - return this; - } - @Override - public Cancel set(String parameterName, Object value) { - return (Cancel) super.set(parameterName, value); - } - } - /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. - * - * Create a request for the method "operations.get". - * - * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name The name of the operation resource. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - public class Get extends ContactcenterinsightsRequest { + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - private static final String REST_PATH = "v1/{+name}"; + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** - * Gets the latest state of a long-running operation. Clients can use this method to poll the - * operation result at intervals as recommended by the API service. - * - * Create a request for the method "operations.get". - * - * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link Get#execute()} method to invoke the remote - * operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

- * - * @param name The name of the operation resource. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } - } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** Required. The name of the QaScorecardRevision to get. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + /** Required. The name of the QaScorecardRevision to get. + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + /** Required. The name of the QaScorecardRevision to get. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } } - - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + /** + * Lists all revisions under the parent QaScorecard. + * + * Create a request for the method "revisions.list". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource of the scorecard revisions. To list all revisions of all scorecards, + * substitute the QaScorecard ID with a '-' character. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + public class List extends ContactcenterinsightsRequest { - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + private static final String REST_PATH = "v1/{+parent}/revisions"; - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$"); - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** + * Lists all revisions under the parent QaScorecard. + * + * Create a request for the method "revisions.list". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link List#execute()} method to invoke the remote + * operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource of the scorecard revisions. To list all revisions of all scorecards, + * substitute the QaScorecard ID with a '-' character. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$"); + } + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - /** The name of the operation resource. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } - this.name = name; - return this; - } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param name The name of the operation's parent resource. - * @return the request - */ - public List list(java.lang.String name) throws java.io.IOException { - List result = new List(name); - initialize(result); - return result; - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - public class List extends ContactcenterinsightsRequest { + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - private static final String REST_PATH = "v1/{+name}/operations"; + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** - * Lists operations that match the specified filter in the request. If the server doesn't support - * this method, it returns `UNIMPLEMENTED`. - * - * Create a request for the method "operations.list". - * - * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link List#execute()} method to invoke the remote - * operation.

{@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

- * - * @param name The name of the operation's parent resource. - * @since 1.13 - */ - protected List(java.lang.String name) { - super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningListOperationsResponse.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + /** + * Required. The parent resource of the scorecard revisions. To list all revisions of + * all scorecards, substitute the QaScorecard ID with a '-' character. + */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** Required. The parent resource of the scorecard revisions. To list all revisions of all scorecards, + substitute the QaScorecard ID with a '-' character. + */ + public java.lang.String getParent() { + return parent; + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + /** + * Required. The parent resource of the scorecard revisions. To list all revisions of + * all scorecards, substitute the QaScorecard ID with a '-' character. + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$"); + } + this.parent = parent; + return this; + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + /** + * Optional. A filter to reduce results to a specific subset. Useful for querying + * scorecard revisions with specific properties. + */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + /** Optional. A filter to reduce results to a specific subset. Useful for querying scorecard revisions + with specific properties. + */ + public java.lang.String getFilter() { + return filter; + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + /** + * Optional. A filter to reduce results to a specific subset. Useful for querying + * scorecard revisions with specific properties. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** + * Optional. The maximum number of scorecard revisions to return in the response. If the + * value is zero, the service will select a default size. A call might return fewer + * objects than requested. A non-empty `next_page_token` in the response indicates that + * more data is available. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** Optional. The maximum number of scorecard revisions to return in the response. If the value is + zero, the service will select a default size. A call might return fewer objects than requested. A + non-empty `next_page_token` in the response indicates that more data is available. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** + * Optional. The maximum number of scorecard revisions to return in the response. If the + * value is zero, the service will select a default size. A call might return fewer + * objects than requested. A non-empty `next_page_token` in the response indicates that + * more data is available. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + /** + * Optional. The value returned by the last `ListQaScorecardRevisionsResponse`. This + * value indicates that this is a continuation of a prior `ListQaScorecardRevisions` + * call and that the system should return the next page of data. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + /** Optional. The value returned by the last `ListQaScorecardRevisionsResponse`. This value indicates + that this is a continuation of a prior `ListQaScorecardRevisions` call and that the system should + return the next page of data. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** + * Optional. The value returned by the last `ListQaScorecardRevisionsResponse`. This + * value indicates that this is a continuation of a prior `ListQaScorecardRevisions` + * call and that the system should return the next page of data. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - /** The name of the operation's parent resource. + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Fine tune one or more QaModels. + * + * Create a request for the method "revisions.tuneQaScorecardRevision". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link TuneQaScorecardRevision#execute()} method to invoke the + * remote operation. + * + * @param parent Required. The parent resource for new fine tuning job instance. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest} + * @return the request */ - public java.lang.String getName() { - return name; + public TuneQaScorecardRevision tuneQaScorecardRevision(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest content) throws java.io.IOException { + TuneQaScorecardRevision result = new TuneQaScorecardRevision(parent, content); + initialize(result); + return result; } - /** The name of the operation's parent resource. */ - public List setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.name = name; - return this; - } + public class TuneQaScorecardRevision extends ContactcenterinsightsRequest { - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + private static final String REST_PATH = "v1/{+parent}:tuneQaScorecardRevision"; - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + /** + * Fine tune one or more QaModels. + * + * Create a request for the method "revisions.tuneQaScorecardRevision". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link TuneQaScorecardRevision#execute()} method to + * invoke the remote operation.

{@link TuneQaScorecardRevision#initialize(com.google.api.clien + * t.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource for new fine tuning job instance. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest} + * @since 1.13 + */ + protected TuneQaScorecardRevision(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); + } + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public TuneQaScorecardRevision set$Xgafv(java.lang.String $Xgafv) { + return (TuneQaScorecardRevision) super.set$Xgafv($Xgafv); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public TuneQaScorecardRevision setAccessToken(java.lang.String accessToken) { + return (TuneQaScorecardRevision) super.setAccessToken(accessToken); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public TuneQaScorecardRevision setAlt(java.lang.String alt) { + return (TuneQaScorecardRevision) super.setAlt(alt); + } - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public TuneQaScorecardRevision setCallback(java.lang.String callback) { + return (TuneQaScorecardRevision) super.setCallback(callback); + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + @Override + public TuneQaScorecardRevision setFields(java.lang.String fields) { + return (TuneQaScorecardRevision) super.setFields(fields); + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + @Override + public TuneQaScorecardRevision setKey(java.lang.String key) { + return (TuneQaScorecardRevision) super.setKey(key); + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } + @Override + public TuneQaScorecardRevision setOauthToken(java.lang.String oauthToken) { + return (TuneQaScorecardRevision) super.setOauthToken(oauthToken); + } - } - /** - * An accessor for creating requests from the PhraseMatchers collection. - * - *

The typical use is:

- *
-       *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
-       *   {@code Contactcenterinsights.PhraseMatchers.List request = contactcenterinsights.phraseMatchers().list(parameters ...)}
-       * 
- * - * @return the resource collection - */ - public PhraseMatchers phraseMatchers() { - return new PhraseMatchers(); - } + @Override + public TuneQaScorecardRevision setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TuneQaScorecardRevision) super.setPrettyPrint(prettyPrint); + } - /** - * The "phraseMatchers" collection of methods. - */ - public class PhraseMatchers { + @Override + public TuneQaScorecardRevision setQuotaUser(java.lang.String quotaUser) { + return (TuneQaScorecardRevision) super.setQuotaUser(quotaUser); + } - /** - * Creates a phrase matcher. - * - * Create a request for the method "phraseMatchers.create". - * - * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. - * - * @param parent Required. The parent resource of the phrase matcher. Required. The location to create a phrase - * matcher for. Format: `projects//locations/` or `projects//locations/` - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher} - * @return the request - */ - public Create create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher content) throws java.io.IOException { - Create result = new Create(parent, content); - initialize(result); - return result; - } + @Override + public TuneQaScorecardRevision setUploadType(java.lang.String uploadType) { + return (TuneQaScorecardRevision) super.setUploadType(uploadType); + } - public class Create extends ContactcenterinsightsRequest { + @Override + public TuneQaScorecardRevision setUploadProtocol(java.lang.String uploadProtocol) { + return (TuneQaScorecardRevision) super.setUploadProtocol(uploadProtocol); + } - private static final String REST_PATH = "v1/{+parent}/phraseMatchers"; + /** Required. The parent resource for new fine tuning job instance. */ + @com.google.api.client.util.Key + private java.lang.String parent; - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + /** Required. The parent resource for new fine tuning job instance. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource for new fine tuning job instance. */ + public TuneQaScorecardRevision setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); + } + this.parent = parent; + return this; + } + @Override + public TuneQaScorecardRevision set(String parameterName, Object value) { + return (TuneQaScorecardRevision) super.set(parameterName, value); + } + } /** - * Creates a phrase matcher. + * Undeploy a QaScorecardRevision. * - * Create a request for the method "phraseMatchers.create". + * Create a request for the method "revisions.undeploy". * - * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link Create#execute()} method to invoke the remote - * operation.

{@link - * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Undeploy#execute()} method to invoke the remote operation. * - * @param parent Required. The parent resource of the phrase matcher. Required. The location to create a phrase - * matcher for. Format: `projects//locations/` or `projects//locations/` - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher} - * @since 1.13 + * @param name Required. The name of the QaScorecardRevision to undeploy. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest} + * @return the request */ - protected Create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher content) { - super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } + public Undeploy undeploy(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest content) throws java.io.IOException { + Undeploy result = new Undeploy(name, content); + initialize(result); + return result; } - @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } + public class Undeploy extends ContactcenterinsightsRequest { - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } + private static final String REST_PATH = "v1/{+name}:undeploy"; - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); + + /** + * Undeploy a QaScorecardRevision. + * + * Create a request for the method "revisions.undeploy". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Undeploy#execute()} method to invoke the + * remote operation.

{@link + * Undeploy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the QaScorecardRevision to undeploy. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest} + * @since 1.13 + */ + protected Undeploy(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecardRevision.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); + } + } - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + @Override + public Undeploy set$Xgafv(java.lang.String $Xgafv) { + return (Undeploy) super.set$Xgafv($Xgafv); + } - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + @Override + public Undeploy setAccessToken(java.lang.String accessToken) { + return (Undeploy) super.setAccessToken(accessToken); + } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + @Override + public Undeploy setAlt(java.lang.String alt) { + return (Undeploy) super.setAlt(alt); + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + @Override + public Undeploy setCallback(java.lang.String callback) { + return (Undeploy) super.setCallback(callback); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + @Override + public Undeploy setFields(java.lang.String fields) { + return (Undeploy) super.setFields(fields); + } - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + @Override + public Undeploy setKey(java.lang.String key) { + return (Undeploy) super.setKey(key); + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + @Override + public Undeploy setOauthToken(java.lang.String oauthToken) { + return (Undeploy) super.setOauthToken(oauthToken); + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); - } + @Override + public Undeploy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Undeploy) super.setPrettyPrint(prettyPrint); + } - /** - * Required. The parent resource of the phrase matcher. Required. The location to create a - * phrase matcher for. Format: `projects//locations/` or `projects//locations/` - */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Undeploy setQuotaUser(java.lang.String quotaUser) { + return (Undeploy) super.setQuotaUser(quotaUser); + } - /** Required. The parent resource of the phrase matcher. Required. The location to create a phrase - matcher for. Format: `projects//locations/` or `projects//locations/` - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Undeploy setUploadType(java.lang.String uploadType) { + return (Undeploy) super.setUploadType(uploadType); + } - /** - * Required. The parent resource of the phrase matcher. Required. The location to create a - * phrase matcher for. Format: `projects//locations/` or `projects//locations/` - */ - public Create setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); + @Override + public Undeploy setUploadProtocol(java.lang.String uploadProtocol) { + return (Undeploy) super.setUploadProtocol(uploadProtocol); } - this.parent = parent; - return this; - } - @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } - } - /** - * Deletes a phrase matcher. - * - * Create a request for the method "phraseMatchers.delete". - * - * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the phrase matcher to delete. - * @return the request - */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; - } + /** Required. The name of the QaScorecardRevision to undeploy. */ + @com.google.api.client.util.Key + private java.lang.String name; - public class Delete extends ContactcenterinsightsRequest { + /** Required. The name of the QaScorecardRevision to undeploy. + */ + public java.lang.String getName() { + return name; + } - private static final String REST_PATH = "v1/{+name}"; + /** Required. The name of the QaScorecardRevision to undeploy. */ + public Undeploy setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); + } + this.name = name; + return this; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$"); + @Override + public Undeploy set(String parameterName, Object value) { + return (Undeploy) super.set(parameterName, value); + } + } /** - * Deletes a phrase matcher. - * - * Create a request for the method "phraseMatchers.delete". + * An accessor for creating requests from the QaQuestions collection. * - * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link Delete#execute()} method to invoke the remote - * operation.

{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

+ *

The typical use is:

+ *
+           *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
+           *   {@code Contactcenterinsights.QaQuestions.List request = contactcenterinsights.qaQuestions().list(parameters ...)}
+           * 
* - * @param name Required. The name of the phrase matcher to delete. - * @since 1.13 + * @return the resource collection */ - protected Delete(java.lang.String name) { - super(Contactcenterinsights.this, "DELETE", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleProtobufEmpty.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$"); - } + public QaQuestions qaQuestions() { + return new QaQuestions(); } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + /** + * The "qaQuestions" collection of methods. + */ + public class QaQuestions { - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + /** + * Create a QaQuestion. + * + * Create a request for the method "qaQuestions.create". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource of the QaQuestion. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaQuestion} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaQuestion content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+parent}/qaQuestions"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); + + /** + * Create a QaQuestion. + * + * Create a request for the method "qaQuestions.create". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Create#execute()} method to invoke the remote + * operation.

{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource of the QaQuestion. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaQuestion} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaQuestion content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaQuestion.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); + } + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - /** Required. The name of the phrase matcher to delete. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - /** Required. The name of the phrase matcher to delete. - */ - public java.lang.String getName() { - return name; - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - /** Required. The name of the phrase matcher to delete. */ - public Delete setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$"); - } - this.name = name; - return this; - } + /** Required. The parent resource of the QaQuestion. */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } - } - /** - * Gets a phrase matcher. - * - * Create a request for the method "phraseMatchers.get". - * - * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. - * - * @param name Required. The name of the phrase matcher to get. - * @return the request - */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; - } + /** Required. The parent resource of the QaQuestion. + */ + public java.lang.String getParent() { + return parent; + } - public class Get extends ContactcenterinsightsRequest { + /** Required. The parent resource of the QaQuestion. */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); + } + this.parent = parent; + return this; + } - private static final String REST_PATH = "v1/{+name}"; + /** + * Optional. A unique ID for the new question. This ID will become the final component + * of the question's resource name. If no ID is specified, a server-generated ID will + * be used. This value should be 4-64 characters and must match the regular expression + * `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`. + */ + @com.google.api.client.util.Key + private java.lang.String qaQuestionId; + + /** Optional. A unique ID for the new question. This ID will become the final component of the + question's resource name. If no ID is specified, a server-generated ID will be used. This value + should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid + characters are `a-z-`. + */ + public java.lang.String getQaQuestionId() { + return qaQuestionId; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$"); + /** + * Optional. A unique ID for the new question. This ID will become the final component + * of the question's resource name. If no ID is specified, a server-generated ID will + * be used. This value should be 4-64 characters and must match the regular expression + * `^[a-z0-9-]{4,64}$`. Valid characters are `a-z-`. + */ + public Create setQaQuestionId(java.lang.String qaQuestionId) { + this.qaQuestionId = qaQuestionId; + return this; + } - /** - * Gets a phrase matcher. - * - * Create a request for the method "phraseMatchers.get". - * - * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link Get#execute()} method to invoke the remote - * operation.

{@link - * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

- * - * @param name Required. The name of the phrase matcher to get. - * @since 1.13 - */ - protected Get(java.lang.String name) { - super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$"); + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } } - } - - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** + * Deletes a QaQuestion. + * + * Create a request for the method "qaQuestions.delete". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the QaQuestion to delete. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+$"); + + /** + * Deletes a QaQuestion. + * + * Create a request for the method "qaQuestions.delete". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Delete#execute()} method to invoke the remote + * operation.

{@link + * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the QaQuestion to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Contactcenterinsights.this, "DELETE", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleProtobufEmpty.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+$"); + } + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + /** Required. The name of the QaQuestion to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** Required. The name of the phrase matcher to get. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Required. The name of the QaQuestion to delete. + */ + public java.lang.String getName() { + return name; + } - /** Required. The name of the phrase matcher to get. - */ - public java.lang.String getName() { - return name; - } + /** Required. The name of the QaQuestion to delete. */ + public Delete setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+$"); + } + this.name = name; + return this; + } - /** Required. The name of the phrase matcher to get. */ - public Get setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$"); + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } } - this.name = name; - return this; - } + /** + * Gets a QaQuestion. + * + * Create a request for the method "qaQuestions.get". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the QaQuestion to get. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+$"); + + /** + * Gets a QaQuestion. + * + * Create a request for the method "qaQuestions.get". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Get#execute()} method to invoke the remote + * operation.

{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Required. The name of the QaQuestion to get. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaQuestion.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+$"); + } + } - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } - } - /** - * Lists phrase matchers. - * - * Create a request for the method "phraseMatchers.list". - * - * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link List#execute()} method to invoke the remote operation. - * - * @param parent Required. The parent resource of the phrase matcher. - * @return the request - */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - public class List extends ContactcenterinsightsRequest { + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - private static final String REST_PATH = "v1/{+parent}/phraseMatchers"; + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - /** - * Lists phrase matchers. - * - * Create a request for the method "phraseMatchers.list". - * - * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link List#execute()} method to invoke the remote - * operation.

{@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.

- * - * @param parent Required. The parent resource of the phrase matcher. - * @since 1.13 - */ - protected List(java.lang.String parent) { - super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse.class); - this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + /** Required. The name of the QaQuestion to get. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + /** Required. The name of the QaQuestion to get. + */ + public java.lang.String getName() { + return name; + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + /** Required. The name of the QaQuestion to get. */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+$"); + } + this.name = name; + return this; + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists QaQuestions. + * + * Create a request for the method "qaQuestions.list". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource of the questions. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+parent}/qaQuestions"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); + + /** + * Lists QaQuestions. + * + * Create a request for the method "qaQuestions.list". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link List#execute()} method to invoke the remote + * operation.

{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.

+ * + * @param parent Required. The parent resource of the questions. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); + } + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** Required. The parent resource of the phrase matcher. */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** Required. The parent resource of the phrase matcher. - */ - public java.lang.String getParent() { - return parent; - } + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - /** Required. The parent resource of the phrase matcher. */ - public List setParent(java.lang.String parent) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+$"); - } - this.parent = parent; - return this; - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - /** - * A filter to reduce results to a specific subset. Useful for querying phrase matchers - * with specific properties. - */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - /** A filter to reduce results to a specific subset. Useful for querying phrase matchers with specific - properties. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - /** - * A filter to reduce results to a specific subset. Useful for querying phrase matchers - * with specific properties. - */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - /** - * The maximum number of phrase matchers to return in the response. If this value is zero, - * the service will select a default size. A call might return fewer objects than - * requested. A non-empty `next_page_token` in the response indicates that more data is - * available. - */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - /** The maximum number of phrase matchers to return in the response. If this value is zero, the service - will select a default size. A call might return fewer objects than requested. A non-empty - `next_page_token` in the response indicates that more data is available. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - /** - * The maximum number of phrase matchers to return in the response. If this value is zero, - * the service will select a default size. A call might return fewer objects than - * requested. A non-empty `next_page_token` in the response indicates that more data is - * available. - */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - /** - * The value returned by the last `ListPhraseMatchersResponse`. This value indicates that - * this is a continuation of a prior `ListPhraseMatchers` call and that the system should - * return the next page of data. - */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** The value returned by the last `ListPhraseMatchersResponse`. This value indicates that this is a - continuation of a prior `ListPhraseMatchers` call and that the system should return the next page - of data. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** Required. The parent resource of the questions. */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** - * The value returned by the last `ListPhraseMatchersResponse`. This value indicates that - * this is a continuation of a prior `ListPhraseMatchers` call and that the system should - * return the next page of data. - */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; - } + /** Required. The parent resource of the questions. + */ + public java.lang.String getParent() { + return parent; + } - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); - } - } - /** - * Updates a phrase matcher. - * - * Create a request for the method "phraseMatchers.patch". - * - * This request holds the parameters needed by the contactcenterinsights server. After setting any - * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. - * - * @param name The resource name of the phrase matcher. Format: - * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher} - * @return the request - */ - public Patch patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher content) throws java.io.IOException { - Patch result = new Patch(name, content); - initialize(result); - return result; - } + /** Required. The parent resource of the questions. */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); + } + this.parent = parent; + return this; + } - public class Patch extends ContactcenterinsightsRequest { + /** + * Optional. The maximum number of questions to return in the response. If the value + * is zero, the service will select a default size. A call might return fewer objects + * than requested. A non-empty `next_page_token` in the response indicates that more + * data is available. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of questions to return in the response. If the value is zero, the + service will select a default size. A call might return fewer objects than requested. A non-empty + `next_page_token` in the response indicates that more data is available. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } - private static final String REST_PATH = "v1/{+name}"; + /** + * Optional. The maximum number of questions to return in the response. If the value + * is zero, the service will select a default size. A call might return fewer objects + * than requested. A non-empty `next_page_token` in the response indicates that more + * data is available. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$"); + /** + * Optional. The value returned by the last `ListQaQuestionsResponse`. This value + * indicates that this is a continuation of a prior `ListQaQuestions` call and that + * the system should return the next page of data. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The value returned by the last `ListQaQuestionsResponse`. This value indicates that this + is a continuation of a prior `ListQaQuestions` call and that the system should return the next page + of data. + */ + public java.lang.String getPageToken() { + return pageToken; + } - /** - * Updates a phrase matcher. - * - * Create a request for the method "phraseMatchers.patch". - * - * This request holds the parameters needed by the the contactcenterinsights server. After - * setting any optional parameters, call the {@link Patch#execute()} method to invoke the remote - * operation.

{@link - * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must - * be called to initialize this instance immediately after invoking the constructor.

- * - * @param name The resource name of the phrase matcher. Format: - * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher} - * @since 1.13 - */ - protected Patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher content) { - super(Contactcenterinsights.this, "PATCH", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1PhraseMatcher.class); - this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$"); - } - } + /** + * Optional. The value returned by the last `ListQaQuestionsResponse`. This value + * indicates that this is a continuation of a prior `ListQaQuestions` call and that + * the system should return the next page of data. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates a QaQuestion. + * + * Create a request for the method "qaQuestions.patch". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The resource name of the question. Format: projects/{project}/locations/{location}/qaSco + * recards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaQuestion} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaQuestion content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+$"); + + /** + * Updates a QaQuestion. + * + * Create a request for the method "qaQuestions.patch". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Patch#execute()} method to invoke the remote + * operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Identifier. The resource name of the question. Format: projects/{project}/locations/{location}/qaSco + * recards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaQuestion} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaQuestion content) { + super(Contactcenterinsights.this, "PATCH", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaQuestion.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+$"); + } + } - @Override - public Patch setAccessToken(java.lang.String accessToken) { - return (Patch) super.setAccessToken(accessToken); - } + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } - @Override - public Patch setAlt(java.lang.String alt) { - return (Patch) super.setAlt(alt); - } + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } - @Override - public Patch setCallback(java.lang.String callback) { - return (Patch) super.setCallback(callback); - } + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } - @Override - public Patch setFields(java.lang.String fields) { - return (Patch) super.setFields(fields); - } + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } - @Override - public Patch setKey(java.lang.String key) { - return (Patch) super.setKey(key); - } + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } - @Override - public Patch setOauthToken(java.lang.String oauthToken) { - return (Patch) super.setOauthToken(oauthToken); - } + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } - @Override - public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Patch) super.setPrettyPrint(prettyPrint); - } + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } - @Override - public Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); - } + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } - @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); - } + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } - @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); - } + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } - /** - * The resource name of the phrase matcher. Format: - * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} - */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } - /** The resource name of the phrase matcher. Format: - projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} - */ - public java.lang.String getName() { - return name; - } + /** + * Identifier. The resource name of the question. Format: projects/{project}/locations + * /{location}/qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_questi + * on} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The resource name of the question. Format: projects/{project}/locations/{location}/qaSc + orecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question} + */ + public java.lang.String getName() { + return name; + } - /** - * The resource name of the phrase matcher. Format: - * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} - */ - public Patch setName(java.lang.String name) { - if (!getSuppressPatternChecks()) { - com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$"); - } - this.name = name; - return this; - } + /** + * Identifier. The resource name of the question. Format: projects/{project}/locations + * /{location}/qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_questi + * on} + */ + public Patch setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+/qaQuestions/[^/]+$"); + } + this.name = name; + return this; + } - /** The list of fields to be updated. */ - @com.google.api.client.util.Key - private String updateMask; + /** + * Required. The list of fields to be updated. All possible fields can be updated by + * passing `*`, or a subset of the following updateable fields can be provided: * + * `abbreviation` * `answer_choices` * `answer_instructions` * `order` * + * `question_body` * `tags` + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Required. The list of fields to be updated. All possible fields can be updated by passing `*`, or a + subset of the following updateable fields can be provided: * `abbreviation` * `answer_choices` * + `answer_instructions` * `order` * `question_body` * `tags` + */ + public String getUpdateMask() { + return updateMask; + } - /** The list of fields to be updated. - */ - public String getUpdateMask() { - return updateMask; - } + /** + * Required. The list of fields to be updated. All possible fields can be updated by + * passing `*`, or a subset of the following updateable fields can be provided: * + * `abbreviation` * `answer_choices` * `answer_instructions` * `order` * + * `question_body` * `tags` + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } - /** The list of fields to be updated. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; - return this; - } + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } - @Override - public Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); } } - } /** * An accessor for creating requests from the Views collection. diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata.java index e6c57e28d28..aa55c5c807f 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata.java @@ -65,6 +65,13 @@ public final class GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisM @com.google.api.client.util.Key private java.util.Map phraseMatchers; + /** + * Results of scoring QaScorecards. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List qaScorecardResults; + /** * Overall conversation-level sentiment for each channel of the call. * The value may be {@code null}. @@ -164,6 +171,23 @@ public GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata setP return this; } + /** + * Results of scoring QaScorecards. + * @return value or {@code null} for none + */ + public java.util.List getQaScorecardResults() { + return qaScorecardResults; + } + + /** + * Results of scoring QaScorecards. + * @param qaScorecardResults qaScorecardResults or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata setQaScorecardResults(java.util.List qaScorecardResults) { + this.qaScorecardResults = qaScorecardResults; + return this; + } + /** * Overall conversation-level sentiment for each channel of the call. * @return value or {@code null} for none diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AnalysisRule.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AnalysisRule.java new file mode 100644 index 00000000000..43e288b8683 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AnalysisRule.java @@ -0,0 +1,259 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The CCAI Insights project wide analysis rule. This rule will be applied to all conversations that + * match the filter defined in the rule. For a conversation matches the filter, the annotators + * specified in the rule will be run. If a conversation matches multiple rules, a union of all the + * annotators will be run. One project can have multiple analysis rules. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1AnalysisRule extends com.google.api.client.json.GenericJson { + + /** + * If true, apply this rule to conversations. Otherwise, this rule is inactive and saved as a + * draft. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean active; + + /** + * Percentage of conversations that we should apply this analysis setting automatically, between + * [0, 1]. For example, 0.1 means 10%. Conversations are sampled in a determenestic way. The + * original runtime_percentage & upload percentage will be replaced by defining filters on the + * conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double analysisPercentage; + + /** + * Selector of annotators to run and the phrase matchers to use for conversations that matches the + * conversation_filter. If not specified, NO annotators will be run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1AnnotatorSelector annotatorSelector; + + /** + * Filter for the conversations that should apply this analysis rule. An empty filter means this + * analysis rule applies to all conversations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String conversationFilter; + + /** + * Output only. The time at which this analysis rule was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Display Name of the analysis rule. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Identifier. The resource name of the analysis rule. Format: + * projects/{project}/locations/{location}/analysisRules/{analysis_rule} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The most recent time at which this analysis rule was updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * If true, apply this rule to conversations. Otherwise, this rule is inactive and saved as a + * draft. + * @return value or {@code null} for none + */ + public java.lang.Boolean getActive() { + return active; + } + + /** + * If true, apply this rule to conversations. Otherwise, this rule is inactive and saved as a + * draft. + * @param active active or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AnalysisRule setActive(java.lang.Boolean active) { + this.active = active; + return this; + } + + /** + * Percentage of conversations that we should apply this analysis setting automatically, between + * [0, 1]. For example, 0.1 means 10%. Conversations are sampled in a determenestic way. The + * original runtime_percentage & upload percentage will be replaced by defining filters on the + * conversation. + * @return value or {@code null} for none + */ + public java.lang.Double getAnalysisPercentage() { + return analysisPercentage; + } + + /** + * Percentage of conversations that we should apply this analysis setting automatically, between + * [0, 1]. For example, 0.1 means 10%. Conversations are sampled in a determenestic way. The + * original runtime_percentage & upload percentage will be replaced by defining filters on the + * conversation. + * @param analysisPercentage analysisPercentage or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AnalysisRule setAnalysisPercentage(java.lang.Double analysisPercentage) { + this.analysisPercentage = analysisPercentage; + return this; + } + + /** + * Selector of annotators to run and the phrase matchers to use for conversations that matches the + * conversation_filter. If not specified, NO annotators will be run. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AnnotatorSelector getAnnotatorSelector() { + return annotatorSelector; + } + + /** + * Selector of annotators to run and the phrase matchers to use for conversations that matches the + * conversation_filter. If not specified, NO annotators will be run. + * @param annotatorSelector annotatorSelector or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AnalysisRule setAnnotatorSelector(GoogleCloudContactcenterinsightsV1AnnotatorSelector annotatorSelector) { + this.annotatorSelector = annotatorSelector; + return this; + } + + /** + * Filter for the conversations that should apply this analysis rule. An empty filter means this + * analysis rule applies to all conversations. + * @return value or {@code null} for none + */ + public java.lang.String getConversationFilter() { + return conversationFilter; + } + + /** + * Filter for the conversations that should apply this analysis rule. An empty filter means this + * analysis rule applies to all conversations. + * @param conversationFilter conversationFilter or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AnalysisRule setConversationFilter(java.lang.String conversationFilter) { + this.conversationFilter = conversationFilter; + return this; + } + + /** + * Output only. The time at which this analysis rule was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time at which this analysis rule was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AnalysisRule setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Display Name of the analysis rule. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Display Name of the analysis rule. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AnalysisRule setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Identifier. The resource name of the analysis rule. Format: + * projects/{project}/locations/{location}/analysisRules/{analysis_rule} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the analysis rule. Format: + * projects/{project}/locations/{location}/analysisRules/{analysis_rule} + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AnalysisRule setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The most recent time at which this analysis rule was updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The most recent time at which this analysis rule was updated. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AnalysisRule setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1AnalysisRule set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1AnalysisRule) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1AnalysisRule clone() { + return (GoogleCloudContactcenterinsightsV1AnalysisRule) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AnnotatorSelector.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AnnotatorSelector.java index 734b2a8902d..6f5372c838c 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AnnotatorSelector.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AnnotatorSelector.java @@ -50,6 +50,13 @@ public final class GoogleCloudContactcenterinsightsV1AnnotatorSelector extends c @com.google.api.client.util.Key private java.util.List phraseMatchers; + /** + * Configuration for the QA annotator. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig qaConfig; + /** * Whether to run the entity annotator. * The value may be {@code null}. @@ -86,6 +93,13 @@ public final class GoogleCloudContactcenterinsightsV1AnnotatorSelector extends c @com.google.api.client.util.Key private java.lang.Boolean runPhraseMatcherAnnotator; + /** + * Whether to run the QA annotator. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean runQaAnnotator; + /** * Whether to run the sentiment annotator. * The value may be {@code null}. @@ -160,6 +174,23 @@ public GoogleCloudContactcenterinsightsV1AnnotatorSelector setPhraseMatchers(jav return this; } + /** + * Configuration for the QA annotator. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig getQaConfig() { + return qaConfig; + } + + /** + * Configuration for the QA annotator. + * @param qaConfig qaConfig or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AnnotatorSelector setQaConfig(GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig qaConfig) { + this.qaConfig = qaConfig; + return this; + } + /** * Whether to run the entity annotator. * @return value or {@code null} for none @@ -247,6 +278,23 @@ public GoogleCloudContactcenterinsightsV1AnnotatorSelector setRunPhraseMatcherAn return this; } + /** + * Whether to run the QA annotator. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRunQaAnnotator() { + return runQaAnnotator; + } + + /** + * Whether to run the QA annotator. + * @param runQaAnnotator runQaAnnotator or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AnnotatorSelector setRunQaAnnotator(java.lang.Boolean runQaAnnotator) { + this.runQaAnnotator = runQaAnnotator; + return this; + } + /** * Whether to run the sentiment annotator. * @return value or {@code null} for none diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig.java new file mode 100644 index 00000000000..031644ac31c --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Configuration for the QA feature. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig extends com.google.api.client.json.GenericJson { + + /** + * A manual list of scorecards to score. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList scorecardList; + + /** + * A manual list of scorecards to score. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList getScorecardList() { + return scorecardList; + } + + /** + * A manual list of scorecards to score. + * @param scorecardList scorecardList or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig setScorecardList(GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList scorecardList) { + this.scorecardList = scorecardList; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig clone() { + return (GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList.java new file mode 100644 index 00000000000..87366f1ed9d --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Container for a list of scorecards. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList extends com.google.api.client.json.GenericJson { + + /** + * List of QaScorecardRevisions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List qaScorecardRevisions; + + /** + * List of QaScorecardRevisions. + * @return value or {@code null} for none + */ + public java.util.List getQaScorecardRevisions() { + return qaScorecardRevisions; + } + + /** + * List of QaScorecardRevisions. + * @param qaScorecardRevisions qaScorecardRevisions or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList setQaScorecardRevisions(java.util.List qaScorecardRevisions) { + this.qaScorecardRevisions = qaScorecardRevisions; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList clone() { + return (GoogleCloudContactcenterinsightsV1AnnotatorSelectorQaConfigScorecardList) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata.java new file mode 100644 index 00000000000..25053839a4a --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata.java @@ -0,0 +1,163 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Metadata for the BulkDownloadFeedbackLabel endpoint. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. Statistics for BulkDownloadFeedbackLabels operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats downloadStats; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Partial errors during ingest operation that might cause the operation output to be incomplete. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List partialErrors; + + /** + * Output only. The original request for download. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest request; + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. Statistics for BulkDownloadFeedbackLabels operation. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats getDownloadStats() { + return downloadStats; + } + + /** + * Output only. Statistics for BulkDownloadFeedbackLabels operation. + * @param downloadStats downloadStats or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata setDownloadStats(GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats downloadStats) { + this.downloadStats = downloadStats; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Partial errors during ingest operation that might cause the operation output to be incomplete. + * @return value or {@code null} for none + */ + public java.util.List getPartialErrors() { + return partialErrors; + } + + /** + * Partial errors during ingest operation that might cause the operation output to be incomplete. + * @param partialErrors partialErrors or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata setPartialErrors(java.util.List partialErrors) { + this.partialErrors = partialErrors; + return this; + } + + /** + * Output only. The original request for download. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest getRequest() { + return request; + } + + /** + * Output only. The original request for download. + * @param request request or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata setRequest(GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest request) { + this.request = request; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata clone() { + return (GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats.java new file mode 100644 index 00000000000..bc82f240638 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats.java @@ -0,0 +1,142 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Statistics for BulkDownloadFeedbackLabels operation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats extends com.google.api.client.json.GenericJson { + + /** + * Output only. Full name of the files written to Cloud storage. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List fileNames; + + /** + * The number of objects processed during the download operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer processedObjectCount; + + /** + * The number of new feedback labels downloaded during this operation. Different from "processed" + * because some labels might not be downloaded because an error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer successfulDownloadCount; + + /** + * Total number of files written to the provided Cloud Storage bucket. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalFilesWritten; + + /** + * Output only. Full name of the files written to Cloud storage. + * @return value or {@code null} for none + */ + public java.util.List getFileNames() { + return fileNames; + } + + /** + * Output only. Full name of the files written to Cloud storage. + * @param fileNames fileNames or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats setFileNames(java.util.List fileNames) { + this.fileNames = fileNames; + return this; + } + + /** + * The number of objects processed during the download operation. + * @return value or {@code null} for none + */ + public java.lang.Integer getProcessedObjectCount() { + return processedObjectCount; + } + + /** + * The number of objects processed during the download operation. + * @param processedObjectCount processedObjectCount or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats setProcessedObjectCount(java.lang.Integer processedObjectCount) { + this.processedObjectCount = processedObjectCount; + return this; + } + + /** + * The number of new feedback labels downloaded during this operation. Different from "processed" + * because some labels might not be downloaded because an error. + * @return value or {@code null} for none + */ + public java.lang.Integer getSuccessfulDownloadCount() { + return successfulDownloadCount; + } + + /** + * The number of new feedback labels downloaded during this operation. Different from "processed" + * because some labels might not be downloaded because an error. + * @param successfulDownloadCount successfulDownloadCount or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats setSuccessfulDownloadCount(java.lang.Integer successfulDownloadCount) { + this.successfulDownloadCount = successfulDownloadCount; + return this; + } + + /** + * Total number of files written to the provided Cloud Storage bucket. + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalFilesWritten() { + return totalFilesWritten; + } + + /** + * Total number of files written to the provided Cloud Storage bucket. + * @param totalFilesWritten totalFilesWritten or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats setTotalFilesWritten(java.lang.Integer totalFilesWritten) { + this.totalFilesWritten = totalFilesWritten; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats clone() { + return (GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsMetadataDownloadStats) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest.java new file mode 100644 index 00000000000..4911592f4cf --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest.java @@ -0,0 +1,238 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Request for the BulkDownloadFeedbackLabel endpoint. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. Filter parent conversations to download feedback labels for. When specified, the + * feedback labels will be downloaded for the conversations that match the filter. If + * `template_qa_scorecard_id` is set, all the conversations that match the filter will be paired + * with the questions under the scorecard for labeling. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String conversationFilter; + + /** + * Optional. The type of feedback labels that will be downloaded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String feedbackLabelType; + + /** + * Optional. A filter to reduce results to a specific subset. Supports disjunctions (OR) and + * conjunctions (AND). Supported fields: * `issue_model_id` * `qa_question_id` * `qa_scorecard_id` + * * `min_create_time` * `max_create_time` * `min_update_time` * `max_update_time` * + * `feedback_label_type`: QUALITY_AI, TOPIC_MODELING + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** + * A cloud storage bucket destination. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination gcsDestination; + + /** + * Optional. Limits the maximum number of feedback labels that will be downloaded. The first `N` + * feedback labels will be downloaded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxDownloadCount; + + /** + * Required. The parent resource for new feedback labels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** + * Optional. If set, a template for labeling conversations and scorecard questions will be created + * from the conversation_filter and the questions under the scorecard(s). The feedback label + * `filter` will be ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List templateQaScorecardId; + + /** + * Optional. Filter parent conversations to download feedback labels for. When specified, the + * feedback labels will be downloaded for the conversations that match the filter. If + * `template_qa_scorecard_id` is set, all the conversations that match the filter will be paired + * with the questions under the scorecard for labeling. + * @return value or {@code null} for none + */ + public java.lang.String getConversationFilter() { + return conversationFilter; + } + + /** + * Optional. Filter parent conversations to download feedback labels for. When specified, the + * feedback labels will be downloaded for the conversations that match the filter. If + * `template_qa_scorecard_id` is set, all the conversations that match the filter will be paired + * with the questions under the scorecard for labeling. + * @param conversationFilter conversationFilter or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest setConversationFilter(java.lang.String conversationFilter) { + this.conversationFilter = conversationFilter; + return this; + } + + /** + * Optional. The type of feedback labels that will be downloaded. + * @return value or {@code null} for none + */ + public java.lang.String getFeedbackLabelType() { + return feedbackLabelType; + } + + /** + * Optional. The type of feedback labels that will be downloaded. + * @param feedbackLabelType feedbackLabelType or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest setFeedbackLabelType(java.lang.String feedbackLabelType) { + this.feedbackLabelType = feedbackLabelType; + return this; + } + + /** + * Optional. A filter to reduce results to a specific subset. Supports disjunctions (OR) and + * conjunctions (AND). Supported fields: * `issue_model_id` * `qa_question_id` * `qa_scorecard_id` + * * `min_create_time` * `max_create_time` * `min_update_time` * `max_update_time` * + * `feedback_label_type`: QUALITY_AI, TOPIC_MODELING + * @return value or {@code null} for none + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. A filter to reduce results to a specific subset. Supports disjunctions (OR) and + * conjunctions (AND). Supported fields: * `issue_model_id` * `qa_question_id` * `qa_scorecard_id` + * * `min_create_time` * `max_create_time` * `min_update_time` * `max_update_time` * + * `feedback_label_type`: QUALITY_AI, TOPIC_MODELING + * @param filter filter or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * A cloud storage bucket destination. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination getGcsDestination() { + return gcsDestination; + } + + /** + * A cloud storage bucket destination. + * @param gcsDestination gcsDestination or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest setGcsDestination(GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination gcsDestination) { + this.gcsDestination = gcsDestination; + return this; + } + + /** + * Optional. Limits the maximum number of feedback labels that will be downloaded. The first `N` + * feedback labels will be downloaded. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxDownloadCount() { + return maxDownloadCount; + } + + /** + * Optional. Limits the maximum number of feedback labels that will be downloaded. The first `N` + * feedback labels will be downloaded. + * @param maxDownloadCount maxDownloadCount or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest setMaxDownloadCount(java.lang.Integer maxDownloadCount) { + this.maxDownloadCount = maxDownloadCount; + return this; + } + + /** + * Required. The parent resource for new feedback labels. + * @return value or {@code null} for none + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource for new feedback labels. + * @param parent parent or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + /** + * Optional. If set, a template for labeling conversations and scorecard questions will be created + * from the conversation_filter and the questions under the scorecard(s). The feedback label + * `filter` will be ignored. + * @return value or {@code null} for none + */ + public java.util.List getTemplateQaScorecardId() { + return templateQaScorecardId; + } + + /** + * Optional. If set, a template for labeling conversations and scorecard questions will be created + * from the conversation_filter and the questions under the scorecard(s). The feedback label + * `filter` will be ignored. + * @param templateQaScorecardId templateQaScorecardId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest setTemplateQaScorecardId(java.util.List templateQaScorecardId) { + this.templateQaScorecardId = templateQaScorecardId; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest clone() { + return (GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination.java new file mode 100644 index 00000000000..6b60e44b431 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination.java @@ -0,0 +1,178 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Google Cloud Storage Object details to write the feedback labels to. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination extends com.google.api.client.json.GenericJson { + + /** + * Optional. Add whitespace to the JSON file. Makes easier to read, but increases file size. Only + * applicable for JSON format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean addWhitespace; + + /** + * Optional. Always print fields with no presence. This is useful for printing fields that are not + * set, like implicit 0 value or empty lists/maps. Only applicable for JSON format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean alwaysPrintEmptyFields; + + /** + * Required. File format in which the labels will be exported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String format; + + /** + * Required. The Google Cloud Storage URI to write the feedback labels to. The file name will be + * used as a prefix for the files written to the bucket if the output needs to be split across + * multiple files, otherwise it will be used as is. The file extension will be appended to the + * file name based on the format selected. E.g. `gs://bucket_name/object_uri_prefix` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String objectUri; + + /** + * Optional. The number of records per file. Applicable for either format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long recordsPerFileCount; + + /** + * Optional. Add whitespace to the JSON file. Makes easier to read, but increases file size. Only + * applicable for JSON format. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAddWhitespace() { + return addWhitespace; + } + + /** + * Optional. Add whitespace to the JSON file. Makes easier to read, but increases file size. Only + * applicable for JSON format. + * @param addWhitespace addWhitespace or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination setAddWhitespace(java.lang.Boolean addWhitespace) { + this.addWhitespace = addWhitespace; + return this; + } + + /** + * Optional. Always print fields with no presence. This is useful for printing fields that are not + * set, like implicit 0 value or empty lists/maps. Only applicable for JSON format. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAlwaysPrintEmptyFields() { + return alwaysPrintEmptyFields; + } + + /** + * Optional. Always print fields with no presence. This is useful for printing fields that are not + * set, like implicit 0 value or empty lists/maps. Only applicable for JSON format. + * @param alwaysPrintEmptyFields alwaysPrintEmptyFields or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination setAlwaysPrintEmptyFields(java.lang.Boolean alwaysPrintEmptyFields) { + this.alwaysPrintEmptyFields = alwaysPrintEmptyFields; + return this; + } + + /** + * Required. File format in which the labels will be exported. + * @return value or {@code null} for none + */ + public java.lang.String getFormat() { + return format; + } + + /** + * Required. File format in which the labels will be exported. + * @param format format or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination setFormat(java.lang.String format) { + this.format = format; + return this; + } + + /** + * Required. The Google Cloud Storage URI to write the feedback labels to. The file name will be + * used as a prefix for the files written to the bucket if the output needs to be split across + * multiple files, otherwise it will be used as is. The file extension will be appended to the + * file name based on the format selected. E.g. `gs://bucket_name/object_uri_prefix` + * @return value or {@code null} for none + */ + public java.lang.String getObjectUri() { + return objectUri; + } + + /** + * Required. The Google Cloud Storage URI to write the feedback labels to. The file name will be + * used as a prefix for the files written to the bucket if the output needs to be split across + * multiple files, otherwise it will be used as is. The file extension will be appended to the + * file name based on the format selected. E.g. `gs://bucket_name/object_uri_prefix` + * @param objectUri objectUri or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination setObjectUri(java.lang.String objectUri) { + this.objectUri = objectUri; + return this; + } + + /** + * Optional. The number of records per file. Applicable for either format. + * @return value or {@code null} for none + */ + public java.lang.Long getRecordsPerFileCount() { + return recordsPerFileCount; + } + + /** + * Optional. The number of records per file. Applicable for either format. + * @param recordsPerFileCount recordsPerFileCount or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination setRecordsPerFileCount(java.lang.Long recordsPerFileCount) { + this.recordsPerFileCount = recordsPerFileCount; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination clone() { + return (GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestGcsDestination) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsResponse.java new file mode 100644 index 00000000000..983d9f592e7 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsResponse.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Response for the BulkDownloadFeedbackLabel endpoint. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsResponse extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsResponse clone() { + return (GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest.java new file mode 100644 index 00000000000..8e413e4b74e --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The request for bulk uploading feedback labels. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest extends com.google.api.client.json.GenericJson { + + /** + * A cloud storage bucket source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource gcsSource; + + /** + * Optional. If set, upload will not happen and the labels will be validated. If not set, then + * default behavior will be to upload the labels after validation is complete. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** + * A cloud storage bucket source. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource getGcsSource() { + return gcsSource; + } + + /** + * A cloud storage bucket source. + * @param gcsSource gcsSource or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest setGcsSource(GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource gcsSource) { + this.gcsSource = gcsSource; + return this; + } + + /** + * Optional. If set, upload will not happen and the labels will be validated. If not set, then + * default behavior will be to upload the labels after validation is complete. + * @return value or {@code null} for none + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. If set, upload will not happen and the labels will be validated. If not set, then + * default behavior will be to upload the labels after validation is complete. + * @param validateOnly validateOnly or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest clone() { + return (GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource.java new file mode 100644 index 00000000000..3f727f6a449 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Google Cloud Storage Object details to get the feedback label file from. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource extends com.google.api.client.json.GenericJson { + + /** + * Required. File format which will be ingested. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String format; + + /** + * Required. The Google Cloud Storage URI of the file to import. Format: + * `gs://bucket_name/object_name` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String objectUri; + + /** + * Required. File format which will be ingested. + * @return value or {@code null} for none + */ + public java.lang.String getFormat() { + return format; + } + + /** + * Required. File format which will be ingested. + * @param format format or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource setFormat(java.lang.String format) { + this.format = format; + return this; + } + + /** + * Required. The Google Cloud Storage URI of the file to import. Format: + * `gs://bucket_name/object_name` + * @return value or {@code null} for none + */ + public java.lang.String getObjectUri() { + return objectUri; + } + + /** + * Required. The Google Cloud Storage URI of the file to import. Format: + * `gs://bucket_name/object_name` + * @param objectUri objectUri or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource setObjectUri(java.lang.String objectUri) { + this.objectUri = objectUri; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource clone() { + return (GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestGcsSource) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Conversation.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Conversation.java index ac9feff5e0d..5bdf3432067 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Conversation.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Conversation.java @@ -82,7 +82,7 @@ public final class GoogleCloudContactcenterinsightsV1Conversation extends com.go private String expireTime; /** - * A map for the user to specify any custom fields. A maximum of 20 labels per conversation is + * A map for the user to specify any custom fields. A maximum of 100 labels per conversation is * allowed, with a maximum of 256 characters per entry. * The value may be {@code null}. */ @@ -117,6 +117,14 @@ public final class GoogleCloudContactcenterinsightsV1Conversation extends com.go @com.google.api.client.util.Key private java.lang.String medium; + /** + * Input only. JSON metadata encoded as a string. This field is primarily used by Insights + * integrations with various telphony systems and must be in one of Insight's supported formats. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String metadataJson; + /** * Immutable. The resource name of the conversation. Format: * projects/{project}/locations/{location}/conversations/{conversation} @@ -306,7 +314,7 @@ public GoogleCloudContactcenterinsightsV1Conversation setExpireTime(String expir } /** - * A map for the user to specify any custom fields. A maximum of 20 labels per conversation is + * A map for the user to specify any custom fields. A maximum of 100 labels per conversation is * allowed, with a maximum of 256 characters per entry. * @return value or {@code null} for none */ @@ -315,7 +323,7 @@ public java.util.Map getLabels() { } /** - * A map for the user to specify any custom fields. A maximum of 20 labels per conversation is + * A map for the user to specify any custom fields. A maximum of 100 labels per conversation is * allowed, with a maximum of 256 characters per entry. * @param labels labels or {@code null} for none */ @@ -392,6 +400,25 @@ public GoogleCloudContactcenterinsightsV1Conversation setMedium(java.lang.String return this; } + /** + * Input only. JSON metadata encoded as a string. This field is primarily used by Insights + * integrations with various telphony systems and must be in one of Insight's supported formats. + * @return value or {@code null} for none + */ + public java.lang.String getMetadataJson() { + return metadataJson; + } + + /** + * Input only. JSON metadata encoded as a string. This field is primarily used by Insights + * integrations with various telphony systems and must be in one of Insight's supported formats. + * @param metadataJson metadataJson or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Conversation setMetadataJson(java.lang.String metadataJson) { + this.metadataJson = metadataJson; + return this; + } + /** * Immutable. The resource name of the conversation. Format: * projects/{project}/locations/{location}/conversations/{conversation} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo.java index a6bbaf1ee5c..52f3e1cf23e 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo.java @@ -37,6 +37,13 @@ public final class GoogleCloudContactcenterinsightsV1ConversationQualityMetadata @com.google.api.client.util.Key private java.lang.String agentId; + /** + * The agent type, e.g. HUMAN_AGENT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentType; + /** * The agent's name. * The value may be {@code null}. @@ -52,12 +59,27 @@ public final class GoogleCloudContactcenterinsightsV1ConversationQualityMetadata private java.lang.String dispositionCode; /** - * A user-specified string representing the agent's team. + * The agent's location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * A user-specified string representing the agent's team. Deprecated in favor of the `teams` + * field. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String team; + /** + * User-specified strings representing the agent's teams. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List teams; + /** * A user-specified string representing the agent. * @return value or {@code null} for none @@ -75,6 +97,23 @@ public GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo se return this; } + /** + * The agent type, e.g. HUMAN_AGENT. + * @return value or {@code null} for none + */ + public java.lang.String getAgentType() { + return agentType; + } + + /** + * The agent type, e.g. HUMAN_AGENT. + * @param agentType agentType or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo setAgentType(java.lang.String agentType) { + this.agentType = agentType; + return this; + } + /** * The agent's name. * @return value or {@code null} for none @@ -110,7 +149,25 @@ public GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo se } /** - * A user-specified string representing the agent's team. + * The agent's location. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * The agent's location. + * @param location location or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * A user-specified string representing the agent's team. Deprecated in favor of the `teams` + * field. * @return value or {@code null} for none */ public java.lang.String getTeam() { @@ -118,7 +175,8 @@ public java.lang.String getTeam() { } /** - * A user-specified string representing the agent's team. + * A user-specified string representing the agent's team. Deprecated in favor of the `teams` + * field. * @param team team or {@code null} for none */ public GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo setTeam(java.lang.String team) { @@ -126,6 +184,23 @@ public GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo se return this; } + /** + * User-specified strings representing the agent's teams. + * @return value or {@code null} for none + */ + public java.util.List getTeams() { + return teams; + } + + /** + * User-specified strings representing the agent's teams. + * @param teams teams or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo setTeams(java.util.List teams) { + this.teams = teams; + return this; + } + @Override public GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo set(String fieldName, Object value) { return (GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo) super.set(fieldName, value); diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1CreateIssueMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1CreateIssueMetadata.java new file mode 100644 index 00000000000..1ae2d4ff981 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1CreateIssueMetadata.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Metadata for creating an issue. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1CreateIssueMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * The original request for creation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1CreateIssueRequest request; + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1CreateIssueMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1CreateIssueMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * The original request for creation. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1CreateIssueRequest getRequest() { + return request; + } + + /** + * The original request for creation. + * @param request request or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1CreateIssueMetadata setRequest(GoogleCloudContactcenterinsightsV1CreateIssueRequest request) { + this.request = request; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1CreateIssueMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1CreateIssueMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1CreateIssueMetadata clone() { + return (GoogleCloudContactcenterinsightsV1CreateIssueMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1CreateIssueRequest.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1CreateIssueRequest.java new file mode 100644 index 00000000000..e677db70a37 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1CreateIssueRequest.java @@ -0,0 +1,91 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The request to create an issue. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1CreateIssueRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The values for the new issue. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1Issue issue; + + /** + * Required. The parent resource of the issue. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** + * Required. The values for the new issue. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Issue getIssue() { + return issue; + } + + /** + * Required. The values for the new issue. + * @param issue issue or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1CreateIssueRequest setIssue(GoogleCloudContactcenterinsightsV1Issue issue) { + this.issue = issue; + return this; + } + + /** + * Required. The parent resource of the issue. + * @return value or {@code null} for none + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource of the issue. + * @param parent parent or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1CreateIssueRequest setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1CreateIssueRequest set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1CreateIssueRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1CreateIssueRequest clone() { + return (GoogleCloudContactcenterinsightsV1CreateIssueRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest.java new file mode 100644 index 00000000000..b5b482a92d4 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The request to deploy a QaScorecardRevision + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest clone() { + return (GoogleCloudContactcenterinsightsV1DeployQaScorecardRevisionRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Dimension.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Dimension.java new file mode 100644 index 00000000000..77041ca346b --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Dimension.java @@ -0,0 +1,164 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * A dimension determines the grouping key for the query. In SQL terms, these would be part of both + * the "SELECT" and "GROUP BY" clauses. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1Dimension extends com.google.api.client.json.GenericJson { + + /** + * Output only. Metadata about the agent dimension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata agentDimensionMetadata; + + /** + * The key of the dimension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dimensionKey; + + /** + * Output only. Metadata about the issue dimension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata issueDimensionMetadata; + + /** + * Output only. Metadata about the QA question-answer dimension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata qaQuestionAnswerDimensionMetadata; + + /** + * Output only. Metadata about the QA question dimension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata qaQuestionDimensionMetadata; + + /** + * Output only. Metadata about the agent dimension. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata getAgentDimensionMetadata() { + return agentDimensionMetadata; + } + + /** + * Output only. Metadata about the agent dimension. + * @param agentDimensionMetadata agentDimensionMetadata or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dimension setAgentDimensionMetadata(GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata agentDimensionMetadata) { + this.agentDimensionMetadata = agentDimensionMetadata; + return this; + } + + /** + * The key of the dimension. + * @return value or {@code null} for none + */ + public java.lang.String getDimensionKey() { + return dimensionKey; + } + + /** + * The key of the dimension. + * @param dimensionKey dimensionKey or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dimension setDimensionKey(java.lang.String dimensionKey) { + this.dimensionKey = dimensionKey; + return this; + } + + /** + * Output only. Metadata about the issue dimension. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata getIssueDimensionMetadata() { + return issueDimensionMetadata; + } + + /** + * Output only. Metadata about the issue dimension. + * @param issueDimensionMetadata issueDimensionMetadata or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dimension setIssueDimensionMetadata(GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata issueDimensionMetadata) { + this.issueDimensionMetadata = issueDimensionMetadata; + return this; + } + + /** + * Output only. Metadata about the QA question-answer dimension. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata getQaQuestionAnswerDimensionMetadata() { + return qaQuestionAnswerDimensionMetadata; + } + + /** + * Output only. Metadata about the QA question-answer dimension. + * @param qaQuestionAnswerDimensionMetadata qaQuestionAnswerDimensionMetadata or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dimension setQaQuestionAnswerDimensionMetadata(GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata qaQuestionAnswerDimensionMetadata) { + this.qaQuestionAnswerDimensionMetadata = qaQuestionAnswerDimensionMetadata; + return this; + } + + /** + * Output only. Metadata about the QA question dimension. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata getQaQuestionDimensionMetadata() { + return qaQuestionDimensionMetadata; + } + + /** + * Output only. Metadata about the QA question dimension. + * @param qaQuestionDimensionMetadata qaQuestionDimensionMetadata or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dimension setQaQuestionDimensionMetadata(GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata qaQuestionDimensionMetadata) { + this.qaQuestionDimensionMetadata = qaQuestionDimensionMetadata; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1Dimension set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1Dimension) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1Dimension clone() { + return (GoogleCloudContactcenterinsightsV1Dimension) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata.java new file mode 100644 index 00000000000..46041b4ea01 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Metadata about the agent dimension. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata extends com.google.api.client.json.GenericJson { + + /** + * Optional. The agent's name + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentDisplayName; + + /** + * Optional. A user-specified string representing the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentId; + + /** + * Optional. A user-specified string representing the agent's team. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentTeam; + + /** + * Optional. The agent's name + * @return value or {@code null} for none + */ + public java.lang.String getAgentDisplayName() { + return agentDisplayName; + } + + /** + * Optional. The agent's name + * @param agentDisplayName agentDisplayName or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata setAgentDisplayName(java.lang.String agentDisplayName) { + this.agentDisplayName = agentDisplayName; + return this; + } + + /** + * Optional. A user-specified string representing the agent. + * @return value or {@code null} for none + */ + public java.lang.String getAgentId() { + return agentId; + } + + /** + * Optional. A user-specified string representing the agent. + * @param agentId agentId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata setAgentId(java.lang.String agentId) { + this.agentId = agentId; + return this; + } + + /** + * Optional. A user-specified string representing the agent's team. + * @return value or {@code null} for none + */ + public java.lang.String getAgentTeam() { + return agentTeam; + } + + /** + * Optional. A user-specified string representing the agent's team. + * @param agentTeam agentTeam or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata setAgentTeam(java.lang.String agentTeam) { + this.agentTeam = agentTeam; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata clone() { + return (GoogleCloudContactcenterinsightsV1DimensionAgentDimensionMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata.java new file mode 100644 index 00000000000..0c7894d8d57 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Metadata about the issue dimension. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata extends com.google.api.client.json.GenericJson { + + /** + * The issue display name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String issueDisplayName; + + /** + * The issue ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String issueId; + + /** + * The parent issue model ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String issueModelId; + + /** + * The issue display name. + * @return value or {@code null} for none + */ + public java.lang.String getIssueDisplayName() { + return issueDisplayName; + } + + /** + * The issue display name. + * @param issueDisplayName issueDisplayName or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata setIssueDisplayName(java.lang.String issueDisplayName) { + this.issueDisplayName = issueDisplayName; + return this; + } + + /** + * The issue ID. + * @return value or {@code null} for none + */ + public java.lang.String getIssueId() { + return issueId; + } + + /** + * The issue ID. + * @param issueId issueId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata setIssueId(java.lang.String issueId) { + this.issueId = issueId; + return this; + } + + /** + * The parent issue model ID. + * @return value or {@code null} for none + */ + public java.lang.String getIssueModelId() { + return issueModelId; + } + + /** + * The parent issue model ID. + * @param issueModelId issueModelId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata setIssueModelId(java.lang.String issueModelId) { + this.issueModelId = issueModelId; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata clone() { + return (GoogleCloudContactcenterinsightsV1DimensionIssueDimensionMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata.java new file mode 100644 index 00000000000..3621f483afa --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata.java @@ -0,0 +1,140 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Metadata about the QA question-answer dimension. This is useful for showing the answer + * distribution for questions for a given scorecard. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata extends com.google.api.client.json.GenericJson { + + /** + * Optional. The full body of the question. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String answerValue; + + /** + * Optional. The QA question ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String qaQuestionId; + + /** + * Optional. The QA scorecard ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String qaScorecardId; + + /** + * Optional. The full body of the question. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String questionBody; + + /** + * Optional. The full body of the question. + * @return value or {@code null} for none + */ + public java.lang.String getAnswerValue() { + return answerValue; + } + + /** + * Optional. The full body of the question. + * @param answerValue answerValue or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata setAnswerValue(java.lang.String answerValue) { + this.answerValue = answerValue; + return this; + } + + /** + * Optional. The QA question ID. + * @return value or {@code null} for none + */ + public java.lang.String getQaQuestionId() { + return qaQuestionId; + } + + /** + * Optional. The QA question ID. + * @param qaQuestionId qaQuestionId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata setQaQuestionId(java.lang.String qaQuestionId) { + this.qaQuestionId = qaQuestionId; + return this; + } + + /** + * Optional. The QA scorecard ID. + * @return value or {@code null} for none + */ + public java.lang.String getQaScorecardId() { + return qaScorecardId; + } + + /** + * Optional. The QA scorecard ID. + * @param qaScorecardId qaScorecardId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata setQaScorecardId(java.lang.String qaScorecardId) { + this.qaScorecardId = qaScorecardId; + return this; + } + + /** + * Optional. The full body of the question. + * @return value or {@code null} for none + */ + public java.lang.String getQuestionBody() { + return questionBody; + } + + /** + * Optional. The full body of the question. + * @param questionBody questionBody or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata setQuestionBody(java.lang.String questionBody) { + this.questionBody = questionBody; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata clone() { + return (GoogleCloudContactcenterinsightsV1DimensionQaQuestionAnswerDimensionMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata.java new file mode 100644 index 00000000000..26495f794f0 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Metadata about the QA question dimension. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata extends com.google.api.client.json.GenericJson { + + /** + * Optional. The QA question ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String qaQuestionId; + + /** + * Optional. The QA scorecard ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String qaScorecardId; + + /** + * Optional. The full body of the question. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String questionBody; + + /** + * Optional. The QA question ID. + * @return value or {@code null} for none + */ + public java.lang.String getQaQuestionId() { + return qaQuestionId; + } + + /** + * Optional. The QA question ID. + * @param qaQuestionId qaQuestionId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata setQaQuestionId(java.lang.String qaQuestionId) { + this.qaQuestionId = qaQuestionId; + return this; + } + + /** + * Optional. The QA scorecard ID. + * @return value or {@code null} for none + */ + public java.lang.String getQaScorecardId() { + return qaScorecardId; + } + + /** + * Optional. The QA scorecard ID. + * @param qaScorecardId qaScorecardId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata setQaScorecardId(java.lang.String qaScorecardId) { + this.qaScorecardId = qaScorecardId; + return this; + } + + /** + * Optional. The full body of the question. + * @return value or {@code null} for none + */ + public java.lang.String getQuestionBody() { + return questionBody; + } + + /** + * Optional. The full body of the question. + * @param questionBody questionBody or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata setQuestionBody(java.lang.String questionBody) { + this.questionBody = questionBody; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata clone() { + return (GoogleCloudContactcenterinsightsV1DimensionQaQuestionDimensionMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1EncryptionSpec.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1EncryptionSpec.java new file mode 100644 index 00000000000..9726ffec520 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1EncryptionSpec.java @@ -0,0 +1,104 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * A customer-managed encryption key specification that can be applied to all created resources + * (e.g. `Conversation`). + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1EncryptionSpec extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of customer-managed encryption key that is used to secure a resource and its + * sub-resources. If empty, the resource is secured by our default encryption key. Only the key in + * the same location as this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kmsKey; + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The name of customer-managed encryption key that is used to secure a resource and its + * sub-resources. If empty, the resource is secured by our default encryption key. Only the key in + * the same location as this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * @return value or {@code null} for none + */ + public java.lang.String getKmsKey() { + return kmsKey; + } + + /** + * Required. The name of customer-managed encryption key that is used to secure a resource and its + * sub-resources. If empty, the resource is secured by our default encryption key. Only the key in + * the same location as this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * @param kmsKey kmsKey or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1EncryptionSpec setKmsKey(java.lang.String kmsKey) { + this.kmsKey = kmsKey; + return this; + } + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1EncryptionSpec setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1EncryptionSpec set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1EncryptionSpec) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1EncryptionSpec clone() { + return (GoogleCloudContactcenterinsightsV1EncryptionSpec) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1FeedbackLabel.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1FeedbackLabel.java new file mode 100644 index 00000000000..3329b10d7f8 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1FeedbackLabel.java @@ -0,0 +1,190 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Represents a conversation, resource, and label provided by the user. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1FeedbackLabel extends com.google.api.client.json.GenericJson { + + /** + * Output only. Create time of the label. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * String label. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String label; + + /** + * Resource name of the resource to be labeled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labeledResource; + + /** + * Immutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{location}/ + * conversations/{conversation}/feedbackLabels/{feedback_label} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * QaAnswer label. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue qaAnswerLabel; + + /** + * Output only. Update time of the label. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. Create time of the label. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Create time of the label. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1FeedbackLabel setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * String label. + * @return value or {@code null} for none + */ + public java.lang.String getLabel() { + return label; + } + + /** + * String label. + * @param label label or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1FeedbackLabel setLabel(java.lang.String label) { + this.label = label; + return this; + } + + /** + * Resource name of the resource to be labeled. + * @return value or {@code null} for none + */ + public java.lang.String getLabeledResource() { + return labeledResource; + } + + /** + * Resource name of the resource to be labeled. + * @param labeledResource labeledResource or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1FeedbackLabel setLabeledResource(java.lang.String labeledResource) { + this.labeledResource = labeledResource; + return this; + } + + /** + * Immutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{location}/ + * conversations/{conversation}/feedbackLabels/{feedback_label} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{location}/ + * conversations/{conversation}/feedbackLabels/{feedback_label} + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1FeedbackLabel setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * QaAnswer label. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue getQaAnswerLabel() { + return qaAnswerLabel; + } + + /** + * QaAnswer label. + * @param qaAnswerLabel qaAnswerLabel or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1FeedbackLabel setQaAnswerLabel(GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue qaAnswerLabel) { + this.qaAnswerLabel = qaAnswerLabel; + return this; + } + + /** + * Output only. Update time of the label. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Update time of the label. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1FeedbackLabel setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1FeedbackLabel set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1FeedbackLabel) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1FeedbackLabel clone() { + return (GoogleCloudContactcenterinsightsV1FeedbackLabel) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ImportIssueModelResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ImportIssueModelResponse.java index baa73d87eaa..e57fd89dae3 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ImportIssueModelResponse.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ImportIssueModelResponse.java @@ -30,6 +30,30 @@ @SuppressWarnings("javadoc") public final class GoogleCloudContactcenterinsightsV1ImportIssueModelResponse extends com.google.api.client.json.GenericJson { + /** + * The issue model that was imported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1IssueModel issueModel; + + /** + * The issue model that was imported. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1IssueModel getIssueModel() { + return issueModel; + } + + /** + * The issue model that was imported. + * @param issueModel issueModel or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ImportIssueModelResponse setIssueModel(GoogleCloudContactcenterinsightsV1IssueModel issueModel) { + this.issueModel = issueModel; + return this; + } + @Override public GoogleCloudContactcenterinsightsV1ImportIssueModelResponse set(String fieldName, Object value) { return (GoogleCloudContactcenterinsightsV1ImportIssueModelResponse) super.set(fieldName, value); diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource.java index 39330d7b548..8d9d47635dd 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource.java @@ -47,7 +47,7 @@ public final class GoogleCloudContactcenterinsightsV1IngestConversationsRequestG /** * Optional. Custom keys to extract as conversation labels from metadata files in * `metadata_bucket_uri`. Keys not included in this field will be ignored. Note that there is a - * limit of 20 labels per conversation. + * limit of 100 labels per conversation. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -101,7 +101,7 @@ public GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource set /** * Optional. Custom keys to extract as conversation labels from metadata files in * `metadata_bucket_uri`. Keys not included in this field will be ignored. Note that there is a - * limit of 20 labels per conversation. + * limit of 100 labels per conversation. * @return value or {@code null} for none */ public java.util.List getCustomMetadataKeys() { @@ -111,7 +111,7 @@ public java.util.List getCustomMetadataKeys() { /** * Optional. Custom keys to extract as conversation labels from metadata files in * `metadata_bucket_uri`. Keys not included in this field will be ignored. Note that there is a - * limit of 20 labels per conversation. + * limit of 100 labels per conversation. * @param customMetadataKeys customMetadataKeys or {@code null} for none */ public GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource setCustomMetadataKeys(java.util.List customMetadataKeys) { diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata.java new file mode 100644 index 00000000000..a70bad8598f --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata.java @@ -0,0 +1,142 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Metadata for initializing a location-level encryption specification. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Partial errors during initializing operation that might cause the operation output to be + * incomplete. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List partialErrors; + + /** + * Output only. The original request for initialization. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest request; + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Partial errors during initializing operation that might cause the operation output to be + * incomplete. + * @return value or {@code null} for none + */ + public java.util.List getPartialErrors() { + return partialErrors; + } + + /** + * Partial errors during initializing operation that might cause the operation output to be + * incomplete. + * @param partialErrors partialErrors or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata setPartialErrors(java.util.List partialErrors) { + this.partialErrors = partialErrors; + return this; + } + + /** + * Output only. The original request for initialization. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest getRequest() { + return request; + } + + /** + * Output only. The original request for initialization. + * @param request request or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata setRequest(GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest request) { + this.request = request; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata clone() { + return (GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest.java new file mode 100644 index 00000000000..6202fd74b89 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest.java @@ -0,0 +1,76 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The request to initialize a location-level encryption specification. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The encryption spec used for CMEK encryption. It is required that the kms key is in + * the same region as the endpoint. The same key will be used for all provisioned resources, if + * encryption is available. If the `kms_key_name` field is left empty, no encryption will be + * enforced. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1EncryptionSpec encryptionSpec; + + /** + * Required. The encryption spec used for CMEK encryption. It is required that the kms key is in + * the same region as the endpoint. The same key will be used for all provisioned resources, if + * encryption is available. If the `kms_key_name` field is left empty, no encryption will be + * enforced. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1EncryptionSpec getEncryptionSpec() { + return encryptionSpec; + } + + /** + * Required. The encryption spec used for CMEK encryption. It is required that the kms key is in + * the same region as the endpoint. The same key will be used for all provisioned resources, if + * encryption is available. If the `kms_key_name` field is left empty, no encryption will be + * enforced. + * @param encryptionSpec encryptionSpec or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest setEncryptionSpec(GoogleCloudContactcenterinsightsV1EncryptionSpec encryptionSpec) { + this.encryptionSpec = encryptionSpec; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest clone() { + return (GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse.java new file mode 100644 index 00000000000..79e0c9b64fe --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The response to initialize a location-level encryption specification. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse clone() { + return (GoogleCloudContactcenterinsightsV1InitializeEncryptionSpecResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Issue.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Issue.java index 4c5b9da6553..41b6417d480 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Issue.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Issue.java @@ -37,6 +37,13 @@ public final class GoogleCloudContactcenterinsightsV1Issue extends com.google.ap @com.google.api.client.util.Key private String createTime; + /** + * Representative description of the issue. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayDescription; + /** * The representative name for the issue. * The value may be {@code null}. @@ -83,6 +90,23 @@ public GoogleCloudContactcenterinsightsV1Issue setCreateTime(String createTime) return this; } + /** + * Representative description of the issue. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayDescription() { + return displayDescription; + } + + /** + * Representative description of the issue. + * @param displayDescription displayDescription or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Issue setDisplayDescription(java.lang.String displayDescription) { + this.displayDescription = displayDescription; + return this; + } + /** * The representative name for the issue. * @return value or {@code null} for none diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse.java new file mode 100644 index 00000000000..35be2b6c1d8 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The response for listing all feedback labels. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse extends com.google.api.client.json.GenericJson { + + /** + * The feedback labels that match the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List feedbackLabels; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1FeedbackLabel used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudContactcenterinsightsV1FeedbackLabel.class); + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The feedback labels that match the request. + * @return value or {@code null} for none + */ + public java.util.List getFeedbackLabels() { + return feedbackLabels; + } + + /** + * The feedback labels that match the request. + * @param feedbackLabels feedbackLabels or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse setFeedbackLabels(java.util.List feedbackLabels) { + this.feedbackLabels = feedbackLabels; + return this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse clone() { + return (GoogleCloudContactcenterinsightsV1ListAllFeedbackLabelsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse.java new file mode 100644 index 00000000000..4e370e2dfa8 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The response of listing views. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse extends com.google.api.client.json.GenericJson { + + /** + * The analysis_rule that match the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List analysisRules; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1AnalysisRule used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudContactcenterinsightsV1AnalysisRule.class); + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The analysis_rule that match the request. + * @return value or {@code null} for none + */ + public java.util.List getAnalysisRules() { + return analysisRules; + } + + /** + * The analysis_rule that match the request. + * @param analysisRules analysisRules or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse setAnalysisRules(java.util.List analysisRules) { + this.analysisRules = analysisRules; + return this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse clone() { + return (GoogleCloudContactcenterinsightsV1ListAnalysisRulesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse.java new file mode 100644 index 00000000000..8a816e86b4a --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse.java @@ -0,0 +1,97 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The response for listing feedback labels. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse extends com.google.api.client.json.GenericJson { + + /** + * The feedback labels that match the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List feedbackLabels; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1FeedbackLabel used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudContactcenterinsightsV1FeedbackLabel.class); + } + + /** + * The next page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The feedback labels that match the request. + * @return value or {@code null} for none + */ + public java.util.List getFeedbackLabels() { + return feedbackLabels; + } + + /** + * The feedback labels that match the request. + * @param feedbackLabels feedbackLabels or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse setFeedbackLabels(java.util.List feedbackLabels) { + this.feedbackLabels = feedbackLabels; + return this; + } + + /** + * The next page token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The next page token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse clone() { + return (GoogleCloudContactcenterinsightsV1ListFeedbackLabelsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse.java new file mode 100644 index 00000000000..3f65d20b9c4 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The response from a ListQaQuestions request. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The QaQuestions under the parent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List qaQuestions; + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The QaQuestions under the parent. + * @return value or {@code null} for none + */ + public java.util.List getQaQuestions() { + return qaQuestions; + } + + /** + * The QaQuestions under the parent. + * @param qaQuestions qaQuestions or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse setQaQuestions(java.util.List qaQuestions) { + this.qaQuestions = qaQuestions; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse clone() { + return (GoogleCloudContactcenterinsightsV1ListQaQuestionsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse.java new file mode 100644 index 00000000000..002e453369e --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The response from a ListQaScorecardRevisions request. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The QaScorecards under the parent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List qaScorecardRevisions; + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The QaScorecards under the parent. + * @return value or {@code null} for none + */ + public java.util.List getQaScorecardRevisions() { + return qaScorecardRevisions; + } + + /** + * The QaScorecards under the parent. + * @param qaScorecardRevisions qaScorecardRevisions or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse setQaScorecardRevisions(java.util.List qaScorecardRevisions) { + this.qaScorecardRevisions = qaScorecardRevisions; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse clone() { + return (GoogleCloudContactcenterinsightsV1ListQaScorecardRevisionsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse.java new file mode 100644 index 00000000000..a6aa5bedba0 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The response from a ListQaScorecards request. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The QaScorecards under the parent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List qaScorecards; + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The QaScorecards under the parent. + * @return value or {@code null} for none + */ + public java.util.List getQaScorecards() { + return qaScorecards; + } + + /** + * The QaScorecards under the parent. + * @param qaScorecards qaScorecards or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse setQaScorecards(java.util.List qaScorecards) { + this.qaScorecards = qaScorecards; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse clone() { + return (GoogleCloudContactcenterinsightsV1ListQaScorecardsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaAnswer.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaAnswer.java new file mode 100644 index 00000000000..a643b44b86e --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaAnswer.java @@ -0,0 +1,190 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * An answer to a QaQuestion. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1QaAnswer extends com.google.api.client.json.GenericJson { + + /** + * List of all individual answers given to the question. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List answerSources; + + /** + * The main answer value, incorporating any manual edits if they exist. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue answerValue; + + /** + * The conversation the answer applies to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String conversation; + + /** + * The QaQuestion answered by this answer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String qaQuestion; + + /** + * Question text. E.g., "Did the agent greet the customer?" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String questionBody; + + /** + * User-defined list of arbitrary tags. Matches the value from QaScorecard.ScorecardQuestion.tags. + * Used for grouping/organization and for weighting the score of each answer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tags; + + /** + * List of all individual answers given to the question. + * @return value or {@code null} for none + */ + public java.util.List getAnswerSources() { + return answerSources; + } + + /** + * List of all individual answers given to the question. + * @param answerSources answerSources or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaAnswer setAnswerSources(java.util.List answerSources) { + this.answerSources = answerSources; + return this; + } + + /** + * The main answer value, incorporating any manual edits if they exist. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue getAnswerValue() { + return answerValue; + } + + /** + * The main answer value, incorporating any manual edits if they exist. + * @param answerValue answerValue or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaAnswer setAnswerValue(GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue answerValue) { + this.answerValue = answerValue; + return this; + } + + /** + * The conversation the answer applies to. + * @return value or {@code null} for none + */ + public java.lang.String getConversation() { + return conversation; + } + + /** + * The conversation the answer applies to. + * @param conversation conversation or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaAnswer setConversation(java.lang.String conversation) { + this.conversation = conversation; + return this; + } + + /** + * The QaQuestion answered by this answer. + * @return value or {@code null} for none + */ + public java.lang.String getQaQuestion() { + return qaQuestion; + } + + /** + * The QaQuestion answered by this answer. + * @param qaQuestion qaQuestion or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaAnswer setQaQuestion(java.lang.String qaQuestion) { + this.qaQuestion = qaQuestion; + return this; + } + + /** + * Question text. E.g., "Did the agent greet the customer?" + * @return value or {@code null} for none + */ + public java.lang.String getQuestionBody() { + return questionBody; + } + + /** + * Question text. E.g., "Did the agent greet the customer?" + * @param questionBody questionBody or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaAnswer setQuestionBody(java.lang.String questionBody) { + this.questionBody = questionBody; + return this; + } + + /** + * User-defined list of arbitrary tags. Matches the value from QaScorecard.ScorecardQuestion.tags. + * Used for grouping/organization and for weighting the score of each answer. + * @return value or {@code null} for none + */ + public java.util.List getTags() { + return tags; + } + + /** + * User-defined list of arbitrary tags. Matches the value from QaScorecard.ScorecardQuestion.tags. + * Used for grouping/organization and for weighting the score of each answer. + * @param tags tags or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaAnswer setTags(java.util.List tags) { + this.tags = tags; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QaAnswer set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QaAnswer) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QaAnswer clone() { + return (GoogleCloudContactcenterinsightsV1QaAnswer) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource.java new file mode 100644 index 00000000000..2daad495818 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource.java @@ -0,0 +1,92 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * A question may have multiple answers from varying sources, one of which becomes the "main" answer + * above. AnswerSource represents each individual answer. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource extends com.google.api.client.json.GenericJson { + + /** + * The answer value from this source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue answerValue; + + /** + * What created the answer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceType; + + /** + * The answer value from this source. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue getAnswerValue() { + return answerValue; + } + + /** + * The answer value from this source. + * @param answerValue answerValue or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource setAnswerValue(GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue answerValue) { + this.answerValue = answerValue; + return this; + } + + /** + * What created the answer. + * @return value or {@code null} for none + */ + public java.lang.String getSourceType() { + return sourceType; + } + + /** + * What created the answer. + * @param sourceType sourceType or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource setSourceType(java.lang.String sourceType) { + this.sourceType = sourceType; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource clone() { + return (GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue.java new file mode 100644 index 00000000000..8588415504d --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue.java @@ -0,0 +1,236 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Message for holding the value of a QaAnswer. QaQuestion.AnswerChoice defines the possible answer + * values for a question. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue extends com.google.api.client.json.GenericJson { + + /** + * Boolean value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean boolValue; + + /** + * A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * A value of "Not Applicable (N/A)". Should only ever be `true`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean naValue; + + /** + * Output only. Normalized score of the questions. Calculated as score / potential_score. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double normalizedScore; + + /** + * Numerical value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double numValue; + + /** + * Output only. The maximum potential score of the question. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double potentialScore; + + /** + * Output only. Numerical score of the answer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double score; + + /** + * String value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String strValue; + + /** + * Boolean value. + * @return value or {@code null} for none + */ + public java.lang.Boolean getBoolValue() { + return boolValue; + } + + /** + * Boolean value. + * @param boolValue boolValue or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue setBoolValue(java.lang.Boolean boolValue) { + this.boolValue = boolValue; + return this; + } + + /** + * A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key. + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key. + * @param key key or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * A value of "Not Applicable (N/A)". Should only ever be `true`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getNaValue() { + return naValue; + } + + /** + * A value of "Not Applicable (N/A)". Should only ever be `true`. + * @param naValue naValue or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue setNaValue(java.lang.Boolean naValue) { + this.naValue = naValue; + return this; + } + + /** + * Output only. Normalized score of the questions. Calculated as score / potential_score. + * @return value or {@code null} for none + */ + public java.lang.Double getNormalizedScore() { + return normalizedScore; + } + + /** + * Output only. Normalized score of the questions. Calculated as score / potential_score. + * @param normalizedScore normalizedScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue setNormalizedScore(java.lang.Double normalizedScore) { + this.normalizedScore = normalizedScore; + return this; + } + + /** + * Numerical value. + * @return value or {@code null} for none + */ + public java.lang.Double getNumValue() { + return numValue; + } + + /** + * Numerical value. + * @param numValue numValue or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue setNumValue(java.lang.Double numValue) { + this.numValue = numValue; + return this; + } + + /** + * Output only. The maximum potential score of the question. + * @return value or {@code null} for none + */ + public java.lang.Double getPotentialScore() { + return potentialScore; + } + + /** + * Output only. The maximum potential score of the question. + * @param potentialScore potentialScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue setPotentialScore(java.lang.Double potentialScore) { + this.potentialScore = potentialScore; + return this; + } + + /** + * Output only. Numerical score of the answer. + * @return value or {@code null} for none + */ + public java.lang.Double getScore() { + return score; + } + + /** + * Output only. Numerical score of the answer. + * @param score score or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue setScore(java.lang.Double score) { + this.score = score; + return this; + } + + /** + * String value. + * @return value or {@code null} for none + */ + public java.lang.String getStrValue() { + return strValue; + } + + /** + * String value. + * @param strValue strValue or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue setStrValue(java.lang.String strValue) { + this.strValue = strValue; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue clone() { + return (GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaQuestion.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaQuestion.java new file mode 100644 index 00000000000..47833d7991d --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaQuestion.java @@ -0,0 +1,325 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * A single question to be scored by the Insights QA feature. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1QaQuestion extends com.google.api.client.json.GenericJson { + + /** + * Short, descriptive string, used in the UI where it's not practical to display the full question + * body. E.g., "Greeting". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String abbreviation; + + /** + * A list of valid answers to the question, which the LLM must choose from. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List answerChoices; + + /** + * Instructions describing how to determine the answer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String answerInstructions; + + /** + * Output only. The time at which this question was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Metrics of the underlying tuned LLM over a holdout/test set while fine tuning the underlying + * LLM for the given question. This field will only be populated if and only if the question is + * part of a scorecard revision that has been tuned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1QaQuestionMetrics metrics; + + /** + * Identifier. The resource name of the question. Format: projects/{project}/locations/{location}/ + * qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Defines the order of the question within its parent scorecard revision. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer order; + + /** + * Question text. E.g., "Did the agent greet the customer?" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String questionBody; + + /** + * User-defined list of arbitrary tags for the question. Used for grouping/organization and for + * weighting the score of each question. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tags; + + /** + * Metadata about the tuning operation for the question.This field will only be populated if and + * only if the question is part of a scorecard revision that has been tuned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata tuningMetadata; + + /** + * Output only. The most recent time at which the question was updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Short, descriptive string, used in the UI where it's not practical to display the full question + * body. E.g., "Greeting". + * @return value or {@code null} for none + */ + public java.lang.String getAbbreviation() { + return abbreviation; + } + + /** + * Short, descriptive string, used in the UI where it's not practical to display the full question + * body. E.g., "Greeting". + * @param abbreviation abbreviation or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestion setAbbreviation(java.lang.String abbreviation) { + this.abbreviation = abbreviation; + return this; + } + + /** + * A list of valid answers to the question, which the LLM must choose from. + * @return value or {@code null} for none + */ + public java.util.List getAnswerChoices() { + return answerChoices; + } + + /** + * A list of valid answers to the question, which the LLM must choose from. + * @param answerChoices answerChoices or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestion setAnswerChoices(java.util.List answerChoices) { + this.answerChoices = answerChoices; + return this; + } + + /** + * Instructions describing how to determine the answer. + * @return value or {@code null} for none + */ + public java.lang.String getAnswerInstructions() { + return answerInstructions; + } + + /** + * Instructions describing how to determine the answer. + * @param answerInstructions answerInstructions or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestion setAnswerInstructions(java.lang.String answerInstructions) { + this.answerInstructions = answerInstructions; + return this; + } + + /** + * Output only. The time at which this question was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time at which this question was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestion setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Metrics of the underlying tuned LLM over a holdout/test set while fine tuning the underlying + * LLM for the given question. This field will only be populated if and only if the question is + * part of a scorecard revision that has been tuned. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestionMetrics getMetrics() { + return metrics; + } + + /** + * Metrics of the underlying tuned LLM over a holdout/test set while fine tuning the underlying + * LLM for the given question. This field will only be populated if and only if the question is + * part of a scorecard revision that has been tuned. + * @param metrics metrics or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestion setMetrics(GoogleCloudContactcenterinsightsV1QaQuestionMetrics metrics) { + this.metrics = metrics; + return this; + } + + /** + * Identifier. The resource name of the question. Format: projects/{project}/locations/{location}/ + * qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the question. Format: projects/{project}/locations/{location}/ + * qaScorecards/{qa_scorecard}/revisions/{revision}/qaQuestions/{qa_question} + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestion setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Defines the order of the question within its parent scorecard revision. + * @return value or {@code null} for none + */ + public java.lang.Integer getOrder() { + return order; + } + + /** + * Defines the order of the question within its parent scorecard revision. + * @param order order or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestion setOrder(java.lang.Integer order) { + this.order = order; + return this; + } + + /** + * Question text. E.g., "Did the agent greet the customer?" + * @return value or {@code null} for none + */ + public java.lang.String getQuestionBody() { + return questionBody; + } + + /** + * Question text. E.g., "Did the agent greet the customer?" + * @param questionBody questionBody or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestion setQuestionBody(java.lang.String questionBody) { + this.questionBody = questionBody; + return this; + } + + /** + * User-defined list of arbitrary tags for the question. Used for grouping/organization and for + * weighting the score of each question. + * @return value or {@code null} for none + */ + public java.util.List getTags() { + return tags; + } + + /** + * User-defined list of arbitrary tags for the question. Used for grouping/organization and for + * weighting the score of each question. + * @param tags tags or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestion setTags(java.util.List tags) { + this.tags = tags; + return this; + } + + /** + * Metadata about the tuning operation for the question.This field will only be populated if and + * only if the question is part of a scorecard revision that has been tuned. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata getTuningMetadata() { + return tuningMetadata; + } + + /** + * Metadata about the tuning operation for the question.This field will only be populated if and + * only if the question is part of a scorecard revision that has been tuned. + * @param tuningMetadata tuningMetadata or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestion setTuningMetadata(GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata tuningMetadata) { + this.tuningMetadata = tuningMetadata; + return this; + } + + /** + * Output only. The most recent time at which the question was updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The most recent time at which the question was updated. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestion setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QaQuestion set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QaQuestion) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QaQuestion clone() { + return (GoogleCloudContactcenterinsightsV1QaQuestion) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice.java new file mode 100644 index 00000000000..627b70d8c37 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice.java @@ -0,0 +1,193 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Message representing a possible answer to the question. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice extends com.google.api.client.json.GenericJson { + + /** + * Boolean value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean boolValue; + + /** + * A short string used as an identifier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * A value of "Not Applicable (N/A)". If provided, this field may only be set to `true`. If a + * question receives this answer, it will be excluded from any score calculations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean naValue; + + /** + * Numerical value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double numValue; + + /** + * Numerical score of the answer, used for generating the overall score of a QaScorecardResult. If + * the answer uses na_value, this field is unused. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double score; + + /** + * String value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String strValue; + + /** + * Boolean value. + * @return value or {@code null} for none + */ + public java.lang.Boolean getBoolValue() { + return boolValue; + } + + /** + * Boolean value. + * @param boolValue boolValue or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice setBoolValue(java.lang.Boolean boolValue) { + this.boolValue = boolValue; + return this; + } + + /** + * A short string used as an identifier. + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * A short string used as an identifier. + * @param key key or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * A value of "Not Applicable (N/A)". If provided, this field may only be set to `true`. If a + * question receives this answer, it will be excluded from any score calculations. + * @return value or {@code null} for none + */ + public java.lang.Boolean getNaValue() { + return naValue; + } + + /** + * A value of "Not Applicable (N/A)". If provided, this field may only be set to `true`. If a + * question receives this answer, it will be excluded from any score calculations. + * @param naValue naValue or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice setNaValue(java.lang.Boolean naValue) { + this.naValue = naValue; + return this; + } + + /** + * Numerical value. + * @return value or {@code null} for none + */ + public java.lang.Double getNumValue() { + return numValue; + } + + /** + * Numerical value. + * @param numValue numValue or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice setNumValue(java.lang.Double numValue) { + this.numValue = numValue; + return this; + } + + /** + * Numerical score of the answer, used for generating the overall score of a QaScorecardResult. If + * the answer uses na_value, this field is unused. + * @return value or {@code null} for none + */ + public java.lang.Double getScore() { + return score; + } + + /** + * Numerical score of the answer, used for generating the overall score of a QaScorecardResult. If + * the answer uses na_value, this field is unused. + * @param score score or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice setScore(java.lang.Double score) { + this.score = score; + return this; + } + + /** + * String value. + * @return value or {@code null} for none + */ + public java.lang.String getStrValue() { + return strValue; + } + + /** + * String value. + * @param strValue strValue or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice setStrValue(java.lang.String strValue) { + this.strValue = strValue; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice clone() { + return (GoogleCloudContactcenterinsightsV1QaQuestionAnswerChoice) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaQuestionMetrics.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaQuestionMetrics.java new file mode 100644 index 00000000000..70aeac57a8b --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaQuestionMetrics.java @@ -0,0 +1,71 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * A wrapper representing metrics calculated against a test-set on a LLM that was fine tuned for + * this question. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1QaQuestionMetrics extends com.google.api.client.json.GenericJson { + + /** + * Output only. Accuracy of the model. Measures the percentage of correct answers the model gave + * on the test set. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double accuracy; + + /** + * Output only. Accuracy of the model. Measures the percentage of correct answers the model gave + * on the test set. + * @return value or {@code null} for none + */ + public java.lang.Double getAccuracy() { + return accuracy; + } + + /** + * Output only. Accuracy of the model. Measures the percentage of correct answers the model gave + * on the test set. + * @param accuracy accuracy or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestionMetrics setAccuracy(java.lang.Double accuracy) { + this.accuracy = accuracy; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QaQuestionMetrics set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QaQuestionMetrics) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QaQuestionMetrics clone() { + return (GoogleCloudContactcenterinsightsV1QaQuestionMetrics) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata.java new file mode 100644 index 00000000000..9e4b44325d4 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Metadata about the tuning operation for the question. Will only be set if a scorecard containing + * this question has been tuned. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata extends com.google.api.client.json.GenericJson { + + /** + * A list of any applicable data validation warnings about the question's feedback labels. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List datasetValidationWarnings; + + /** + * Total number of valid labels provided for the question at the time of tuining. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long totalValidLabelCount; + + /** + * Error status of the tuning operation for the question. Will only be set if the tuning operation + * failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tuningError; + + /** + * A list of any applicable data validation warnings about the question's feedback labels. + * @return value or {@code null} for none + */ + public java.util.List getDatasetValidationWarnings() { + return datasetValidationWarnings; + } + + /** + * A list of any applicable data validation warnings about the question's feedback labels. + * @param datasetValidationWarnings datasetValidationWarnings or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata setDatasetValidationWarnings(java.util.List datasetValidationWarnings) { + this.datasetValidationWarnings = datasetValidationWarnings; + return this; + } + + /** + * Total number of valid labels provided for the question at the time of tuining. + * @return value or {@code null} for none + */ + public java.lang.Long getTotalValidLabelCount() { + return totalValidLabelCount; + } + + /** + * Total number of valid labels provided for the question at the time of tuining. + * @param totalValidLabelCount totalValidLabelCount or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata setTotalValidLabelCount(java.lang.Long totalValidLabelCount) { + this.totalValidLabelCount = totalValidLabelCount; + return this; + } + + /** + * Error status of the tuning operation for the question. Will only be set if the tuning operation + * failed. + * @return value or {@code null} for none + */ + public java.lang.String getTuningError() { + return tuningError; + } + + /** + * Error status of the tuning operation for the question. Will only be set if the tuning operation + * failed. + * @param tuningError tuningError or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata setTuningError(java.lang.String tuningError) { + this.tuningError = tuningError; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata clone() { + return (GoogleCloudContactcenterinsightsV1QaQuestionTuningMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaScorecard.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaScorecard.java new file mode 100644 index 00000000000..18c96280596 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaScorecard.java @@ -0,0 +1,166 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * A QaScorecard represents a collection of questions to be scored during analysis. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1QaScorecard extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time at which this scorecard was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * A text description explaining the intent of the scorecard. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * The user-specified display name of the scorecard. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Identifier. The scorecard name. Format: + * projects/{project}/locations/{location}/qaScorecards/{qa_scorecard} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The most recent time at which the scorecard was updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. The time at which this scorecard was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time at which this scorecard was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecard setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * A text description explaining the intent of the scorecard. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * A text description explaining the intent of the scorecard. + * @param description description or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecard setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * The user-specified display name of the scorecard. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The user-specified display name of the scorecard. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecard setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Identifier. The scorecard name. Format: + * projects/{project}/locations/{location}/qaScorecards/{qa_scorecard} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The scorecard name. Format: + * projects/{project}/locations/{location}/qaScorecards/{qa_scorecard} + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecard setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The most recent time at which the scorecard was updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The most recent time at which the scorecard was updated. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecard setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QaScorecard set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QaScorecard) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QaScorecard clone() { + return (GoogleCloudContactcenterinsightsV1QaScorecard) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaScorecardResult.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaScorecardResult.java new file mode 100644 index 00000000000..a6989a20064 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaScorecardResult.java @@ -0,0 +1,323 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The results of scoring a single conversation against a QaScorecard. Contains a collection of + * QaAnswers and aggregate score. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1QaScorecardResult extends com.google.api.client.json.GenericJson { + + /** + * ID of the agent that handled the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentId; + + /** + * The conversation scored by this result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String conversation; + + /** + * Output only. The timestamp that the revision was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Identifier. The name of the scorecard result. Format: + * projects/{project}/locations/{location}/qaScorecardResults/{qa_scorecard_result} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The normalized score, which is the score divided by the potential score. Any manual edits are + * included if they exist. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double normalizedScore; + + /** + * The maximum potential overall score of the scorecard. Any questions answered using `na_value` + * are excluded from this calculation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double potentialScore; + + /** + * Set of QaAnswers represented in the result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List qaAnswers; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1QaAnswer used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudContactcenterinsightsV1QaAnswer.class); + } + + /** + * The QaScorecardRevision scored by this result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String qaScorecardRevision; + + /** + * Collection of tags and their scores. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List qaTagResults; + + /** + * The overall numerical score of the result, incorporating any manual edits if they exist. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double score; + + /** + * List of all individual score sets. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List scoreSources; + + /** + * ID of the agent that handled the conversation. + * @return value or {@code null} for none + */ + public java.lang.String getAgentId() { + return agentId; + } + + /** + * ID of the agent that handled the conversation. + * @param agentId agentId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardResult setAgentId(java.lang.String agentId) { + this.agentId = agentId; + return this; + } + + /** + * The conversation scored by this result. + * @return value or {@code null} for none + */ + public java.lang.String getConversation() { + return conversation; + } + + /** + * The conversation scored by this result. + * @param conversation conversation or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardResult setConversation(java.lang.String conversation) { + this.conversation = conversation; + return this; + } + + /** + * Output only. The timestamp that the revision was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The timestamp that the revision was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardResult setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Identifier. The name of the scorecard result. Format: + * projects/{project}/locations/{location}/qaScorecardResults/{qa_scorecard_result} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The name of the scorecard result. Format: + * projects/{project}/locations/{location}/qaScorecardResults/{qa_scorecard_result} + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardResult setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The normalized score, which is the score divided by the potential score. Any manual edits are + * included if they exist. + * @return value or {@code null} for none + */ + public java.lang.Double getNormalizedScore() { + return normalizedScore; + } + + /** + * The normalized score, which is the score divided by the potential score. Any manual edits are + * included if they exist. + * @param normalizedScore normalizedScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardResult setNormalizedScore(java.lang.Double normalizedScore) { + this.normalizedScore = normalizedScore; + return this; + } + + /** + * The maximum potential overall score of the scorecard. Any questions answered using `na_value` + * are excluded from this calculation. + * @return value or {@code null} for none + */ + public java.lang.Double getPotentialScore() { + return potentialScore; + } + + /** + * The maximum potential overall score of the scorecard. Any questions answered using `na_value` + * are excluded from this calculation. + * @param potentialScore potentialScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardResult setPotentialScore(java.lang.Double potentialScore) { + this.potentialScore = potentialScore; + return this; + } + + /** + * Set of QaAnswers represented in the result. + * @return value or {@code null} for none + */ + public java.util.List getQaAnswers() { + return qaAnswers; + } + + /** + * Set of QaAnswers represented in the result. + * @param qaAnswers qaAnswers or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardResult setQaAnswers(java.util.List qaAnswers) { + this.qaAnswers = qaAnswers; + return this; + } + + /** + * The QaScorecardRevision scored by this result. + * @return value or {@code null} for none + */ + public java.lang.String getQaScorecardRevision() { + return qaScorecardRevision; + } + + /** + * The QaScorecardRevision scored by this result. + * @param qaScorecardRevision qaScorecardRevision or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardResult setQaScorecardRevision(java.lang.String qaScorecardRevision) { + this.qaScorecardRevision = qaScorecardRevision; + return this; + } + + /** + * Collection of tags and their scores. + * @return value or {@code null} for none + */ + public java.util.List getQaTagResults() { + return qaTagResults; + } + + /** + * Collection of tags and their scores. + * @param qaTagResults qaTagResults or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardResult setQaTagResults(java.util.List qaTagResults) { + this.qaTagResults = qaTagResults; + return this; + } + + /** + * The overall numerical score of the result, incorporating any manual edits if they exist. + * @return value or {@code null} for none + */ + public java.lang.Double getScore() { + return score; + } + + /** + * The overall numerical score of the result, incorporating any manual edits if they exist. + * @param score score or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardResult setScore(java.lang.Double score) { + this.score = score; + return this; + } + + /** + * List of all individual score sets. + * @return value or {@code null} for none + */ + public java.util.List getScoreSources() { + return scoreSources; + } + + /** + * List of all individual score sets. + * @param scoreSources scoreSources or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardResult setScoreSources(java.util.List scoreSources) { + this.scoreSources = scoreSources; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QaScorecardResult set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QaScorecardResult) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QaScorecardResult clone() { + return (GoogleCloudContactcenterinsightsV1QaScorecardResult) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult.java new file mode 100644 index 00000000000..cdb22eae647 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult.java @@ -0,0 +1,139 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Tags and their corresponding results. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult extends com.google.api.client.json.GenericJson { + + /** + * The normalized score the tag applies to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double normalizedScore; + + /** + * The potential score the tag applies to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double potentialScore; + + /** + * The score the tag applies to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double score; + + /** + * The tag the score applies to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tag; + + /** + * The normalized score the tag applies to. + * @return value or {@code null} for none + */ + public java.lang.Double getNormalizedScore() { + return normalizedScore; + } + + /** + * The normalized score the tag applies to. + * @param normalizedScore normalizedScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult setNormalizedScore(java.lang.Double normalizedScore) { + this.normalizedScore = normalizedScore; + return this; + } + + /** + * The potential score the tag applies to. + * @return value or {@code null} for none + */ + public java.lang.Double getPotentialScore() { + return potentialScore; + } + + /** + * The potential score the tag applies to. + * @param potentialScore potentialScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult setPotentialScore(java.lang.Double potentialScore) { + this.potentialScore = potentialScore; + return this; + } + + /** + * The score the tag applies to. + * @return value or {@code null} for none + */ + public java.lang.Double getScore() { + return score; + } + + /** + * The score the tag applies to. + * @param score score or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult setScore(java.lang.Double score) { + this.score = score; + return this; + } + + /** + * The tag the score applies to. + * @return value or {@code null} for none + */ + public java.lang.String getTag() { + return tag; + } + + /** + * The tag the score applies to. + * @param tag tag or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult setTag(java.lang.String tag) { + this.tag = tag; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult clone() { + return (GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource.java new file mode 100644 index 00000000000..be2c7714bbe --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource.java @@ -0,0 +1,173 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * A scorecard result may have multiple sets of scores from varying sources, one of which becomes + * the "main" answer above. A ScoreSource represents each individual set of scores. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource extends com.google.api.client.json.GenericJson { + + /** + * The normalized score, which is the score divided by the potential score. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double normalizedScore; + + /** + * The maximum potential overall score of the scorecard. Any questions answered using `na_value` + * are excluded from this calculation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double potentialScore; + + /** + * Collection of tags and their scores. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List qaTagResults; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudContactcenterinsightsV1QaScorecardResultQaTagResult.class); + } + + /** + * The overall numerical score of the result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double score; + + /** + * What created the score. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceType; + + /** + * The normalized score, which is the score divided by the potential score. + * @return value or {@code null} for none + */ + public java.lang.Double getNormalizedScore() { + return normalizedScore; + } + + /** + * The normalized score, which is the score divided by the potential score. + * @param normalizedScore normalizedScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource setNormalizedScore(java.lang.Double normalizedScore) { + this.normalizedScore = normalizedScore; + return this; + } + + /** + * The maximum potential overall score of the scorecard. Any questions answered using `na_value` + * are excluded from this calculation. + * @return value or {@code null} for none + */ + public java.lang.Double getPotentialScore() { + return potentialScore; + } + + /** + * The maximum potential overall score of the scorecard. Any questions answered using `na_value` + * are excluded from this calculation. + * @param potentialScore potentialScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource setPotentialScore(java.lang.Double potentialScore) { + this.potentialScore = potentialScore; + return this; + } + + /** + * Collection of tags and their scores. + * @return value or {@code null} for none + */ + public java.util.List getQaTagResults() { + return qaTagResults; + } + + /** + * Collection of tags and their scores. + * @param qaTagResults qaTagResults or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource setQaTagResults(java.util.List qaTagResults) { + this.qaTagResults = qaTagResults; + return this; + } + + /** + * The overall numerical score of the result. + * @return value or {@code null} for none + */ + public java.lang.Double getScore() { + return score; + } + + /** + * The overall numerical score of the result. + * @param score score or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource setScore(java.lang.Double score) { + this.score = score; + return this; + } + + /** + * What created the score. + * @return value or {@code null} for none + */ + public java.lang.String getSourceType() { + return sourceType; + } + + /** + * What created the score. + * @param sourceType sourceType or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource setSourceType(java.lang.String sourceType) { + this.sourceType = sourceType; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource clone() { + return (GoogleCloudContactcenterinsightsV1QaScorecardResultScoreSource) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaScorecardRevision.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaScorecardRevision.java new file mode 100644 index 00000000000..a56f826b5b6 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaScorecardRevision.java @@ -0,0 +1,172 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * A revision of a QaScorecard. Modifying published scorecard fields would invalidate existing + * scorecard results — the questions may have changed, or the score weighting will make existing + * scores impossible to understand. So changes must create a new revision, rather than modifying the + * existing resource. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1QaScorecardRevision extends com.google.api.client.json.GenericJson { + + /** + * Output only. Alternative IDs for this revision of the scorecard, e.g., `latest`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List alternateIds; + + /** + * Output only. The timestamp that the revision was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Identifier. The name of the scorecard revision. Format: + * projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The snapshot of the scorecard at the time of this revision's creation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1QaScorecard snapshot; + + /** + * Output only. State of the scorecard revision, indicating whether it's ready to be used in + * analysis. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. Alternative IDs for this revision of the scorecard, e.g., `latest`. + * @return value or {@code null} for none + */ + public java.util.List getAlternateIds() { + return alternateIds; + } + + /** + * Output only. Alternative IDs for this revision of the scorecard, e.g., `latest`. + * @param alternateIds alternateIds or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardRevision setAlternateIds(java.util.List alternateIds) { + this.alternateIds = alternateIds; + return this; + } + + /** + * Output only. The timestamp that the revision was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The timestamp that the revision was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardRevision setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Identifier. The name of the scorecard revision. Format: + * projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The name of the scorecard revision. Format: + * projects/{project}/locations/{location}/qaScorecards/{qa_scorecard}/revisions/{revision} + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardRevision setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The snapshot of the scorecard at the time of this revision's creation. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecard getSnapshot() { + return snapshot; + } + + /** + * The snapshot of the scorecard at the time of this revision's creation. + * @param snapshot snapshot or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardRevision setSnapshot(GoogleCloudContactcenterinsightsV1QaScorecard snapshot) { + this.snapshot = snapshot; + return this; + } + + /** + * Output only. State of the scorecard revision, indicating whether it's ready to be used in + * analysis. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. State of the scorecard revision, indicating whether it's ready to be used in + * analysis. + * @param state state or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaScorecardRevision setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QaScorecardRevision set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QaScorecardRevision) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QaScorecardRevision clone() { + return (GoogleCloudContactcenterinsightsV1QaScorecardRevision) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsMetadata.java new file mode 100644 index 00000000000..9287ff736b4 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsMetadata.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The metadata from querying metrics. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1QueryMetricsMetadata extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudContactcenterinsightsV1QueryMetricsMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QueryMetricsMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QueryMetricsMetadata clone() { + return (GoogleCloudContactcenterinsightsV1QueryMetricsMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsRequest.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsRequest.java new file mode 100644 index 00000000000..750dd8d8189 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsRequest.java @@ -0,0 +1,169 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The request for querying metrics. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1QueryMetricsRequest extends com.google.api.client.json.GenericJson { + + /** + * The dimensions that determine the grouping key for the query. Defaults to no dimension if this + * field is unspecified. If a dimension is specified, its key must also be specified. Each + * dimension's key must be unique. If a time granularity is also specified, metric values in the + * dimension will be bucketed by this granularity. Up to one dimension is supported for now. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dimensions; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1Dimension used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudContactcenterinsightsV1Dimension.class); + } + + /** + * Required. Filter to select a subset of conversations to compute the metrics. Must specify a + * window of the conversation create time to compute the metrics. The returned metrics will be + * from the range [DATE(starting create time), DATE(ending create time)). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** + * Measures to return. Defaults to all measures if this field is unspecified. A valid mask should + * traverse from the `measure` field from the response. For example, a path from a measure mask to + * get the conversation count is "conversation_measure.count". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String measureMask; + + /** + * The time granularity of each data point in the time series. Defaults to NONE if this field is + * unspecified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String timeGranularity; + + /** + * The dimensions that determine the grouping key for the query. Defaults to no dimension if this + * field is unspecified. If a dimension is specified, its key must also be specified. Each + * dimension's key must be unique. If a time granularity is also specified, metric values in the + * dimension will be bucketed by this granularity. Up to one dimension is supported for now. + * @return value or {@code null} for none + */ + public java.util.List getDimensions() { + return dimensions; + } + + /** + * The dimensions that determine the grouping key for the query. Defaults to no dimension if this + * field is unspecified. If a dimension is specified, its key must also be specified. Each + * dimension's key must be unique. If a time granularity is also specified, metric values in the + * dimension will be bucketed by this granularity. Up to one dimension is supported for now. + * @param dimensions dimensions or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsRequest setDimensions(java.util.List dimensions) { + this.dimensions = dimensions; + return this; + } + + /** + * Required. Filter to select a subset of conversations to compute the metrics. Must specify a + * window of the conversation create time to compute the metrics. The returned metrics will be + * from the range [DATE(starting create time), DATE(ending create time)). + * @return value or {@code null} for none + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Required. Filter to select a subset of conversations to compute the metrics. Must specify a + * window of the conversation create time to compute the metrics. The returned metrics will be + * from the range [DATE(starting create time), DATE(ending create time)). + * @param filter filter or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsRequest setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Measures to return. Defaults to all measures if this field is unspecified. A valid mask should + * traverse from the `measure` field from the response. For example, a path from a measure mask to + * get the conversation count is "conversation_measure.count". + * @return value or {@code null} for none + */ + public String getMeasureMask() { + return measureMask; + } + + /** + * Measures to return. Defaults to all measures if this field is unspecified. A valid mask should + * traverse from the `measure` field from the response. For example, a path from a measure mask to + * get the conversation count is "conversation_measure.count". + * @param measureMask measureMask or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsRequest setMeasureMask(String measureMask) { + this.measureMask = measureMask; + return this; + } + + /** + * The time granularity of each data point in the time series. Defaults to NONE if this field is + * unspecified. + * @return value or {@code null} for none + */ + public java.lang.String getTimeGranularity() { + return timeGranularity; + } + + /** + * The time granularity of each data point in the time series. Defaults to NONE if this field is + * unspecified. + * @param timeGranularity timeGranularity or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsRequest setTimeGranularity(java.lang.String timeGranularity) { + this.timeGranularity = timeGranularity; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QueryMetricsRequest set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QueryMetricsRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QueryMetricsRequest clone() { + return (GoogleCloudContactcenterinsightsV1QueryMetricsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponse.java new file mode 100644 index 00000000000..a8fdfa73548 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponse.java @@ -0,0 +1,151 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The response for querying metrics. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1QueryMetricsResponse extends com.google.api.client.json.GenericJson { + + /** + * Required. The location of the data. "projects/{project}/locations/{location}" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * The macro average slice contains aggregated averages across the selected dimension. i.e. if + * group_by agent is specified this field will contain the average across all agents. This field + * is only populated if the request specifies a Dimension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice macroAverageSlice; + + /** + * A slice contains a total and (if the request specified a time granularity) a time series of + * metric values. Each slice contains a unique combination of the cardinality of dimensions from + * the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List slices; + + /** + * The metrics last update time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Required. The location of the data. "projects/{project}/locations/{location}" + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * Required. The location of the data. "projects/{project}/locations/{location}" + * @param location location or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponse setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * The macro average slice contains aggregated averages across the selected dimension. i.e. if + * group_by agent is specified this field will contain the average across all agents. This field + * is only populated if the request specifies a Dimension. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice getMacroAverageSlice() { + return macroAverageSlice; + } + + /** + * The macro average slice contains aggregated averages across the selected dimension. i.e. if + * group_by agent is specified this field will contain the average across all agents. This field + * is only populated if the request specifies a Dimension. + * @param macroAverageSlice macroAverageSlice or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponse setMacroAverageSlice(GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice macroAverageSlice) { + this.macroAverageSlice = macroAverageSlice; + return this; + } + + /** + * A slice contains a total and (if the request specified a time granularity) a time series of + * metric values. Each slice contains a unique combination of the cardinality of dimensions from + * the request. + * @return value or {@code null} for none + */ + public java.util.List getSlices() { + return slices; + } + + /** + * A slice contains a total and (if the request specified a time granularity) a time series of + * metric values. Each slice contains a unique combination of the cardinality of dimensions from + * the request. + * @param slices slices or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponse setSlices(java.util.List slices) { + this.slices = slices; + return this; + } + + /** + * The metrics last update time. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * The metrics last update time. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponse setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QueryMetricsResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QueryMetricsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QueryMetricsResponse clone() { + return (GoogleCloudContactcenterinsightsV1QueryMetricsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice.java new file mode 100644 index 00000000000..996e566d73a --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice.java @@ -0,0 +1,131 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * A slice contains a total and (if the request specified a time granularity) a time series of + * metric values. Each slice contains a unique combination of the cardinality of dimensions from the + * request. For example, if the request specifies a single ISSUE dimension and it has a cardinality + * of 2 (i.e. the data used to compute the metrics has 2 issues in total), the response will have 2 + * slices: * Slice 1 -> dimensions=[Issue 1] * Slice 2 -> dimensions=[Issue 2] + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice extends com.google.api.client.json.GenericJson { + + /** + * A unique combination of dimensions that this slice represents. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dimensions; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1Dimension used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudContactcenterinsightsV1Dimension.class); + } + + /** + * A time series of metric values. This is only populated if the request specifies a time + * granularity other than NONE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries timeSeries; + + /** + * The total metric value. The interval of this data point is [starting create time, ending create + * time) from the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint total; + + /** + * A unique combination of dimensions that this slice represents. + * @return value or {@code null} for none + */ + public java.util.List getDimensions() { + return dimensions; + } + + /** + * A unique combination of dimensions that this slice represents. + * @param dimensions dimensions or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice setDimensions(java.util.List dimensions) { + this.dimensions = dimensions; + return this; + } + + /** + * A time series of metric values. This is only populated if the request specifies a time + * granularity other than NONE. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries getTimeSeries() { + return timeSeries; + } + + /** + * A time series of metric values. This is only populated if the request specifies a time + * granularity other than NONE. + * @param timeSeries timeSeries or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice setTimeSeries(GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries timeSeries) { + this.timeSeries = timeSeries; + return this; + } + + /** + * The total metric value. The interval of this data point is [starting create time, ending create + * time) from the request. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint getTotal() { + return total; + } + + /** + * The total metric value. The interval of this data point is [starting create time, ending create + * time) from the request. + * @param total total or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice setTotal(GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint total) { + this.total = total; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice clone() { + return (GoogleCloudContactcenterinsightsV1QueryMetricsResponseSlice) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint.java new file mode 100644 index 00000000000..78278837a69 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint.java @@ -0,0 +1,97 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * A data point contains the metric values mapped to an interval. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint extends com.google.api.client.json.GenericJson { + + /** + * The measure related to conversations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure conversationMeasure; + + /** + * The interval that this data point represents. * If this is the total data point, the interval + * is [starting create time, ending create time) from the request. * If this a data point from the + * time series, the interval is [time, time + time granularity from the request). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleTypeInterval interval; + + /** + * The measure related to conversations. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure getConversationMeasure() { + return conversationMeasure; + } + + /** + * The measure related to conversations. + * @param conversationMeasure conversationMeasure or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint setConversationMeasure(GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure conversationMeasure) { + this.conversationMeasure = conversationMeasure; + return this; + } + + /** + * The interval that this data point represents. * If this is the total data point, the interval + * is [starting create time, ending create time) from the request. * If this a data point from the + * time series, the interval is [time, time + time granularity from the request). + * @return value or {@code null} for none + */ + public GoogleTypeInterval getInterval() { + return interval; + } + + /** + * The interval that this data point represents. * If this is the total data point, the interval + * is [starting create time, ending create time) from the request. * If this a data point from the + * time series, the interval is [time, time + time granularity from the request). + * @param interval interval or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint setInterval(GoogleTypeInterval interval) { + this.interval = interval; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint clone() { + return (GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure.java new file mode 100644 index 00000000000..f5cae36df74 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure.java @@ -0,0 +1,286 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The measure related to conversations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure extends com.google.api.client.json.GenericJson { + + /** + * The average agent's sentiment score. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float averageAgentSentimentScore; + + /** + * The average client's sentiment score. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float averageClientSentimentScore; + + /** + * The average customer satisfaction rating. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double averageCustomerSatisfactionRating; + + /** + * The average duration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String averageDuration; + + /** + * Average QA normalized score. Will exclude 0's in average calculation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double averageQaNormalizedScore; + + /** + * Average QA normalized score averaged for questions averaged across all revisions of the parent + * scorecard. Will be only populated if the request specifies a dimension of QA_QUESTION_ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double averageQaQuestionNormalizedScore; + + /** + * The average silence percentage. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float averageSilencePercentage; + + /** + * The average turn count. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float averageTurnCount; + + /** + * The conversation count. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer conversationCount; + + /** + * Average QA normalized score for all the tags. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List qaTagScores; + + /** + * The average agent's sentiment score. + * @return value or {@code null} for none + */ + public java.lang.Float getAverageAgentSentimentScore() { + return averageAgentSentimentScore; + } + + /** + * The average agent's sentiment score. + * @param averageAgentSentimentScore averageAgentSentimentScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure setAverageAgentSentimentScore(java.lang.Float averageAgentSentimentScore) { + this.averageAgentSentimentScore = averageAgentSentimentScore; + return this; + } + + /** + * The average client's sentiment score. + * @return value or {@code null} for none + */ + public java.lang.Float getAverageClientSentimentScore() { + return averageClientSentimentScore; + } + + /** + * The average client's sentiment score. + * @param averageClientSentimentScore averageClientSentimentScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure setAverageClientSentimentScore(java.lang.Float averageClientSentimentScore) { + this.averageClientSentimentScore = averageClientSentimentScore; + return this; + } + + /** + * The average customer satisfaction rating. + * @return value or {@code null} for none + */ + public java.lang.Double getAverageCustomerSatisfactionRating() { + return averageCustomerSatisfactionRating; + } + + /** + * The average customer satisfaction rating. + * @param averageCustomerSatisfactionRating averageCustomerSatisfactionRating or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure setAverageCustomerSatisfactionRating(java.lang.Double averageCustomerSatisfactionRating) { + this.averageCustomerSatisfactionRating = averageCustomerSatisfactionRating; + return this; + } + + /** + * The average duration. + * @return value or {@code null} for none + */ + public String getAverageDuration() { + return averageDuration; + } + + /** + * The average duration. + * @param averageDuration averageDuration or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure setAverageDuration(String averageDuration) { + this.averageDuration = averageDuration; + return this; + } + + /** + * Average QA normalized score. Will exclude 0's in average calculation. + * @return value or {@code null} for none + */ + public java.lang.Double getAverageQaNormalizedScore() { + return averageQaNormalizedScore; + } + + /** + * Average QA normalized score. Will exclude 0's in average calculation. + * @param averageQaNormalizedScore averageQaNormalizedScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure setAverageQaNormalizedScore(java.lang.Double averageQaNormalizedScore) { + this.averageQaNormalizedScore = averageQaNormalizedScore; + return this; + } + + /** + * Average QA normalized score averaged for questions averaged across all revisions of the parent + * scorecard. Will be only populated if the request specifies a dimension of QA_QUESTION_ID. + * @return value or {@code null} for none + */ + public java.lang.Double getAverageQaQuestionNormalizedScore() { + return averageQaQuestionNormalizedScore; + } + + /** + * Average QA normalized score averaged for questions averaged across all revisions of the parent + * scorecard. Will be only populated if the request specifies a dimension of QA_QUESTION_ID. + * @param averageQaQuestionNormalizedScore averageQaQuestionNormalizedScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure setAverageQaQuestionNormalizedScore(java.lang.Double averageQaQuestionNormalizedScore) { + this.averageQaQuestionNormalizedScore = averageQaQuestionNormalizedScore; + return this; + } + + /** + * The average silence percentage. + * @return value or {@code null} for none + */ + public java.lang.Float getAverageSilencePercentage() { + return averageSilencePercentage; + } + + /** + * The average silence percentage. + * @param averageSilencePercentage averageSilencePercentage or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure setAverageSilencePercentage(java.lang.Float averageSilencePercentage) { + this.averageSilencePercentage = averageSilencePercentage; + return this; + } + + /** + * The average turn count. + * @return value or {@code null} for none + */ + public java.lang.Float getAverageTurnCount() { + return averageTurnCount; + } + + /** + * The average turn count. + * @param averageTurnCount averageTurnCount or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure setAverageTurnCount(java.lang.Float averageTurnCount) { + this.averageTurnCount = averageTurnCount; + return this; + } + + /** + * The conversation count. + * @return value or {@code null} for none + */ + public java.lang.Integer getConversationCount() { + return conversationCount; + } + + /** + * The conversation count. + * @param conversationCount conversationCount or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure setConversationCount(java.lang.Integer conversationCount) { + this.conversationCount = conversationCount; + return this; + } + + /** + * Average QA normalized score for all the tags. + * @return value or {@code null} for none + */ + public java.util.List getQaTagScores() { + return qaTagScores; + } + + /** + * Average QA normalized score for all the tags. + * @param qaTagScores qaTagScores or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure setQaTagScores(java.util.List qaTagScores) { + this.qaTagScores = qaTagScores; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure clone() { + return (GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasure) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore.java new file mode 100644 index 00000000000..72d0ce52f57 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore.java @@ -0,0 +1,91 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Average QA normalized score for the tag. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore extends com.google.api.client.json.GenericJson { + + /** + * Average tag normalized score per tag. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double averageTagNormalizedScore; + + /** + * Tag name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tag; + + /** + * Average tag normalized score per tag. + * @return value or {@code null} for none + */ + public java.lang.Double getAverageTagNormalizedScore() { + return averageTagNormalizedScore; + } + + /** + * Average tag normalized score per tag. + * @param averageTagNormalizedScore averageTagNormalizedScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore setAverageTagNormalizedScore(java.lang.Double averageTagNormalizedScore) { + this.averageTagNormalizedScore = averageTagNormalizedScore; + return this; + } + + /** + * Tag name. + * @return value or {@code null} for none + */ + public java.lang.String getTag() { + return tag; + } + + /** + * Tag name. + * @param tag tag or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore setTag(java.lang.String tag) { + this.tag = tag; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore clone() { + return (GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries.java new file mode 100644 index 00000000000..4969c3876c2 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries.java @@ -0,0 +1,73 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * A time series of metric values. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries extends com.google.api.client.json.GenericJson { + + /** + * The data points that make up the time series . + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dataPoints; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceDataPoint.class); + } + + /** + * The data points that make up the time series . + * @return value or {@code null} for none + */ + public java.util.List getDataPoints() { + return dataPoints; + } + + /** + * The data points that make up the time series . + * @param dataPoints dataPoints or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries setDataPoints(java.util.List dataPoints) { + this.dataPoints = dataPoints; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries clone() { + return (GoogleCloudContactcenterinsightsV1QueryMetricsResponseSliceTimeSeries) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest.java new file mode 100644 index 00000000000..d5d896518db --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Request for TuneQaScorecardRevision endpoint. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. Filter for selecting the feedback labels that needs to be used for training. This + * filter can be used to limit the feedback labels used for tuning to a feedback labels created or + * updated for a specific time-window etc. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** + * Optional. Run in validate only mode, no fine tuning will actually run. Data quality validations + * like training data distributions will run. Even when set to false, the data quality validations + * will still run but once the validations complete we will proceed with the fine tune, if + * applicable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean validateOnly; + + /** + * Required. Filter for selecting the feedback labels that needs to be used for training. This + * filter can be used to limit the feedback labels used for tuning to a feedback labels created or + * updated for a specific time-window etc. + * @return value or {@code null} for none + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Required. Filter for selecting the feedback labels that needs to be used for training. This + * filter can be used to limit the feedback labels used for tuning to a feedback labels created or + * updated for a specific time-window etc. + * @param filter filter or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Run in validate only mode, no fine tuning will actually run. Data quality validations + * like training data distributions will run. Even when set to false, the data quality validations + * will still run but once the validations complete we will proceed with the fine tune, if + * applicable. + * @return value or {@code null} for none + */ + public java.lang.Boolean getValidateOnly() { + return validateOnly; + } + + /** + * Optional. Run in validate only mode, no fine tuning will actually run. Data quality validations + * like training data distributions will run. Even when set to false, the data quality validations + * will still run but once the validations complete we will proceed with the fine tune, if + * applicable. + * @param validateOnly validateOnly or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest setValidateOnly(java.lang.Boolean validateOnly) { + this.validateOnly = validateOnly; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest clone() { + return (GoogleCloudContactcenterinsightsV1TuneQaScorecardRevisionRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest.java new file mode 100644 index 00000000000..6f0a47ba7d0 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The request to undeploy a QaScorecardRevision + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest clone() { + return (GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata.java index 5cf8ad92f4a..f1b21a9c2ab 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata.java @@ -65,6 +65,13 @@ public final class GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAna @com.google.api.client.util.Key private java.util.Map phraseMatchers; + /** + * Results of scoring QaScorecards. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List qaScorecardResults; + /** * Overall conversation-level sentiment for each channel of the call. * The value may be {@code null}. @@ -164,6 +171,23 @@ public GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadat return this; } + /** + * Results of scoring QaScorecards. + * @return value or {@code null} for none + */ + public java.util.List getQaScorecardResults() { + return qaScorecardResults; + } + + /** + * Results of scoring QaScorecards. + * @param qaScorecardResults qaScorecardResults or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata setQaScorecardResults(java.util.List qaScorecardResults) { + this.qaScorecardResults = qaScorecardResults; + return this; + } + /** * Overall conversation-level sentiment for each channel of the call. * @return value or {@code null} for none diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector.java index 28c0d36ff2f..1e8b24ea404 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector.java @@ -50,6 +50,13 @@ public final class GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector ext @com.google.api.client.util.Key private java.util.List phraseMatchers; + /** + * Configuration for the QA annotator. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig qaConfig; + /** * Whether to run the entity annotator. * The value may be {@code null}. @@ -86,6 +93,13 @@ public final class GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector ext @com.google.api.client.util.Key private java.lang.Boolean runPhraseMatcherAnnotator; + /** + * Whether to run the QA annotator. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean runQaAnnotator; + /** * Whether to run the sentiment annotator. * The value may be {@code null}. @@ -160,6 +174,23 @@ public GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector setPhraseMatche return this; } + /** + * Configuration for the QA annotator. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig getQaConfig() { + return qaConfig; + } + + /** + * Configuration for the QA annotator. + * @param qaConfig qaConfig or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector setQaConfig(GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig qaConfig) { + this.qaConfig = qaConfig; + return this; + } + /** * Whether to run the entity annotator. * @return value or {@code null} for none @@ -247,6 +278,23 @@ public GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector setRunPhraseMat return this; } + /** + * Whether to run the QA annotator. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRunQaAnnotator() { + return runQaAnnotator; + } + + /** + * Whether to run the QA annotator. + * @param runQaAnnotator runQaAnnotator or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector setRunQaAnnotator(java.lang.Boolean runQaAnnotator) { + this.runQaAnnotator = runQaAnnotator; + return this; + } + /** * Whether to run the sentiment annotator. * @return value or {@code null} for none diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig.java new file mode 100644 index 00000000000..bd3f27df66e --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Configuration for the QA feature. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig extends com.google.api.client.json.GenericJson { + + /** + * A manual list of scorecards to score. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList scorecardList; + + /** + * A manual list of scorecards to score. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList getScorecardList() { + return scorecardList; + } + + /** + * A manual list of scorecards to score. + * @param scorecardList scorecardList or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig setScorecardList(GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList scorecardList) { + this.scorecardList = scorecardList; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig clone() { + return (GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList.java new file mode 100644 index 00000000000..e7a4710e49d --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Container for a list of scorecards. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList extends com.google.api.client.json.GenericJson { + + /** + * List of QaScorecardRevisions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List qaScorecardRevisions; + + /** + * List of QaScorecardRevisions. + * @return value or {@code null} for none + */ + public java.util.List getQaScorecardRevisions() { + return qaScorecardRevisions; + } + + /** + * List of QaScorecardRevisions. + * @param qaScorecardRevisions qaScorecardRevisions or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList setQaScorecardRevisions(java.util.List qaScorecardRevisions) { + this.qaScorecardRevisions = qaScorecardRevisions; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList clone() { + return (GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorQaConfigScorecardList) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1Conversation.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1Conversation.java index 5ade752c63f..72d0dcf88f8 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1Conversation.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1Conversation.java @@ -82,7 +82,7 @@ public final class GoogleCloudContactcenterinsightsV1alpha1Conversation extends private String expireTime; /** - * A map for the user to specify any custom fields. A maximum of 20 labels per conversation is + * A map for the user to specify any custom fields. A maximum of 100 labels per conversation is * allowed, with a maximum of 256 characters per entry. * The value may be {@code null}. */ @@ -117,6 +117,14 @@ public final class GoogleCloudContactcenterinsightsV1alpha1Conversation extends @com.google.api.client.util.Key private java.lang.String medium; + /** + * Input only. JSON metadata encoded as a string. This field is primarily used by Insights + * integrations with various telphony systems and must be in one of Insight's supported formats. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String metadataJson; + /** * Immutable. The resource name of the conversation. Format: * projects/{project}/locations/{location}/conversations/{conversation} @@ -306,7 +314,7 @@ public GoogleCloudContactcenterinsightsV1alpha1Conversation setExpireTime(String } /** - * A map for the user to specify any custom fields. A maximum of 20 labels per conversation is + * A map for the user to specify any custom fields. A maximum of 100 labels per conversation is * allowed, with a maximum of 256 characters per entry. * @return value or {@code null} for none */ @@ -315,7 +323,7 @@ public java.util.Map getLabels() { } /** - * A map for the user to specify any custom fields. A maximum of 20 labels per conversation is + * A map for the user to specify any custom fields. A maximum of 100 labels per conversation is * allowed, with a maximum of 256 characters per entry. * @param labels labels or {@code null} for none */ @@ -392,6 +400,25 @@ public GoogleCloudContactcenterinsightsV1alpha1Conversation setMedium(java.lang. return this; } + /** + * Input only. JSON metadata encoded as a string. This field is primarily used by Insights + * integrations with various telphony systems and must be in one of Insight's supported formats. + * @return value or {@code null} for none + */ + public java.lang.String getMetadataJson() { + return metadataJson; + } + + /** + * Input only. JSON metadata encoded as a string. This field is primarily used by Insights + * integrations with various telphony systems and must be in one of Insight's supported formats. + * @param metadataJson metadataJson or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1Conversation setMetadataJson(java.lang.String metadataJson) { + this.metadataJson = metadataJson; + return this; + } + /** * Immutable. The resource name of the conversation. Format: * projects/{project}/locations/{location}/conversations/{conversation} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo.java index feb146361d7..be66f137ee3 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo.java @@ -37,6 +37,13 @@ public final class GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMe @com.google.api.client.util.Key private java.lang.String agentId; + /** + * The agent type, e.g. HUMAN_AGENT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentType; + /** * The agent's name. * The value may be {@code null}. @@ -52,12 +59,27 @@ public final class GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMe private java.lang.String dispositionCode; /** - * A user-specified string representing the agent's team. + * The agent's location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * A user-specified string representing the agent's team. Deprecated in favor of the `teams` + * field. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String team; + /** + * User-specified strings representing the agent's teams. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List teams; + /** * A user-specified string representing the agent. * @return value or {@code null} for none @@ -75,6 +97,23 @@ public GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentI return this; } + /** + * The agent type, e.g. HUMAN_AGENT. + * @return value or {@code null} for none + */ + public java.lang.String getAgentType() { + return agentType; + } + + /** + * The agent type, e.g. HUMAN_AGENT. + * @param agentType agentType or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo setAgentType(java.lang.String agentType) { + this.agentType = agentType; + return this; + } + /** * The agent's name. * @return value or {@code null} for none @@ -110,7 +149,25 @@ public GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentI } /** - * A user-specified string representing the agent's team. + * The agent's location. + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * The agent's location. + * @param location location or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * A user-specified string representing the agent's team. Deprecated in favor of the `teams` + * field. * @return value or {@code null} for none */ public java.lang.String getTeam() { @@ -118,7 +175,8 @@ public java.lang.String getTeam() { } /** - * A user-specified string representing the agent's team. + * A user-specified string representing the agent's team. Deprecated in favor of the `teams` + * field. * @param team team or {@code null} for none */ public GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo setTeam(java.lang.String team) { @@ -126,6 +184,23 @@ public GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentI return this; } + /** + * User-specified strings representing the agent's teams. + * @return value or {@code null} for none + */ + public java.util.List getTeams() { + return teams; + } + + /** + * User-specified strings representing the agent's teams. + * @param teams teams or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo setTeams(java.util.List teams) { + this.teams = teams; + return this; + } + @Override public GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo set(String fieldName, Object value) { return (GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo) super.set(fieldName, value); diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1CreateIssueMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1CreateIssueMetadata.java new file mode 100644 index 00000000000..5d2b66bb959 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1CreateIssueMetadata.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Metadata for creating an issue. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1CreateIssueMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * The original request for creation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest request; + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1CreateIssueMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1CreateIssueMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * The original request for creation. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest getRequest() { + return request; + } + + /** + * The original request for creation. + * @param request request or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1CreateIssueMetadata setRequest(GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest request) { + this.request = request; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1CreateIssueMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1CreateIssueMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1CreateIssueMetadata clone() { + return (GoogleCloudContactcenterinsightsV1alpha1CreateIssueMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest.java new file mode 100644 index 00000000000..15466aeedf1 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest.java @@ -0,0 +1,91 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The request to create an issue. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The values for the new issue. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1Issue issue; + + /** + * Required. The parent resource of the issue. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** + * Required. The values for the new issue. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1Issue getIssue() { + return issue; + } + + /** + * Required. The values for the new issue. + * @param issue issue or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest setIssue(GoogleCloudContactcenterinsightsV1alpha1Issue issue) { + this.issue = issue; + return this; + } + + /** + * Required. The parent resource of the issue. + * @return value or {@code null} for none + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource of the issue. + * @param parent parent or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest clone() { + return (GoogleCloudContactcenterinsightsV1alpha1CreateIssueRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1Dimension.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1Dimension.java new file mode 100644 index 00000000000..2f1b67b2b93 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1Dimension.java @@ -0,0 +1,164 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * A dimension determines the grouping key for the query. In SQL terms, these would be part of both + * the "SELECT" and "GROUP BY" clauses. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1Dimension extends com.google.api.client.json.GenericJson { + + /** + * Output only. Metadata about the agent dimension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata agentDimensionMetadata; + + /** + * The key of the dimension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dimensionKey; + + /** + * Output only. Metadata about the issue dimension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata issueDimensionMetadata; + + /** + * Output only. Metadata about the QA question-answer dimension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata qaQuestionAnswerDimensionMetadata; + + /** + * Output only. Metadata about the QA question dimension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata qaQuestionDimensionMetadata; + + /** + * Output only. Metadata about the agent dimension. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata getAgentDimensionMetadata() { + return agentDimensionMetadata; + } + + /** + * Output only. Metadata about the agent dimension. + * @param agentDimensionMetadata agentDimensionMetadata or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1Dimension setAgentDimensionMetadata(GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata agentDimensionMetadata) { + this.agentDimensionMetadata = agentDimensionMetadata; + return this; + } + + /** + * The key of the dimension. + * @return value or {@code null} for none + */ + public java.lang.String getDimensionKey() { + return dimensionKey; + } + + /** + * The key of the dimension. + * @param dimensionKey dimensionKey or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1Dimension setDimensionKey(java.lang.String dimensionKey) { + this.dimensionKey = dimensionKey; + return this; + } + + /** + * Output only. Metadata about the issue dimension. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata getIssueDimensionMetadata() { + return issueDimensionMetadata; + } + + /** + * Output only. Metadata about the issue dimension. + * @param issueDimensionMetadata issueDimensionMetadata or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1Dimension setIssueDimensionMetadata(GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata issueDimensionMetadata) { + this.issueDimensionMetadata = issueDimensionMetadata; + return this; + } + + /** + * Output only. Metadata about the QA question-answer dimension. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata getQaQuestionAnswerDimensionMetadata() { + return qaQuestionAnswerDimensionMetadata; + } + + /** + * Output only. Metadata about the QA question-answer dimension. + * @param qaQuestionAnswerDimensionMetadata qaQuestionAnswerDimensionMetadata or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1Dimension setQaQuestionAnswerDimensionMetadata(GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata qaQuestionAnswerDimensionMetadata) { + this.qaQuestionAnswerDimensionMetadata = qaQuestionAnswerDimensionMetadata; + return this; + } + + /** + * Output only. Metadata about the QA question dimension. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata getQaQuestionDimensionMetadata() { + return qaQuestionDimensionMetadata; + } + + /** + * Output only. Metadata about the QA question dimension. + * @param qaQuestionDimensionMetadata qaQuestionDimensionMetadata or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1Dimension setQaQuestionDimensionMetadata(GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata qaQuestionDimensionMetadata) { + this.qaQuestionDimensionMetadata = qaQuestionDimensionMetadata; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1Dimension set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1Dimension) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1Dimension clone() { + return (GoogleCloudContactcenterinsightsV1alpha1Dimension) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata.java new file mode 100644 index 00000000000..336950c4c31 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Metadata about the agent dimension. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata extends com.google.api.client.json.GenericJson { + + /** + * Optional. The agent's name + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentDisplayName; + + /** + * Optional. A user-specified string representing the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentId; + + /** + * Optional. A user-specified string representing the agent's team. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentTeam; + + /** + * Optional. The agent's name + * @return value or {@code null} for none + */ + public java.lang.String getAgentDisplayName() { + return agentDisplayName; + } + + /** + * Optional. The agent's name + * @param agentDisplayName agentDisplayName or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata setAgentDisplayName(java.lang.String agentDisplayName) { + this.agentDisplayName = agentDisplayName; + return this; + } + + /** + * Optional. A user-specified string representing the agent. + * @return value or {@code null} for none + */ + public java.lang.String getAgentId() { + return agentId; + } + + /** + * Optional. A user-specified string representing the agent. + * @param agentId agentId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata setAgentId(java.lang.String agentId) { + this.agentId = agentId; + return this; + } + + /** + * Optional. A user-specified string representing the agent's team. + * @return value or {@code null} for none + */ + public java.lang.String getAgentTeam() { + return agentTeam; + } + + /** + * Optional. A user-specified string representing the agent's team. + * @param agentTeam agentTeam or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata setAgentTeam(java.lang.String agentTeam) { + this.agentTeam = agentTeam; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata clone() { + return (GoogleCloudContactcenterinsightsV1alpha1DimensionAgentDimensionMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata.java new file mode 100644 index 00000000000..883d82c4cce --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Metadata about the issue dimension. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata extends com.google.api.client.json.GenericJson { + + /** + * The issue display name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String issueDisplayName; + + /** + * The issue ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String issueId; + + /** + * The parent issue model ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String issueModelId; + + /** + * The issue display name. + * @return value or {@code null} for none + */ + public java.lang.String getIssueDisplayName() { + return issueDisplayName; + } + + /** + * The issue display name. + * @param issueDisplayName issueDisplayName or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata setIssueDisplayName(java.lang.String issueDisplayName) { + this.issueDisplayName = issueDisplayName; + return this; + } + + /** + * The issue ID. + * @return value or {@code null} for none + */ + public java.lang.String getIssueId() { + return issueId; + } + + /** + * The issue ID. + * @param issueId issueId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata setIssueId(java.lang.String issueId) { + this.issueId = issueId; + return this; + } + + /** + * The parent issue model ID. + * @return value or {@code null} for none + */ + public java.lang.String getIssueModelId() { + return issueModelId; + } + + /** + * The parent issue model ID. + * @param issueModelId issueModelId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata setIssueModelId(java.lang.String issueModelId) { + this.issueModelId = issueModelId; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata clone() { + return (GoogleCloudContactcenterinsightsV1alpha1DimensionIssueDimensionMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata.java new file mode 100644 index 00000000000..eac136c4912 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata.java @@ -0,0 +1,140 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Metadata about the QA question-answer dimension. This is useful for showing the answer + * distribution for questions for a given scorecard. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata extends com.google.api.client.json.GenericJson { + + /** + * Optional. The full body of the question. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String answerValue; + + /** + * Optional. The QA question ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String qaQuestionId; + + /** + * Optional. The QA scorecard ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String qaScorecardId; + + /** + * Optional. The full body of the question. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String questionBody; + + /** + * Optional. The full body of the question. + * @return value or {@code null} for none + */ + public java.lang.String getAnswerValue() { + return answerValue; + } + + /** + * Optional. The full body of the question. + * @param answerValue answerValue or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata setAnswerValue(java.lang.String answerValue) { + this.answerValue = answerValue; + return this; + } + + /** + * Optional. The QA question ID. + * @return value or {@code null} for none + */ + public java.lang.String getQaQuestionId() { + return qaQuestionId; + } + + /** + * Optional. The QA question ID. + * @param qaQuestionId qaQuestionId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata setQaQuestionId(java.lang.String qaQuestionId) { + this.qaQuestionId = qaQuestionId; + return this; + } + + /** + * Optional. The QA scorecard ID. + * @return value or {@code null} for none + */ + public java.lang.String getQaScorecardId() { + return qaScorecardId; + } + + /** + * Optional. The QA scorecard ID. + * @param qaScorecardId qaScorecardId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata setQaScorecardId(java.lang.String qaScorecardId) { + this.qaScorecardId = qaScorecardId; + return this; + } + + /** + * Optional. The full body of the question. + * @return value or {@code null} for none + */ + public java.lang.String getQuestionBody() { + return questionBody; + } + + /** + * Optional. The full body of the question. + * @param questionBody questionBody or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata setQuestionBody(java.lang.String questionBody) { + this.questionBody = questionBody; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata clone() { + return (GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionAnswerDimensionMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata.java new file mode 100644 index 00000000000..01637de81d7 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Metadata about the QA question dimension. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata extends com.google.api.client.json.GenericJson { + + /** + * Optional. The QA question ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String qaQuestionId; + + /** + * Optional. The QA scorecard ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String qaScorecardId; + + /** + * Optional. The full body of the question. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String questionBody; + + /** + * Optional. The QA question ID. + * @return value or {@code null} for none + */ + public java.lang.String getQaQuestionId() { + return qaQuestionId; + } + + /** + * Optional. The QA question ID. + * @param qaQuestionId qaQuestionId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata setQaQuestionId(java.lang.String qaQuestionId) { + this.qaQuestionId = qaQuestionId; + return this; + } + + /** + * Optional. The QA scorecard ID. + * @return value or {@code null} for none + */ + public java.lang.String getQaScorecardId() { + return qaScorecardId; + } + + /** + * Optional. The QA scorecard ID. + * @param qaScorecardId qaScorecardId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata setQaScorecardId(java.lang.String qaScorecardId) { + this.qaScorecardId = qaScorecardId; + return this; + } + + /** + * Optional. The full body of the question. + * @return value or {@code null} for none + */ + public java.lang.String getQuestionBody() { + return questionBody; + } + + /** + * Optional. The full body of the question. + * @param questionBody questionBody or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata setQuestionBody(java.lang.String questionBody) { + this.questionBody = questionBody; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata clone() { + return (GoogleCloudContactcenterinsightsV1alpha1DimensionQaQuestionDimensionMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec.java new file mode 100644 index 00000000000..1eeea6b9ea6 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec.java @@ -0,0 +1,104 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * A customer-managed encryption key specification that can be applied to all created resources + * (e.g. `Conversation`). + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of customer-managed encryption key that is used to secure a resource and its + * sub-resources. If empty, the resource is secured by our default encryption key. Only the key in + * the same location as this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String kmsKey; + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The name of customer-managed encryption key that is used to secure a resource and its + * sub-resources. If empty, the resource is secured by our default encryption key. Only the key in + * the same location as this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * @return value or {@code null} for none + */ + public java.lang.String getKmsKey() { + return kmsKey; + } + + /** + * Required. The name of customer-managed encryption key that is used to secure a resource and its + * sub-resources. If empty, the resource is secured by our default encryption key. Only the key in + * the same location as this resource is allowed to be used for encryption. Format: + * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}` + * @param kmsKey kmsKey or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec setKmsKey(java.lang.String kmsKey) { + this.kmsKey = kmsKey; + return this; + } + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. The resource name of the encryption key specification resource. Format: + * projects/{project}/locations/{location}/encryptionSpec + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec clone() { + return (GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel.java new file mode 100644 index 00000000000..de5153cfbc6 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel.java @@ -0,0 +1,190 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Represents a conversation, resource, and label provided by the user. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel extends com.google.api.client.json.GenericJson { + + /** + * Output only. Create time of the label. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * String label. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String label; + + /** + * Resource name of the resource to be labeled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String labeledResource; + + /** + * Immutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{location}/ + * conversations/{conversation}/feedbackLabels/{feedback_label} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * QaAnswer label. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue qaAnswerLabel; + + /** + * Output only. Update time of the label. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. Create time of the label. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Create time of the label. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * String label. + * @return value or {@code null} for none + */ + public java.lang.String getLabel() { + return label; + } + + /** + * String label. + * @param label label or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel setLabel(java.lang.String label) { + this.label = label; + return this; + } + + /** + * Resource name of the resource to be labeled. + * @return value or {@code null} for none + */ + public java.lang.String getLabeledResource() { + return labeledResource; + } + + /** + * Resource name of the resource to be labeled. + * @param labeledResource labeledResource or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel setLabeledResource(java.lang.String labeledResource) { + this.labeledResource = labeledResource; + return this; + } + + /** + * Immutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{location}/ + * conversations/{conversation}/feedbackLabels/{feedback_label} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. Resource name of the FeedbackLabel. Format: projects/{project}/locations/{location}/ + * conversations/{conversation}/feedbackLabels/{feedback_label} + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * QaAnswer label. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue getQaAnswerLabel() { + return qaAnswerLabel; + } + + /** + * QaAnswer label. + * @param qaAnswerLabel qaAnswerLabel or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel setQaAnswerLabel(GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue qaAnswerLabel) { + this.qaAnswerLabel = qaAnswerLabel; + return this; + } + + /** + * Output only. Update time of the label. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Update time of the label. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel clone() { + return (GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse.java index 0084a9e07a4..245bd49f488 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse.java @@ -30,6 +30,30 @@ @SuppressWarnings("javadoc") public final class GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse extends com.google.api.client.json.GenericJson { + /** + * The issue model that was imported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1IssueModel issueModel; + + /** + * The issue model that was imported. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1IssueModel getIssueModel() { + return issueModel; + } + + /** + * The issue model that was imported. + * @param issueModel issueModel or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse setIssueModel(GoogleCloudContactcenterinsightsV1alpha1IssueModel issueModel) { + this.issueModel = issueModel; + return this; + } + @Override public GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse set(String fieldName, Object value) { return (GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse) super.set(fieldName, value); diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource.java index ffa8743645d..213d3c3fdec 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource.java @@ -47,7 +47,7 @@ public final class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRe /** * Optional. Custom keys to extract as conversation labels from metadata files in * `metadata_bucket_uri`. Keys not included in this field will be ignored. Note that there is a - * limit of 20 labels per conversation. + * limit of 100 labels per conversation. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -101,7 +101,7 @@ public GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSour /** * Optional. Custom keys to extract as conversation labels from metadata files in * `metadata_bucket_uri`. Keys not included in this field will be ignored. Note that there is a - * limit of 20 labels per conversation. + * limit of 100 labels per conversation. * @return value or {@code null} for none */ public java.util.List getCustomMetadataKeys() { @@ -111,7 +111,7 @@ public java.util.List getCustomMetadataKeys() { /** * Optional. Custom keys to extract as conversation labels from metadata files in * `metadata_bucket_uri`. Keys not included in this field will be ignored. Note that there is a - * limit of 20 labels per conversation. + * limit of 100 labels per conversation. * @param customMetadataKeys customMetadataKeys or {@code null} for none */ public GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource setCustomMetadataKeys(java.util.List customMetadataKeys) { diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata.java new file mode 100644 index 00000000000..23cce7065a0 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata.java @@ -0,0 +1,142 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Metadata for initializing a location-level encryption specification. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Partial errors during initializing operation that might cause the operation output to be + * incomplete. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List partialErrors; + + /** + * Output only. The original request for initialization. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest request; + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Partial errors during initializing operation that might cause the operation output to be + * incomplete. + * @return value or {@code null} for none + */ + public java.util.List getPartialErrors() { + return partialErrors; + } + + /** + * Partial errors during initializing operation that might cause the operation output to be + * incomplete. + * @param partialErrors partialErrors or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata setPartialErrors(java.util.List partialErrors) { + this.partialErrors = partialErrors; + return this; + } + + /** + * Output only. The original request for initialization. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest getRequest() { + return request; + } + + /** + * Output only. The original request for initialization. + * @param request request or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata setRequest(GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest request) { + this.request = request; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata clone() { + return (GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest.java new file mode 100644 index 00000000000..cebf54b8eed --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest.java @@ -0,0 +1,76 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The request to initialize a location-level encryption specification. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The encryption spec used for CMEK encryption. It is required that the kms key is in + * the same region as the endpoint. The same key will be used for all provisioned resources, if + * encryption is available. If the `kms_key_name` field is left empty, no encryption will be + * enforced. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec encryptionSpec; + + /** + * Required. The encryption spec used for CMEK encryption. It is required that the kms key is in + * the same region as the endpoint. The same key will be used for all provisioned resources, if + * encryption is available. If the `kms_key_name` field is left empty, no encryption will be + * enforced. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec getEncryptionSpec() { + return encryptionSpec; + } + + /** + * Required. The encryption spec used for CMEK encryption. It is required that the kms key is in + * the same region as the endpoint. The same key will be used for all provisioned resources, if + * encryption is available. If the `kms_key_name` field is left empty, no encryption will be + * enforced. + * @param encryptionSpec encryptionSpec or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest setEncryptionSpec(GoogleCloudContactcenterinsightsV1alpha1EncryptionSpec encryptionSpec) { + this.encryptionSpec = encryptionSpec; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest clone() { + return (GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse.java new file mode 100644 index 00000000000..231932add32 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The response to initialize a location-level encryption specification. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse clone() { + return (GoogleCloudContactcenterinsightsV1alpha1InitializeEncryptionSpecResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1Issue.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1Issue.java new file mode 100644 index 00000000000..6dbeaae6ec2 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1Issue.java @@ -0,0 +1,190 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The issue resource. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1Issue extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time at which this issue was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Representative description of the issue. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayDescription; + + /** + * The representative name for the issue. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Immutable. The resource name of the issue. Format: + * projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Resource names of the sample representative utterances that match to this issue. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List sampleUtterances; + + /** + * Output only. The most recent time that this issue was updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. The time at which this issue was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time at which this issue was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1Issue setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Representative description of the issue. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayDescription() { + return displayDescription; + } + + /** + * Representative description of the issue. + * @param displayDescription displayDescription or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1Issue setDisplayDescription(java.lang.String displayDescription) { + this.displayDescription = displayDescription; + return this; + } + + /** + * The representative name for the issue. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The representative name for the issue. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1Issue setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Immutable. The resource name of the issue. Format: + * projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. The resource name of the issue. Format: + * projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1Issue setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Resource names of the sample representative utterances that match to this issue. + * @return value or {@code null} for none + */ + public java.util.List getSampleUtterances() { + return sampleUtterances; + } + + /** + * Output only. Resource names of the sample representative utterances that match to this issue. + * @param sampleUtterances sampleUtterances or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1Issue setSampleUtterances(java.util.List sampleUtterances) { + this.sampleUtterances = sampleUtterances; + return this; + } + + /** + * Output only. The most recent time that this issue was updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The most recent time that this issue was updated. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1Issue setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1Issue set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1Issue) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1Issue clone() { + return (GoogleCloudContactcenterinsightsV1alpha1Issue) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1ListAllFeedbackLabelsResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1ListAllFeedbackLabelsResponse.java new file mode 100644 index 00000000000..bb63db32596 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1ListAllFeedbackLabelsResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The response for listing all feedback labels. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1ListAllFeedbackLabelsResponse extends com.google.api.client.json.GenericJson { + + /** + * The feedback labels that match the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List feedbackLabels; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel.class); + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The feedback labels that match the request. + * @return value or {@code null} for none + */ + public java.util.List getFeedbackLabels() { + return feedbackLabels; + } + + /** + * The feedback labels that match the request. + * @param feedbackLabels feedbackLabels or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1ListAllFeedbackLabelsResponse setFeedbackLabels(java.util.List feedbackLabels) { + this.feedbackLabels = feedbackLabels; + return this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1ListAllFeedbackLabelsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1ListAllFeedbackLabelsResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1ListAllFeedbackLabelsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1ListAllFeedbackLabelsResponse clone() { + return (GoogleCloudContactcenterinsightsV1alpha1ListAllFeedbackLabelsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1ListFeedbackLabelsResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1ListFeedbackLabelsResponse.java new file mode 100644 index 00000000000..9628793a20e --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1ListFeedbackLabelsResponse.java @@ -0,0 +1,97 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The response for listing feedback labels. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1ListFeedbackLabelsResponse extends com.google.api.client.json.GenericJson { + + /** + * The feedback labels that match the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List feedbackLabels; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudContactcenterinsightsV1alpha1FeedbackLabel.class); + } + + /** + * The next page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The feedback labels that match the request. + * @return value or {@code null} for none + */ + public java.util.List getFeedbackLabels() { + return feedbackLabels; + } + + /** + * The feedback labels that match the request. + * @param feedbackLabels feedbackLabels or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1ListFeedbackLabelsResponse setFeedbackLabels(java.util.List feedbackLabels) { + this.feedbackLabels = feedbackLabels; + return this; + } + + /** + * The next page token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The next page token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1ListFeedbackLabelsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1ListFeedbackLabelsResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1ListFeedbackLabelsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1ListFeedbackLabelsResponse clone() { + return (GoogleCloudContactcenterinsightsV1alpha1ListFeedbackLabelsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaAnswer.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaAnswer.java new file mode 100644 index 00000000000..0e37514a55d --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaAnswer.java @@ -0,0 +1,190 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * An answer to a QaQuestion. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1QaAnswer extends com.google.api.client.json.GenericJson { + + /** + * List of all individual answers given to the question. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List answerSources; + + /** + * The main answer value, incorporating any manual edits if they exist. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue answerValue; + + /** + * The conversation the answer applies to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String conversation; + + /** + * The QaQuestion answered by this answer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String qaQuestion; + + /** + * Question text. E.g., "Did the agent greet the customer?" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String questionBody; + + /** + * User-defined list of arbitrary tags. Matches the value from QaScorecard.ScorecardQuestion.tags. + * Used for grouping/organization and for weighting the score of each answer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tags; + + /** + * List of all individual answers given to the question. + * @return value or {@code null} for none + */ + public java.util.List getAnswerSources() { + return answerSources; + } + + /** + * List of all individual answers given to the question. + * @param answerSources answerSources or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaAnswer setAnswerSources(java.util.List answerSources) { + this.answerSources = answerSources; + return this; + } + + /** + * The main answer value, incorporating any manual edits if they exist. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue getAnswerValue() { + return answerValue; + } + + /** + * The main answer value, incorporating any manual edits if they exist. + * @param answerValue answerValue or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaAnswer setAnswerValue(GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue answerValue) { + this.answerValue = answerValue; + return this; + } + + /** + * The conversation the answer applies to. + * @return value or {@code null} for none + */ + public java.lang.String getConversation() { + return conversation; + } + + /** + * The conversation the answer applies to. + * @param conversation conversation or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaAnswer setConversation(java.lang.String conversation) { + this.conversation = conversation; + return this; + } + + /** + * The QaQuestion answered by this answer. + * @return value or {@code null} for none + */ + public java.lang.String getQaQuestion() { + return qaQuestion; + } + + /** + * The QaQuestion answered by this answer. + * @param qaQuestion qaQuestion or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaAnswer setQaQuestion(java.lang.String qaQuestion) { + this.qaQuestion = qaQuestion; + return this; + } + + /** + * Question text. E.g., "Did the agent greet the customer?" + * @return value or {@code null} for none + */ + public java.lang.String getQuestionBody() { + return questionBody; + } + + /** + * Question text. E.g., "Did the agent greet the customer?" + * @param questionBody questionBody or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaAnswer setQuestionBody(java.lang.String questionBody) { + this.questionBody = questionBody; + return this; + } + + /** + * User-defined list of arbitrary tags. Matches the value from QaScorecard.ScorecardQuestion.tags. + * Used for grouping/organization and for weighting the score of each answer. + * @return value or {@code null} for none + */ + public java.util.List getTags() { + return tags; + } + + /** + * User-defined list of arbitrary tags. Matches the value from QaScorecard.ScorecardQuestion.tags. + * Used for grouping/organization and for weighting the score of each answer. + * @param tags tags or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaAnswer setTags(java.util.List tags) { + this.tags = tags; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QaAnswer set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1QaAnswer) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QaAnswer clone() { + return (GoogleCloudContactcenterinsightsV1alpha1QaAnswer) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource.java new file mode 100644 index 00000000000..90b00be35f8 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource.java @@ -0,0 +1,92 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * A question may have multiple answers from varying sources, one of which becomes the "main" answer + * above. AnswerSource represents each individual answer. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource extends com.google.api.client.json.GenericJson { + + /** + * The answer value from this source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue answerValue; + + /** + * What created the answer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceType; + + /** + * The answer value from this source. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue getAnswerValue() { + return answerValue; + } + + /** + * The answer value from this source. + * @param answerValue answerValue or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource setAnswerValue(GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue answerValue) { + this.answerValue = answerValue; + return this; + } + + /** + * What created the answer. + * @return value or {@code null} for none + */ + public java.lang.String getSourceType() { + return sourceType; + } + + /** + * What created the answer. + * @param sourceType sourceType or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource setSourceType(java.lang.String sourceType) { + this.sourceType = sourceType; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource clone() { + return (GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerSource) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue.java new file mode 100644 index 00000000000..e643ae02c10 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue.java @@ -0,0 +1,236 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Message for holding the value of a QaAnswer. QaQuestion.AnswerChoice defines the possible answer + * values for a question. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue extends com.google.api.client.json.GenericJson { + + /** + * Boolean value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean boolValue; + + /** + * A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * A value of "Not Applicable (N/A)". Should only ever be `true`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean naValue; + + /** + * Output only. Normalized score of the questions. Calculated as score / potential_score. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double normalizedScore; + + /** + * Numerical value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double numValue; + + /** + * Output only. The maximum potential score of the question. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double potentialScore; + + /** + * Output only. Numerical score of the answer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double score; + + /** + * String value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String strValue; + + /** + * Boolean value. + * @return value or {@code null} for none + */ + public java.lang.Boolean getBoolValue() { + return boolValue; + } + + /** + * Boolean value. + * @param boolValue boolValue or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue setBoolValue(java.lang.Boolean boolValue) { + this.boolValue = boolValue; + return this; + } + + /** + * A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key. + * @return value or {@code null} for none + */ + public java.lang.String getKey() { + return key; + } + + /** + * A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key. + * @param key key or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** + * A value of "Not Applicable (N/A)". Should only ever be `true`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getNaValue() { + return naValue; + } + + /** + * A value of "Not Applicable (N/A)". Should only ever be `true`. + * @param naValue naValue or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue setNaValue(java.lang.Boolean naValue) { + this.naValue = naValue; + return this; + } + + /** + * Output only. Normalized score of the questions. Calculated as score / potential_score. + * @return value or {@code null} for none + */ + public java.lang.Double getNormalizedScore() { + return normalizedScore; + } + + /** + * Output only. Normalized score of the questions. Calculated as score / potential_score. + * @param normalizedScore normalizedScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue setNormalizedScore(java.lang.Double normalizedScore) { + this.normalizedScore = normalizedScore; + return this; + } + + /** + * Numerical value. + * @return value or {@code null} for none + */ + public java.lang.Double getNumValue() { + return numValue; + } + + /** + * Numerical value. + * @param numValue numValue or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue setNumValue(java.lang.Double numValue) { + this.numValue = numValue; + return this; + } + + /** + * Output only. The maximum potential score of the question. + * @return value or {@code null} for none + */ + public java.lang.Double getPotentialScore() { + return potentialScore; + } + + /** + * Output only. The maximum potential score of the question. + * @param potentialScore potentialScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue setPotentialScore(java.lang.Double potentialScore) { + this.potentialScore = potentialScore; + return this; + } + + /** + * Output only. Numerical score of the answer. + * @return value or {@code null} for none + */ + public java.lang.Double getScore() { + return score; + } + + /** + * Output only. Numerical score of the answer. + * @param score score or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue setScore(java.lang.Double score) { + this.score = score; + return this; + } + + /** + * String value. + * @return value or {@code null} for none + */ + public java.lang.String getStrValue() { + return strValue; + } + + /** + * String value. + * @param strValue strValue or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue setStrValue(java.lang.String strValue) { + this.strValue = strValue; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue clone() { + return (GoogleCloudContactcenterinsightsV1alpha1QaAnswerAnswerValue) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult.java new file mode 100644 index 00000000000..66afdd3c7fb --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult.java @@ -0,0 +1,323 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The results of scoring a single conversation against a QaScorecard. Contains a collection of + * QaAnswers and aggregate score. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult extends com.google.api.client.json.GenericJson { + + /** + * ID of the agent that handled the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agentId; + + /** + * The conversation scored by this result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String conversation; + + /** + * Output only. The timestamp that the revision was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Identifier. The name of the scorecard result. Format: + * projects/{project}/locations/{location}/qaScorecardResults/{qa_scorecard_result} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The normalized score, which is the score divided by the potential score. Any manual edits are + * included if they exist. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double normalizedScore; + + /** + * The maximum potential overall score of the scorecard. Any questions answered using `na_value` + * are excluded from this calculation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double potentialScore; + + /** + * Set of QaAnswers represented in the result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List qaAnswers; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1alpha1QaAnswer used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudContactcenterinsightsV1alpha1QaAnswer.class); + } + + /** + * The QaScorecardRevision scored by this result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String qaScorecardRevision; + + /** + * Collection of tags and their scores. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List qaTagResults; + + /** + * The overall numerical score of the result, incorporating any manual edits if they exist. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double score; + + /** + * List of all individual score sets. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List scoreSources; + + /** + * ID of the agent that handled the conversation. + * @return value or {@code null} for none + */ + public java.lang.String getAgentId() { + return agentId; + } + + /** + * ID of the agent that handled the conversation. + * @param agentId agentId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult setAgentId(java.lang.String agentId) { + this.agentId = agentId; + return this; + } + + /** + * The conversation scored by this result. + * @return value or {@code null} for none + */ + public java.lang.String getConversation() { + return conversation; + } + + /** + * The conversation scored by this result. + * @param conversation conversation or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult setConversation(java.lang.String conversation) { + this.conversation = conversation; + return this; + } + + /** + * Output only. The timestamp that the revision was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The timestamp that the revision was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Identifier. The name of the scorecard result. Format: + * projects/{project}/locations/{location}/qaScorecardResults/{qa_scorecard_result} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The name of the scorecard result. Format: + * projects/{project}/locations/{location}/qaScorecardResults/{qa_scorecard_result} + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The normalized score, which is the score divided by the potential score. Any manual edits are + * included if they exist. + * @return value or {@code null} for none + */ + public java.lang.Double getNormalizedScore() { + return normalizedScore; + } + + /** + * The normalized score, which is the score divided by the potential score. Any manual edits are + * included if they exist. + * @param normalizedScore normalizedScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult setNormalizedScore(java.lang.Double normalizedScore) { + this.normalizedScore = normalizedScore; + return this; + } + + /** + * The maximum potential overall score of the scorecard. Any questions answered using `na_value` + * are excluded from this calculation. + * @return value or {@code null} for none + */ + public java.lang.Double getPotentialScore() { + return potentialScore; + } + + /** + * The maximum potential overall score of the scorecard. Any questions answered using `na_value` + * are excluded from this calculation. + * @param potentialScore potentialScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult setPotentialScore(java.lang.Double potentialScore) { + this.potentialScore = potentialScore; + return this; + } + + /** + * Set of QaAnswers represented in the result. + * @return value or {@code null} for none + */ + public java.util.List getQaAnswers() { + return qaAnswers; + } + + /** + * Set of QaAnswers represented in the result. + * @param qaAnswers qaAnswers or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult setQaAnswers(java.util.List qaAnswers) { + this.qaAnswers = qaAnswers; + return this; + } + + /** + * The QaScorecardRevision scored by this result. + * @return value or {@code null} for none + */ + public java.lang.String getQaScorecardRevision() { + return qaScorecardRevision; + } + + /** + * The QaScorecardRevision scored by this result. + * @param qaScorecardRevision qaScorecardRevision or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult setQaScorecardRevision(java.lang.String qaScorecardRevision) { + this.qaScorecardRevision = qaScorecardRevision; + return this; + } + + /** + * Collection of tags and their scores. + * @return value or {@code null} for none + */ + public java.util.List getQaTagResults() { + return qaTagResults; + } + + /** + * Collection of tags and their scores. + * @param qaTagResults qaTagResults or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult setQaTagResults(java.util.List qaTagResults) { + this.qaTagResults = qaTagResults; + return this; + } + + /** + * The overall numerical score of the result, incorporating any manual edits if they exist. + * @return value or {@code null} for none + */ + public java.lang.Double getScore() { + return score; + } + + /** + * The overall numerical score of the result, incorporating any manual edits if they exist. + * @param score score or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult setScore(java.lang.Double score) { + this.score = score; + return this; + } + + /** + * List of all individual score sets. + * @return value or {@code null} for none + */ + public java.util.List getScoreSources() { + return scoreSources; + } + + /** + * List of all individual score sets. + * @param scoreSources scoreSources or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult setScoreSources(java.util.List scoreSources) { + this.scoreSources = scoreSources; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult clone() { + return (GoogleCloudContactcenterinsightsV1alpha1QaScorecardResult) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult.java new file mode 100644 index 00000000000..ea88e5e5ea8 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult.java @@ -0,0 +1,139 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Tags and their corresponding results. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult extends com.google.api.client.json.GenericJson { + + /** + * The normalized score the tag applies to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double normalizedScore; + + /** + * The potential score the tag applies to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double potentialScore; + + /** + * The score the tag applies to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double score; + + /** + * The tag the score applies to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tag; + + /** + * The normalized score the tag applies to. + * @return value or {@code null} for none + */ + public java.lang.Double getNormalizedScore() { + return normalizedScore; + } + + /** + * The normalized score the tag applies to. + * @param normalizedScore normalizedScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult setNormalizedScore(java.lang.Double normalizedScore) { + this.normalizedScore = normalizedScore; + return this; + } + + /** + * The potential score the tag applies to. + * @return value or {@code null} for none + */ + public java.lang.Double getPotentialScore() { + return potentialScore; + } + + /** + * The potential score the tag applies to. + * @param potentialScore potentialScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult setPotentialScore(java.lang.Double potentialScore) { + this.potentialScore = potentialScore; + return this; + } + + /** + * The score the tag applies to. + * @return value or {@code null} for none + */ + public java.lang.Double getScore() { + return score; + } + + /** + * The score the tag applies to. + * @param score score or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult setScore(java.lang.Double score) { + this.score = score; + return this; + } + + /** + * The tag the score applies to. + * @return value or {@code null} for none + */ + public java.lang.String getTag() { + return tag; + } + + /** + * The tag the score applies to. + * @param tag tag or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult setTag(java.lang.String tag) { + this.tag = tag; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult clone() { + return (GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource.java new file mode 100644 index 00000000000..af0279b5d13 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource.java @@ -0,0 +1,173 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * A scorecard result may have multiple sets of scores from varying sources, one of which becomes + * the "main" answer above. A ScoreSource represents each individual set of scores. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource extends com.google.api.client.json.GenericJson { + + /** + * The normalized score, which is the score divided by the potential score. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double normalizedScore; + + /** + * The maximum potential overall score of the scorecard. Any questions answered using `na_value` + * are excluded from this calculation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double potentialScore; + + /** + * Collection of tags and their scores. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List qaTagResults; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultQaTagResult.class); + } + + /** + * The overall numerical score of the result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double score; + + /** + * What created the score. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sourceType; + + /** + * The normalized score, which is the score divided by the potential score. + * @return value or {@code null} for none + */ + public java.lang.Double getNormalizedScore() { + return normalizedScore; + } + + /** + * The normalized score, which is the score divided by the potential score. + * @param normalizedScore normalizedScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource setNormalizedScore(java.lang.Double normalizedScore) { + this.normalizedScore = normalizedScore; + return this; + } + + /** + * The maximum potential overall score of the scorecard. Any questions answered using `na_value` + * are excluded from this calculation. + * @return value or {@code null} for none + */ + public java.lang.Double getPotentialScore() { + return potentialScore; + } + + /** + * The maximum potential overall score of the scorecard. Any questions answered using `na_value` + * are excluded from this calculation. + * @param potentialScore potentialScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource setPotentialScore(java.lang.Double potentialScore) { + this.potentialScore = potentialScore; + return this; + } + + /** + * Collection of tags and their scores. + * @return value or {@code null} for none + */ + public java.util.List getQaTagResults() { + return qaTagResults; + } + + /** + * Collection of tags and their scores. + * @param qaTagResults qaTagResults or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource setQaTagResults(java.util.List qaTagResults) { + this.qaTagResults = qaTagResults; + return this; + } + + /** + * The overall numerical score of the result. + * @return value or {@code null} for none + */ + public java.lang.Double getScore() { + return score; + } + + /** + * The overall numerical score of the result. + * @param score score or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource setScore(java.lang.Double score) { + this.score = score; + return this; + } + + /** + * What created the score. + * @return value or {@code null} for none + */ + public java.lang.String getSourceType() { + return sourceType; + } + + /** + * What created the score. + * @param sourceType sourceType or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource setSourceType(java.lang.String sourceType) { + this.sourceType = sourceType; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource clone() { + return (GoogleCloudContactcenterinsightsV1alpha1QaScorecardResultScoreSource) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsMetadata.java new file mode 100644 index 00000000000..d5cb44c2acc --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsMetadata.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The metadata from querying metrics. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1QueryMetricsMetadata extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1QueryMetricsMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsMetadata clone() { + return (GoogleCloudContactcenterinsightsV1alpha1QueryMetricsMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse.java new file mode 100644 index 00000000000..77d1a2ffa31 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse.java @@ -0,0 +1,151 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The response for querying metrics. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse extends com.google.api.client.json.GenericJson { + + /** + * Required. The location of the data. "projects/{project}/locations/{location}" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** + * The macro average slice contains aggregated averages across the selected dimension. i.e. if + * group_by agent is specified this field will contain the average across all agents. This field + * is only populated if the request specifies a Dimension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice macroAverageSlice; + + /** + * A slice contains a total and (if the request specified a time granularity) a time series of + * metric values. Each slice contains a unique combination of the cardinality of dimensions from + * the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List slices; + + /** + * The metrics last update time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Required. The location of the data. "projects/{project}/locations/{location}" + * @return value or {@code null} for none + */ + public java.lang.String getLocation() { + return location; + } + + /** + * Required. The location of the data. "projects/{project}/locations/{location}" + * @param location location or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse setLocation(java.lang.String location) { + this.location = location; + return this; + } + + /** + * The macro average slice contains aggregated averages across the selected dimension. i.e. if + * group_by agent is specified this field will contain the average across all agents. This field + * is only populated if the request specifies a Dimension. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice getMacroAverageSlice() { + return macroAverageSlice; + } + + /** + * The macro average slice contains aggregated averages across the selected dimension. i.e. if + * group_by agent is specified this field will contain the average across all agents. This field + * is only populated if the request specifies a Dimension. + * @param macroAverageSlice macroAverageSlice or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse setMacroAverageSlice(GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice macroAverageSlice) { + this.macroAverageSlice = macroAverageSlice; + return this; + } + + /** + * A slice contains a total and (if the request specified a time granularity) a time series of + * metric values. Each slice contains a unique combination of the cardinality of dimensions from + * the request. + * @return value or {@code null} for none + */ + public java.util.List getSlices() { + return slices; + } + + /** + * A slice contains a total and (if the request specified a time granularity) a time series of + * metric values. Each slice contains a unique combination of the cardinality of dimensions from + * the request. + * @param slices slices or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse setSlices(java.util.List slices) { + this.slices = slices; + return this; + } + + /** + * The metrics last update time. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * The metrics last update time. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse clone() { + return (GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice.java new file mode 100644 index 00000000000..f8f8a8a7fb0 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice.java @@ -0,0 +1,131 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * A slice contains a total and (if the request specified a time granularity) a time series of + * metric values. Each slice contains a unique combination of the cardinality of dimensions from the + * request. For example, if the request specifies a single ISSUE dimension and it has a cardinality + * of 2 (i.e. the data used to compute the metrics has 2 issues in total), the response will have 2 + * slices: * Slice 1 -> dimensions=[Issue 1] * Slice 2 -> dimensions=[Issue 2] + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice extends com.google.api.client.json.GenericJson { + + /** + * A unique combination of dimensions that this slice represents. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dimensions; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1alpha1Dimension used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudContactcenterinsightsV1alpha1Dimension.class); + } + + /** + * A time series of metric values. This is only populated if the request specifies a time + * granularity other than NONE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries timeSeries; + + /** + * The total metric value. The interval of this data point is [starting create time, ending create + * time) from the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint total; + + /** + * A unique combination of dimensions that this slice represents. + * @return value or {@code null} for none + */ + public java.util.List getDimensions() { + return dimensions; + } + + /** + * A unique combination of dimensions that this slice represents. + * @param dimensions dimensions or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice setDimensions(java.util.List dimensions) { + this.dimensions = dimensions; + return this; + } + + /** + * A time series of metric values. This is only populated if the request specifies a time + * granularity other than NONE. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries getTimeSeries() { + return timeSeries; + } + + /** + * A time series of metric values. This is only populated if the request specifies a time + * granularity other than NONE. + * @param timeSeries timeSeries or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice setTimeSeries(GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries timeSeries) { + this.timeSeries = timeSeries; + return this; + } + + /** + * The total metric value. The interval of this data point is [starting create time, ending create + * time) from the request. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint getTotal() { + return total; + } + + /** + * The total metric value. The interval of this data point is [starting create time, ending create + * time) from the request. + * @param total total or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice setTotal(GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint total) { + this.total = total; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice clone() { + return (GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSlice) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint.java new file mode 100644 index 00000000000..9d8334ecc3e --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint.java @@ -0,0 +1,97 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * A data point contains the metric values mapped to an interval. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint extends com.google.api.client.json.GenericJson { + + /** + * The measure related to conversations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure conversationMeasure; + + /** + * The interval that this data point represents. * If this is the total data point, the interval + * is [starting create time, ending create time) from the request. * If this a data point from the + * time series, the interval is [time, time + time granularity from the request). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleTypeInterval interval; + + /** + * The measure related to conversations. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure getConversationMeasure() { + return conversationMeasure; + } + + /** + * The measure related to conversations. + * @param conversationMeasure conversationMeasure or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint setConversationMeasure(GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure conversationMeasure) { + this.conversationMeasure = conversationMeasure; + return this; + } + + /** + * The interval that this data point represents. * If this is the total data point, the interval + * is [starting create time, ending create time) from the request. * If this a data point from the + * time series, the interval is [time, time + time granularity from the request). + * @return value or {@code null} for none + */ + public GoogleTypeInterval getInterval() { + return interval; + } + + /** + * The interval that this data point represents. * If this is the total data point, the interval + * is [starting create time, ending create time) from the request. * If this a data point from the + * time series, the interval is [time, time + time granularity from the request). + * @param interval interval or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint setInterval(GoogleTypeInterval interval) { + this.interval = interval; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint clone() { + return (GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure.java new file mode 100644 index 00000000000..bd8948f87f9 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure.java @@ -0,0 +1,286 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * The measure related to conversations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure extends com.google.api.client.json.GenericJson { + + /** + * The average agent's sentiment score. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float averageAgentSentimentScore; + + /** + * The average client's sentiment score. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float averageClientSentimentScore; + + /** + * The average customer satisfaction rating. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double averageCustomerSatisfactionRating; + + /** + * The average duration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String averageDuration; + + /** + * Average QA normalized score. Will exclude 0's in average calculation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double averageQaNormalizedScore; + + /** + * Average QA normalized score averaged for questions averaged across all revisions of the parent + * scorecard. Will be only populated if the request specifies a dimension of QA_QUESTION_ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double averageQaQuestionNormalizedScore; + + /** + * The average silence percentage. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float averageSilencePercentage; + + /** + * The average turn count. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float averageTurnCount; + + /** + * The conversation count. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer conversationCount; + + /** + * Average QA normalized score for all the tags. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List qaTagScores; + + /** + * The average agent's sentiment score. + * @return value or {@code null} for none + */ + public java.lang.Float getAverageAgentSentimentScore() { + return averageAgentSentimentScore; + } + + /** + * The average agent's sentiment score. + * @param averageAgentSentimentScore averageAgentSentimentScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure setAverageAgentSentimentScore(java.lang.Float averageAgentSentimentScore) { + this.averageAgentSentimentScore = averageAgentSentimentScore; + return this; + } + + /** + * The average client's sentiment score. + * @return value or {@code null} for none + */ + public java.lang.Float getAverageClientSentimentScore() { + return averageClientSentimentScore; + } + + /** + * The average client's sentiment score. + * @param averageClientSentimentScore averageClientSentimentScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure setAverageClientSentimentScore(java.lang.Float averageClientSentimentScore) { + this.averageClientSentimentScore = averageClientSentimentScore; + return this; + } + + /** + * The average customer satisfaction rating. + * @return value or {@code null} for none + */ + public java.lang.Double getAverageCustomerSatisfactionRating() { + return averageCustomerSatisfactionRating; + } + + /** + * The average customer satisfaction rating. + * @param averageCustomerSatisfactionRating averageCustomerSatisfactionRating or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure setAverageCustomerSatisfactionRating(java.lang.Double averageCustomerSatisfactionRating) { + this.averageCustomerSatisfactionRating = averageCustomerSatisfactionRating; + return this; + } + + /** + * The average duration. + * @return value or {@code null} for none + */ + public String getAverageDuration() { + return averageDuration; + } + + /** + * The average duration. + * @param averageDuration averageDuration or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure setAverageDuration(String averageDuration) { + this.averageDuration = averageDuration; + return this; + } + + /** + * Average QA normalized score. Will exclude 0's in average calculation. + * @return value or {@code null} for none + */ + public java.lang.Double getAverageQaNormalizedScore() { + return averageQaNormalizedScore; + } + + /** + * Average QA normalized score. Will exclude 0's in average calculation. + * @param averageQaNormalizedScore averageQaNormalizedScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure setAverageQaNormalizedScore(java.lang.Double averageQaNormalizedScore) { + this.averageQaNormalizedScore = averageQaNormalizedScore; + return this; + } + + /** + * Average QA normalized score averaged for questions averaged across all revisions of the parent + * scorecard. Will be only populated if the request specifies a dimension of QA_QUESTION_ID. + * @return value or {@code null} for none + */ + public java.lang.Double getAverageQaQuestionNormalizedScore() { + return averageQaQuestionNormalizedScore; + } + + /** + * Average QA normalized score averaged for questions averaged across all revisions of the parent + * scorecard. Will be only populated if the request specifies a dimension of QA_QUESTION_ID. + * @param averageQaQuestionNormalizedScore averageQaQuestionNormalizedScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure setAverageQaQuestionNormalizedScore(java.lang.Double averageQaQuestionNormalizedScore) { + this.averageQaQuestionNormalizedScore = averageQaQuestionNormalizedScore; + return this; + } + + /** + * The average silence percentage. + * @return value or {@code null} for none + */ + public java.lang.Float getAverageSilencePercentage() { + return averageSilencePercentage; + } + + /** + * The average silence percentage. + * @param averageSilencePercentage averageSilencePercentage or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure setAverageSilencePercentage(java.lang.Float averageSilencePercentage) { + this.averageSilencePercentage = averageSilencePercentage; + return this; + } + + /** + * The average turn count. + * @return value or {@code null} for none + */ + public java.lang.Float getAverageTurnCount() { + return averageTurnCount; + } + + /** + * The average turn count. + * @param averageTurnCount averageTurnCount or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure setAverageTurnCount(java.lang.Float averageTurnCount) { + this.averageTurnCount = averageTurnCount; + return this; + } + + /** + * The conversation count. + * @return value or {@code null} for none + */ + public java.lang.Integer getConversationCount() { + return conversationCount; + } + + /** + * The conversation count. + * @param conversationCount conversationCount or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure setConversationCount(java.lang.Integer conversationCount) { + this.conversationCount = conversationCount; + return this; + } + + /** + * Average QA normalized score for all the tags. + * @return value or {@code null} for none + */ + public java.util.List getQaTagScores() { + return qaTagScores; + } + + /** + * Average QA normalized score for all the tags. + * @param qaTagScores qaTagScores or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure setQaTagScores(java.util.List qaTagScores) { + this.qaTagScores = qaTagScores; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure clone() { + return (GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasure) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore.java new file mode 100644 index 00000000000..9a23cfb19ad --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore.java @@ -0,0 +1,91 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Average QA normalized score for the tag. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore extends com.google.api.client.json.GenericJson { + + /** + * Average tag normalized score per tag. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double averageTagNormalizedScore; + + /** + * Tag name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tag; + + /** + * Average tag normalized score per tag. + * @return value or {@code null} for none + */ + public java.lang.Double getAverageTagNormalizedScore() { + return averageTagNormalizedScore; + } + + /** + * Average tag normalized score per tag. + * @param averageTagNormalizedScore averageTagNormalizedScore or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore setAverageTagNormalizedScore(java.lang.Double averageTagNormalizedScore) { + this.averageTagNormalizedScore = averageTagNormalizedScore; + return this; + } + + /** + * Tag name. + * @return value or {@code null} for none + */ + public java.lang.String getTag() { + return tag; + } + + /** + * Tag name. + * @param tag tag or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore setTag(java.lang.String tag) { + this.tag = tag; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore clone() { + return (GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPointConversationMeasureQaTagScore) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries.java new file mode 100644 index 00000000000..ef788ac179e --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries.java @@ -0,0 +1,73 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * A time series of metric values. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries extends com.google.api.client.json.GenericJson { + + /** + * The data points that make up the time series . + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dataPoints; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceDataPoint.class); + } + + /** + * The data points that make up the time series . + * @return value or {@code null} for none + */ + public java.util.List getDataPoints() { + return dataPoints; + } + + /** + * The data points that make up the time series . + * @param dataPoints dataPoints or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries setDataPoints(java.util.List dataPoints) { + this.dataPoints = dataPoints; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries clone() { + return (GoogleCloudContactcenterinsightsV1alpha1QueryMetricsResponseSliceTimeSeries) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleTypeInterval.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleTypeInterval.java new file mode 100644 index 00000000000..cc20f3e2850 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleTypeInterval.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.contactcenterinsights.v1.model; + +/** + * Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end + * (exclusive). The start must be less than or equal to the end. When the start equals the end, the + * interval is empty (matches no time). When both start and end are unspecified, the interval + * matches any time. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Contact Center AI Insights API. For a detailed + * explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleTypeInterval extends com.google.api.client.json.GenericJson { + + /** + * Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will + * have to be before the end. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval + * will have to be the same or after the start. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will + * have to be before the end. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Optional. Exclusive end of the interval. If specified, a Timestamp matching this interval will + * have to be before the end. + * @param endTime endTime or {@code null} for none + */ + public GoogleTypeInterval setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval + * will have to be the same or after the start. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Optional. Inclusive start of the interval. If specified, a Timestamp matching this interval + * will have to be the same or after the start. + * @param startTime startTime or {@code null} for none + */ + public GoogleTypeInterval setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public GoogleTypeInterval set(String fieldName, Object value) { + return (GoogleTypeInterval) super.set(fieldName, value); + } + + @Override + public GoogleTypeInterval clone() { + return (GoogleTypeInterval) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/pom.xml b/clients/google-api-services-contactcenterinsights/v1/2.0.0/pom.xml index 443f353b7e2..05eba99807c 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/pom.xml +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-contactcenterinsights - v1-rev20240701-2.0.0 - Contact Center AI Insights API v1-rev20240701-2.0.0 + v1-rev20241218-2.0.0 + Contact Center AI Insights API v1-rev20241218-2.0.0 jar 2011 @@ -90,9 +90,9 @@ Contact Center AI Insights API ${project.version} http://docs.oracle.com/javase/7/docs/api - https://googleapis.dev/java/google-http-client/1.44.2/ - https://googleapis.dev/java/google-oauth-client/1.36.0/ - https://googleapis.dev/java/google-api-client/2.6.0/ + https://googleapis.dev/java/google-http-client/1.45.3/ + https://googleapis.dev/java/google-oauth-client/1.37.0/ + https://googleapis.dev/java/google-api-client/2.7.0/ @@ -125,7 +125,7 @@ com.google.api-client google-api-client - 2.6.0 + 2.7.0 diff --git a/clients/google-api-services-contactcenterinsights/v1/README.md b/clients/google-api-services-contactcenterinsights/v1/README.md index 46a0486d6ed..8b4fff8f9da 100644 --- a/clients/google-api-services-contactcenterinsights/v1/README.md +++ b/clients/google-api-services-contactcenterinsights/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-contactcenterinsights - v1-rev20240701-2.0.0 + v1-rev20241218-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-contactcenterinsights:v1-rev20240701-2.0.0' + implementation 'com.google.apis:google-api-services-contactcenterinsights:v1-rev20241218-2.0.0' } ```