From 8e403faa873488e8da2f4ca378107f0c83c6dc94 Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Sun, 18 May 2025 18:05:21 -0700
Subject: [PATCH] chore: regenerate contactcenterinsights client
---
.../v1/2.0.0/README.md | 4 +-
.../v1/Contactcenterinsights.java | 21312 +++++++++++++---
...sV1AnalysisResultCallAnalysisMetadata.java | 24 +
...udContactcenterinsightsV1AnalysisRule.java | 262 +
...tactcenterinsightsV1AnnotatorSelector.java | 48 +
...erinsightsV1AnnotatorSelectorQaConfig.java | 67 +
...nnotatorSelectorQaConfigScorecardList.java | 67 +
...1AnnotatorSelectorSummarizationConfig.java | 24 +
...ContactcenterinsightsV1AuthorizedView.java | 183 +
...tactcenterinsightsV1AuthorizedViewSet.java | 142 +
...htsV1BulkDeleteFeedbackLabelsMetadata.java | 94 +
...ghtsV1BulkDeleteFeedbackLabelsRequest.java | 100 +
...htsV1BulkDeleteFeedbackLabelsResponse.java | 43 +
...sV1BulkDownloadFeedbackLabelsMetadata.java | 163 +
...adFeedbackLabelsMetadataDownloadStats.java | 142 +
...tsV1BulkDownloadFeedbackLabelsRequest.java | 262 +
...adFeedbackLabelsRequestGcsDestination.java | 178 +
...eedbackLabelsRequestSheetsDestination.java | 100 +
...sV1BulkDownloadFeedbackLabelsResponse.java | 43 +
...ghtsV1BulkUploadFeedbackLabelsRequest.java | 118 +
...kUploadFeedbackLabelsRequestGcsSource.java | 94 +
...loadFeedbackLabelsRequestSheetsSource.java | 73 +
...centerinsightsV1CalculateStatsRequest.java | 70 +
...udContactcenterinsightsV1Conversation.java | 33 +-
...1ConversationQualityMetadataAgentInfo.java | 81 +-
...ctcenterinsightsV1CreateIssueMetadata.java | 115 +
...actcenterinsightsV1CreateIssueRequest.java | 91 +
...leCloudContactcenterinsightsV1Dataset.java | 216 +
...htsV1DeployQaScorecardRevisionRequest.java | 43 +
...CloudContactcenterinsightsV1Dimension.java | 164 +
...ghtsV1DimensionAgentDimensionMetadata.java | 115 +
...ghtsV1DimensionIssueDimensionMetadata.java | 115 +
...sionQaQuestionAnswerDimensionMetadata.java | 140 +
...1DimensionQaQuestionDimensionMetadata.java | 115 +
...ContactcenterinsightsV1EncryptionSpec.java | 104 +
...rinsightsV1ExportInsightsDataMetadata.java | 48 +
...erinsightsV1ExportInsightsDataRequest.java | 24 +
...dContactcenterinsightsV1FeedbackLabel.java | 202 +
...terinsightsV1ImportIssueModelResponse.java | 24 +
...V1IngestConversationsRequestGcsSource.java | 6 +-
...htsV1InitializeEncryptionSpecMetadata.java | 142 +
...ghtsV1InitializeEncryptionSpecRequest.java | 76 +
...htsV1InitializeEncryptionSpecResponse.java | 43 +
...ogleCloudContactcenterinsightsV1Issue.java | 24 +
...ontactcenterinsightsV1IssueAssignment.java | 6 +-
...erinsightsV1IssueModelInputDataConfig.java | 9 +-
...sightsV1ListAllFeedbackLabelsResponse.java | 100 +
...erinsightsV1ListAnalysisRulesResponse.java | 100 +
...ightsV1ListAuthorizedViewSetsResponse.java | 100 +
...insightsV1ListAuthorizedViewsResponse.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 | 337 +
...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 | 67 +
...ctcenterinsightsV1QueryMetricsRequest.java | 169 +
...tcenterinsightsV1QueryMetricsResponse.java | 151 +
...erinsightsV1QueryMetricsResponseSlice.java | 131 +
...sV1QueryMetricsResponseSliceDataPoint.java | 97 +
...onseSliceDataPointConversationMeasure.java | 286 +
...ataPointConversationMeasureQaTagScore.java | 91 +
...V1QueryMetricsResponseSliceTimeSeries.java | 73 +
...htsV1QueryPerformanceOverviewMetadata.java | 43 +
...htsV1QueryPerformanceOverviewResponse.java | 67 +
...insightsV1SampleConversationsMetadata.java | 166 +
...tionsMetadataSampleConversationsStats.java | 94 +
...rinsightsV1SampleConversationsRequest.java | 115 +
...insightsV1SampleConversationsResponse.java | 43 +
...loudContactcenterinsightsV1SampleRule.java | 148 +
...sightsV1SearchAuthorizedViewsResponse.java | 100 +
...dContactcenterinsightsV1SentimentData.java | 6 +-
...ightsV1TuneQaScorecardRevisionRequest.java | 106 +
...sV1UndeployQaScorecardRevisionRequest.java | 43 +
...oogleCloudContactcenterinsightsV1View.java | 9 +-
...ha1AnalysisResultCallAnalysisMetadata.java | 24 +
...nterinsightsV1alpha1AnnotatorSelector.java | 48 +
...ghtsV1alpha1AnnotatorSelectorQaConfig.java | 67 +
...nnotatorSelectorQaConfigScorecardList.java | 67 +
...1AnnotatorSelectorSummarizationConfig.java | 24 +
...lpha1BulkDeleteFeedbackLabelsMetadata.java | 94 +
...alpha1BulkDeleteFeedbackLabelsRequest.java | 100 +
...lpha1BulkDeleteFeedbackLabelsResponse.java | 43 +
...actcenterinsightsV1alpha1Conversation.java | 33 +-
...1ConversationQualityMetadataAgentInfo.java | 81 +-
...erinsightsV1alpha1CreateIssueMetadata.java | 115 +
...terinsightsV1alpha1CreateIssueRequest.java | 91 +
...dContactcenterinsightsV1alpha1Dataset.java | 216 +
...ontactcenterinsightsV1alpha1Dimension.java | 164 +
...alpha1DimensionAgentDimensionMetadata.java | 115 +
...alpha1DimensionIssueDimensionMetadata.java | 115 +
...sionQaQuestionAnswerDimensionMetadata.java | 140 +
...1DimensionQaQuestionDimensionMetadata.java | 115 +
...tcenterinsightsV1alpha1EncryptionSpec.java | 104 +
...htsV1alpha1ExportInsightsDataMetadata.java | 48 +
...ghtsV1alpha1ExportInsightsDataRequest.java | 24 +
...ctcenterinsightsV1alpha1FeedbackLabel.java | 202 +
...ightsV1alpha1ImportIssueModelResponse.java | 24 +
...a1IngestConversationsRequestGcsSource.java | 6 +-
...lpha1InitializeEncryptionSpecMetadata.java | 142 +
...alpha1InitializeEncryptionSpecRequest.java | 76 +
...lpha1InitializeEncryptionSpecResponse.java | 43 +
...oudContactcenterinsightsV1alpha1Issue.java | 190 +
...centerinsightsV1alpha1IssueAssignment.java | 6 +-
...ghtsV1alpha1IssueModelInputDataConfig.java | 9 +-
...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 | 67 +
...rinsightsV1alpha1QueryMetricsResponse.java | 151 +
...ghtsV1alpha1QueryMetricsResponseSlice.java | 131 +
...ha1QueryMetricsResponseSliceDataPoint.java | 97 +
...onseSliceDataPointConversationMeasure.java | 286 +
...ataPointConversationMeasureQaTagScore.java | 91 +
...a1QueryMetricsResponseSliceTimeSeries.java | 73 +
...lpha1QueryPerformanceOverviewMetadata.java | 43 +
...lpha1QueryPerformanceOverviewResponse.java | 67 +
...tsV1alpha1SampleConversationsMetadata.java | 166 +
...tionsMetadataSampleConversationsStats.java | 94 +
...htsV1alpha1SampleConversationsRequest.java | 115 +
...tsV1alpha1SampleConversationsResponse.java | 43 +
...ntactcenterinsightsV1alpha1SampleRule.java | 148 +
...ctcenterinsightsV1alpha1SentimentData.java | 6 +-
.../v1/model/GoogleTypeInterval.java | 100 +
.../v1/2.0.0/pom.xml | 12 +-
.../v1/README.md | 4 +-
142 files changed, 32354 insertions(+), 3760 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/GoogleCloudContactcenterinsightsV1AuthorizedView.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AuthorizedViewSet.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsMetadata.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsResponse.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/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestSheetsDestination.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/GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestSheetsSource.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1CalculateStatsRequest.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/GoogleCloudContactcenterinsightsV1Dataset.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/GoogleCloudContactcenterinsightsV1ListAuthorizedViewSetsResponse.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListAuthorizedViewsResponse.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/GoogleCloudContactcenterinsightsV1QueryPerformanceOverviewMetadata.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryPerformanceOverviewResponse.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SampleConversationsMetadata.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SampleConversationsMetadataSampleConversationsStats.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SampleConversationsRequest.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SampleConversationsResponse.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SampleRule.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SearchAuthorizedViewsResponse.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/GoogleCloudContactcenterinsightsV1alpha1BulkDeleteFeedbackLabelsMetadata.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1BulkDeleteFeedbackLabelsRequest.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1BulkDeleteFeedbackLabelsResponse.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/GoogleCloudContactcenterinsightsV1alpha1Dataset.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/GoogleCloudContactcenterinsightsV1alpha1QueryPerformanceOverviewMetadata.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1QueryPerformanceOverviewResponse.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1SampleConversationsMetadata.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1SampleConversationsMetadataSampleConversationsStats.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1SampleConversationsRequest.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1SampleConversationsResponse.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1SampleRule.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..75b00c695a3 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:
{@link
- * GetSettings#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link BulkDeleteFeedbackLabels#initialize(com.google.api.clie
+ * nt.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance
+ * immediately after invoking the constructor. {@link UpdateSettings#initialize(com.google.api.client.googleapis.service
- * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
- * invoking the constructor. {@link BulkDownloadFeedbackLabels#initialize(com.google.api
+ * .client.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this
+ * instance immediately after invoking the constructor. {@link BulkUploadFeedbackLabels#initialize(com.google.api.clie
+ * nt.googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance
+ * immediately after invoking the constructor. The typical use is: {@link GetEncryptionSpec#initialize(com.google.api.client.googleapis.
+ * services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately
+ * after invoking the constructor. {@link
- * BulkAnalyze#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link
+ * GetSettings#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link
- * BulkDelete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
- * must be called to initialize this instance immediately after invoking the constructor. {@link ListAllFeedbackLabels#initialize(com.google.api.client.
+ * googleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance
+ * immediately after invoking the constructor. {@link CalculateStats#initialize(com.google.api.client.googleapis.service
- * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
- * invoking the constructor. {@link
- * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor. {@link
+ * QueryMetrics#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
+ * must be called to initialize this instance immediately after invoking the constructor. {@link UpdateSettings#initialize(com.google.api.client.googleapis.service
+ * s.AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
+ * invoking the constructor. The typical use is: {@link
- * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
* be called to initialize this instance immediately after invoking the constructor. {@link
+ * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
+ * be called to initialize this instance immediately after invoking the constructor. {@link
- * Ingest#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
- * be called to initialize this instance immediately after invoking the constructor.
- * {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
- * {@code Contactcenterinsights.Conversations.List request = contactcenterinsights.conversations().list(parameters ...)}
- *
+ * Create a request for the method "locations.getEncryptionSpec".
*
- * @return the resource collection
+ * This request holds the parameters needed by the contactcenterinsights server. After setting any
+ * optional parameters, call the {@link GetEncryptionSpec#execute()} method to invoke the remote
+ * operation.
+ *
+ * @param name Required. The name of the encryption spec resource to get.
+ * @return the request
*/
- public Conversations conversations() {
- return new Conversations();
+ public GetEncryptionSpec getEncryptionSpec(java.lang.String name) throws java.io.IOException {
+ GetEncryptionSpec result = new GetEncryptionSpec(name);
+ initialize(result);
+ return result;
}
- /**
- * The "conversations" collection of methods.
- */
- public class Conversations {
+ public class GetEncryptionSpec extends ContactcenterinsightsRequest
+ * {@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 analysis rule.
+ *
+ * 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 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.GoogleCloudContactcenterinsightsV1AnalysisRule content) throws java.io.IOException {
+ Create result = new Create(parent, content);
initialize(result);
return result;
}
- public class Delete extends ContactcenterinsightsRequest
{@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 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. + * 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.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. + /** 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.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. + * 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 setPageSize(java.lang.Integer pageSize) { this.pageSize = pageSize; @@ -1745,15 +1957,15 @@ public List setPageSize(java.lang.Integer pageSize) { } /** - * 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. */ @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 + /** 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() { @@ -1761,66 +1973,50 @@ public java.lang.String getPageToken() { } /** - * 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 ContactcenterinsightsRequestThe 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 AuthorizedViewSet * - * Create a request for the method "conversations.upload". + * Create a request for the method "authorizedViewSets.create". * * 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. + * 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.GoogleCloudContactcenterinsightsV1UploadConversationRequest} + * @param parent Required. The parent resource of the AuthorizedViewSet. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AuthorizedViewSet} * @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); + public Create create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AuthorizedViewSet content) throws java.io.IOException { + Create result = new Create(parent, content); initialize(result); return result; } - public class Upload extends ContactcenterinsightsRequest
{@link - * Upload#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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.GoogleCloudContactcenterinsightsV1UploadConversationRequest} + * @param parent Required. The parent resource of the AuthorizedViewSet. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AuthorizedViewSet} * @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); + protected Create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AuthorizedViewSet content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AuthorizedViewSet.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(), @@ -2015,72 +2223,72 @@ protected Upload(java.lang.String parent, com.google.api.services.contactcenteri } @Override - public Upload set$Xgafv(java.lang.String $Xgafv) { - return (Upload) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public Upload setAccessToken(java.lang.String accessToken) { - return (Upload) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Upload setAlt(java.lang.String alt) { - return (Upload) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Upload setCallback(java.lang.String callback) { - return (Upload) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Upload setFields(java.lang.String fields) { - return (Upload) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public Upload setKey(java.lang.String key) { - return (Upload) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public Upload setOauthToken(java.lang.String oauthToken) { - return (Upload) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public Upload setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Upload) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public Upload setQuotaUser(java.lang.String quotaUser) { - return (Upload) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public Upload setUploadType(java.lang.String uploadType) { - return (Upload) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public Upload setUploadProtocol(java.lang.String uploadProtocol) { - return (Upload) super.setUploadProtocol(uploadProtocol); + 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 AuthorizedViewSet. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent resource of the conversation. + /** Required. The parent resource of the AuthorizedViewSet. */ public java.lang.String getParent() { return parent; } - /** Required. The parent resource of the conversation. */ - public Upload setParent(java.lang.String parent) { + /** Required. The parent resource of the AuthorizedViewSet. */ + 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 " + @@ -2090,1764 +2298,15491 @@ public Upload setParent(java.lang.String parent) { return this; } + /** + * Optional. A unique ID for the new AuthorizedViewSet. This ID will become the final + * component of the AuthorizedViewSet'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-z]([a-z0-9-]{0,61}[a-z0-9])?$`. See go/aip/122#resource-id- + * segments + */ + @com.google.api.client.util.Key + private java.lang.String authorizedViewSetId; + + /** Optional. A unique ID for the new AuthorizedViewSet. This ID will become the final component of the + AuthorizedViewSet'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-z]([a-z0-9-]{0,61}[a-z0-9])?$`. See go/aip/122#resource-id-segments + */ + public java.lang.String getAuthorizedViewSetId() { + return authorizedViewSetId; + } + + /** + * Optional. A unique ID for the new AuthorizedViewSet. This ID will become the final + * component of the AuthorizedViewSet'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-z]([a-z0-9-]{0,61}[a-z0-9])?$`. See go/aip/122#resource-id- + * segments + */ + public Create setAuthorizedViewSetId(java.lang.String authorizedViewSetId) { + this.authorizedViewSetId = authorizedViewSetId; + return this; + } + @Override - public Upload set(String parameterName, Object value) { - return (Upload) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } - /** - * An accessor for creating requests from the Analyses collection. + * Deletes an AuthorizedViewSet. * - *The typical use is:
- *- * {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);} - * {@code Contactcenterinsights.Analyses.List request = contactcenterinsights.analyses().list(parameters ...)} - *+ * Create a request for the method "authorizedViewSets.delete". * - * @return the resource 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. + * + * @param name Required. The name of the AuthorizedViewSet to delete. + * @return the request */ - public Analyses analyses() { - return new Analyses(); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; } - /** - * The "analyses" collection of methods. - */ - public class Analyses { + public class Delete extends ContactcenterinsightsRequest
{@link + * 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 analysis. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Analysis} - * @return the request + * @param name Required. The name of the AuthorizedViewSet to delete. + * @since 1.13 */ - 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; + 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/[^/]+/authorizedViewSets/[^/]+$"); + } } - public class Create extends ContactcenterinsightsRequest{@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 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 AuthorizedViewSet 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 AuthorizedViewSet 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 AuthorizedViewSet 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/[^/]+/authorizedViewSets/[^/]+$"); } + this.name = name; + return this; + } - /** Required. The parent resource of the analysis. */ - @com.google.api.client.util.Key - private java.lang.String parent; + /** + * Optional. If set to true, all of this AuthorizedViewSet'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; - /** Required. The parent resource of the analysis. - */ - public java.lang.String getParent() { - return parent; - } + /** Optional. If set to true, all of this AuthorizedViewSet's child resources will also be deleted. + Otherwise, the request will only succeed if it has none. + */ + public java.lang.Boolean getForce() { + return force; + } - /** 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; - } + /** + * Optional. If set to true, all of this AuthorizedViewSet'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 Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); - } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } + } + /** + * Get AuthorizedViewSet + * + * Create a request for the method "authorizedViewSets.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 AuthorizedViewSet 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{@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 delete. - * @return the request + * @param name Required. The name of the AuthorizedViewSet to get. + * @since 1.13 */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); - initialize(result); - return result; + protected Get(java.lang.String name) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AuthorizedViewSet.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/[^/]+/authorizedViewSets/[^/]+$"); + } } - public class Delete extends ContactcenterinsightsRequest{@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 Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + /** Required. The name of the AuthorizedViewSet to get. */ + @com.google.api.client.util.Key + private java.lang.String name; - /** Required. The name of the analysis to delete. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Required. The name of the AuthorizedViewSet to get. + */ + public java.lang.String getName() { + return 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; + /** Required. The name of the AuthorizedViewSet 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/[^/]+/authorizedViewSets/[^/]+$"); } + this.name = name; + return this; + } - @Override - public Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); - } + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } + } + /** + * List AuthorizedViewSets + * + * Create a request for the method "authorizedViewSets.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 AuthorizedViewSets. + * @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{@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 name of the analysis to get. - * @return the request + * @param parent Required. The parent resource of the AuthorizedViewSets. + * @since 1.13 */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); - initialize(result); - return result; + protected List(java.lang.String parent) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListAuthorizedViewSetsResponse.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 Get extends ContactcenterinsightsRequest{@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.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 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 Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + /** Required. The parent resource of the AuthorizedViewSets. */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** Required. The name of the analysis to get. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** Required. The parent resource of the AuthorizedViewSets. + */ + public java.lang.String getParent() { + return parent; + } - /** Required. The name of the analysis to get. - */ - public java.lang.String getName() { - return name; + /** Required. The parent resource of the AuthorizedViewSets. */ + 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; + } - /** 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; - } + /** + * Optional. The filter expression to filter authorized view sets listed in the response. + */ + @com.google.api.client.util.Key + private java.lang.String filter; - @Override - public Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); - } + /** Optional. The filter expression to filter authorized view sets listed in the response. + */ + public java.lang.String getFilter() { + return filter; } + /** - * 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 + * Optional. The filter expression to filter authorized view sets listed in the response. */ - public List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); - initialize(result); - return result; + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; } - public class List extends ContactcenterinsightsRequest{@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 AuthorizedViewSet. Format: + * projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AuthorizedViewSet} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AuthorizedViewSet content) { + super(Contactcenterinsights.this, "PATCH", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AuthorizedViewSet.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/[^/]+/authorizedViewSets/[^/]+$"); + } + } + + @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); + } + + /** + * Identifier. The resource name of the AuthorizedViewSet. Format: + * projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The resource name of the AuthorizedViewSet. Format: + projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set} + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the AuthorizedViewSet. Format: + * projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set} + */ + 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/[^/]+/authorizedViewSets/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. 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: * + * `display_name` + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. 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: * `display_name` + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. 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: * + * `display_name` + */ + 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 AuthorizedViews collection. + * + *The typical use is:
+ *+ * {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);} + * {@code Contactcenterinsights.AuthorizedViews.List request = contactcenterinsights.authorizedViews().list(parameters ...)} + *+ * + * @return the resource collection + */ + public AuthorizedViews authorizedViews() { + return new AuthorizedViews(); + } + + /** + * The "authorizedViews" collection of methods. + */ + public class AuthorizedViews { + + /** + * Create AuthorizedView + * + * Create a request for the method "authorizedViews.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 AuthorizedView. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AuthorizedView} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AuthorizedView content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends ContactcenterinsightsRequest
{@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 analyses. + * @param parent Required. The parent resource of the AuthorizedView. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AuthorizedView} * @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); + protected Create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AuthorizedView content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AuthorizedView.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/[^/]+/authorizedViewSets/[^/]+$"); } } @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @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); + 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 analyses. */ + /** Required. The parent resource of the AuthorizedView. */ @com.google.api.client.util.Key private java.lang.String parent; - /** Required. The parent resource of the analyses. + /** Required. The parent resource of the AuthorizedView. */ public java.lang.String getParent() { return parent; } - /** Required. The parent resource of the analyses. */ - public List setParent(java.lang.String parent) { + /** Required. The parent resource of the AuthorizedView. */ + 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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+$"); } this.parent = parent; return this; } /** - * A filter to reduce results to a specific subset. Useful for querying conversations - * with specific properties. + * Optional. A unique ID for the new AuthorizedView. This ID will become the final + * component of the AuthorizedView'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-z]([a-z0-9-]{0,61}[a-z0-9])?$`. See go/aip/122#resource-id- + * segments */ @com.google.api.client.util.Key - private java.lang.String filter; + private java.lang.String authorizedViewId; - /** A filter to reduce results to a specific subset. Useful for querying conversations with specific - properties. + /** Optional. A unique ID for the new AuthorizedView. This ID will become the final component of the + AuthorizedView'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-z]([a-z0-9-]{0,61}[a-z0-9])?$`. See go/aip/122#resource-id-segments */ - public java.lang.String getFilter() { - return filter; + public java.lang.String getAuthorizedViewId() { + return authorizedViewId; } /** - * A filter to reduce results to a specific subset. Useful for querying conversations - * with specific properties. + * Optional. A unique ID for the new AuthorizedView. This ID will become the final + * component of the AuthorizedView'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-z]([a-z0-9-]{0,61}[a-z0-9])?$`. See go/aip/122#resource-id- + * segments */ - public List setFilter(java.lang.String filter) { - this.filter = filter; + public Create setAuthorizedViewId(java.lang.String authorizedViewId) { + this.authorizedViewId = authorizedViewId; return this; } + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes an AuthorizedView. + * + * Create a request for the method "authorizedViews.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 AuthorizedView 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{@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 AuthorizedView to delete. + * @since 1.13 */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + 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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$"); + } + } - /** 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; + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } - /** - * 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; + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } - /** - * 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; + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - /** 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; + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } - /** - * 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 Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } - } - } - } - /** - * 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(); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - /** - * The "insightsdata" collection of methods. - */ - public class Insightsdata { + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - /** - * 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; - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - public class Export extends ContactcenterinsightsRequest
{@link - * Export#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 parent Required. The parent resource to export data from. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest} - * @since 1.13 + * @param name Required. The name of the AuthorizedView to get. + * @return the request */ - 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); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; } - @Override - public Export setAccessToken(java.lang.String accessToken) { - return (Export) super.setAccessToken(accessToken); - } + public class Get extends ContactcenterinsightsRequest{@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 AuthorizedView 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.GoogleCloudContactcenterinsightsV1AuthorizedView.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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$"); + } + } - @Override - public Export setKey(java.lang.String key) { - return (Export) super.setKey(key); - } + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - @Override - public Export setOauthToken(java.lang.String oauthToken) { - return (Export) super.setOauthToken(oauthToken); - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - @Override - public Export setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Export) super.setPrettyPrint(prettyPrint); - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @Override - public Export setQuotaUser(java.lang.String quotaUser) { - return (Export) super.setQuotaUser(quotaUser); - } + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - @Override - public Export setUploadType(java.lang.String uploadType) { - return (Export) super.setUploadType(uploadType); - } + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } - @Override - public Export setUploadProtocol(java.lang.String uploadProtocol) { - return (Export) super.setUploadProtocol(uploadProtocol); - } + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } - /** Required. The parent resource to export data from. */ - @com.google.api.client.util.Key - private java.lang.String parent; + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } - /** Required. The parent resource to export data from. - */ - public java.lang.String getParent() { - return parent; - } + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - /** 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/[^/]+$"); + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } - this.parent = parent; - return this; - } - @Override - public Export set(String parameterName, Object value) { - return (Export) super.set(parameterName, value); - } - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - } - /** - * 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(); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - /** - * The "issueModels" collection of methods. - */ - public class IssueModels { + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - /** - * 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; - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - public class CalculateIssueModelStats extends ContactcenterinsightsRequest
{@link CalculateIssueModelStats#initialize(com.google.api.clie - * nt.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 List#execute()} method to invoke the remote operation. * - * @param issueModel Required. The resource name of the issue model to query against. - * @since 1.13 + * @param parent Required. The parent resource of the AuthorizedViews. If the parent is set to `-`, all + * AuthorizedViews under the location will be returned. + * @return the request */ - 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); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - @Override - public CalculateIssueModelStats setAccessToken(java.lang.String accessToken) { - return (CalculateIssueModelStats) super.setAccessToken(accessToken); - } + public class List extends ContactcenterinsightsRequest{@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 AuthorizedViews. If the parent is set to `-`, all + * AuthorizedViews under the location will be returned. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListAuthorizedViewsResponse.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/[^/]+/authorizedViewSets/[^/]+$"); + } + } + + @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 AuthorizedViews. If the parent is set to `-`, + * all AuthorizedViews under the location will be returned. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the AuthorizedViews. If the parent is set to `-`, all + AuthorizedViews under the location will be returned. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource of the AuthorizedViews. If the parent is set to `-`, + * all AuthorizedViews under the location will be returned. + */ + 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/[^/]+/authorizedViewSets/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The filter expression to filter authorized views listed in the response. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The filter expression to filter authorized views listed in the response. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. The filter expression to filter authorized views listed in the response. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. The order by expression to order authorized views listed in the response. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. The order by expression to order authorized views listed in the response. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. The order by expression to order authorized views listed in the response. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. The maximum number of view 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 view 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; + } + + /** + * Optional. The maximum number of view 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; + } + + /** + * Optional. The value returned by the last `ListAuthorizedViewsResponse`. This value + * indicates that this is a continuation of a prior `ListAuthorizedViews` 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 `ListAuthorizedViewsResponse`. This value indicates that + this is a continuation of a prior `ListAuthorizedViews` 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 `ListAuthorizedViewsResponse`. This value + * indicates that this is a continuation of a prior `ListAuthorizedViews` 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); + } + } + /** + * Updates an AuthorizedView. + * + * Create a request for the method "authorizedViews.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 AuthorizedView. Format: projects/{project}/locations/{location} + * /authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AuthorizedView} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AuthorizedView content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends ContactcenterinsightsRequest{@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 AuthorizedView. Format: projects/{project}/locations/{location} + * /authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AuthorizedView} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AuthorizedView content) { + super(Contactcenterinsights.this, "PATCH", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AuthorizedView.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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$"); + } + } + + @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); + } + + /** + * Identifier. The resource name of the AuthorizedView. Format: projects/{project}/locat + * ions/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_ + * view} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The resource name of the AuthorizedView. Format: projects/{project}/locations/{location + }/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view} + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the AuthorizedView. Format: projects/{project}/locat + * ions/{location}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_ + * view} + */ + 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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. 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: * + * `conversation_filter` * `display_name` + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. 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: * `conversation_filter` * `display_name` + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. 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: * + * `conversation_filter` * `display_name` + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Query metrics. + * + * Create a request for the method "authorizedViews.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; + } + + public class QueryMetrics extends ContactcenterinsightsRequest{@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 QueryMetrics set$Xgafv(java.lang.String $Xgafv) { + return (QueryMetrics) super.set$Xgafv($Xgafv); + } + + @Override + public QueryMetrics setAccessToken(java.lang.String accessToken) { + return (QueryMetrics) super.setAccessToken(accessToken); + } + + @Override + public QueryMetrics setAlt(java.lang.String alt) { + return (QueryMetrics) super.setAlt(alt); + } + + @Override + public QueryMetrics setCallback(java.lang.String callback) { + return (QueryMetrics) super.setCallback(callback); + } + + @Override + public QueryMetrics setFields(java.lang.String fields) { + return (QueryMetrics) super.setFields(fields); + } + + @Override + public QueryMetrics setKey(java.lang.String key) { + return (QueryMetrics) super.setKey(key); + } + + @Override + public QueryMetrics setOauthToken(java.lang.String oauthToken) { + return (QueryMetrics) super.setOauthToken(oauthToken); + } + + @Override + public QueryMetrics setPrettyPrint(java.lang.Boolean prettyPrint) { + return (QueryMetrics) super.setPrettyPrint(prettyPrint); + } + + @Override + public QueryMetrics setQuotaUser(java.lang.String quotaUser) { + return (QueryMetrics) super.setQuotaUser(quotaUser); + } + + @Override + public QueryMetrics setUploadType(java.lang.String uploadType) { + return (QueryMetrics) super.setUploadType(uploadType); + } + + @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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$"); + } + this.location = location; + return this; + } + + @Override + public QueryMetrics set(String parameterName, Object value) { + return (QueryMetrics) super.set(parameterName, value); + } + } + /** + * SearchAuthorizedViewSets + * + * Create a request for the method "authorizedViews.search". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Search#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource of the AuthorizedViews. If the parent is set to `-`, all + * AuthorizedViews under the location will be returned. + * @return the request + */ + public Search search(java.lang.String parent) throws java.io.IOException { + Search result = new Search(parent); + initialize(result); + return result; + } + + public class Search extends ContactcenterinsightsRequest{@link + * Search#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 AuthorizedViews. If the parent is set to `-`, all + * AuthorizedViews under the location will be returned. + * @since 1.13 + */ + protected Search(java.lang.String parent) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1SearchAuthorizedViewsResponse.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/[^/]+/authorizedViewSets/[^/]+$"); + } + } + + @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 Search set$Xgafv(java.lang.String $Xgafv) { + return (Search) super.set$Xgafv($Xgafv); + } + + @Override + public Search setAccessToken(java.lang.String accessToken) { + return (Search) super.setAccessToken(accessToken); + } + + @Override + public Search setAlt(java.lang.String alt) { + return (Search) super.setAlt(alt); + } + + @Override + public Search setCallback(java.lang.String callback) { + return (Search) super.setCallback(callback); + } + + @Override + public Search setFields(java.lang.String fields) { + return (Search) super.setFields(fields); + } + + @Override + public Search setKey(java.lang.String key) { + return (Search) super.setKey(key); + } + + @Override + public Search setOauthToken(java.lang.String oauthToken) { + return (Search) super.setOauthToken(oauthToken); + } + + @Override + public Search setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Search) super.setPrettyPrint(prettyPrint); + } + + @Override + public Search setQuotaUser(java.lang.String quotaUser) { + return (Search) super.setQuotaUser(quotaUser); + } + + @Override + public Search setUploadType(java.lang.String uploadType) { + return (Search) super.setUploadType(uploadType); + } + + @Override + public Search setUploadProtocol(java.lang.String uploadProtocol) { + return (Search) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource of the AuthorizedViews. If the parent is set to `-`, + * all AuthorizedViews under the location will be returned. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the AuthorizedViews. If the parent is set to `-`, all + AuthorizedViews under the location will be returned. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource of the AuthorizedViews. If the parent is set to `-`, + * all AuthorizedViews under the location will be returned. + */ + public Search 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/[^/]+/authorizedViewSets/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The order by expression to order authorized views listed in the response. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. The order by expression to order authorized views listed in the response. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. The order by expression to order authorized views listed in the response. + */ + public Search setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. The maximum number of view 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 view 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; + } + + /** + * Optional. The maximum number of view 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 Search setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The value returned by the last `ListAuthorizedViewsResponse`. This value + * indicates that this is a continuation of a prior `ListAuthorizedViews` 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 `ListAuthorizedViewsResponse`. This value indicates that + this is a continuation of a prior `ListAuthorizedViews` 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 `ListAuthorizedViewsResponse`. This value + * indicates that this is a continuation of a prior `ListAuthorizedViews` call and that + * the system should return the next page of data. + */ + public Search setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** Optional. The query expression to search authorized views. */ + @com.google.api.client.util.Key + private java.lang.String query; + + /** Optional. The query expression to search authorized views. + */ + public java.lang.String getQuery() { + return query; + } + + /** Optional. The query expression to search authorized views. */ + public Search setQuery(java.lang.String query) { + this.query = query; + return this; + } + + @Override + public Search set(String parameterName, Object value) { + return (Search) 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
{@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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$"); + } + } + + @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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public BulkAnalyze set(String parameterName, Object value) { + return (BulkAnalyze) 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{@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 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/[^/]+/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); + } + } + /** + * 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{@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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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{@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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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); + } + } + /** + * 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{@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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$"); + } + } + + @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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$"); + } + 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); + } + } + + /** + * 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
{@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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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{@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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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{@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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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{@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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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
{@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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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{@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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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{@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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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{@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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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{@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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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}/locatio + * ns/{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}/locatio + * ns/{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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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 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(); + } + + /** + * The "operations" collection of methods. + */ + 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
{@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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/operations/[^/]+$"); + } + 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; + } + + public class Get extends ContactcenterinsightsRequest{@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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** 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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+/operations/[^/]+$"); + } + 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; + } + + public class List extends ContactcenterinsightsRequest{@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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$"); + } + } + + @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); + } + + /** 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; + } + + /** 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/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$"); + } + this.name = name; + return this; + } + + /** 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; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** 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; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + 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 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
{@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{@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{@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{@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{@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{@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{@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{@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{@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{@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
{@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{@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{@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{@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
{@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{@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{@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{@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{@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 Datasets collection. + * + *The typical use is:
+ *+ * {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);} + * {@code Contactcenterinsights.Datasets.List request = contactcenterinsights.datasets().list(parameters ...)} + *+ * + * @return the resource collection + */ + public Datasets datasets() { + return new Datasets(); + } + + /** + * The "datasets" collection of methods. + */ + public class Datasets { + + /** + * Delete feedback labels in bulk using a filter. + * + * Create a request for the method "datasets.bulkDeleteFeedbackLabels". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link BulkDeleteFeedbackLabels#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.GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest} + * @return the request + */ + public BulkDeleteFeedbackLabels bulkDeleteFeedbackLabels(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest content) throws java.io.IOException { + BulkDeleteFeedbackLabels result = new BulkDeleteFeedbackLabels(parent, content); + initialize(result); + return result; + } + + public class BulkDeleteFeedbackLabels extends ContactcenterinsightsRequest
{@link BulkDeleteFeedbackLabels#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.GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest} + * @since 1.13 + */ + protected BulkDeleteFeedbackLabels(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest 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/[^/]+/datasets/[^/]+$"); + } + } + + @Override + public BulkDeleteFeedbackLabels set$Xgafv(java.lang.String $Xgafv) { + return (BulkDeleteFeedbackLabels) super.set$Xgafv($Xgafv); + } + + @Override + public BulkDeleteFeedbackLabels setAccessToken(java.lang.String accessToken) { + return (BulkDeleteFeedbackLabels) super.setAccessToken(accessToken); + } + + @Override + public BulkDeleteFeedbackLabels setAlt(java.lang.String alt) { + return (BulkDeleteFeedbackLabels) super.setAlt(alt); + } + + @Override + public BulkDeleteFeedbackLabels setCallback(java.lang.String callback) { + return (BulkDeleteFeedbackLabels) super.setCallback(callback); + } + + @Override + public BulkDeleteFeedbackLabels setFields(java.lang.String fields) { + return (BulkDeleteFeedbackLabels) super.setFields(fields); + } + + @Override + public BulkDeleteFeedbackLabels setKey(java.lang.String key) { + return (BulkDeleteFeedbackLabels) super.setKey(key); + } + + @Override + public BulkDeleteFeedbackLabels setOauthToken(java.lang.String oauthToken) { + return (BulkDeleteFeedbackLabels) super.setOauthToken(oauthToken); + } + + @Override + public BulkDeleteFeedbackLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BulkDeleteFeedbackLabels) super.setPrettyPrint(prettyPrint); + } + + @Override + public BulkDeleteFeedbackLabels setQuotaUser(java.lang.String quotaUser) { + return (BulkDeleteFeedbackLabels) super.setQuotaUser(quotaUser); + } + + @Override + public BulkDeleteFeedbackLabels setUploadType(java.lang.String uploadType) { + return (BulkDeleteFeedbackLabels) super.setUploadType(uploadType); + } + + @Override + public BulkDeleteFeedbackLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (BulkDeleteFeedbackLabels) 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 BulkDeleteFeedbackLabels 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/[^/]+/datasets/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public BulkDeleteFeedbackLabels set(String parameterName, Object value) { + return (BulkDeleteFeedbackLabels) super.set(parameterName, value); + } + } + /** + * Download feedback labels in bulk from an external source. Currently supports exporting Quality AI + * example conversations with transcripts and question bodies. + * + * Create a request for the method "datasets.bulkDownloadFeedbackLabels". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link BulkDownloadFeedbackLabels#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.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest} + * @return the request + */ + 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 BulkDownloadFeedbackLabels extends ContactcenterinsightsRequest{@link BulkDownloadFeedbackLabels#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 feedback labels. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequest} + * @since 1.13 + */ + 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(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/datasets/[^/]+$"); + } + } + + @Override + public BulkDownloadFeedbackLabels set$Xgafv(java.lang.String $Xgafv) { + return (BulkDownloadFeedbackLabels) super.set$Xgafv($Xgafv); + } + + @Override + public BulkDownloadFeedbackLabels setAccessToken(java.lang.String accessToken) { + return (BulkDownloadFeedbackLabels) super.setAccessToken(accessToken); + } + + @Override + public BulkDownloadFeedbackLabels setAlt(java.lang.String alt) { + return (BulkDownloadFeedbackLabels) super.setAlt(alt); + } + + @Override + public BulkDownloadFeedbackLabels setCallback(java.lang.String callback) { + return (BulkDownloadFeedbackLabels) super.setCallback(callback); + } + + @Override + public BulkDownloadFeedbackLabels setFields(java.lang.String fields) { + return (BulkDownloadFeedbackLabels) super.setFields(fields); + } + + @Override + public BulkDownloadFeedbackLabels setKey(java.lang.String key) { + return (BulkDownloadFeedbackLabels) super.setKey(key); + } + + @Override + public BulkDownloadFeedbackLabels setOauthToken(java.lang.String oauthToken) { + return (BulkDownloadFeedbackLabels) super.setOauthToken(oauthToken); + } + + @Override + public BulkDownloadFeedbackLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BulkDownloadFeedbackLabels) super.setPrettyPrint(prettyPrint); + } + + @Override + public BulkDownloadFeedbackLabels setQuotaUser(java.lang.String quotaUser) { + return (BulkDownloadFeedbackLabels) super.setQuotaUser(quotaUser); + } + + @Override + public BulkDownloadFeedbackLabels setUploadType(java.lang.String uploadType) { + return (BulkDownloadFeedbackLabels) super.setUploadType(uploadType); + } + + @Override + 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/[^/]+/datasets/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public BulkDownloadFeedbackLabels set(String parameterName, Object value) { + return (BulkDownloadFeedbackLabels) super.set(parameterName, value); + } + } + /** + * Upload feedback labels from an external source in bulk. Currently supports labeling Quality AI + * example conversations. + * + * Create a request for the method "datasets.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{@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/[^/]+/datasets/[^/]+$"); + } + } + + @Override + public BulkUploadFeedbackLabels set$Xgafv(java.lang.String $Xgafv) { + return (BulkUploadFeedbackLabels) super.set$Xgafv($Xgafv); + } + + @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 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 BulkUploadFeedbackLabels 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/[^/]+/datasets/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public BulkUploadFeedbackLabels set(String parameterName, Object value) { + return (BulkUploadFeedbackLabels) super.set(parameterName, value); + } + } + /** + * List all feedback labels by project number. + * + * Create a request for the method "datasets.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; + } + + public class ListAllFeedbackLabels extends ContactcenterinsightsRequest{@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 of all feedback labels per project. + * @since 1.13 + */ + 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/[^/]+/datasets/[^/]+$"); + } + } + + @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 ListAllFeedbackLabels set$Xgafv(java.lang.String $Xgafv) { + return (ListAllFeedbackLabels) super.set$Xgafv($Xgafv); + } + + @Override + public ListAllFeedbackLabels setAccessToken(java.lang.String accessToken) { + return (ListAllFeedbackLabels) super.setAccessToken(accessToken); + } + + @Override + public ListAllFeedbackLabels setAlt(java.lang.String alt) { + return (ListAllFeedbackLabels) super.setAlt(alt); + } + + @Override + public ListAllFeedbackLabels setCallback(java.lang.String callback) { + return (ListAllFeedbackLabels) super.setCallback(callback); + } + + @Override + public ListAllFeedbackLabels setFields(java.lang.String fields) { + return (ListAllFeedbackLabels) super.setFields(fields); + } + + @Override + public ListAllFeedbackLabels setKey(java.lang.String key) { + return (ListAllFeedbackLabels) super.setKey(key); + } + + @Override + public ListAllFeedbackLabels setOauthToken(java.lang.String oauthToken) { + return (ListAllFeedbackLabels) super.setOauthToken(oauthToken); + } + + @Override + public ListAllFeedbackLabels setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ListAllFeedbackLabels) super.setPrettyPrint(prettyPrint); + } + + @Override + public ListAllFeedbackLabels setQuotaUser(java.lang.String quotaUser) { + return (ListAllFeedbackLabels) super.setQuotaUser(quotaUser); + } + + @Override + public ListAllFeedbackLabels setUploadType(java.lang.String uploadType) { + return (ListAllFeedbackLabels) super.setUploadType(uploadType); + } + + @Override + public ListAllFeedbackLabels setUploadProtocol(java.lang.String uploadProtocol) { + return (ListAllFeedbackLabels) 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 of all feedback labels per project. + */ + 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/[^/]+/datasets/[^/]+$"); + } + 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; + + /** 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; + } + + /** + * 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 ListAllFeedbackLabels 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 ListAllFeedbackLabels setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * 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; + + /** 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; + } + + /** + * 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 ListAllFeedbackLabels set(String parameterName, Object value) { + return (ListAllFeedbackLabels) 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
{@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/[^/]+/datasets/[^/]+$"); + } + } + + @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/[^/]+/datasets/[^/]+$"); + } + 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{@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/[^/]+/datasets/[^/]+$"); + } + } + + @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/[^/]+/datasets/[^/]+$"); + } + 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. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1CalculateStatsRequest} + * @return the request + */ + public CalculateStats calculateStats(java.lang.String location, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1CalculateStatsRequest content) throws java.io.IOException { + CalculateStats result = new CalculateStats(location, content); + initialize(result); + return result; + } + + public class CalculateStats extends ContactcenterinsightsRequest{@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. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1CalculateStatsRequest} + * @since 1.13 + */ + protected CalculateStats(java.lang.String location, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1CalculateStatsRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, 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/[^/]+/datasets/[^/]+$"); + } + } + + @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/[^/]+/datasets/[^/]+$"); + } + this.location = location; + return this; + } + + @Override + public CalculateStats set(String parameterName, Object value) { + return (CalculateStats) 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{@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/[^/]+/datasets/[^/]+/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/[^/]+/datasets/[^/]+/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{@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/[^/]+/datasets/[^/]+/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/[^/]+/datasets/[^/]+/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{@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/[^/]+/datasets/[^/]+$"); + } + } + + @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/[^/]+/datasets/[^/]+$"); + } + 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{@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/[^/]+/datasets/[^/]+$"); + } + } + + @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/[^/]+/datasets/[^/]+$"); + } + 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); + } + } + + /** + * 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
{@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/[^/]+/datasets/[^/]+/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/[^/]+/datasets/[^/]+/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{@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/[^/]+/datasets/[^/]+/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/[^/]+/datasets/[^/]+/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{@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/[^/]+/datasets/[^/]+/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/[^/]+/datasets/[^/]+/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{@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/[^/]+/datasets/[^/]+/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/[^/]+/datasets/[^/]+/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
{@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/[^/]+/datasets/[^/]+/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/[^/]+/datasets/[^/]+/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{@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/[^/]+/datasets/[^/]+/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/[^/]+/datasets/[^/]+/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{@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/[^/]+/datasets/[^/]+/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/[^/]+/datasets/[^/]+/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{@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/[^/]+/datasets/[^/]+/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/[^/]+/datasets/[^/]+/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{@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/[^/]+/datasets/[^/]+/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/[^/]+/datasets/[^/]+/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 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
{@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/[^/]+/datasets/[^/]+$"); + } + } + + @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/[^/]+/datasets/[^/]+$"); + } + 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 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
{@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
{@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
{@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); + 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{@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{@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{@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{@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{@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{@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{@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{@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{@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
{@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{@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) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets an issue. + * + * 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 issue 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{@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 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 to get. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the issue to get. + */ + public java.lang.String getName() { + return name; + } + + /** 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; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists issues. + * + * 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 issue. + * @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{@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. + * @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); + 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 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. */ + @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{@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); + } + + @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. Format: + * projects/{project}/locations/{location}/issueModels/{issue_model}/issues/{issue} + */ + @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} + */ + 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) { + 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 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); + } + } + + } + } + /** + * 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(); + } + + /** + * The "operations" collection of methods. + */ + 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
{@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); + } + } + /** + * 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; + } + + public class Get extends ContactcenterinsightsRequest{@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 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); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** 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/[^/]+$"); + } + 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; + } + + public class List extends ContactcenterinsightsRequest{@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 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); + } + + /** 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; + } + + /** 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; + } + + /** 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; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** 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; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + 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 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 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; + } + + public class Create extends ContactcenterinsightsRequest
{@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 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.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/[^/]+$"); + } + } + + @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 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 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 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/[^/]+$"); + } + 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; + } + + public class Delete extends ContactcenterinsightsRequest{@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 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.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/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public CalculateIssueModelStats setOauthToken(java.lang.String oauthToken) { - return (CalculateIssueModelStats) super.setOauthToken(oauthToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public CalculateIssueModelStats setPrettyPrint(java.lang.Boolean prettyPrint) { - return (CalculateIssueModelStats) super.setPrettyPrint(prettyPrint); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public CalculateIssueModelStats setQuotaUser(java.lang.String quotaUser) { - return (CalculateIssueModelStats) super.setQuotaUser(quotaUser); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public CalculateIssueModelStats setUploadType(java.lang.String uploadType) { - return (CalculateIssueModelStats) super.setUploadType(uploadType); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public CalculateIssueModelStats setUploadProtocol(java.lang.String uploadProtocol) { - return (CalculateIssueModelStats) super.setUploadProtocol(uploadProtocol); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } - /** Required. The resource name of the issue model to query against. */ + @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 phrase matcher to delete. */ @com.google.api.client.util.Key - private java.lang.String issueModel; + private java.lang.String name; - /** Required. The resource name of the issue model to query against. + /** Required. The name of the phrase matcher to delete. */ - public java.lang.String getIssueModel() { - return issueModel; + public java.lang.String getName() { + return name; } - /** Required. The resource name of the issue model to query against. */ - public CalculateIssueModelStats setIssueModel(java.lang.String issueModel) { + /** 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(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/[^/]+/phraseMatchers/[^/]+$"); } - this.issueModel = issueModel; + this.name = name; return this; } @Override - public CalculateIssueModelStats set(String parameterName, Object value) { - return (CalculateIssueModelStats) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Creates an issue model. + * Gets a phrase matcher. * - * Create a request for the method "issueModels.create". + * 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 Create#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 of the issue model. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel} + * @param name Required. The name of the phrase matcher to get. * @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); + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Create extends ContactcenterinsightsRequest{@link - * Create#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 of the issue model. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1IssueModel} + * @param name Required. The name of the phrase matcher to get. * @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."); + 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(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/[^/]+/phraseMatchers/[^/]+$"); } } @Override - public Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - /** Required. The parent resource of the 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 phrase matcher to get. */ @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 phrase matcher to get. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** Required. The parent resource of the issue model. */ - public Create setParent(java.lang.String parent) { + /** 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(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/[^/]+/phraseMatchers/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } @Override - public Create set(String parameterName, Object value) { - return (Create) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Deletes an issue model. + * Lists phrase matchers. * - * Create a request for the method "issueModels.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. * - * @param name Required. The name of the issue model to delete. + * @param parent Required. The parent resource of the phrase matcher. * @return the request */ - public Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); initialize(result); return result; } - public class Delete extends ContactcenterinsightsRequest{@link - * Delete#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 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."); + * @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(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 Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + 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); + 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); + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public List setKey(java.lang.String key) { + return (List) super.setKey(key); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); } - /** Required. The name of the issue model to delete. */ + @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 name of the issue model to delete. + /** Required. The parent resource of the phrase matcher. */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** Required. The name of the issue model to delete. */ - public Delete 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) 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. + * Updates a phrase matcher. * - * Create a request for the method "issueModels.deploy". + * 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 Deploy#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Patch#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 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 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 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 Deploy extends ContactcenterinsightsRequest{@link - * Deploy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * 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 issue model to deploy. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1DeployIssueModelRequest} + * @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 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 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 Deploy set$Xgafv(java.lang.String $Xgafv) { - return (Deploy) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Deploy setAccessToken(java.lang.String accessToken) { - return (Deploy) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Deploy setAlt(java.lang.String alt) { - return (Deploy) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Deploy setCallback(java.lang.String callback) { - return (Deploy) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Deploy setFields(java.lang.String fields) { - return (Deploy) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Deploy setKey(java.lang.String key) { - return (Deploy) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Deploy setOauthToken(java.lang.String oauthToken) { - return (Deploy) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Deploy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Deploy) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Deploy setQuotaUser(java.lang.String quotaUser) { - return (Deploy) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Deploy setUploadType(java.lang.String uploadType) { - return (Deploy) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Deploy setUploadProtocol(java.lang.String uploadProtocol) { - return (Deploy) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } - /** Required. The issue model to deploy. */ + /** + * 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 issue model to deploy. + /** The resource name of the phrase matcher. Format: + projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} */ public java.lang.String getName() { return name; } - /** Required. The issue model to deploy. */ - public Deploy 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 Deploy set(String parameterName, Object value) { - return (Deploy) 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 { + /** - * Exports an issue model to the provided destination. + * Create a QaScorecard. * - * Create a request for the method "issueModels.export". + * 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 Export#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Create#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 QaScorecard. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecard} * @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 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 Export extends ContactcenterinsightsRequest
{@link - * Export#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Create#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 QaScorecard. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1QaScorecard} * @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 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(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 Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public Export setAccessToken(java.lang.String accessToken) { - return (Export) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Export setAlt(java.lang.String alt) { - return (Export) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Export setCallback(java.lang.String callback) { - return (Export) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Export setFields(java.lang.String fields) { - return (Export) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public Export setKey(java.lang.String key) { - return (Export) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public Export setOauthToken(java.lang.String oauthToken) { - return (Export) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public Export setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Export) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public Export setQuotaUser(java.lang.String quotaUser) { - return (Export) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public Export setUploadType(java.lang.String uploadType) { - return (Export) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public Export setUploadProtocol(java.lang.String uploadProtocol) { - return (Export) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } - /** Required. The issue model to export. */ + /** Required. The parent resource of the QaScorecard. */ @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 QaScorecard. */ - 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 QaScorecard. */ + public Create 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; + } + + /** + * 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 Export set(String parameterName, Object value) { - return (Export) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Gets an issue model. + * Deletes a QaScorecard. * - * Create a request for the method "issueModels.get". + * 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 Get#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The name of the issue model to get. + * @param name Required. The name of the QaScorecard to delete. * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Get extends ContactcenterinsightsRequest{@link - * Get#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 name Required. The name of the issue model to get. + * @param name Required. The name of the QaScorecard to delete. * @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 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/[^/]+$"); + "^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 Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the issue model to get. */ + /** Required. The name of the QaScorecard to delete. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the issue model to get. + /** Required. The name of the QaScorecard to delete. */ public java.lang.String getName() { return name; } - /** Required. The name of the issue model to get. */ - public Get setName(java.lang.String name) { + /** Required. The name of the QaScorecard 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/[^/]+/qaScorecards/[^/]+$"); } 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Imports an issue model from a Cloud Storage bucket. + * Gets a QaScorecard. * - * Create a request for the method "issueModels.import". + * 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 ContactcenterinsightsImport#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 of the issue model. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequest} + * @param name Required. The name of the QaScorecard to get. * @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 Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class ContactcenterinsightsImport extends ContactcenterinsightsRequest{@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 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 parent Required. The parent resource of the issue model. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ImportIssueModelRequest} + * @param name Required. The name of the QaScorecard to get. * @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."); + 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(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/[^/]+$"); } } @Override - public ContactcenterinsightsImport set$Xgafv(java.lang.String $Xgafv) { - return (ContactcenterinsightsImport) super.set$Xgafv($Xgafv); + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); } @Override - public ContactcenterinsightsImport setAccessToken(java.lang.String accessToken) { - return (ContactcenterinsightsImport) super.setAccessToken(accessToken); + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); } @Override - public ContactcenterinsightsImport setAlt(java.lang.String alt) { - return (ContactcenterinsightsImport) super.setAlt(alt); + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); } @Override - public ContactcenterinsightsImport setCallback(java.lang.String callback) { - return (ContactcenterinsightsImport) super.setCallback(callback); + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); } @Override - public ContactcenterinsightsImport setFields(java.lang.String fields) { - return (ContactcenterinsightsImport) super.setFields(fields); + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); } @Override - public ContactcenterinsightsImport setKey(java.lang.String key) { - return (ContactcenterinsightsImport) super.setKey(key); + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); } @Override - public ContactcenterinsightsImport setOauthToken(java.lang.String oauthToken) { - return (ContactcenterinsightsImport) super.setOauthToken(oauthToken); + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); } @Override - public ContactcenterinsightsImport setPrettyPrint(java.lang.Boolean prettyPrint) { - return (ContactcenterinsightsImport) super.setPrettyPrint(prettyPrint); + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); } @Override - public ContactcenterinsightsImport setQuotaUser(java.lang.String quotaUser) { - return (ContactcenterinsightsImport) super.setQuotaUser(quotaUser); + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); } @Override - public ContactcenterinsightsImport setUploadType(java.lang.String uploadType) { - return (ContactcenterinsightsImport) super.setUploadType(uploadType); + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); } @Override - public ContactcenterinsightsImport setUploadProtocol(java.lang.String uploadProtocol) { - return (ContactcenterinsightsImport) super.setUploadProtocol(uploadProtocol); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } - /** Required. The parent resource of the 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 parent; + private java.lang.String name; - /** Required. The parent resource of the issue model. + /** Required. The name of the QaScorecard to get. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** Required. The parent resource of the issue model. */ - public ContactcenterinsightsImport setParent(java.lang.String parent) { + /** Required. The name of the QaScorecard to get. */ + 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/[^/]+/qaScorecards/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } @Override - public ContactcenterinsightsImport set(String parameterName, Object value) { - return (ContactcenterinsightsImport) super.set(parameterName, value); + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); } } /** - * Lists issue models. + * Lists QaScorecards. * - * Create a request for the method "issueModels.list". + * 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 List#execute()} method to invoke the remote operation. * - * @param parent Required. The parent resource of the issue model. + * @param parent Required. The parent resource of the scorecards. * @return the request */ public List list(java.lang.String parent) throws java.io.IOException { @@ -3856,17 +17791,17 @@ public List list(java.lang.String parent) throws java.io.IOException { return result; } - public class List extends ContactcenterinsightsRequest{@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} + * 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.String name; + private java.lang.Integer pageSize; - /** Immutable. The resource name of the issue model. Format: - projects/{project}/locations/{location}/issueModels/{issue_model} + /** 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.String getName() { - return name; + public java.lang.Integer getPageSize() { + return pageSize; } /** - * Immutable. The resource name of the issue model. Format: - * projects/{project}/locations/{location}/issueModels/{issue_model} + * 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 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; + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; return this; } - /** The list of fields to be updated. */ + /** + * 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 String updateMask; + private java.lang.String pageToken; - /** The list of fields to be updated. + /** 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 String getUpdateMask() { - return updateMask; + public java.lang.String getPageToken() { + return pageToken; } - /** The list of fields to be updated. */ - public Patch setUpdateMask(String updateMask) { - this.updateMask = updateMask; + /** + * 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 Patch set(String parameterName, Object value) { - return (Patch) super.set(parameterName, value); + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); } } /** - * Undeploys an issue model. An issue model can not be used in analysis after it has been - * undeployed. + * Updates a QaScorecard. * - * Create a request for the method "issueModels.undeploy". + * 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 Undeploy#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Patch#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 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 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 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; } - public class Undeploy extends ContactcenterinsightsRequest{@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 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 Required. The issue model to undeploy. - * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest} + * @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 */ - 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); + 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/[^/]+/issueModels/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$"); } } @Override - public Undeploy set$Xgafv(java.lang.String $Xgafv) { - return (Undeploy) super.set$Xgafv($Xgafv); + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); } @Override - public Undeploy setAccessToken(java.lang.String accessToken) { - return (Undeploy) super.setAccessToken(accessToken); + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); } @Override - public Undeploy setAlt(java.lang.String alt) { - return (Undeploy) super.setAlt(alt); + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); } @Override - public Undeploy setCallback(java.lang.String callback) { - return (Undeploy) super.setCallback(callback); + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); } @Override - public Undeploy setFields(java.lang.String fields) { - return (Undeploy) super.setFields(fields); + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); } @Override - public Undeploy setKey(java.lang.String key) { - return (Undeploy) super.setKey(key); + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); } @Override - public Undeploy setOauthToken(java.lang.String oauthToken) { - return (Undeploy) super.setOauthToken(oauthToken); + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); } @Override - public Undeploy setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Undeploy) super.setPrettyPrint(prettyPrint); + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); } @Override - public Undeploy setQuotaUser(java.lang.String quotaUser) { - return (Undeploy) super.setQuotaUser(quotaUser); + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); } @Override - public Undeploy setUploadType(java.lang.String uploadType) { - return (Undeploy) super.setUploadType(uploadType); + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); } @Override - public Undeploy setUploadProtocol(java.lang.String uploadProtocol) { - return (Undeploy) super.setUploadProtocol(uploadProtocol); + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); } - /** Required. The issue model to undeploy. */ + /** + * Identifier. The scorecard name. Format: + * projects/{project}/locations/{location}/qaScorecards/{qa_scorecard} + */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The issue model to undeploy. + /** Identifier. The scorecard name. Format: + projects/{project}/locations/{location}/qaScorecards/{qa_scorecard} */ public java.lang.String getName() { return name; } - /** Required. The issue model to undeploy. */ - public Undeploy setName(java.lang.String name) { + /** + * 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/[^/]+/issueModels/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$"); } this.name = name; return this; } + /** + * 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; + + /** 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; + } + + /** + * 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; + } + @Override - public Undeploy set(String parameterName, Object value) { - return (Undeploy) super.set(parameterName, value); + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); } } /** - * An accessor for creating requests from the Issues collection. + * An accessor for creating requests from the Revisions collection. * *The typical use is:
** {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);} - * {@code Contactcenterinsights.Issues.List request = contactcenterinsights.issues().list(parameters ...)} + * {@code Contactcenterinsights.Revisions.List request = contactcenterinsights.revisions().list(parameters ...)} ** * @return the resource collection */ - public Issues issues() { - return new Issues(); + public Revisions revisions() { + return new Revisions(); } /** - * The "issues" collection of methods. + * The "revisions" collection of methods. */ - public class Issues { + public class Revisions { /** - * Deletes an issue. + * Creates a QaScorecardRevision. * - * Create a request for the method "issues.delete". + * 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 Delete#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. * - * @param name Required. The name of the issue to delete. + * @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 Delete delete(java.lang.String name) throws java.io.IOException { - Delete result = new Delete(name); + 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 Delete extends ContactcenterinsightsRequest
{@link - * Delete#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * Create#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. + * @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 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."); + 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(NAME_PATTERN.matcher(name).matches(), - "Parameter name must conform to the pattern " + - "^projects/[^/]+/locations/[^/]+/issueModels/[^/]+/issues/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$"); } } @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); } @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); } @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); } @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); } @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); } @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); } @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); } @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); } @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); } @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); } @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the issue to delete. */ + /** Required. The parent resource of the QaScorecardRevision. */ @com.google.api.client.util.Key - private java.lang.String name; + private java.lang.String parent; - /** Required. The name of the issue to delete. + /** Required. The parent resource of the QaScorecardRevision. */ - public java.lang.String getName() { - return name; + public java.lang.String getParent() { + return parent; } - /** Required. The name of the issue to delete. */ - public Delete setName(java.lang.String name) { + /** Required. The parent resource of the QaScorecardRevision. */ + public Create 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/[^/]+/issues/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+$"); } - this.name = name; + 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 Delete set(String parameterName, Object value) { - return (Delete) super.set(parameterName, value); + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); } } /** - * Gets an issue. + * Deletes a QaScorecardRevision. * - * Create a request for the method "issues.get". + * 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 Get#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. * - * @param name Required. The name of the issue to get. + * @param name Required. The name of the QaScorecardRevision to delete. * @return the request */ - public Get get(java.lang.String name) throws java.io.IOException { - Get result = new Get(name); + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); initialize(result); return result; } - public class Get extends ContactcenterinsightsRequest{@link - * Get#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 name Required. The name of the issue to get. + * @param name Required. The name of the QaScorecardRevision to delete. * @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); + 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 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 Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); } @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); } @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); } @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); } @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); } @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); } @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); } @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); } @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); } @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); } @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); } - /** Required. The name of the issue to get. */ + /** Required. The name of the QaScorecardRevision to delete. */ @com.google.api.client.util.Key private java.lang.String name; - /** Required. The name of the issue to get. + /** Required. The name of the QaScorecardRevision to delete. */ public java.lang.String getName() { return name; } - /** Required. The name of the issue to get. */ - public Get 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; } + /** + * 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 java.lang.Boolean force; + + /** 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 java.lang.Boolean getForce() { + return force; + } + + /** + * 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 Get set(String parameterName, Object value) { - return (Get) super.set(parameterName, value); + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); } } /** - * Lists issues. + * Deploy a QaScorecardRevision. * - * Create a request for the method "issues.list". + * 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 List#execute()} method to invoke the remote operation. + * optional parameters, call the {@link Deploy#execute()} method to invoke the remote operation. * - * @param parent Required. The parent resource of the issue. + * @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 List list(java.lang.String parent) throws java.io.IOException { - List result = new List(parent); + 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; } - public class List extends ContactcenterinsightsRequest{@link - * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be - * called to initialize this instance immediately after invoking the constructor.
+ * Deploy#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 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 List(java.lang.String parent) { - 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."); + 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(PARENT_PATTERN.matcher(parent).matches(), - "Parameter parent 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/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); } } @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 Deploy set$Xgafv(java.lang.String $Xgafv) { + return (Deploy) super.set$Xgafv($Xgafv); } @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); + public Deploy setAccessToken(java.lang.String accessToken) { + return (Deploy) super.setAccessToken(accessToken); } @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + public Deploy setAlt(java.lang.String alt) { + return (Deploy) super.setAlt(alt); } @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + public Deploy setCallback(java.lang.String callback) { + return (Deploy) super.setCallback(callback); } @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); + public Deploy setFields(java.lang.String fields) { + return (Deploy) super.setFields(fields); } @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); + public Deploy setKey(java.lang.String key) { + return (Deploy) super.setKey(key); } @Override - public List setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); + public Deploy setOauthToken(java.lang.String oauthToken) { + return (Deploy) super.setOauthToken(oauthToken); } @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); + public Deploy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Deploy) super.setPrettyPrint(prettyPrint); } @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); + public Deploy setQuotaUser(java.lang.String quotaUser) { + return (Deploy) super.setQuotaUser(quotaUser); } @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); + public Deploy setUploadType(java.lang.String uploadType) { + return (Deploy) super.setUploadType(uploadType); } @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); + public Deploy setUploadProtocol(java.lang.String uploadProtocol) { + return (Deploy) super.setUploadProtocol(uploadProtocol); } - /** Required. The parent resource of the issue. */ + /** Required. The name of the QaScorecardRevision to deploy. */ @com.google.api.client.util.Key - private java.lang.String parent; + private java.lang.String name; - /** Required. The parent resource of the issue. + /** Required. The name of the QaScorecardRevision to deploy. */ - public java.lang.String getParent() { - return parent; + public java.lang.String getName() { + return name; } - /** Required. The parent resource of the issue. */ - public List setParent(java.lang.String parent) { + /** Required. The name of the QaScorecardRevision to deploy. */ + public Deploy 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/[^/]+/issueModels/[^/]+$"); + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); } - this.parent = parent; + this.name = name; return this; } @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + public Deploy set(String parameterName, Object value) { + return (Deploy) super.set(parameterName, value); } } /** - * Updates an issue. + * Gets a QaScorecardRevision. * - * Create a request for the method "issues.patch". + * Create a request for the method "revisions.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. 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 get. * @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 Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); initialize(result); return result; } - public class Patch extends ContactcenterinsightsRequest{@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. 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 get. * @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 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/[^/]+/issueModels/[^/]+/issues/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); } } @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 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 Patch setQuotaUser(java.lang.String quotaUser) { - return (Patch) super.setQuotaUser(quotaUser); + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); } @Override - public Patch setUploadType(java.lang.String uploadType) { - return (Patch) super.setUploadType(uploadType); + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); } @Override - public Patch setUploadProtocol(java.lang.String uploadProtocol) { - return (Patch) super.setUploadProtocol(uploadProtocol); + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) 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 get. */ @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 get. */ 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 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/[^/]+$"); + "^projects/[^/]+/locations/[^/]+/qaScorecards/[^/]+/revisions/[^/]+$"); } 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); } } - - } - } - /** - * 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(); - } - - /** - * The "operations" collection of methods. - */ - 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
{@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 List#execute()} method to invoke the remote operation. * - * @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. + * @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 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); + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; } - } - /** - * 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; - } - public class Get extends ContactcenterinsightsRequest{@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/[^/]+$"); + /** + * 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 com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @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 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 List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } - /** The name of the operation resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + /** + * 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; - /** The name of the operation resource. - */ - public java.lang.String getName() { - return name; - } + /** 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; + } - /** 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/[^/]+$"); + /** + * 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; } - 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; - } + /** + * 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; - public class List extends ContactcenterinsightsRequest{@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/[^/]+$"); + /** 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 com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + /** + * 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 com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + /** + * 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 set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + /** 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; + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + /** + * 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; + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } } - - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); + /** + * 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 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; } - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + public class TuneQaScorecardRevision extends ContactcenterinsightsRequest{@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/[^/]+$"); + } + } - @Override - public List setQuotaUser(java.lang.String quotaUser) { - return (List) super.setQuotaUser(quotaUser); - } + @Override + public TuneQaScorecardRevision set$Xgafv(java.lang.String $Xgafv) { + return (TuneQaScorecardRevision) super.set$Xgafv($Xgafv); + } - @Override - public List setUploadType(java.lang.String uploadType) { - return (List) super.setUploadType(uploadType); - } + @Override + public TuneQaScorecardRevision setAccessToken(java.lang.String accessToken) { + return (TuneQaScorecardRevision) super.setAccessToken(accessToken); + } - @Override - public List setUploadProtocol(java.lang.String uploadProtocol) { - return (List) super.setUploadProtocol(uploadProtocol); - } + @Override + public TuneQaScorecardRevision setAlt(java.lang.String alt) { + return (TuneQaScorecardRevision) super.setAlt(alt); + } - /** The name of the operation's parent resource. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public TuneQaScorecardRevision setCallback(java.lang.String callback) { + return (TuneQaScorecardRevision) super.setCallback(callback); + } - /** The name of the operation's parent resource. - */ - public java.lang.String getName() { - return name; - } + @Override + public TuneQaScorecardRevision setFields(java.lang.String fields) { + return (TuneQaScorecardRevision) super.setFields(fields); + } - /** 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/[^/]+$"); + @Override + public TuneQaScorecardRevision setKey(java.lang.String key) { + return (TuneQaScorecardRevision) super.setKey(key); } - this.name = name; - return this; - } - /** The standard list filter. */ - @com.google.api.client.util.Key - private java.lang.String filter; + @Override + public TuneQaScorecardRevision setOauthToken(java.lang.String oauthToken) { + return (TuneQaScorecardRevision) super.setOauthToken(oauthToken); + } - /** The standard list filter. - */ - public java.lang.String getFilter() { - return filter; - } + @Override + public TuneQaScorecardRevision setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TuneQaScorecardRevision) super.setPrettyPrint(prettyPrint); + } - /** The standard list filter. */ - public List setFilter(java.lang.String filter) { - this.filter = filter; - return this; - } + @Override + public TuneQaScorecardRevision setQuotaUser(java.lang.String quotaUser) { + return (TuneQaScorecardRevision) super.setQuotaUser(quotaUser); + } - /** The standard list page size. */ - @com.google.api.client.util.Key - private java.lang.Integer pageSize; + @Override + public TuneQaScorecardRevision setUploadType(java.lang.String uploadType) { + return (TuneQaScorecardRevision) super.setUploadType(uploadType); + } - /** The standard list page size. - */ - public java.lang.Integer getPageSize() { - return pageSize; - } + @Override + public TuneQaScorecardRevision setUploadProtocol(java.lang.String uploadProtocol) { + return (TuneQaScorecardRevision) super.setUploadProtocol(uploadProtocol); + } - /** The standard list page size. */ - public List setPageSize(java.lang.Integer pageSize) { - this.pageSize = pageSize; - return this; - } + /** Required. The parent resource for new fine tuning job instance. */ + @com.google.api.client.util.Key + private java.lang.String parent; - /** The standard list page token. */ - @com.google.api.client.util.Key - private java.lang.String pageToken; + /** Required. The parent resource for new fine tuning job instance. + */ + public java.lang.String getParent() { + return parent; + } - /** The standard list page token. - */ - public java.lang.String getPageToken() { - return pageToken; - } + /** 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; + } - /** The standard list page token. */ - public List setPageToken(java.lang.String pageToken) { - this.pageToken = pageToken; - return this; + @Override + public TuneQaScorecardRevision set(String parameterName, Object value) { + return (TuneQaScorecardRevision) super.set(parameterName, value); + } } - - @Override - public List set(String parameterName, Object value) { - return (List) super.set(parameterName, value); + /** + * Undeploy a QaScorecardRevision. + * + * Create a request for the method "revisions.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 name of the QaScorecardRevision to undeploy. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1UndeployQaScorecardRevisionRequest} + * @return the request + */ + 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; } - } - } - /** - * 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(); - } + public class Undeploy extends ContactcenterinsightsRequest
{@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/[^/]+$"); + } + } - private static final String REST_PATH = "v1/{+parent}/phraseMatchers"; + @Override + public Undeploy set$Xgafv(java.lang.String $Xgafv) { + return (Undeploy) super.set$Xgafv($Xgafv); + } - private final java.util.regex.Pattern PARENT_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + @Override + public Undeploy setAccessToken(java.lang.String accessToken) { + return (Undeploy) super.setAccessToken(accessToken); + } - /** - * Creates a phrase matcher. - * - * 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 - * 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 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.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/[^/]+$"); + @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 Create set$Xgafv(java.lang.String $Xgafv) { - return (Create) super.set$Xgafv($Xgafv); - } + @Override + public Undeploy setFields(java.lang.String fields) { + return (Undeploy) super.setFields(fields); + } - @Override - public Create setAccessToken(java.lang.String accessToken) { - return (Create) super.setAccessToken(accessToken); - } + @Override + public Undeploy setKey(java.lang.String key) { + return (Undeploy) super.setKey(key); + } - @Override - public Create setAlt(java.lang.String alt) { - return (Create) super.setAlt(alt); - } + @Override + public Undeploy setOauthToken(java.lang.String oauthToken) { + return (Undeploy) super.setOauthToken(oauthToken); + } - @Override - public Create setCallback(java.lang.String callback) { - return (Create) super.setCallback(callback); - } + @Override + public Undeploy setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Undeploy) super.setPrettyPrint(prettyPrint); + } - @Override - public Create setFields(java.lang.String fields) { - return (Create) super.setFields(fields); - } + @Override + public Undeploy setQuotaUser(java.lang.String quotaUser) { + return (Undeploy) super.setQuotaUser(quotaUser); + } - @Override - public Create setKey(java.lang.String key) { - return (Create) super.setKey(key); - } + @Override + public Undeploy setUploadType(java.lang.String uploadType) { + return (Undeploy) super.setUploadType(uploadType); + } - @Override - public Create setOauthToken(java.lang.String oauthToken) { - return (Create) super.setOauthToken(oauthToken); - } + @Override + public Undeploy setUploadProtocol(java.lang.String uploadProtocol) { + return (Undeploy) super.setUploadProtocol(uploadProtocol); + } - @Override - public Create setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Create) super.setPrettyPrint(prettyPrint); - } + /** Required. The name of the QaScorecardRevision to undeploy. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Create setQuotaUser(java.lang.String quotaUser) { - return (Create) super.setQuotaUser(quotaUser); - } + /** Required. The name of the QaScorecardRevision to undeploy. + */ + public java.lang.String getName() { + return name; + } - @Override - public Create setUploadType(java.lang.String uploadType) { - return (Create) super.setUploadType(uploadType); - } + /** 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; + } - @Override - public Create setUploadProtocol(java.lang.String uploadProtocol) { - return (Create) super.setUploadProtocol(uploadProtocol); + @Override + public Undeploy set(String parameterName, Object value) { + return (Undeploy) super.set(parameterName, value); + } } /** - * 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 phrase matcher. Required. The location to create a phrase - matcher for. Format: `projects//locations/` or `projects//locations/` + * An accessor for creating requests from the QaQuestions collection. + * + *The typical use is:
+ *+ * {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);} + * {@code Contactcenterinsights.QaQuestions.List request = contactcenterinsights.qaQuestions().list(parameters ...)} + *+ * + * @return the resource collection */ - public java.lang.String getParent() { - return parent; + public QaQuestions qaQuestions() { + return new QaQuestions(); } /** - * Required. The parent resource of the phrase matcher. Required. The location to create a - * phrase matcher for. Format: `projects//locations/` or `projects//locations/` + * The "qaQuestions" collection of methods. */ - 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; - } + public class QaQuestions { - @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; - } + /** + * 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 Delete extends ContactcenterinsightsRequest
{@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/[^/]+$"); + } + } - private static final String REST_PATH = "v1/{+name}"; + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$"); + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } - /** - * Deletes a phrase matcher. - * - * 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 - * 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 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.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/[^/]+$"); - } - } + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } - @Override - public Delete set$Xgafv(java.lang.String $Xgafv) { - return (Delete) super.set$Xgafv($Xgafv); - } + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } - @Override - public Delete setAccessToken(java.lang.String accessToken) { - return (Delete) super.setAccessToken(accessToken); - } + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } - @Override - public Delete setAlt(java.lang.String alt) { - return (Delete) super.setAlt(alt); - } + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } - @Override - public Delete setCallback(java.lang.String callback) { - return (Delete) super.setCallback(callback); - } + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } - @Override - public Delete setFields(java.lang.String fields) { - return (Delete) super.setFields(fields); - } + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } - @Override - public Delete setKey(java.lang.String key) { - return (Delete) super.setKey(key); - } + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } - @Override - public Delete setOauthToken(java.lang.String oauthToken) { - return (Delete) super.setOauthToken(oauthToken); - } + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } - @Override - public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Delete) super.setPrettyPrint(prettyPrint); - } + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } - @Override - public Delete setQuotaUser(java.lang.String quotaUser) { - return (Delete) super.setQuotaUser(quotaUser); - } + /** Required. The parent resource of the QaQuestion. */ + @com.google.api.client.util.Key + private java.lang.String parent; - @Override - public Delete setUploadType(java.lang.String uploadType) { - return (Delete) super.setUploadType(uploadType); - } + /** Required. The parent resource of the QaQuestion. + */ + public java.lang.String getParent() { + return parent; + } - @Override - public Delete setUploadProtocol(java.lang.String uploadProtocol) { - return (Delete) super.setUploadProtocol(uploadProtocol); - } + /** 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; + } - /** Required. The name of the phrase matcher to delete. */ - @com.google.api.client.util.Key - private java.lang.String 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; + } - /** Required. The name of the phrase matcher to delete. - */ - public java.lang.String getName() { - return 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-`. + */ + public Create setQaQuestionId(java.lang.String qaQuestionId) { + this.qaQuestionId = qaQuestionId; + return this; + } - /** 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/[^/]+$"); + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * 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; } - this.name = name; - return this; - } - - @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; - } - public class Get extends ContactcenterinsightsRequest{@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/[^/]+$"); + } + } - private static final String REST_PATH = "v1/{+name}"; + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } - private final java.util.regex.Pattern NAME_PATTERN = - java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/phraseMatchers/[^/]+$"); + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } - /** - * 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 Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } - @Override - public Get set$Xgafv(java.lang.String $Xgafv) { - return (Get) super.set$Xgafv($Xgafv); - } + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } - @Override - public Get setAccessToken(java.lang.String accessToken) { - return (Get) super.setAccessToken(accessToken); - } + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } - @Override - public Get setAlt(java.lang.String alt) { - return (Get) super.setAlt(alt); - } + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } - @Override - public Get setCallback(java.lang.String callback) { - return (Get) super.setCallback(callback); - } + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } - @Override - public Get setFields(java.lang.String fields) { - return (Get) super.setFields(fields); - } + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } - @Override - public Get setKey(java.lang.String key) { - return (Get) super.setKey(key); - } + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } - @Override - public Get setOauthToken(java.lang.String oauthToken) { - return (Get) super.setOauthToken(oauthToken); - } + /** Required. The name of the QaQuestion to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public Get setPrettyPrint(java.lang.Boolean prettyPrint) { - return (Get) super.setPrettyPrint(prettyPrint); - } + /** Required. The name of the QaQuestion to delete. + */ + public java.lang.String getName() { + return name; + } - @Override - public Get setQuotaUser(java.lang.String quotaUser) { - return (Get) super.setQuotaUser(quotaUser); - } + /** 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; + } - @Override - public Get setUploadType(java.lang.String uploadType) { - return (Get) super.setUploadType(uploadType); - } + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * 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; + } - @Override - public Get setUploadProtocol(java.lang.String uploadProtocol) { - return (Get) super.setUploadProtocol(uploadProtocol); - } + public class Get extends ContactcenterinsightsRequest{@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/[^/]+$"); + } + } - /** Required. The name of the phrase matcher to get. */ - @com.google.api.client.util.Key - private java.lang.String name; + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } - /** Required. The name of the phrase matcher to get. - */ - public java.lang.String getName() { - return name; - } + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } - /** 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/[^/]+$"); - } - this.name = name; - return this; - } + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } - @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 Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } - public class List extends ContactcenterinsightsRequest{@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 setKey(java.lang.String key) { + return (Get) super.setKey(key); + } - @Override - public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { - return super.executeUsingHead(); - } + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } - @Override - public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { - return super.buildHttpRequestUsingHead(); - } + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } - @Override - public List set$Xgafv(java.lang.String $Xgafv) { - return (List) super.set$Xgafv($Xgafv); - } + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } - @Override - public List setAccessToken(java.lang.String accessToken) { - return (List) super.setAccessToken(accessToken); - } + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } - @Override - public List setAlt(java.lang.String alt) { - return (List) super.setAlt(alt); - } + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } - @Override - public List setCallback(java.lang.String callback) { - return (List) super.setCallback(callback); - } + /** Required. The name of the QaQuestion to get. */ + @com.google.api.client.util.Key + private java.lang.String name; - @Override - public List setFields(java.lang.String fields) { - return (List) super.setFields(fields); - } + /** Required. The name of the QaQuestion to get. + */ + public java.lang.String getName() { + return name; + } - @Override - public List setKey(java.lang.String key) { - return (List) super.setKey(key); - } + /** 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 setOauthToken(java.lang.String oauthToken) { - return (List) super.setOauthToken(oauthToken); - } + @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; + } - @Override - public List setPrettyPrint(java.lang.Boolean prettyPrint) { - return (List) super.setPrettyPrint(prettyPrint); - } + public class List extends ContactcenterinsightsRequest{@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 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 phrase matcher. */ - @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 phrase matcher. - */ - 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 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{@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 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; } - } - @Override - public Patch set$Xgafv(java.lang.String $Xgafv) { - return (Patch) super.set$Xgafv($Xgafv); - } + public class Patch extends ContactcenterinsightsRequest{@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.MapThis 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. Refer to https://cloud.google.com/contact- + * center/insights/docs/filtering for details. + * 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. Refer to https://cloud.google.com/contact- + * center/insights/docs/filtering for details. + * @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. Refer to https://cloud.google.com/contact- + * center/insights/docs/filtering for details. + * @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.ListThis 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.ListThis 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 GoogleCloudContactcenterinsightsV1AuthorizedView extends com.google.api.client.json.GenericJson { + + /** + * A filter to reduce conversation results to a specific subset. The AuthorizedView's assigned + * permission (read/write) could be applied to the subset of conversations. If conversation_filter + * is empty, there is no restriction on the conversations that the AuthorizedView can access. + * Having *authorizedViews.get* access to the AuthorizedView means having the same read/write + * access to the Conversations (as well as metadata/annotations liked to the conversation) that + * this AuthorizedView has. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String conversationFilter; + + /** + * Output only. The time at which the authorized view was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Display Name. Limit 64 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Identifier. The resource name of the AuthorizedView. Format: projects/{project}/locations/{loca + * tion}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view} + * 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 authorized view was updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * A filter to reduce conversation results to a specific subset. The AuthorizedView's assigned + * permission (read/write) could be applied to the subset of conversations. If conversation_filter + * is empty, there is no restriction on the conversations that the AuthorizedView can access. + * Having *authorizedViews.get* access to the AuthorizedView means having the same read/write + * access to the Conversations (as well as metadata/annotations liked to the conversation) that + * this AuthorizedView has. + * @return value or {@code null} for none + */ + public java.lang.String getConversationFilter() { + return conversationFilter; + } + + /** + * A filter to reduce conversation results to a specific subset. The AuthorizedView's assigned + * permission (read/write) could be applied to the subset of conversations. If conversation_filter + * is empty, there is no restriction on the conversations that the AuthorizedView can access. + * Having *authorizedViews.get* access to the AuthorizedView means having the same read/write + * access to the Conversations (as well as metadata/annotations liked to the conversation) that + * this AuthorizedView has. + * @param conversationFilter conversationFilter or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AuthorizedView setConversationFilter(java.lang.String conversationFilter) { + this.conversationFilter = conversationFilter; + return this; + } + + /** + * Output only. The time at which the authorized view was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time at which the authorized view was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AuthorizedView setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Display Name. Limit 64 characters. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Display Name. Limit 64 characters. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AuthorizedView setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Identifier. The resource name of the AuthorizedView. Format: projects/{project}/locations/{loca + * tion}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the AuthorizedView. Format: projects/{project}/locations/{loca + * tion}/authorizedViewSets/{authorized_view_set}/authorizedViews/{authorized_view} + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AuthorizedView setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The most recent time at which the authorized view was updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The most recent time at which the authorized view was updated. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AuthorizedView setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1AuthorizedView set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1AuthorizedView) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1AuthorizedView clone() { + return (GoogleCloudContactcenterinsightsV1AuthorizedView) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AuthorizedViewSet.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AuthorizedViewSet.java new file mode 100644 index 00000000000..026ae2f9e7c --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AuthorizedViewSet.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; + +/** + * An AuthorizedViewSet contains a set of AuthorizedView resources. + * + *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 GoogleCloudContactcenterinsightsV1AuthorizedViewSet extends com.google.api.client.json.GenericJson { + + /** + * Output only. Create time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Display Name. Limit 64 characters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Identifier. The resource name of the AuthorizedViewSet. Format: + * projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Update time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. Create time. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Create time. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AuthorizedViewSet setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Display Name. Limit 64 characters. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Display Name. Limit 64 characters. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AuthorizedViewSet setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Identifier. The resource name of the AuthorizedViewSet. Format: + * projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the AuthorizedViewSet. Format: + * projects/{project}/locations/{location}/authorizedViewSets/{authorized_view_set} + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AuthorizedViewSet setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Update time. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Update time. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AuthorizedViewSet setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1AuthorizedViewSet set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1AuthorizedViewSet) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1AuthorizedViewSet clone() { + return (GoogleCloudContactcenterinsightsV1AuthorizedViewSet) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsMetadata.java new file mode 100644 index 00000000000..6c443c50ab3 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsMetadata.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; + +/** + * Metadata for the BulkDeleteFeedbackLabels 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 GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsMetadata extends com.google.api.client.json.GenericJson { + + /** + * Partial errors during deletion 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.ListThis 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 GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest extends com.google.api.client.json.GenericJson { + + /** + * 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; + + /** + * 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. 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 GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest setFilter(java.lang.String filter) { + this.filter = filter; + 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 GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest clone() { + return (GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsResponse.java new file mode 100644 index 00000000000..4c4689ba9fb --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsResponse.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 BulkDeleteFeedbackLabels 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 GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsResponse extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsResponse clone() { + return (GoogleCloudContactcenterinsightsV1BulkDeleteFeedbackLabelsResponse) 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.ListThis 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.ListThis 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; + + /** + * A sheets document destination. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestSheetsDestination sheetsDestination; + + /** + * 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.ListThis 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/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestSheetsDestination.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestSheetsDestination.java new file mode 100644 index 00000000000..90272cf4b6b --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestSheetsDestination.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; + +/** + * Google Sheets document 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 GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestSheetsDestination extends com.google.api.client.json.GenericJson { + + /** + * Optional. The title of the new sheet to write the feedback labels to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sheetTitle; + + /** + * Required. The Google Sheets document to write the feedback labels to. Retrieved from Google + * Sheets URI. E.g. `https://docs.google.com/spreadsheets/d/1234567890` The spreadsheet must be + * shared with the Insights P4SA. The spreadsheet ID written to will be returned as `file_names` + * in the BulkDownloadFeedbackLabelsMetadata. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String spreadsheetUri; + + /** + * Optional. The title of the new sheet to write the feedback labels to. + * @return value or {@code null} for none + */ + public java.lang.String getSheetTitle() { + return sheetTitle; + } + + /** + * Optional. The title of the new sheet to write the feedback labels to. + * @param sheetTitle sheetTitle or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestSheetsDestination setSheetTitle(java.lang.String sheetTitle) { + this.sheetTitle = sheetTitle; + return this; + } + + /** + * Required. The Google Sheets document to write the feedback labels to. Retrieved from Google + * Sheets URI. E.g. `https://docs.google.com/spreadsheets/d/1234567890` The spreadsheet must be + * shared with the Insights P4SA. The spreadsheet ID written to will be returned as `file_names` + * in the BulkDownloadFeedbackLabelsMetadata. + * @return value or {@code null} for none + */ + public java.lang.String getSpreadsheetUri() { + return spreadsheetUri; + } + + /** + * Required. The Google Sheets document to write the feedback labels to. Retrieved from Google + * Sheets URI. E.g. `https://docs.google.com/spreadsheets/d/1234567890` The spreadsheet must be + * shared with the Insights P4SA. The spreadsheet ID written to will be returned as `file_names` + * in the BulkDownloadFeedbackLabelsMetadata. + * @param spreadsheetUri spreadsheetUri or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestSheetsDestination setSpreadsheetUri(java.lang.String spreadsheetUri) { + this.spreadsheetUri = spreadsheetUri; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestSheetsDestination set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestSheetsDestination) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestSheetsDestination clone() { + return (GoogleCloudContactcenterinsightsV1BulkDownloadFeedbackLabelsRequestSheetsDestination) 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..9b1dcc13ecb --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest.java @@ -0,0 +1,118 @@ +/* + * Licensed under the Apache License, Version 2.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; + + /** + * A sheets document source. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestSheetsSource sheetsSource; + + /** + * 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; + } + + /** + * A sheets document source. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestSheetsSource getSheetsSource() { + return sheetsSource; + } + + /** + * A sheets document source. + * @param sheetsSource sheetsSource or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequest setSheetsSource(GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestSheetsSource sheetsSource) { + this.sheetsSource = sheetsSource; + 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/GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestSheetsSource.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestSheetsSource.java new file mode 100644 index 00000000000..446e4fe5e6e --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestSheetsSource.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; + +/** + * Google Sheets document 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 GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestSheetsSource extends com.google.api.client.json.GenericJson { + + /** + * Required. The Google Sheets document to write the feedback labels to. Retrieved from Google + * Sheets URI. E.g. `https://docs.google.com/spreadsheets/d/1234567890` The spreadsheet must be + * shared with the Insights P4SA. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String spreadsheetUri; + + /** + * Required. The Google Sheets document to write the feedback labels to. Retrieved from Google + * Sheets URI. E.g. `https://docs.google.com/spreadsheets/d/1234567890` The spreadsheet must be + * shared with the Insights P4SA. + * @return value or {@code null} for none + */ + public java.lang.String getSpreadsheetUri() { + return spreadsheetUri; + } + + /** + * Required. The Google Sheets document to write the feedback labels to. Retrieved from Google + * Sheets URI. E.g. `https://docs.google.com/spreadsheets/d/1234567890` The spreadsheet must be + * shared with the Insights P4SA. + * @param spreadsheetUri spreadsheetUri or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestSheetsSource setSpreadsheetUri(java.lang.String spreadsheetUri) { + this.spreadsheetUri = spreadsheetUri; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestSheetsSource set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestSheetsSource) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestSheetsSource clone() { + return (GoogleCloudContactcenterinsightsV1BulkUploadFeedbackLabelsRequestSheetsSource) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1CalculateStatsRequest.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1CalculateStatsRequest.java new file mode 100644 index 00000000000..1147264c93d --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1CalculateStatsRequest.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.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 calculating conversation statistics. + * + *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 GoogleCloudContactcenterinsightsV1CalculateStatsRequest extends com.google.api.client.json.GenericJson { + + /** + * A filter to reduce results to a specific subset. This field is useful for getting statistics + * about conversations with specific properties. + * The value may be {@code null}. + */ + @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. + * @return value or {@code null} for none + */ + 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. + * @param filter filter or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1CalculateStatsRequest setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1CalculateStatsRequest set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1CalculateStatsRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1CalculateStatsRequest clone() { + return (GoogleCloudContactcenterinsightsV1CalculateStatsRequest) 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..18c7447d5a3 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 telephony 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.MapThis 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/GoogleCloudContactcenterinsightsV1Dataset.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Dataset.java new file mode 100644 index 00000000000..f9ae88d39c8 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Dataset.java @@ -0,0 +1,216 @@ +/* + * Licensed under the Apache License, Version 2.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; + +/** + * Dataset resource represents a collection of conversations that may be bounded (Static Dataset, + * e.g. golden dataset for training), or unbounded (Dynamic Dataset, e.g. live traffic, or agent + * training traffic) + * + *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 GoogleCloudContactcenterinsightsV1Dataset extends com.google.api.client.json.GenericJson { + + /** + * Output only. Dataset create time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Dataset description. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Display name for the dataaset + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Immutable. Identifier. Resource name of the dataset. Format: + * projects/{project}/locations/{location}/datasets/{dataset} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. Option TTL for the dataset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String ttl; + + /** + * Dataset usage type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. Dataset update time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. Dataset create time. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Dataset create time. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dataset setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Dataset description. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Dataset description. + * @param description description or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dataset setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Display name for the dataaset + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Display name for the dataaset + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dataset setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Immutable. Identifier. Resource name of the dataset. Format: + * projects/{project}/locations/{location}/datasets/{dataset} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Immutable. Identifier. Resource name of the dataset. Format: + * projects/{project}/locations/{location}/datasets/{dataset} + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dataset setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. Option TTL for the dataset. + * @return value or {@code null} for none + */ + public String getTtl() { + return ttl; + } + + /** + * Optional. Option TTL for the dataset. + * @param ttl ttl or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dataset setTtl(String ttl) { + this.ttl = ttl; + return this; + } + + /** + * Dataset usage type. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Dataset usage type. + * @param type type or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dataset setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Output only. Dataset update time. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Dataset update time. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dataset setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1Dataset set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1Dataset) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1Dataset clone() { + return (GoogleCloudContactcenterinsightsV1Dataset) 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/GoogleCloudContactcenterinsightsV1ExportInsightsDataMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ExportInsightsDataMetadata.java index f78dde16143..fed063604b3 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ExportInsightsDataMetadata.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ExportInsightsDataMetadata.java @@ -30,6 +30,13 @@ @SuppressWarnings("javadoc") public final class GoogleCloudContactcenterinsightsV1ExportInsightsDataMetadata extends com.google.api.client.json.GenericJson { + /** + * The number of conversations that were exported successfully. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer completedExportCount; + /** * Output only. The time the operation was created. * The value may be {@code null}. @@ -44,6 +51,13 @@ public final class GoogleCloudContactcenterinsightsV1ExportInsightsDataMetadata @com.google.api.client.util.Key private String endTime; + /** + * The number of conversations that failed to be exported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer failedExportCount; + /** * Partial errors during export operation that might cause the operation output to be incomplete. * The value may be {@code null}. @@ -58,6 +72,23 @@ public final class GoogleCloudContactcenterinsightsV1ExportInsightsDataMetadata @com.google.api.client.util.Key private GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest request; + /** + * The number of conversations that were exported successfully. + * @return value or {@code null} for none + */ + public java.lang.Integer getCompletedExportCount() { + return completedExportCount; + } + + /** + * The number of conversations that were exported successfully. + * @param completedExportCount completedExportCount or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ExportInsightsDataMetadata setCompletedExportCount(java.lang.Integer completedExportCount) { + this.completedExportCount = completedExportCount; + return this; + } + /** * Output only. The time the operation was created. * @return value or {@code null} for none @@ -92,6 +123,23 @@ public GoogleCloudContactcenterinsightsV1ExportInsightsDataMetadata setEndTime(S return this; } + /** + * The number of conversations that failed to be exported. + * @return value or {@code null} for none + */ + public java.lang.Integer getFailedExportCount() { + return failedExportCount; + } + + /** + * The number of conversations that failed to be exported. + * @param failedExportCount failedExportCount or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ExportInsightsDataMetadata setFailedExportCount(java.lang.Integer failedExportCount) { + this.failedExportCount = failedExportCount; + return this; + } + /** * Partial errors during export operation that might cause the operation output to be incomplete. * @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/GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest.java index 1020024e1e0..12b13e2068a 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest.java @@ -37,6 +37,13 @@ public final class GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest e @com.google.api.client.util.Key private GoogleCloudContactcenterinsightsV1ExportInsightsDataRequestBigQueryDestination bigQueryDestination; + /** + * Optional. Version of the export schema. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String exportSchemaVersion; + /** * A filter to reduce results to a specific subset. Useful for exporting conversations with * specific properties. @@ -84,6 +91,23 @@ public GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest setBigQueryDe return this; } + /** + * Optional. Version of the export schema. + * @return value or {@code null} for none + */ + public java.lang.String getExportSchemaVersion() { + return exportSchemaVersion; + } + + /** + * Optional. Version of the export schema. + * @param exportSchemaVersion exportSchemaVersion or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest setExportSchemaVersion(java.lang.String exportSchemaVersion) { + this.exportSchemaVersion = exportSchemaVersion; + return this; + } + /** * A filter to reduce results to a specific subset. Useful for exporting conversations with * specific properties. 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..e4dadbea271 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1FeedbackLabel.java @@ -0,0 +1,202 @@ +/* + * Licensed under the Apache License, Version 2.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. Can take the form of a + * string label or a QaAnswer label. QaAnswer labels are used for Quality AI example conversations. + * String labels are used for Topic Modeling. AgentAssistSummary labels are used for Agent Assist + * Summarization. + * + *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 used for Topic Modeling. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String label; + + /** + * Name of the resource to be labeled. Supported resources are: * `projects/{project}/locations/{l + * ocation}/qaScorecards/{scorecard}/revisions/{revision}/qaQuestions/{question}` * + * `projects/{project}/locations/{location}/issueModels/{issue_model}` * + * `projects/{project}/locations/{location}/generators/{generator_id}` + * 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 used for Quality AI example conversations. + * 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 used for Topic Modeling. + * @return value or {@code null} for none + */ + public java.lang.String getLabel() { + return label; + } + + /** + * String label used for Topic Modeling. + * @param label label or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1FeedbackLabel setLabel(java.lang.String label) { + this.label = label; + return this; + } + + /** + * Name of the resource to be labeled. Supported resources are: * `projects/{project}/locations/{l + * ocation}/qaScorecards/{scorecard}/revisions/{revision}/qaQuestions/{question}` * + * `projects/{project}/locations/{location}/issueModels/{issue_model}` * + * `projects/{project}/locations/{location}/generators/{generator_id}` + * @return value or {@code null} for none + */ + public java.lang.String getLabeledResource() { + return labeledResource; + } + + /** + * Name of the resource to be labeled. Supported resources are: * `projects/{project}/locations/{l + * ocation}/qaScorecards/{scorecard}/revisions/{revision}/qaQuestions/{question}` * + * `projects/{project}/locations/{location}/issueModels/{issue_model}` * + * `projects/{project}/locations/{location}/generators/{generator_id}` + * @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 used for Quality AI example conversations. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue getQaAnswerLabel() { + return qaAnswerLabel; + } + + /** + * QaAnswer label used for Quality AI example conversations. + * @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.ListThis 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.ListThis 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/GoogleCloudContactcenterinsightsV1IssueAssignment.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1IssueAssignment.java index adaa2a13daa..fc0ada66baf 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1IssueAssignment.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1IssueAssignment.java @@ -31,7 +31,7 @@ public final class GoogleCloudContactcenterinsightsV1IssueAssignment extends com.google.api.client.json.GenericJson { /** - * Immutable. Display name of the assigned issue. This field is set at time of analyis and + * Immutable. Display name of the assigned issue. This field is set at time of analysis and * immutable since then. * The value may be {@code null}. */ @@ -53,7 +53,7 @@ public final class GoogleCloudContactcenterinsightsV1IssueAssignment extends com private java.lang.Double score; /** - * Immutable. Display name of the assigned issue. This field is set at time of analyis and + * Immutable. Display name of the assigned issue. This field is set at time of analysis and * immutable since then. * @return value or {@code null} for none */ @@ -62,7 +62,7 @@ public java.lang.String getDisplayName() { } /** - * Immutable. Display name of the assigned issue. This field is set at time of analyis and + * Immutable. Display name of the assigned issue. This field is set at time of analysis and * immutable since then. * @param displayName displayName or {@code null} for none */ diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig.java index caa9e95c067..4013c47e212 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig.java @@ -31,7 +31,8 @@ public final class GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig extends com.google.api.client.json.GenericJson { /** - * A filter to reduce the conversations used for training the model to a specific subset. + * A filter to reduce the conversations used for training the model to a specific subset. Refer to + * https://cloud.google.com/contact-center/insights/docs/filtering for details. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -53,7 +54,8 @@ public final class GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig e private java.lang.Long trainingConversationsCount; /** - * A filter to reduce the conversations used for training the model to a specific subset. + * A filter to reduce the conversations used for training the model to a specific subset. Refer to + * https://cloud.google.com/contact-center/insights/docs/filtering for details. * @return value or {@code null} for none */ public java.lang.String getFilter() { @@ -61,7 +63,8 @@ public java.lang.String getFilter() { } /** - * A filter to reduce the conversations used for training the model to a specific subset. + * A filter to reduce the conversations used for training the model to a specific subset. Refer to + * https://cloud.google.com/contact-center/insights/docs/filtering for details. * @param filter filter or {@code null} for none */ public GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig setFilter(java.lang.String filter) { 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.ListThis 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.ListThis 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 GoogleCloudContactcenterinsightsV1ListAuthorizedViewSetsResponse extends com.google.api.client.json.GenericJson { + + /** + * The AuthorizedViewSets under the parent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis 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 GoogleCloudContactcenterinsightsV1ListAuthorizedViewsResponse extends com.google.api.client.json.GenericJson { + + /** + * The AuthorizedViews under the parent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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..88f73d76068 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QaQuestion.java @@ -0,0 +1,337 @@ +/* + * Licensed under the Apache License, Version 2.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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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 { + + /** + * Whether the result rows were truncated because the result row size is too large to materialize. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean resultIsTruncated; + + /** + * Whether the result rows were truncated because the result row size is too large to materialize. + * @return value or {@code null} for none + */ + public java.lang.Boolean getResultIsTruncated() { + return resultIsTruncated; + } + + /** + * Whether the result rows were truncated because the result row size is too large to materialize. + * @param resultIsTruncated resultIsTruncated or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetricsMetadata setResultIsTruncated(java.lang.Boolean resultIsTruncated) { + this.resultIsTruncated = resultIsTruncated; + return this; + } + + @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.ListThis 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.ListThis 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.ListThis 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.ListThis 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.ListThis 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 GoogleCloudContactcenterinsightsV1QueryPerformanceOverviewMetadata extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudContactcenterinsightsV1QueryPerformanceOverviewMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QueryPerformanceOverviewMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QueryPerformanceOverviewMetadata clone() { + return (GoogleCloudContactcenterinsightsV1QueryPerformanceOverviewMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryPerformanceOverviewResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryPerformanceOverviewResponse.java new file mode 100644 index 00000000000..b590286c7e5 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryPerformanceOverviewResponse.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; + +/** + * The response for querying performance overview. + * + *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 GoogleCloudContactcenterinsightsV1QueryPerformanceOverviewResponse extends com.google.api.client.json.GenericJson { + + /** + * The summary text of the performance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String summaryText; + + /** + * The summary text of the performance. + * @return value or {@code null} for none + */ + public java.lang.String getSummaryText() { + return summaryText; + } + + /** + * The summary text of the performance. + * @param summaryText summaryText or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryPerformanceOverviewResponse setSummaryText(java.lang.String summaryText) { + this.summaryText = summaryText; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QueryPerformanceOverviewResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QueryPerformanceOverviewResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QueryPerformanceOverviewResponse clone() { + return (GoogleCloudContactcenterinsightsV1QueryPerformanceOverviewResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SampleConversationsMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SampleConversationsMetadata.java new file mode 100644 index 00000000000..eefd8a4fe0f --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SampleConversationsMetadata.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; + +/** + * The metadata for an SampleConversations 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 GoogleCloudContactcenterinsightsV1SampleConversationsMetadata 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; + + /** + * Output only. Partial errors during sample conversations 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.ListThis 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 GoogleCloudContactcenterinsightsV1SampleConversationsMetadataSampleConversationsStats extends com.google.api.client.json.GenericJson { + + /** + * Output only. The number of objects which were unable to be sampled due to errors. The errors + * are populated in the partial_errors field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer failedSampleCount; + + /** + * Output only. The number of new conversations added during this sample operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer successfulSampleCount; + + /** + * Output only. The number of objects which were unable to be sampled due to errors. The errors + * are populated in the partial_errors field. + * @return value or {@code null} for none + */ + public java.lang.Integer getFailedSampleCount() { + return failedSampleCount; + } + + /** + * Output only. The number of objects which were unable to be sampled due to errors. The errors + * are populated in the partial_errors field. + * @param failedSampleCount failedSampleCount or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1SampleConversationsMetadataSampleConversationsStats setFailedSampleCount(java.lang.Integer failedSampleCount) { + this.failedSampleCount = failedSampleCount; + return this; + } + + /** + * Output only. The number of new conversations added during this sample operation. + * @return value or {@code null} for none + */ + public java.lang.Integer getSuccessfulSampleCount() { + return successfulSampleCount; + } + + /** + * Output only. The number of new conversations added during this sample operation. + * @param successfulSampleCount successfulSampleCount or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1SampleConversationsMetadataSampleConversationsStats setSuccessfulSampleCount(java.lang.Integer successfulSampleCount) { + this.successfulSampleCount = successfulSampleCount; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1SampleConversationsMetadataSampleConversationsStats set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1SampleConversationsMetadataSampleConversationsStats) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1SampleConversationsMetadataSampleConversationsStats clone() { + return (GoogleCloudContactcenterinsightsV1SampleConversationsMetadataSampleConversationsStats) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SampleConversationsRequest.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SampleConversationsRequest.java new file mode 100644 index 00000000000..28086964040 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SampleConversationsRequest.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; + +/** + * The request to sample conversations to a dataset. + * + *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 GoogleCloudContactcenterinsightsV1SampleConversationsRequest extends com.google.api.client.json.GenericJson { + + /** + * The dataset resource to copy the sampled conversations to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1Dataset destinationDataset; + + /** + * Required. The parent resource of the dataset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** + * Optional. The sample rule used for sampling conversations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1SampleRule sampleRule; + + /** + * The dataset resource to copy the sampled conversations to. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dataset getDestinationDataset() { + return destinationDataset; + } + + /** + * The dataset resource to copy the sampled conversations to. + * @param destinationDataset destinationDataset or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1SampleConversationsRequest setDestinationDataset(GoogleCloudContactcenterinsightsV1Dataset destinationDataset) { + this.destinationDataset = destinationDataset; + return this; + } + + /** + * Required. The parent resource of the dataset. + * @return value or {@code null} for none + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource of the dataset. + * @param parent parent or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1SampleConversationsRequest setParent(java.lang.String parent) { + this.parent = parent; + return this; + } + + /** + * Optional. The sample rule used for sampling conversations. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1SampleRule getSampleRule() { + return sampleRule; + } + + /** + * Optional. The sample rule used for sampling conversations. + * @param sampleRule sampleRule or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1SampleConversationsRequest setSampleRule(GoogleCloudContactcenterinsightsV1SampleRule sampleRule) { + this.sampleRule = sampleRule; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1SampleConversationsRequest set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1SampleConversationsRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1SampleConversationsRequest clone() { + return (GoogleCloudContactcenterinsightsV1SampleConversationsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SampleConversationsResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SampleConversationsResponse.java new file mode 100644 index 00000000000..8bc8fee6cdc --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SampleConversationsResponse.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 an SampleConversations 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 GoogleCloudContactcenterinsightsV1SampleConversationsResponse extends com.google.api.client.json.GenericJson { + + @Override + public GoogleCloudContactcenterinsightsV1SampleConversationsResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1SampleConversationsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1SampleConversationsResponse clone() { + return (GoogleCloudContactcenterinsightsV1SampleConversationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SampleRule.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SampleRule.java new file mode 100644 index 00000000000..d0467cd2833 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SampleRule.java @@ -0,0 +1,148 @@ +/* + * Licensed under the Apache License, Version 2.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 sampling 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 GoogleCloudContactcenterinsightsV1SampleRule extends com.google.api.client.json.GenericJson { + + /** + * To specify the filter for the conversions that should apply this sample rule. An empty filter + * means this sample rule applies to all conversations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String conversationFilter; + + /** + * Optional. Group by dimension to sample the conversation. If no dimension is provided, the + * sampling will be applied to the project level. Current supported dimensions is + * 'quality_metadata.agent_info.agent_id'. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dimension; + + /** + * Percentage of conversations that we should sample based on the dimension between [0, 100]. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double samplePercentage; + + /** + * Number of the conversations that we should sample based on the dimension. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long sampleRow; + + /** + * To specify the filter for the conversions that should apply this sample rule. An empty filter + * means this sample rule applies to all conversations. + * @return value or {@code null} for none + */ + public java.lang.String getConversationFilter() { + return conversationFilter; + } + + /** + * To specify the filter for the conversions that should apply this sample rule. An empty filter + * means this sample rule applies to all conversations. + * @param conversationFilter conversationFilter or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1SampleRule setConversationFilter(java.lang.String conversationFilter) { + this.conversationFilter = conversationFilter; + return this; + } + + /** + * Optional. Group by dimension to sample the conversation. If no dimension is provided, the + * sampling will be applied to the project level. Current supported dimensions is + * 'quality_metadata.agent_info.agent_id'. + * @return value or {@code null} for none + */ + public java.lang.String getDimension() { + return dimension; + } + + /** + * Optional. Group by dimension to sample the conversation. If no dimension is provided, the + * sampling will be applied to the project level. Current supported dimensions is + * 'quality_metadata.agent_info.agent_id'. + * @param dimension dimension or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1SampleRule setDimension(java.lang.String dimension) { + this.dimension = dimension; + return this; + } + + /** + * Percentage of conversations that we should sample based on the dimension between [0, 100]. + * @return value or {@code null} for none + */ + public java.lang.Double getSamplePercentage() { + return samplePercentage; + } + + /** + * Percentage of conversations that we should sample based on the dimension between [0, 100]. + * @param samplePercentage samplePercentage or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1SampleRule setSamplePercentage(java.lang.Double samplePercentage) { + this.samplePercentage = samplePercentage; + return this; + } + + /** + * Number of the conversations that we should sample based on the dimension. + * @return value or {@code null} for none + */ + public java.lang.Long getSampleRow() { + return sampleRow; + } + + /** + * Number of the conversations that we should sample based on the dimension. + * @param sampleRow sampleRow or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1SampleRule setSampleRow(java.lang.Long sampleRow) { + this.sampleRow = sampleRow; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1SampleRule set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1SampleRule) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1SampleRule clone() { + return (GoogleCloudContactcenterinsightsV1SampleRule) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SearchAuthorizedViewsResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SearchAuthorizedViewsResponse.java new file mode 100644 index 00000000000..e189ab22374 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1SearchAuthorizedViewsResponse.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 from a ListAuthorizedViews 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 GoogleCloudContactcenterinsightsV1SearchAuthorizedViewsResponse extends com.google.api.client.json.GenericJson { + + /** + * The AuthorizedViews under the parent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.ListThis 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/GoogleCloudContactcenterinsightsV1View.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1View.java index e4ef0e016d9..4c09dfcc7c5 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1View.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1View.java @@ -60,7 +60,8 @@ public final class GoogleCloudContactcenterinsightsV1View extends com.google.api private String updateTime; /** - * String with specific view properties, must be non-empty. + * A filter to reduce conversation results to a specific subset. Refer to + * https://cloud.google.com/contact-center/insights/docs/filtering for details. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -137,7 +138,8 @@ public GoogleCloudContactcenterinsightsV1View setUpdateTime(String updateTime) { } /** - * String with specific view properties, must be non-empty. + * A filter to reduce conversation results to a specific subset. Refer to + * https://cloud.google.com/contact-center/insights/docs/filtering for details. * @return value or {@code null} for none */ public java.lang.String getValue() { @@ -145,7 +147,8 @@ public java.lang.String getValue() { } /** - * String with specific view properties, must be non-empty. + * A filter to reduce conversation results to a specific subset. Refer to + * https://cloud.google.com/contact-center/insights/docs/filtering for details. * @param value value or {@code null} for none */ public GoogleCloudContactcenterinsightsV1View setValue(java.lang.String value) { 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.MapThis 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: + *