- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.10
- 2.2.7
GitHub Repository | Product Reference |
Service Description: An API that lets users analyze and explore their business conversation data.
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Conversation conversation = Conversation.newBuilder().build();
String conversationId = "conversationId-1676095234";
Conversation response =
contactCenterInsightsClient.createConversation(parent, conversation, conversationId);
}
Note: close() needs to be called on the ContactCenterInsightsClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
Method | Description | Method Variants |
---|---|---|
CreateConversation |
Creates a conversation. Note that this method does not support audio transcription or redaction. Use |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UploadConversation |
Create a long-running conversation upload operation. This method differs from |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateConversation |
Updates a conversation. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetConversation |
Gets a conversation. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListConversations |
Lists conversations. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteConversation |
Deletes a conversation. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateAnalysis |
Creates an analysis. The long running operation is done when the analysis has completed. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetAnalysis |
Gets an analysis. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListAnalyses |
Lists analyses. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteAnalysis |
Deletes an analysis. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BulkAnalyzeConversations |
Analyzes multiple conversations in a single request. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BulkDeleteConversations |
Deletes multiple conversations in a single request. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
IngestConversations |
Imports conversations and processes them according to the user's configuration. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ExportInsightsData |
Export insights data to a destination defined in the request body. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateIssueModel |
Creates an issue model. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateIssueModel |
Updates an issue model. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetIssueModel |
Gets an issue model. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListIssueModels |
Lists issue models. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteIssueModel |
Deletes an issue model. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeployIssueModel |
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. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UndeployIssueModel |
Undeploys an issue model. An issue model can not be used in analysis after it has been undeployed. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ExportIssueModel |
Exports an issue model to the provided destination. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ImportIssueModel |
Imports an issue model from a Cloud Storage bucket. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetIssue |
Gets an issue. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListIssues |
Lists issues. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateIssue |
Updates an issue. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteIssue |
Deletes an issue. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CalculateIssueModelStats |
Gets an issue model's statistics. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreatePhraseMatcher |
Creates a phrase matcher. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetPhraseMatcher |
Gets a phrase matcher. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListPhraseMatchers |
Lists phrase matchers. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeletePhraseMatcher |
Deletes a phrase matcher. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdatePhraseMatcher |
Updates a phrase matcher. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CalculateStats |
Gets conversation statistics. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetSettings |
Gets project-level settings. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateSettings |
Updates project-level settings. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateAnalysisRule |
Creates a analysis rule. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetAnalysisRule |
Get a analysis rule. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListAnalysisRules |
Lists analysis rules. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateAnalysisRule |
Updates a analysis rule. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteAnalysisRule |
Deletes a analysis rule. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetEncryptionSpec |
Gets location-level encryption key specification. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
InitializeEncryptionSpec |
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. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateView |
Creates a view. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetView |
Gets a view. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListViews |
Lists views. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateView |
Updates a view. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteView |
Deletes a view. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
QueryMetrics |
Query metrics. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateQaQuestion |
Create a QaQuestion. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetQaQuestion |
Gets a QaQuestion. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateQaQuestion |
Updates a QaQuestion. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteQaQuestion |
Deletes a QaQuestion. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListQaQuestions |
Lists QaQuestions. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateQaScorecard |
Create a QaScorecard. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetQaScorecard |
Gets a QaScorecard. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateQaScorecard |
Updates a QaScorecard. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteQaScorecard |
Deletes a QaScorecard. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListQaScorecards |
Lists QaScorecards. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateQaScorecardRevision |
Creates a QaScorecardRevision. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetQaScorecardRevision |
Gets a QaScorecardRevision. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
TuneQaScorecardRevision |
Fine tune one or more QaModels. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeployQaScorecardRevision |
Deploy a QaScorecardRevision. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UndeployQaScorecardRevision |
Undeploy a QaScorecardRevision. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteQaScorecardRevision |
Deletes a QaScorecardRevision. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListQaScorecardRevisions |
Lists all revisions under the parent QaScorecard. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateFeedbackLabel |
Create feedback label. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListFeedbackLabels |
List feedback labels. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetFeedbackLabel |
Get feedback label. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateFeedbackLabel |
Update feedback label. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteFeedbackLabel |
Delete feedback label. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListAllFeedbackLabels |
List all feedback labels by project number. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BulkUploadFeedbackLabels |
Upload feedback labels in bulk. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BulkDownloadFeedbackLabels |
Download feedback labels in bulk. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of ContactCenterInsightsSettings to create(). For example:
To customize credentials:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
ContactCenterInsightsSettings contactCenterInsightsSettings =
ContactCenterInsightsSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create(contactCenterInsightsSettings);
To customize the endpoint:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
ContactCenterInsightsSettings contactCenterInsightsSettings =
ContactCenterInsightsSettings.newBuilder().setEndpoint(myEndpoint).build();
ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create(contactCenterInsightsSettings);
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
ContactCenterInsightsSettings contactCenterInsightsSettings =
ContactCenterInsightsSettings.newHttpJsonBuilder().build();
ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create(contactCenterInsightsSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
Static Methods
create()
public static final ContactCenterInsightsClient create()
Constructs an instance of ContactCenterInsightsClient with default settings.
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient |
Exceptions | |
---|---|
Type | Description |
IOException |
create(ContactCenterInsightsSettings settings)
public static final ContactCenterInsightsClient create(ContactCenterInsightsSettings settings)
Constructs an instance of ContactCenterInsightsClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.
Parameter | |
---|---|
Name | Description |
settings |
ContactCenterInsightsSettings |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient |
Exceptions | |
---|---|
Type | Description |
IOException |
create(ContactCenterInsightsStub stub)
public static final ContactCenterInsightsClient create(ContactCenterInsightsStub stub)
Constructs an instance of ContactCenterInsightsClient, using the given stub for making calls. This is for advanced usage - prefer using create(ContactCenterInsightsSettings).
Parameter | |
---|---|
Name | Description |
stub |
ContactCenterInsightsStub |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient |
Constructors
ContactCenterInsightsClient(ContactCenterInsightsSettings settings)
protected ContactCenterInsightsClient(ContactCenterInsightsSettings settings)
Constructs an instance of ContactCenterInsightsClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
Parameter | |
---|---|
Name | Description |
settings |
ContactCenterInsightsSettings |
ContactCenterInsightsClient(ContactCenterInsightsStub stub)
protected ContactCenterInsightsClient(ContactCenterInsightsStub stub)
Parameter | |
---|---|
Name | Description |
stub |
ContactCenterInsightsStub |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)
Parameters | |
---|---|
Name | Description |
duration |
long |
unit |
TimeUnit |
Returns | |
---|---|
Type | Description |
boolean |
Exceptions | |
---|---|
Type | Description |
InterruptedException |
bulkAnalyzeConversationsAsync(BulkAnalyzeConversationsRequest request)
public final OperationFuture<BulkAnalyzeConversationsResponse,BulkAnalyzeConversationsMetadata> bulkAnalyzeConversationsAsync(BulkAnalyzeConversationsRequest request)
Analyzes multiple conversations in a single request.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
BulkAnalyzeConversationsRequest request =
BulkAnalyzeConversationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.setAnalysisPercentage(1609757661)
.setAnnotatorSelector(AnnotatorSelector.newBuilder().build())
.build();
BulkAnalyzeConversationsResponse response =
contactCenterInsightsClient.bulkAnalyzeConversationsAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
BulkAnalyzeConversationsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<BulkAnalyzeConversationsResponse,BulkAnalyzeConversationsMetadata> |
bulkAnalyzeConversationsAsync(LocationName parent, String filter, float analysisPercentage)
public final OperationFuture<BulkAnalyzeConversationsResponse,BulkAnalyzeConversationsMetadata> bulkAnalyzeConversationsAsync(LocationName parent, String filter, float analysisPercentage)
Analyzes multiple conversations in a single request.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
String filter = "filter-1274492040";
float analysisPercentage = 1609757661;
BulkAnalyzeConversationsResponse response =
contactCenterInsightsClient
.bulkAnalyzeConversationsAsync(parent, filter, analysisPercentage)
.get();
}
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource to create analyses in. |
filter |
String Required. Filter used to select the subset of conversations to analyze. |
analysisPercentage |
float Required. Percentage of selected conversation to analyze, between [0, 100]. |
Returns | |
---|---|
Type | Description |
OperationFuture<BulkAnalyzeConversationsResponse,BulkAnalyzeConversationsMetadata> |
bulkAnalyzeConversationsAsync(String parent, String filter, float analysisPercentage)
public final OperationFuture<BulkAnalyzeConversationsResponse,BulkAnalyzeConversationsMetadata> bulkAnalyzeConversationsAsync(String parent, String filter, float analysisPercentage)
Analyzes multiple conversations in a single request.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
String filter = "filter-1274492040";
float analysisPercentage = 1609757661;
BulkAnalyzeConversationsResponse response =
contactCenterInsightsClient
.bulkAnalyzeConversationsAsync(parent, filter, analysisPercentage)
.get();
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent resource to create analyses in. |
filter |
String Required. Filter used to select the subset of conversations to analyze. |
analysisPercentage |
float Required. Percentage of selected conversation to analyze, between [0, 100]. |
Returns | |
---|---|
Type | Description |
OperationFuture<BulkAnalyzeConversationsResponse,BulkAnalyzeConversationsMetadata> |
bulkAnalyzeConversationsCallable()
public final UnaryCallable<BulkAnalyzeConversationsRequest,Operation> bulkAnalyzeConversationsCallable()
Analyzes multiple conversations in a single request.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
BulkAnalyzeConversationsRequest request =
BulkAnalyzeConversationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.setAnalysisPercentage(1609757661)
.setAnnotatorSelector(AnnotatorSelector.newBuilder().build())
.build();
ApiFuture<Operation> future =
contactCenterInsightsClient.bulkAnalyzeConversationsCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<BulkAnalyzeConversationsRequest,Operation> |
bulkAnalyzeConversationsOperationCallable()
public final OperationCallable<BulkAnalyzeConversationsRequest,BulkAnalyzeConversationsResponse,BulkAnalyzeConversationsMetadata> bulkAnalyzeConversationsOperationCallable()
Analyzes multiple conversations in a single request.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
BulkAnalyzeConversationsRequest request =
BulkAnalyzeConversationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.setAnalysisPercentage(1609757661)
.setAnnotatorSelector(AnnotatorSelector.newBuilder().build())
.build();
OperationFuture<BulkAnalyzeConversationsResponse, BulkAnalyzeConversationsMetadata> future =
contactCenterInsightsClient
.bulkAnalyzeConversationsOperationCallable()
.futureCall(request);
// Do something.
BulkAnalyzeConversationsResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<BulkAnalyzeConversationsRequest,BulkAnalyzeConversationsResponse,BulkAnalyzeConversationsMetadata> |
bulkDeleteConversationsAsync(BulkDeleteConversationsRequest request)
public final OperationFuture<BulkDeleteConversationsResponse,BulkDeleteConversationsMetadata> bulkDeleteConversationsAsync(BulkDeleteConversationsRequest request)
Deletes multiple conversations in a single request.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
BulkDeleteConversationsRequest request =
BulkDeleteConversationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.setMaxDeleteCount(1611707510)
.setForce(true)
.build();
BulkDeleteConversationsResponse response =
contactCenterInsightsClient.bulkDeleteConversationsAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
BulkDeleteConversationsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<BulkDeleteConversationsResponse,BulkDeleteConversationsMetadata> |
bulkDeleteConversationsAsync(LocationName parent, String filter)
public final OperationFuture<BulkDeleteConversationsResponse,BulkDeleteConversationsMetadata> bulkDeleteConversationsAsync(LocationName parent, String filter)
Deletes multiple conversations in a single request.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
String filter = "filter-1274492040";
BulkDeleteConversationsResponse response =
contactCenterInsightsClient.bulkDeleteConversationsAsync(parent, filter).get();
}
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource to delete conversations from. Format: projects/{project}/locations/{location} |
filter |
String Filter used to select the subset of conversations to delete. |
Returns | |
---|---|
Type | Description |
OperationFuture<BulkDeleteConversationsResponse,BulkDeleteConversationsMetadata> |
bulkDeleteConversationsAsync(String parent, String filter)
public final OperationFuture<BulkDeleteConversationsResponse,BulkDeleteConversationsMetadata> bulkDeleteConversationsAsync(String parent, String filter)
Deletes multiple conversations in a single request.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
String filter = "filter-1274492040";
BulkDeleteConversationsResponse response =
contactCenterInsightsClient.bulkDeleteConversationsAsync(parent, filter).get();
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent resource to delete conversations from. Format: projects/{project}/locations/{location} |
filter |
String Filter used to select the subset of conversations to delete. |
Returns | |
---|---|
Type | Description |
OperationFuture<BulkDeleteConversationsResponse,BulkDeleteConversationsMetadata> |
bulkDeleteConversationsCallable()
public final UnaryCallable<BulkDeleteConversationsRequest,Operation> bulkDeleteConversationsCallable()
Deletes multiple conversations in a single request.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
BulkDeleteConversationsRequest request =
BulkDeleteConversationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.setMaxDeleteCount(1611707510)
.setForce(true)
.build();
ApiFuture<Operation> future =
contactCenterInsightsClient.bulkDeleteConversationsCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<BulkDeleteConversationsRequest,Operation> |
bulkDeleteConversationsOperationCallable()
public final OperationCallable<BulkDeleteConversationsRequest,BulkDeleteConversationsResponse,BulkDeleteConversationsMetadata> bulkDeleteConversationsOperationCallable()
Deletes multiple conversations in a single request.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
BulkDeleteConversationsRequest request =
BulkDeleteConversationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.setMaxDeleteCount(1611707510)
.setForce(true)
.build();
OperationFuture<BulkDeleteConversationsResponse, BulkDeleteConversationsMetadata> future =
contactCenterInsightsClient
.bulkDeleteConversationsOperationCallable()
.futureCall(request);
// Do something.
BulkDeleteConversationsResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<BulkDeleteConversationsRequest,BulkDeleteConversationsResponse,BulkDeleteConversationsMetadata> |
bulkDownloadFeedbackLabelsAsync(BulkDownloadFeedbackLabelsRequest request)
public final OperationFuture<BulkDownloadFeedbackLabelsResponse,BulkDownloadFeedbackLabelsMetadata> bulkDownloadFeedbackLabelsAsync(BulkDownloadFeedbackLabelsRequest request)
Download feedback labels in bulk.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
BulkDownloadFeedbackLabelsRequest request =
BulkDownloadFeedbackLabelsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.setMaxDownloadCount(-1858155821)
.setConversationFilter("conversationFilter1283909083")
.addAllTemplateQaScorecardId(new ArrayList<String>())
.build();
BulkDownloadFeedbackLabelsResponse response =
contactCenterInsightsClient.bulkDownloadFeedbackLabelsAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
BulkDownloadFeedbackLabelsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<BulkDownloadFeedbackLabelsResponse,BulkDownloadFeedbackLabelsMetadata> |
bulkDownloadFeedbackLabelsAsync(LocationName parent)
public final OperationFuture<BulkDownloadFeedbackLabelsResponse,BulkDownloadFeedbackLabelsMetadata> bulkDownloadFeedbackLabelsAsync(LocationName parent)
Download feedback labels in bulk.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
BulkDownloadFeedbackLabelsResponse response =
contactCenterInsightsClient.bulkDownloadFeedbackLabelsAsync(parent).get();
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource for new feedback labels. |
Returns | |
---|---|
Type | Description |
OperationFuture<BulkDownloadFeedbackLabelsResponse,BulkDownloadFeedbackLabelsMetadata> |
bulkDownloadFeedbackLabelsAsync(String parent)
public final OperationFuture<BulkDownloadFeedbackLabelsResponse,BulkDownloadFeedbackLabelsMetadata> bulkDownloadFeedbackLabelsAsync(String parent)
Download feedback labels in bulk.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
BulkDownloadFeedbackLabelsResponse response =
contactCenterInsightsClient.bulkDownloadFeedbackLabelsAsync(parent).get();
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent resource for new feedback labels. |
Returns | |
---|---|
Type | Description |
OperationFuture<BulkDownloadFeedbackLabelsResponse,BulkDownloadFeedbackLabelsMetadata> |
bulkDownloadFeedbackLabelsCallable()
public final UnaryCallable<BulkDownloadFeedbackLabelsRequest,Operation> bulkDownloadFeedbackLabelsCallable()
Download feedback labels in bulk.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
BulkDownloadFeedbackLabelsRequest request =
BulkDownloadFeedbackLabelsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.setMaxDownloadCount(-1858155821)
.setConversationFilter("conversationFilter1283909083")
.addAllTemplateQaScorecardId(new ArrayList<String>())
.build();
ApiFuture<Operation> future =
contactCenterInsightsClient.bulkDownloadFeedbackLabelsCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<BulkDownloadFeedbackLabelsRequest,Operation> |
bulkDownloadFeedbackLabelsOperationCallable()
public final OperationCallable<BulkDownloadFeedbackLabelsRequest,BulkDownloadFeedbackLabelsResponse,BulkDownloadFeedbackLabelsMetadata> bulkDownloadFeedbackLabelsOperationCallable()
Download feedback labels in bulk.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
BulkDownloadFeedbackLabelsRequest request =
BulkDownloadFeedbackLabelsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.setMaxDownloadCount(-1858155821)
.setConversationFilter("conversationFilter1283909083")
.addAllTemplateQaScorecardId(new ArrayList<String>())
.build();
OperationFuture<BulkDownloadFeedbackLabelsResponse, BulkDownloadFeedbackLabelsMetadata>
future =
contactCenterInsightsClient
.bulkDownloadFeedbackLabelsOperationCallable()
.futureCall(request);
// Do something.
BulkDownloadFeedbackLabelsResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<BulkDownloadFeedbackLabelsRequest,BulkDownloadFeedbackLabelsResponse,BulkDownloadFeedbackLabelsMetadata> |
bulkUploadFeedbackLabelsAsync(BulkUploadFeedbackLabelsRequest request)
public final OperationFuture<BulkUploadFeedbackLabelsResponse,BulkUploadFeedbackLabelsMetadata> bulkUploadFeedbackLabelsAsync(BulkUploadFeedbackLabelsRequest request)
Upload feedback labels in bulk.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
BulkUploadFeedbackLabelsRequest request =
BulkUploadFeedbackLabelsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setValidateOnly(true)
.build();
BulkUploadFeedbackLabelsResponse response =
contactCenterInsightsClient.bulkUploadFeedbackLabelsAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
BulkUploadFeedbackLabelsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<BulkUploadFeedbackLabelsResponse,BulkUploadFeedbackLabelsMetadata> |
bulkUploadFeedbackLabelsAsync(LocationName parent)
public final OperationFuture<BulkUploadFeedbackLabelsResponse,BulkUploadFeedbackLabelsMetadata> bulkUploadFeedbackLabelsAsync(LocationName parent)
Upload feedback labels in bulk.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
BulkUploadFeedbackLabelsResponse response =
contactCenterInsightsClient.bulkUploadFeedbackLabelsAsync(parent).get();
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource for new feedback labels. |
Returns | |
---|---|
Type | Description |
OperationFuture<BulkUploadFeedbackLabelsResponse,BulkUploadFeedbackLabelsMetadata> |
bulkUploadFeedbackLabelsAsync(String parent)
public final OperationFuture<BulkUploadFeedbackLabelsResponse,BulkUploadFeedbackLabelsMetadata> bulkUploadFeedbackLabelsAsync(String parent)
Upload feedback labels in bulk.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
BulkUploadFeedbackLabelsResponse response =
contactCenterInsightsClient.bulkUploadFeedbackLabelsAsync(parent).get();
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent resource for new feedback labels. |
Returns | |
---|---|
Type | Description |
OperationFuture<BulkUploadFeedbackLabelsResponse,BulkUploadFeedbackLabelsMetadata> |
bulkUploadFeedbackLabelsCallable()
public final UnaryCallable<BulkUploadFeedbackLabelsRequest,Operation> bulkUploadFeedbackLabelsCallable()
Upload feedback labels in bulk.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
BulkUploadFeedbackLabelsRequest request =
BulkUploadFeedbackLabelsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setValidateOnly(true)
.build();
ApiFuture<Operation> future =
contactCenterInsightsClient.bulkUploadFeedbackLabelsCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<BulkUploadFeedbackLabelsRequest,Operation> |
bulkUploadFeedbackLabelsOperationCallable()
public final OperationCallable<BulkUploadFeedbackLabelsRequest,BulkUploadFeedbackLabelsResponse,BulkUploadFeedbackLabelsMetadata> bulkUploadFeedbackLabelsOperationCallable()
Upload feedback labels in bulk.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
BulkUploadFeedbackLabelsRequest request =
BulkUploadFeedbackLabelsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setValidateOnly(true)
.build();
OperationFuture<BulkUploadFeedbackLabelsResponse, BulkUploadFeedbackLabelsMetadata> future =
contactCenterInsightsClient
.bulkUploadFeedbackLabelsOperationCallable()
.futureCall(request);
// Do something.
BulkUploadFeedbackLabelsResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<BulkUploadFeedbackLabelsRequest,BulkUploadFeedbackLabelsResponse,BulkUploadFeedbackLabelsMetadata> |
calculateIssueModelStats(CalculateIssueModelStatsRequest request)
public final CalculateIssueModelStatsResponse calculateIssueModelStats(CalculateIssueModelStatsRequest request)
Gets an issue model's statistics.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CalculateIssueModelStatsRequest request =
CalculateIssueModelStatsRequest.newBuilder()
.setIssueModel(
IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
CalculateIssueModelStatsResponse response =
contactCenterInsightsClient.calculateIssueModelStats(request);
}
Parameter | |
---|---|
Name | Description |
request |
CalculateIssueModelStatsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
CalculateIssueModelStatsResponse |
calculateIssueModelStats(IssueModelName issueModel)
public final CalculateIssueModelStatsResponse calculateIssueModelStats(IssueModelName issueModel)
Gets an issue model's statistics.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
IssueModelName issueModel = IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]");
CalculateIssueModelStatsResponse response =
contactCenterInsightsClient.calculateIssueModelStats(issueModel);
}
Parameter | |
---|---|
Name | Description |
issueModel |
IssueModelName Required. The resource name of the issue model to query against. |
Returns | |
---|---|
Type | Description |
CalculateIssueModelStatsResponse |
calculateIssueModelStats(String issueModel)
public final CalculateIssueModelStatsResponse calculateIssueModelStats(String issueModel)
Gets an issue model's statistics.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String issueModel = IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString();
CalculateIssueModelStatsResponse response =
contactCenterInsightsClient.calculateIssueModelStats(issueModel);
}
Parameter | |
---|---|
Name | Description |
issueModel |
String Required. The resource name of the issue model to query against. |
Returns | |
---|---|
Type | Description |
CalculateIssueModelStatsResponse |
calculateIssueModelStatsCallable()
public final UnaryCallable<CalculateIssueModelStatsRequest,CalculateIssueModelStatsResponse> calculateIssueModelStatsCallable()
Gets an issue model's statistics.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CalculateIssueModelStatsRequest request =
CalculateIssueModelStatsRequest.newBuilder()
.setIssueModel(
IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
ApiFuture<CalculateIssueModelStatsResponse> future =
contactCenterInsightsClient.calculateIssueModelStatsCallable().futureCall(request);
// Do something.
CalculateIssueModelStatsResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CalculateIssueModelStatsRequest,CalculateIssueModelStatsResponse> |
calculateStats(CalculateStatsRequest request)
public final CalculateStatsResponse calculateStats(CalculateStatsRequest request)
Gets conversation statistics.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CalculateStatsRequest request =
CalculateStatsRequest.newBuilder()
.setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.build();
CalculateStatsResponse response = contactCenterInsightsClient.calculateStats(request);
}
Parameter | |
---|---|
Name | Description |
request |
CalculateStatsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
CalculateStatsResponse |
calculateStats(LocationName location)
public final CalculateStatsResponse calculateStats(LocationName location)
Gets conversation statistics.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName location = LocationName.of("[PROJECT]", "[LOCATION]");
CalculateStatsResponse response = contactCenterInsightsClient.calculateStats(location);
}
Parameter | |
---|---|
Name | Description |
location |
LocationName Required. The location of the conversations. |
Returns | |
---|---|
Type | Description |
CalculateStatsResponse |
calculateStats(String location)
public final CalculateStatsResponse calculateStats(String location)
Gets conversation statistics.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String location = LocationName.of("[PROJECT]", "[LOCATION]").toString();
CalculateStatsResponse response = contactCenterInsightsClient.calculateStats(location);
}
Parameter | |
---|---|
Name | Description |
location |
String Required. The location of the conversations. |
Returns | |
---|---|
Type | Description |
CalculateStatsResponse |
calculateStatsCallable()
public final UnaryCallable<CalculateStatsRequest,CalculateStatsResponse> calculateStatsCallable()
Gets conversation statistics.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CalculateStatsRequest request =
CalculateStatsRequest.newBuilder()
.setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.build();
ApiFuture<CalculateStatsResponse> future =
contactCenterInsightsClient.calculateStatsCallable().futureCall(request);
// Do something.
CalculateStatsResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CalculateStatsRequest,CalculateStatsResponse> |
close()
public final void close()
createAnalysisAsync(ConversationName parent, Analysis analysis)
public final OperationFuture<Analysis,CreateAnalysisOperationMetadata> createAnalysisAsync(ConversationName parent, Analysis analysis)
Creates an analysis. The long running operation is done when the analysis has completed.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ConversationName parent = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]");
Analysis analysis = Analysis.newBuilder().build();
Analysis response = contactCenterInsightsClient.createAnalysisAsync(parent, analysis).get();
}
Parameters | |
---|---|
Name | Description |
parent |
ConversationName Required. The parent resource of the analysis. |
analysis |
Analysis Required. The analysis to create. |
Returns | |
---|---|
Type | Description |
OperationFuture<Analysis,CreateAnalysisOperationMetadata> |
createAnalysisAsync(CreateAnalysisRequest request)
public final OperationFuture<Analysis,CreateAnalysisOperationMetadata> createAnalysisAsync(CreateAnalysisRequest request)
Creates an analysis. The long running operation is done when the analysis has completed.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreateAnalysisRequest request =
CreateAnalysisRequest.newBuilder()
.setParent(
ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
.setAnalysis(Analysis.newBuilder().build())
.build();
Analysis response = contactCenterInsightsClient.createAnalysisAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
CreateAnalysisRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Analysis,CreateAnalysisOperationMetadata> |
createAnalysisAsync(String parent, Analysis analysis)
public final OperationFuture<Analysis,CreateAnalysisOperationMetadata> createAnalysisAsync(String parent, Analysis analysis)
Creates an analysis. The long running operation is done when the analysis has completed.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString();
Analysis analysis = Analysis.newBuilder().build();
Analysis response = contactCenterInsightsClient.createAnalysisAsync(parent, analysis).get();
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the analysis. |
analysis |
Analysis Required. The analysis to create. |
Returns | |
---|---|
Type | Description |
OperationFuture<Analysis,CreateAnalysisOperationMetadata> |
createAnalysisCallable()
public final UnaryCallable<CreateAnalysisRequest,Operation> createAnalysisCallable()
Creates an analysis. The long running operation is done when the analysis has completed.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreateAnalysisRequest request =
CreateAnalysisRequest.newBuilder()
.setParent(
ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
.setAnalysis(Analysis.newBuilder().build())
.build();
ApiFuture<Operation> future =
contactCenterInsightsClient.createAnalysisCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateAnalysisRequest,Operation> |
createAnalysisOperationCallable()
public final OperationCallable<CreateAnalysisRequest,Analysis,CreateAnalysisOperationMetadata> createAnalysisOperationCallable()
Creates an analysis. The long running operation is done when the analysis has completed.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreateAnalysisRequest request =
CreateAnalysisRequest.newBuilder()
.setParent(
ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
.setAnalysis(Analysis.newBuilder().build())
.build();
OperationFuture<Analysis, CreateAnalysisOperationMetadata> future =
contactCenterInsightsClient.createAnalysisOperationCallable().futureCall(request);
// Do something.
Analysis response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<CreateAnalysisRequest,Analysis,CreateAnalysisOperationMetadata> |
createAnalysisRule(CreateAnalysisRuleRequest request)
public final AnalysisRule createAnalysisRule(CreateAnalysisRuleRequest request)
Creates a analysis rule.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreateAnalysisRuleRequest request =
CreateAnalysisRuleRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setAnalysisRule(AnalysisRule.newBuilder().build())
.build();
AnalysisRule response = contactCenterInsightsClient.createAnalysisRule(request);
}
Parameter | |
---|---|
Name | Description |
request |
CreateAnalysisRuleRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
AnalysisRule |
createAnalysisRule(LocationName parent, AnalysisRule analysisRule)
public final AnalysisRule createAnalysisRule(LocationName parent, AnalysisRule analysisRule)
Creates a analysis rule.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
AnalysisRule analysisRule = AnalysisRule.newBuilder().build();
AnalysisRule response = contactCenterInsightsClient.createAnalysisRule(parent, analysisRule);
}
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource of the analysis rule. Required. The location to
create a analysis rule for. Format: |
analysisRule |
AnalysisRule Required. The analysis rule resource to create. |
Returns | |
---|---|
Type | Description |
AnalysisRule |
createAnalysisRule(String parent, AnalysisRule analysisRule)
public final AnalysisRule createAnalysisRule(String parent, AnalysisRule analysisRule)
Creates a analysis rule.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
AnalysisRule analysisRule = AnalysisRule.newBuilder().build();
AnalysisRule response = contactCenterInsightsClient.createAnalysisRule(parent, analysisRule);
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the analysis rule. Required. The location to
create a analysis rule for. Format: |
analysisRule |
AnalysisRule Required. The analysis rule resource to create. |
Returns | |
---|---|
Type | Description |
AnalysisRule |
createAnalysisRuleCallable()
public final UnaryCallable<CreateAnalysisRuleRequest,AnalysisRule> createAnalysisRuleCallable()
Creates a analysis rule.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreateAnalysisRuleRequest request =
CreateAnalysisRuleRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setAnalysisRule(AnalysisRule.newBuilder().build())
.build();
ApiFuture<AnalysisRule> future =
contactCenterInsightsClient.createAnalysisRuleCallable().futureCall(request);
// Do something.
AnalysisRule response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateAnalysisRuleRequest,AnalysisRule> |
createConversation(CreateConversationRequest request)
public final Conversation createConversation(CreateConversationRequest request)
Creates a conversation. Note that this method does not support audio transcription or
redaction. Use conversations.upload
instead.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreateConversationRequest request =
CreateConversationRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setConversation(Conversation.newBuilder().build())
.setConversationId("conversationId-1676095234")
.build();
Conversation response = contactCenterInsightsClient.createConversation(request);
}
Parameter | |
---|---|
Name | Description |
request |
CreateConversationRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Conversation |
createConversation(LocationName parent, Conversation conversation, String conversationId)
public final Conversation createConversation(LocationName parent, Conversation conversation, String conversationId)
Creates a conversation. Note that this method does not support audio transcription or
redaction. Use conversations.upload
instead.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Conversation conversation = Conversation.newBuilder().build();
String conversationId = "conversationId-1676095234";
Conversation response =
contactCenterInsightsClient.createConversation(parent, conversation, conversationId);
}
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource of the conversation. |
conversation |
Conversation Required. The conversation resource to create. |
conversationId |
String 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
|
Returns | |
---|---|
Type | Description |
Conversation |
createConversation(String parent, Conversation conversation, String conversationId)
public final Conversation createConversation(String parent, Conversation conversation, String conversationId)
Creates a conversation. Note that this method does not support audio transcription or
redaction. Use conversations.upload
instead.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Conversation conversation = Conversation.newBuilder().build();
String conversationId = "conversationId-1676095234";
Conversation response =
contactCenterInsightsClient.createConversation(parent, conversation, conversationId);
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the conversation. |
conversation |
Conversation Required. The conversation resource to create. |
conversationId |
String 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
|
Returns | |
---|---|
Type | Description |
Conversation |
createConversationCallable()
public final UnaryCallable<CreateConversationRequest,Conversation> createConversationCallable()
Creates a conversation. Note that this method does not support audio transcription or
redaction. Use conversations.upload
instead.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreateConversationRequest request =
CreateConversationRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setConversation(Conversation.newBuilder().build())
.setConversationId("conversationId-1676095234")
.build();
ApiFuture<Conversation> future =
contactCenterInsightsClient.createConversationCallable().futureCall(request);
// Do something.
Conversation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateConversationRequest,Conversation> |
createFeedbackLabel(ConversationName parent, FeedbackLabel feedbackLabel, String feedbackLabelId)
public final FeedbackLabel createFeedbackLabel(ConversationName parent, FeedbackLabel feedbackLabel, String feedbackLabelId)
Create feedback label.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ConversationName parent = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]");
FeedbackLabel feedbackLabel = FeedbackLabel.newBuilder().build();
String feedbackLabelId = "feedbackLabelId-1251198998";
FeedbackLabel response =
contactCenterInsightsClient.createFeedbackLabel(parent, feedbackLabel, feedbackLabelId);
}
Parameters | |
---|---|
Name | Description |
parent |
ConversationName Required. The parent resource of the feedback label. |
feedbackLabel |
FeedbackLabel Required. The feedback label to create. |
feedbackLabelId |
String Optional. The ID of the feedback label to create. If one is not specified it will be generated by the server. |
Returns | |
---|---|
Type | Description |
FeedbackLabel |
createFeedbackLabel(CreateFeedbackLabelRequest request)
public final FeedbackLabel createFeedbackLabel(CreateFeedbackLabelRequest request)
Create feedback label.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreateFeedbackLabelRequest request =
CreateFeedbackLabelRequest.newBuilder()
.setParent(
ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
.setFeedbackLabelId("feedbackLabelId-1251198998")
.setFeedbackLabel(FeedbackLabel.newBuilder().build())
.build();
FeedbackLabel response = contactCenterInsightsClient.createFeedbackLabel(request);
}
Parameter | |
---|---|
Name | Description |
request |
CreateFeedbackLabelRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
FeedbackLabel |
createFeedbackLabel(String parent, FeedbackLabel feedbackLabel, String feedbackLabelId)
public final FeedbackLabel createFeedbackLabel(String parent, FeedbackLabel feedbackLabel, String feedbackLabelId)
Create feedback label.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString();
FeedbackLabel feedbackLabel = FeedbackLabel.newBuilder().build();
String feedbackLabelId = "feedbackLabelId-1251198998";
FeedbackLabel response =
contactCenterInsightsClient.createFeedbackLabel(parent, feedbackLabel, feedbackLabelId);
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the feedback label. |
feedbackLabel |
FeedbackLabel Required. The feedback label to create. |
feedbackLabelId |
String Optional. The ID of the feedback label to create. If one is not specified it will be generated by the server. |
Returns | |
---|---|
Type | Description |
FeedbackLabel |
createFeedbackLabelCallable()
public final UnaryCallable<CreateFeedbackLabelRequest,FeedbackLabel> createFeedbackLabelCallable()
Create feedback label.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreateFeedbackLabelRequest request =
CreateFeedbackLabelRequest.newBuilder()
.setParent(
ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
.setFeedbackLabelId("feedbackLabelId-1251198998")
.setFeedbackLabel(FeedbackLabel.newBuilder().build())
.build();
ApiFuture<FeedbackLabel> future =
contactCenterInsightsClient.createFeedbackLabelCallable().futureCall(request);
// Do something.
FeedbackLabel response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateFeedbackLabelRequest,FeedbackLabel> |
createIssueModelAsync(CreateIssueModelRequest request)
public final OperationFuture<IssueModel,CreateIssueModelMetadata> createIssueModelAsync(CreateIssueModelRequest request)
Creates an issue model.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreateIssueModelRequest request =
CreateIssueModelRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setIssueModel(IssueModel.newBuilder().build())
.build();
IssueModel response = contactCenterInsightsClient.createIssueModelAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
CreateIssueModelRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<IssueModel,CreateIssueModelMetadata> |
createIssueModelAsync(LocationName parent, IssueModel issueModel)
public final OperationFuture<IssueModel,CreateIssueModelMetadata> createIssueModelAsync(LocationName parent, IssueModel issueModel)
Creates an issue model.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
IssueModel issueModel = IssueModel.newBuilder().build();
IssueModel response =
contactCenterInsightsClient.createIssueModelAsync(parent, issueModel).get();
}
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource of the issue model. |
issueModel |
IssueModel Required. The issue model to create. |
Returns | |
---|---|
Type | Description |
OperationFuture<IssueModel,CreateIssueModelMetadata> |
createIssueModelAsync(String parent, IssueModel issueModel)
public final OperationFuture<IssueModel,CreateIssueModelMetadata> createIssueModelAsync(String parent, IssueModel issueModel)
Creates an issue model.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
IssueModel issueModel = IssueModel.newBuilder().build();
IssueModel response =
contactCenterInsightsClient.createIssueModelAsync(parent, issueModel).get();
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the issue model. |
issueModel |
IssueModel Required. The issue model to create. |
Returns | |
---|---|
Type | Description |
OperationFuture<IssueModel,CreateIssueModelMetadata> |
createIssueModelCallable()
public final UnaryCallable<CreateIssueModelRequest,Operation> createIssueModelCallable()
Creates an issue model.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreateIssueModelRequest request =
CreateIssueModelRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setIssueModel(IssueModel.newBuilder().build())
.build();
ApiFuture<Operation> future =
contactCenterInsightsClient.createIssueModelCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateIssueModelRequest,Operation> |
createIssueModelOperationCallable()
public final OperationCallable<CreateIssueModelRequest,IssueModel,CreateIssueModelMetadata> createIssueModelOperationCallable()
Creates an issue model.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreateIssueModelRequest request =
CreateIssueModelRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setIssueModel(IssueModel.newBuilder().build())
.build();
OperationFuture<IssueModel, CreateIssueModelMetadata> future =
contactCenterInsightsClient.createIssueModelOperationCallable().futureCall(request);
// Do something.
IssueModel response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<CreateIssueModelRequest,IssueModel,CreateIssueModelMetadata> |
createPhraseMatcher(CreatePhraseMatcherRequest request)
public final PhraseMatcher createPhraseMatcher(CreatePhraseMatcherRequest request)
Creates a phrase matcher.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreatePhraseMatcherRequest request =
CreatePhraseMatcherRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPhraseMatcher(PhraseMatcher.newBuilder().build())
.build();
PhraseMatcher response = contactCenterInsightsClient.createPhraseMatcher(request);
}
Parameter | |
---|---|
Name | Description |
request |
CreatePhraseMatcherRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
PhraseMatcher |
createPhraseMatcher(LocationName parent, PhraseMatcher phraseMatcher)
public final PhraseMatcher createPhraseMatcher(LocationName parent, PhraseMatcher phraseMatcher)
Creates a phrase matcher.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
PhraseMatcher phraseMatcher = PhraseMatcher.newBuilder().build();
PhraseMatcher response =
contactCenterInsightsClient.createPhraseMatcher(parent, phraseMatcher);
}
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource of the phrase matcher. Required. The location to
create a phrase matcher for. Format: |
phraseMatcher |
PhraseMatcher Required. The phrase matcher resource to create. |
Returns | |
---|---|
Type | Description |
PhraseMatcher |
createPhraseMatcher(String parent, PhraseMatcher phraseMatcher)
public final PhraseMatcher createPhraseMatcher(String parent, PhraseMatcher phraseMatcher)
Creates a phrase matcher.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
PhraseMatcher phraseMatcher = PhraseMatcher.newBuilder().build();
PhraseMatcher response =
contactCenterInsightsClient.createPhraseMatcher(parent, phraseMatcher);
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the phrase matcher. Required. The location to
create a phrase matcher for. Format: |
phraseMatcher |
PhraseMatcher Required. The phrase matcher resource to create. |
Returns | |
---|---|
Type | Description |
PhraseMatcher |
createPhraseMatcherCallable()
public final UnaryCallable<CreatePhraseMatcherRequest,PhraseMatcher> createPhraseMatcherCallable()
Creates a phrase matcher.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreatePhraseMatcherRequest request =
CreatePhraseMatcherRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPhraseMatcher(PhraseMatcher.newBuilder().build())
.build();
ApiFuture<PhraseMatcher> future =
contactCenterInsightsClient.createPhraseMatcherCallable().futureCall(request);
// Do something.
PhraseMatcher response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreatePhraseMatcherRequest,PhraseMatcher> |
createQaQuestion(CreateQaQuestionRequest request)
public final QaQuestion createQaQuestion(CreateQaQuestionRequest request)
Create a QaQuestion.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreateQaQuestionRequest request =
CreateQaQuestionRequest.newBuilder()
.setParent(
QaScorecardRevisionName.of(
"[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString())
.setQaQuestion(QaQuestion.newBuilder().build())
.setQaQuestionId("qaQuestionId1774614993")
.build();
QaQuestion response = contactCenterInsightsClient.createQaQuestion(request);
}
Parameter | |
---|---|
Name | Description |
request |
CreateQaQuestionRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
QaQuestion |
createQaQuestion(QaScorecardRevisionName parent, QaQuestion qaQuestion, String qaQuestionId)
public final QaQuestion createQaQuestion(QaScorecardRevisionName parent, QaQuestion qaQuestion, String qaQuestionId)
Create a QaQuestion.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
QaScorecardRevisionName parent =
QaScorecardRevisionName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]");
QaQuestion qaQuestion = QaQuestion.newBuilder().build();
String qaQuestionId = "qaQuestionId1774614993";
QaQuestion response =
contactCenterInsightsClient.createQaQuestion(parent, qaQuestion, qaQuestionId);
}
Parameters | |
---|---|
Name | Description |
parent |
QaScorecardRevisionName Required. The parent resource of the QaQuestion. |
qaQuestion |
QaQuestion Required. The QaQuestion to create. |
qaQuestionId |
String 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
|
Returns | |
---|---|
Type | Description |
QaQuestion |
createQaQuestion(String parent, QaQuestion qaQuestion, String qaQuestionId)
public final QaQuestion createQaQuestion(String parent, QaQuestion qaQuestion, String qaQuestionId)
Create a QaQuestion.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent =
QaScorecardRevisionName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString();
QaQuestion qaQuestion = QaQuestion.newBuilder().build();
String qaQuestionId = "qaQuestionId1774614993";
QaQuestion response =
contactCenterInsightsClient.createQaQuestion(parent, qaQuestion, qaQuestionId);
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the QaQuestion. |
qaQuestion |
QaQuestion Required. The QaQuestion to create. |
qaQuestionId |
String 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
|
Returns | |
---|---|
Type | Description |
QaQuestion |
createQaQuestionCallable()
public final UnaryCallable<CreateQaQuestionRequest,QaQuestion> createQaQuestionCallable()
Create a QaQuestion.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreateQaQuestionRequest request =
CreateQaQuestionRequest.newBuilder()
.setParent(
QaScorecardRevisionName.of(
"[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString())
.setQaQuestion(QaQuestion.newBuilder().build())
.setQaQuestionId("qaQuestionId1774614993")
.build();
ApiFuture<QaQuestion> future =
contactCenterInsightsClient.createQaQuestionCallable().futureCall(request);
// Do something.
QaQuestion response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateQaQuestionRequest,QaQuestion> |
createQaScorecard(CreateQaScorecardRequest request)
public final QaScorecard createQaScorecard(CreateQaScorecardRequest request)
Create a QaScorecard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreateQaScorecardRequest request =
CreateQaScorecardRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setQaScorecard(QaScorecard.newBuilder().build())
.setQaScorecardId("qaScorecardId167098669")
.build();
QaScorecard response = contactCenterInsightsClient.createQaScorecard(request);
}
Parameter | |
---|---|
Name | Description |
request |
CreateQaScorecardRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
QaScorecard |
createQaScorecard(LocationName parent, QaScorecard qaScorecard, String qaScorecardId)
public final QaScorecard createQaScorecard(LocationName parent, QaScorecard qaScorecard, String qaScorecardId)
Create a QaScorecard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
QaScorecard qaScorecard = QaScorecard.newBuilder().build();
String qaScorecardId = "qaScorecardId167098669";
QaScorecard response =
contactCenterInsightsClient.createQaScorecard(parent, qaScorecard, qaScorecardId);
}
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource of the QaScorecard. |
qaScorecard |
QaScorecard Required. The QaScorecard to create. |
qaScorecardId |
String 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
|
Returns | |
---|---|
Type | Description |
QaScorecard |
createQaScorecard(String parent, QaScorecard qaScorecard, String qaScorecardId)
public final QaScorecard createQaScorecard(String parent, QaScorecard qaScorecard, String qaScorecardId)
Create a QaScorecard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
QaScorecard qaScorecard = QaScorecard.newBuilder().build();
String qaScorecardId = "qaScorecardId167098669";
QaScorecard response =
contactCenterInsightsClient.createQaScorecard(parent, qaScorecard, qaScorecardId);
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the QaScorecard. |
qaScorecard |
QaScorecard Required. The QaScorecard to create. |
qaScorecardId |
String 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
|
Returns | |
---|---|
Type | Description |
QaScorecard |
createQaScorecardCallable()
public final UnaryCallable<CreateQaScorecardRequest,QaScorecard> createQaScorecardCallable()
Create a QaScorecard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreateQaScorecardRequest request =
CreateQaScorecardRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setQaScorecard(QaScorecard.newBuilder().build())
.setQaScorecardId("qaScorecardId167098669")
.build();
ApiFuture<QaScorecard> future =
contactCenterInsightsClient.createQaScorecardCallable().futureCall(request);
// Do something.
QaScorecard response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateQaScorecardRequest,QaScorecard> |
createQaScorecardRevision(CreateQaScorecardRevisionRequest request)
public final QaScorecardRevision createQaScorecardRevision(CreateQaScorecardRevisionRequest request)
Creates a QaScorecardRevision.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreateQaScorecardRevisionRequest request =
CreateQaScorecardRevisionRequest.newBuilder()
.setParent(QaScorecardName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]").toString())
.setQaScorecardRevision(QaScorecardRevision.newBuilder().build())
.setQaScorecardRevisionId("qaScorecardRevisionId1384099944")
.build();
QaScorecardRevision response = contactCenterInsightsClient.createQaScorecardRevision(request);
}
Parameter | |
---|---|
Name | Description |
request |
CreateQaScorecardRevisionRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
QaScorecardRevision |
createQaScorecardRevision(QaScorecardName parent, QaScorecardRevision qaScorecardRevision, String qaScorecardRevisionId)
public final QaScorecardRevision createQaScorecardRevision(QaScorecardName parent, QaScorecardRevision qaScorecardRevision, String qaScorecardRevisionId)
Creates a QaScorecardRevision.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
QaScorecardName parent = QaScorecardName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]");
QaScorecardRevision qaScorecardRevision = QaScorecardRevision.newBuilder().build();
String qaScorecardRevisionId = "qaScorecardRevisionId1384099944";
QaScorecardRevision response =
contactCenterInsightsClient.createQaScorecardRevision(
parent, qaScorecardRevision, qaScorecardRevisionId);
}
Parameters | |
---|---|
Name | Description |
parent |
QaScorecardName Required. The parent resource of the QaScorecardRevision. |
qaScorecardRevision |
QaScorecardRevision Required. The QaScorecardRevision to create. |
qaScorecardRevisionId |
String 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
|
Returns | |
---|---|
Type | Description |
QaScorecardRevision |
createQaScorecardRevision(String parent, QaScorecardRevision qaScorecardRevision, String qaScorecardRevisionId)
public final QaScorecardRevision createQaScorecardRevision(String parent, QaScorecardRevision qaScorecardRevision, String qaScorecardRevisionId)
Creates a QaScorecardRevision.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = QaScorecardName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]").toString();
QaScorecardRevision qaScorecardRevision = QaScorecardRevision.newBuilder().build();
String qaScorecardRevisionId = "qaScorecardRevisionId1384099944";
QaScorecardRevision response =
contactCenterInsightsClient.createQaScorecardRevision(
parent, qaScorecardRevision, qaScorecardRevisionId);
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the QaScorecardRevision. |
qaScorecardRevision |
QaScorecardRevision Required. The QaScorecardRevision to create. |
qaScorecardRevisionId |
String 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
|
Returns | |
---|---|
Type | Description |
QaScorecardRevision |
createQaScorecardRevisionCallable()
public final UnaryCallable<CreateQaScorecardRevisionRequest,QaScorecardRevision> createQaScorecardRevisionCallable()
Creates a QaScorecardRevision.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreateQaScorecardRevisionRequest request =
CreateQaScorecardRevisionRequest.newBuilder()
.setParent(QaScorecardName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]").toString())
.setQaScorecardRevision(QaScorecardRevision.newBuilder().build())
.setQaScorecardRevisionId("qaScorecardRevisionId1384099944")
.build();
ApiFuture<QaScorecardRevision> future =
contactCenterInsightsClient.createQaScorecardRevisionCallable().futureCall(request);
// Do something.
QaScorecardRevision response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateQaScorecardRevisionRequest,QaScorecardRevision> |
createView(CreateViewRequest request)
public final View createView(CreateViewRequest request)
Creates a view.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreateViewRequest request =
CreateViewRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setView(View.newBuilder().build())
.build();
View response = contactCenterInsightsClient.createView(request);
}
Parameter | |
---|---|
Name | Description |
request |
CreateViewRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
View |
createView(LocationName parent, View view)
public final View createView(LocationName parent, View view)
Creates a view.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
View view = View.newBuilder().build();
View response = contactCenterInsightsClient.createView(parent, view);
}
Parameters | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource of the view. Required. The location to create a
view for. Format: |
view |
View Required. The view resource to create. |
Returns | |
---|---|
Type | Description |
View |
createView(String parent, View view)
public final View createView(String parent, View view)
Creates a view.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
View view = View.newBuilder().build();
View response = contactCenterInsightsClient.createView(parent, view);
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the view. Required. The location to create a
view for. Format: |
view |
View Required. The view resource to create. |
Returns | |
---|---|
Type | Description |
View |
createViewCallable()
public final UnaryCallable<CreateViewRequest,View> createViewCallable()
Creates a view.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
CreateViewRequest request =
CreateViewRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setView(View.newBuilder().build())
.build();
ApiFuture<View> future = contactCenterInsightsClient.createViewCallable().futureCall(request);
// Do something.
View response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<CreateViewRequest,View> |
deleteAnalysis(AnalysisName name)
public final void deleteAnalysis(AnalysisName name)
Deletes an analysis.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
AnalysisName name =
AnalysisName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]", "[ANALYSIS]");
contactCenterInsightsClient.deleteAnalysis(name);
}
Parameter | |
---|---|
Name | Description |
name |
AnalysisName Required. The name of the analysis to delete. |
deleteAnalysis(DeleteAnalysisRequest request)
public final void deleteAnalysis(DeleteAnalysisRequest request)
Deletes an analysis.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteAnalysisRequest request =
DeleteAnalysisRequest.newBuilder()
.setName(
AnalysisName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]", "[ANALYSIS]")
.toString())
.build();
contactCenterInsightsClient.deleteAnalysis(request);
}
Parameter | |
---|---|
Name | Description |
request |
DeleteAnalysisRequest The request object containing all of the parameters for the API call. |
deleteAnalysis(String name)
public final void deleteAnalysis(String name)
Deletes an analysis.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name =
AnalysisName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]", "[ANALYSIS]").toString();
contactCenterInsightsClient.deleteAnalysis(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the analysis to delete. |
deleteAnalysisCallable()
public final UnaryCallable<DeleteAnalysisRequest,Empty> deleteAnalysisCallable()
Deletes an analysis.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteAnalysisRequest request =
DeleteAnalysisRequest.newBuilder()
.setName(
AnalysisName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]", "[ANALYSIS]")
.toString())
.build();
ApiFuture<Empty> future =
contactCenterInsightsClient.deleteAnalysisCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteAnalysisRequest,Empty> |
deleteAnalysisRule(AnalysisRuleName name)
public final void deleteAnalysisRule(AnalysisRuleName name)
Deletes a analysis rule.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
AnalysisRuleName name = AnalysisRuleName.of("[PROJECT]", "[LOCATION]", "[ANALYSIS_RULE]");
contactCenterInsightsClient.deleteAnalysisRule(name);
}
Parameter | |
---|---|
Name | Description |
name |
AnalysisRuleName Required. The name of the analysis rule to delete. |
deleteAnalysisRule(DeleteAnalysisRuleRequest request)
public final void deleteAnalysisRule(DeleteAnalysisRuleRequest request)
Deletes a analysis rule.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteAnalysisRuleRequest request =
DeleteAnalysisRuleRequest.newBuilder()
.setName(AnalysisRuleName.of("[PROJECT]", "[LOCATION]", "[ANALYSIS_RULE]").toString())
.build();
contactCenterInsightsClient.deleteAnalysisRule(request);
}
Parameter | |
---|---|
Name | Description |
request |
DeleteAnalysisRuleRequest The request object containing all of the parameters for the API call. |
deleteAnalysisRule(String name)
public final void deleteAnalysisRule(String name)
Deletes a analysis rule.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name = AnalysisRuleName.of("[PROJECT]", "[LOCATION]", "[ANALYSIS_RULE]").toString();
contactCenterInsightsClient.deleteAnalysisRule(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the analysis rule to delete. |
deleteAnalysisRuleCallable()
public final UnaryCallable<DeleteAnalysisRuleRequest,Empty> deleteAnalysisRuleCallable()
Deletes a analysis rule.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteAnalysisRuleRequest request =
DeleteAnalysisRuleRequest.newBuilder()
.setName(AnalysisRuleName.of("[PROJECT]", "[LOCATION]", "[ANALYSIS_RULE]").toString())
.build();
ApiFuture<Empty> future =
contactCenterInsightsClient.deleteAnalysisRuleCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteAnalysisRuleRequest,Empty> |
deleteConversation(ConversationName name)
public final void deleteConversation(ConversationName name)
Deletes a conversation.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ConversationName name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]");
contactCenterInsightsClient.deleteConversation(name);
}
Parameter | |
---|---|
Name | Description |
name |
ConversationName Required. The name of the conversation to delete. |
deleteConversation(DeleteConversationRequest request)
public final void deleteConversation(DeleteConversationRequest request)
Deletes a conversation.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteConversationRequest request =
DeleteConversationRequest.newBuilder()
.setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
.setForce(true)
.build();
contactCenterInsightsClient.deleteConversation(request);
}
Parameter | |
---|---|
Name | Description |
request |
DeleteConversationRequest The request object containing all of the parameters for the API call. |
deleteConversation(String name)
public final void deleteConversation(String name)
Deletes a conversation.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString();
contactCenterInsightsClient.deleteConversation(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the conversation to delete. |
deleteConversationCallable()
public final UnaryCallable<DeleteConversationRequest,Empty> deleteConversationCallable()
Deletes a conversation.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteConversationRequest request =
DeleteConversationRequest.newBuilder()
.setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
.setForce(true)
.build();
ApiFuture<Empty> future =
contactCenterInsightsClient.deleteConversationCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteConversationRequest,Empty> |
deleteFeedbackLabel(DeleteFeedbackLabelRequest request)
public final void deleteFeedbackLabel(DeleteFeedbackLabelRequest request)
Delete feedback label.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteFeedbackLabelRequest request =
DeleteFeedbackLabelRequest.newBuilder()
.setName(
FeedbackLabelName.of(
"[PROJECT]", "[LOCATION]", "[CONVERSATION]", "[FEEDBACK_LABEL]")
.toString())
.build();
contactCenterInsightsClient.deleteFeedbackLabel(request);
}
Parameter | |
---|---|
Name | Description |
request |
DeleteFeedbackLabelRequest The request object containing all of the parameters for the API call. |
deleteFeedbackLabel(FeedbackLabelName name)
public final void deleteFeedbackLabel(FeedbackLabelName name)
Delete feedback label.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
FeedbackLabelName name =
FeedbackLabelName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]", "[FEEDBACK_LABEL]");
contactCenterInsightsClient.deleteFeedbackLabel(name);
}
Parameter | |
---|---|
Name | Description |
name |
FeedbackLabelName Required. The name of the feedback label to delete. |
deleteFeedbackLabel(String name)
public final void deleteFeedbackLabel(String name)
Delete feedback label.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name =
FeedbackLabelName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]", "[FEEDBACK_LABEL]")
.toString();
contactCenterInsightsClient.deleteFeedbackLabel(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the feedback label to delete. |
deleteFeedbackLabelCallable()
public final UnaryCallable<DeleteFeedbackLabelRequest,Empty> deleteFeedbackLabelCallable()
Delete feedback label.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteFeedbackLabelRequest request =
DeleteFeedbackLabelRequest.newBuilder()
.setName(
FeedbackLabelName.of(
"[PROJECT]", "[LOCATION]", "[CONVERSATION]", "[FEEDBACK_LABEL]")
.toString())
.build();
ApiFuture<Empty> future =
contactCenterInsightsClient.deleteFeedbackLabelCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteFeedbackLabelRequest,Empty> |
deleteIssue(DeleteIssueRequest request)
public final void deleteIssue(DeleteIssueRequest request)
Deletes an issue.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteIssueRequest request =
DeleteIssueRequest.newBuilder()
.setName(
IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]").toString())
.build();
contactCenterInsightsClient.deleteIssue(request);
}
Parameter | |
---|---|
Name | Description |
request |
DeleteIssueRequest The request object containing all of the parameters for the API call. |
deleteIssue(IssueName name)
public final void deleteIssue(IssueName name)
Deletes an issue.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
IssueName name = IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]");
contactCenterInsightsClient.deleteIssue(name);
}
Parameter | |
---|---|
Name | Description |
name |
IssueName Required. The name of the issue to delete. |
deleteIssue(String name)
public final void deleteIssue(String name)
Deletes an issue.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name = IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]").toString();
contactCenterInsightsClient.deleteIssue(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the issue to delete. |
deleteIssueCallable()
public final UnaryCallable<DeleteIssueRequest,Empty> deleteIssueCallable()
Deletes an issue.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteIssueRequest request =
DeleteIssueRequest.newBuilder()
.setName(
IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]").toString())
.build();
ApiFuture<Empty> future =
contactCenterInsightsClient.deleteIssueCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteIssueRequest,Empty> |
deleteIssueModelAsync(DeleteIssueModelRequest request)
public final OperationFuture<Empty,DeleteIssueModelMetadata> deleteIssueModelAsync(DeleteIssueModelRequest request)
Deletes an issue model.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteIssueModelRequest request =
DeleteIssueModelRequest.newBuilder()
.setName(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
contactCenterInsightsClient.deleteIssueModelAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
DeleteIssueModelRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,DeleteIssueModelMetadata> |
deleteIssueModelAsync(IssueModelName name)
public final OperationFuture<Empty,DeleteIssueModelMetadata> deleteIssueModelAsync(IssueModelName name)
Deletes an issue model.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
IssueModelName name = IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]");
contactCenterInsightsClient.deleteIssueModelAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
IssueModelName Required. The name of the issue model to delete. |
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,DeleteIssueModelMetadata> |
deleteIssueModelAsync(String name)
public final OperationFuture<Empty,DeleteIssueModelMetadata> deleteIssueModelAsync(String name)
Deletes an issue model.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name = IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString();
contactCenterInsightsClient.deleteIssueModelAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the issue model to delete. |
Returns | |
---|---|
Type | Description |
OperationFuture<Empty,DeleteIssueModelMetadata> |
deleteIssueModelCallable()
public final UnaryCallable<DeleteIssueModelRequest,Operation> deleteIssueModelCallable()
Deletes an issue model.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteIssueModelRequest request =
DeleteIssueModelRequest.newBuilder()
.setName(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
ApiFuture<Operation> future =
contactCenterInsightsClient.deleteIssueModelCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteIssueModelRequest,Operation> |
deleteIssueModelOperationCallable()
public final OperationCallable<DeleteIssueModelRequest,Empty,DeleteIssueModelMetadata> deleteIssueModelOperationCallable()
Deletes an issue model.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteIssueModelRequest request =
DeleteIssueModelRequest.newBuilder()
.setName(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
OperationFuture<Empty, DeleteIssueModelMetadata> future =
contactCenterInsightsClient.deleteIssueModelOperationCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<DeleteIssueModelRequest,Empty,DeleteIssueModelMetadata> |
deletePhraseMatcher(DeletePhraseMatcherRequest request)
public final void deletePhraseMatcher(DeletePhraseMatcherRequest request)
Deletes a phrase matcher.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeletePhraseMatcherRequest request =
DeletePhraseMatcherRequest.newBuilder()
.setName(
PhraseMatcherName.of("[PROJECT]", "[LOCATION]", "[PHRASE_MATCHER]").toString())
.build();
contactCenterInsightsClient.deletePhraseMatcher(request);
}
Parameter | |
---|---|
Name | Description |
request |
DeletePhraseMatcherRequest The request object containing all of the parameters for the API call. |
deletePhraseMatcher(PhraseMatcherName name)
public final void deletePhraseMatcher(PhraseMatcherName name)
Deletes a phrase matcher.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
PhraseMatcherName name = PhraseMatcherName.of("[PROJECT]", "[LOCATION]", "[PHRASE_MATCHER]");
contactCenterInsightsClient.deletePhraseMatcher(name);
}
Parameter | |
---|---|
Name | Description |
name |
PhraseMatcherName Required. The name of the phrase matcher to delete. |
deletePhraseMatcher(String name)
public final void deletePhraseMatcher(String name)
Deletes a phrase matcher.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name = PhraseMatcherName.of("[PROJECT]", "[LOCATION]", "[PHRASE_MATCHER]").toString();
contactCenterInsightsClient.deletePhraseMatcher(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the phrase matcher to delete. |
deletePhraseMatcherCallable()
public final UnaryCallable<DeletePhraseMatcherRequest,Empty> deletePhraseMatcherCallable()
Deletes a phrase matcher.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeletePhraseMatcherRequest request =
DeletePhraseMatcherRequest.newBuilder()
.setName(
PhraseMatcherName.of("[PROJECT]", "[LOCATION]", "[PHRASE_MATCHER]").toString())
.build();
ApiFuture<Empty> future =
contactCenterInsightsClient.deletePhraseMatcherCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeletePhraseMatcherRequest,Empty> |
deleteQaQuestion(DeleteQaQuestionRequest request)
public final void deleteQaQuestion(DeleteQaQuestionRequest request)
Deletes a QaQuestion.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteQaQuestionRequest request =
DeleteQaQuestionRequest.newBuilder()
.setName(
QaQuestionName.of(
"[PROJECT]",
"[LOCATION]",
"[QA_SCORECARD]",
"[REVISION]",
"[QA_QUESTION]")
.toString())
.build();
contactCenterInsightsClient.deleteQaQuestion(request);
}
Parameter | |
---|---|
Name | Description |
request |
DeleteQaQuestionRequest The request object containing all of the parameters for the API call. |
deleteQaQuestion(QaQuestionName name)
public final void deleteQaQuestion(QaQuestionName name)
Deletes a QaQuestion.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
QaQuestionName name =
QaQuestionName.of(
"[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]", "[QA_QUESTION]");
contactCenterInsightsClient.deleteQaQuestion(name);
}
Parameter | |
---|---|
Name | Description |
name |
QaQuestionName Required. The name of the QaQuestion to delete. |
deleteQaQuestion(String name)
public final void deleteQaQuestion(String name)
Deletes a QaQuestion.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name =
QaQuestionName.of(
"[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]", "[QA_QUESTION]")
.toString();
contactCenterInsightsClient.deleteQaQuestion(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the QaQuestion to delete. |
deleteQaQuestionCallable()
public final UnaryCallable<DeleteQaQuestionRequest,Empty> deleteQaQuestionCallable()
Deletes a QaQuestion.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteQaQuestionRequest request =
DeleteQaQuestionRequest.newBuilder()
.setName(
QaQuestionName.of(
"[PROJECT]",
"[LOCATION]",
"[QA_SCORECARD]",
"[REVISION]",
"[QA_QUESTION]")
.toString())
.build();
ApiFuture<Empty> future =
contactCenterInsightsClient.deleteQaQuestionCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteQaQuestionRequest,Empty> |
deleteQaScorecard(DeleteQaScorecardRequest request)
public final void deleteQaScorecard(DeleteQaScorecardRequest request)
Deletes a QaScorecard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteQaScorecardRequest request =
DeleteQaScorecardRequest.newBuilder()
.setName(QaScorecardName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]").toString())
.setForce(true)
.build();
contactCenterInsightsClient.deleteQaScorecard(request);
}
Parameter | |
---|---|
Name | Description |
request |
DeleteQaScorecardRequest The request object containing all of the parameters for the API call. |
deleteQaScorecard(QaScorecardName name)
public final void deleteQaScorecard(QaScorecardName name)
Deletes a QaScorecard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
QaScorecardName name = QaScorecardName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]");
contactCenterInsightsClient.deleteQaScorecard(name);
}
Parameter | |
---|---|
Name | Description |
name |
QaScorecardName Required. The name of the QaScorecard to delete. |
deleteQaScorecard(String name)
public final void deleteQaScorecard(String name)
Deletes a QaScorecard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name = QaScorecardName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]").toString();
contactCenterInsightsClient.deleteQaScorecard(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the QaScorecard to delete. |
deleteQaScorecardCallable()
public final UnaryCallable<DeleteQaScorecardRequest,Empty> deleteQaScorecardCallable()
Deletes a QaScorecard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteQaScorecardRequest request =
DeleteQaScorecardRequest.newBuilder()
.setName(QaScorecardName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]").toString())
.setForce(true)
.build();
ApiFuture<Empty> future =
contactCenterInsightsClient.deleteQaScorecardCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteQaScorecardRequest,Empty> |
deleteQaScorecardRevision(DeleteQaScorecardRevisionRequest request)
public final void deleteQaScorecardRevision(DeleteQaScorecardRevisionRequest request)
Deletes a QaScorecardRevision.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteQaScorecardRevisionRequest request =
DeleteQaScorecardRevisionRequest.newBuilder()
.setName(
QaScorecardRevisionName.of(
"[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString())
.setForce(true)
.build();
contactCenterInsightsClient.deleteQaScorecardRevision(request);
}
Parameter | |
---|---|
Name | Description |
request |
DeleteQaScorecardRevisionRequest The request object containing all of the parameters for the API call. |
deleteQaScorecardRevision(QaScorecardRevisionName name)
public final void deleteQaScorecardRevision(QaScorecardRevisionName name)
Deletes a QaScorecardRevision.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
QaScorecardRevisionName name =
QaScorecardRevisionName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]");
contactCenterInsightsClient.deleteQaScorecardRevision(name);
}
Parameter | |
---|---|
Name | Description |
name |
QaScorecardRevisionName Required. The name of the QaScorecardRevision to delete. |
deleteQaScorecardRevision(String name)
public final void deleteQaScorecardRevision(String name)
Deletes a QaScorecardRevision.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name =
QaScorecardRevisionName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString();
contactCenterInsightsClient.deleteQaScorecardRevision(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the QaScorecardRevision to delete. |
deleteQaScorecardRevisionCallable()
public final UnaryCallable<DeleteQaScorecardRevisionRequest,Empty> deleteQaScorecardRevisionCallable()
Deletes a QaScorecardRevision.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteQaScorecardRevisionRequest request =
DeleteQaScorecardRevisionRequest.newBuilder()
.setName(
QaScorecardRevisionName.of(
"[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString())
.setForce(true)
.build();
ApiFuture<Empty> future =
contactCenterInsightsClient.deleteQaScorecardRevisionCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteQaScorecardRevisionRequest,Empty> |
deleteView(DeleteViewRequest request)
public final void deleteView(DeleteViewRequest request)
Deletes a view.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteViewRequest request =
DeleteViewRequest.newBuilder()
.setName(ViewName.of("[PROJECT]", "[LOCATION]", "[VIEW]").toString())
.build();
contactCenterInsightsClient.deleteView(request);
}
Parameter | |
---|---|
Name | Description |
request |
DeleteViewRequest The request object containing all of the parameters for the API call. |
deleteView(ViewName name)
public final void deleteView(ViewName name)
Deletes a view.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ViewName name = ViewName.of("[PROJECT]", "[LOCATION]", "[VIEW]");
contactCenterInsightsClient.deleteView(name);
}
Parameter | |
---|---|
Name | Description |
name |
ViewName Required. The name of the view to delete. |
deleteView(String name)
public final void deleteView(String name)
Deletes a view.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name = ViewName.of("[PROJECT]", "[LOCATION]", "[VIEW]").toString();
contactCenterInsightsClient.deleteView(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the view to delete. |
deleteViewCallable()
public final UnaryCallable<DeleteViewRequest,Empty> deleteViewCallable()
Deletes a view.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeleteViewRequest request =
DeleteViewRequest.newBuilder()
.setName(ViewName.of("[PROJECT]", "[LOCATION]", "[VIEW]").toString())
.build();
ApiFuture<Empty> future =
contactCenterInsightsClient.deleteViewCallable().futureCall(request);
// Do something.
future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeleteViewRequest,Empty> |
deployIssueModelAsync(DeployIssueModelRequest request)
public final OperationFuture<DeployIssueModelResponse,DeployIssueModelMetadata> deployIssueModelAsync(DeployIssueModelRequest request)
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.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeployIssueModelRequest request =
DeployIssueModelRequest.newBuilder()
.setName(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
DeployIssueModelResponse response =
contactCenterInsightsClient.deployIssueModelAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
DeployIssueModelRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<DeployIssueModelResponse,DeployIssueModelMetadata> |
deployIssueModelAsync(IssueModelName name)
public final OperationFuture<DeployIssueModelResponse,DeployIssueModelMetadata> deployIssueModelAsync(IssueModelName name)
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.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
IssueModelName name = IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]");
DeployIssueModelResponse response =
contactCenterInsightsClient.deployIssueModelAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
IssueModelName Required. The issue model to deploy. |
Returns | |
---|---|
Type | Description |
OperationFuture<DeployIssueModelResponse,DeployIssueModelMetadata> |
deployIssueModelAsync(String name)
public final OperationFuture<DeployIssueModelResponse,DeployIssueModelMetadata> deployIssueModelAsync(String name)
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.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name = IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString();
DeployIssueModelResponse response =
contactCenterInsightsClient.deployIssueModelAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The issue model to deploy. |
Returns | |
---|---|
Type | Description |
OperationFuture<DeployIssueModelResponse,DeployIssueModelMetadata> |
deployIssueModelCallable()
public final UnaryCallable<DeployIssueModelRequest,Operation> deployIssueModelCallable()
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.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeployIssueModelRequest request =
DeployIssueModelRequest.newBuilder()
.setName(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
ApiFuture<Operation> future =
contactCenterInsightsClient.deployIssueModelCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeployIssueModelRequest,Operation> |
deployIssueModelOperationCallable()
public final OperationCallable<DeployIssueModelRequest,DeployIssueModelResponse,DeployIssueModelMetadata> deployIssueModelOperationCallable()
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.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeployIssueModelRequest request =
DeployIssueModelRequest.newBuilder()
.setName(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
OperationFuture<DeployIssueModelResponse, DeployIssueModelMetadata> future =
contactCenterInsightsClient.deployIssueModelOperationCallable().futureCall(request);
// Do something.
DeployIssueModelResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<DeployIssueModelRequest,DeployIssueModelResponse,DeployIssueModelMetadata> |
deployQaScorecardRevision(DeployQaScorecardRevisionRequest request)
public final QaScorecardRevision deployQaScorecardRevision(DeployQaScorecardRevisionRequest request)
Deploy a QaScorecardRevision.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeployQaScorecardRevisionRequest request =
DeployQaScorecardRevisionRequest.newBuilder()
.setName(
QaScorecardRevisionName.of(
"[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString())
.build();
QaScorecardRevision response = contactCenterInsightsClient.deployQaScorecardRevision(request);
}
Parameter | |
---|---|
Name | Description |
request |
DeployQaScorecardRevisionRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
QaScorecardRevision |
deployQaScorecardRevisionCallable()
public final UnaryCallable<DeployQaScorecardRevisionRequest,QaScorecardRevision> deployQaScorecardRevisionCallable()
Deploy a QaScorecardRevision.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
DeployQaScorecardRevisionRequest request =
DeployQaScorecardRevisionRequest.newBuilder()
.setName(
QaScorecardRevisionName.of(
"[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString())
.build();
ApiFuture<QaScorecardRevision> future =
contactCenterInsightsClient.deployQaScorecardRevisionCallable().futureCall(request);
// Do something.
QaScorecardRevision response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<DeployQaScorecardRevisionRequest,QaScorecardRevision> |
exportInsightsDataAsync(ExportInsightsDataRequest request)
public final OperationFuture<ExportInsightsDataResponse,ExportInsightsDataMetadata> exportInsightsDataAsync(ExportInsightsDataRequest request)
Export insights data to a destination defined in the request body.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ExportInsightsDataRequest request =
ExportInsightsDataRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.setKmsKey("kmsKey-1127483058")
.build();
ExportInsightsDataResponse response =
contactCenterInsightsClient.exportInsightsDataAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
ExportInsightsDataRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<ExportInsightsDataResponse,ExportInsightsDataMetadata> |
exportInsightsDataAsync(LocationName parent)
public final OperationFuture<ExportInsightsDataResponse,ExportInsightsDataMetadata> exportInsightsDataAsync(LocationName parent)
Export insights data to a destination defined in the request body.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
ExportInsightsDataResponse response =
contactCenterInsightsClient.exportInsightsDataAsync(parent).get();
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource to export data from. |
Returns | |
---|---|
Type | Description |
OperationFuture<ExportInsightsDataResponse,ExportInsightsDataMetadata> |
exportInsightsDataAsync(String parent)
public final OperationFuture<ExportInsightsDataResponse,ExportInsightsDataMetadata> exportInsightsDataAsync(String parent)
Export insights data to a destination defined in the request body.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
ExportInsightsDataResponse response =
contactCenterInsightsClient.exportInsightsDataAsync(parent).get();
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent resource to export data from. |
Returns | |
---|---|
Type | Description |
OperationFuture<ExportInsightsDataResponse,ExportInsightsDataMetadata> |
exportInsightsDataCallable()
public final UnaryCallable<ExportInsightsDataRequest,Operation> exportInsightsDataCallable()
Export insights data to a destination defined in the request body.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ExportInsightsDataRequest request =
ExportInsightsDataRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.setKmsKey("kmsKey-1127483058")
.build();
ApiFuture<Operation> future =
contactCenterInsightsClient.exportInsightsDataCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ExportInsightsDataRequest,Operation> |
exportInsightsDataOperationCallable()
public final OperationCallable<ExportInsightsDataRequest,ExportInsightsDataResponse,ExportInsightsDataMetadata> exportInsightsDataOperationCallable()
Export insights data to a destination defined in the request body.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ExportInsightsDataRequest request =
ExportInsightsDataRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.setKmsKey("kmsKey-1127483058")
.build();
OperationFuture<ExportInsightsDataResponse, ExportInsightsDataMetadata> future =
contactCenterInsightsClient.exportInsightsDataOperationCallable().futureCall(request);
// Do something.
ExportInsightsDataResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<ExportInsightsDataRequest,ExportInsightsDataResponse,ExportInsightsDataMetadata> |
exportIssueModelAsync(ExportIssueModelRequest request)
public final OperationFuture<ExportIssueModelResponse,ExportIssueModelMetadata> exportIssueModelAsync(ExportIssueModelRequest request)
Exports an issue model to the provided destination.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ExportIssueModelRequest request =
ExportIssueModelRequest.newBuilder()
.setName(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
ExportIssueModelResponse response =
contactCenterInsightsClient.exportIssueModelAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
ExportIssueModelRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<ExportIssueModelResponse,ExportIssueModelMetadata> |
exportIssueModelAsync(IssueModelName name)
public final OperationFuture<ExportIssueModelResponse,ExportIssueModelMetadata> exportIssueModelAsync(IssueModelName name)
Exports an issue model to the provided destination.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
IssueModelName name = IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]");
ExportIssueModelResponse response =
contactCenterInsightsClient.exportIssueModelAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
IssueModelName Required. The issue model to export. |
Returns | |
---|---|
Type | Description |
OperationFuture<ExportIssueModelResponse,ExportIssueModelMetadata> |
exportIssueModelAsync(String name)
public final OperationFuture<ExportIssueModelResponse,ExportIssueModelMetadata> exportIssueModelAsync(String name)
Exports an issue model to the provided destination.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name = IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString();
ExportIssueModelResponse response =
contactCenterInsightsClient.exportIssueModelAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The issue model to export. |
Returns | |
---|---|
Type | Description |
OperationFuture<ExportIssueModelResponse,ExportIssueModelMetadata> |
exportIssueModelCallable()
public final UnaryCallable<ExportIssueModelRequest,Operation> exportIssueModelCallable()
Exports an issue model to the provided destination.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ExportIssueModelRequest request =
ExportIssueModelRequest.newBuilder()
.setName(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
ApiFuture<Operation> future =
contactCenterInsightsClient.exportIssueModelCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ExportIssueModelRequest,Operation> |
exportIssueModelOperationCallable()
public final OperationCallable<ExportIssueModelRequest,ExportIssueModelResponse,ExportIssueModelMetadata> exportIssueModelOperationCallable()
Exports an issue model to the provided destination.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ExportIssueModelRequest request =
ExportIssueModelRequest.newBuilder()
.setName(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
OperationFuture<ExportIssueModelResponse, ExportIssueModelMetadata> future =
contactCenterInsightsClient.exportIssueModelOperationCallable().futureCall(request);
// Do something.
ExportIssueModelResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<ExportIssueModelRequest,ExportIssueModelResponse,ExportIssueModelMetadata> |
getAnalysis(AnalysisName name)
public final Analysis getAnalysis(AnalysisName name)
Gets an analysis.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
AnalysisName name =
AnalysisName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]", "[ANALYSIS]");
Analysis response = contactCenterInsightsClient.getAnalysis(name);
}
Parameter | |
---|---|
Name | Description |
name |
AnalysisName Required. The name of the analysis to get. |
Returns | |
---|---|
Type | Description |
Analysis |
getAnalysis(GetAnalysisRequest request)
public final Analysis getAnalysis(GetAnalysisRequest request)
Gets an analysis.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetAnalysisRequest request =
GetAnalysisRequest.newBuilder()
.setName(
AnalysisName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]", "[ANALYSIS]")
.toString())
.build();
Analysis response = contactCenterInsightsClient.getAnalysis(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetAnalysisRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Analysis |
getAnalysis(String name)
public final Analysis getAnalysis(String name)
Gets an analysis.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name =
AnalysisName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]", "[ANALYSIS]").toString();
Analysis response = contactCenterInsightsClient.getAnalysis(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the analysis to get. |
Returns | |
---|---|
Type | Description |
Analysis |
getAnalysisCallable()
public final UnaryCallable<GetAnalysisRequest,Analysis> getAnalysisCallable()
Gets an analysis.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetAnalysisRequest request =
GetAnalysisRequest.newBuilder()
.setName(
AnalysisName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]", "[ANALYSIS]")
.toString())
.build();
ApiFuture<Analysis> future =
contactCenterInsightsClient.getAnalysisCallable().futureCall(request);
// Do something.
Analysis response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetAnalysisRequest,Analysis> |
getAnalysisRule(AnalysisRuleName name)
public final AnalysisRule getAnalysisRule(AnalysisRuleName name)
Get a analysis rule.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
AnalysisRuleName name = AnalysisRuleName.of("[PROJECT]", "[LOCATION]", "[ANALYSIS_RULE]");
AnalysisRule response = contactCenterInsightsClient.getAnalysisRule(name);
}
Parameter | |
---|---|
Name | Description |
name |
AnalysisRuleName Required. The name of the AnalysisRule to get. |
Returns | |
---|---|
Type | Description |
AnalysisRule |
getAnalysisRule(GetAnalysisRuleRequest request)
public final AnalysisRule getAnalysisRule(GetAnalysisRuleRequest request)
Get a analysis rule.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetAnalysisRuleRequest request =
GetAnalysisRuleRequest.newBuilder()
.setName(AnalysisRuleName.of("[PROJECT]", "[LOCATION]", "[ANALYSIS_RULE]").toString())
.build();
AnalysisRule response = contactCenterInsightsClient.getAnalysisRule(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetAnalysisRuleRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
AnalysisRule |
getAnalysisRule(String name)
public final AnalysisRule getAnalysisRule(String name)
Get a analysis rule.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name = AnalysisRuleName.of("[PROJECT]", "[LOCATION]", "[ANALYSIS_RULE]").toString();
AnalysisRule response = contactCenterInsightsClient.getAnalysisRule(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the AnalysisRule to get. |
Returns | |
---|---|
Type | Description |
AnalysisRule |
getAnalysisRuleCallable()
public final UnaryCallable<GetAnalysisRuleRequest,AnalysisRule> getAnalysisRuleCallable()
Get a analysis rule.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetAnalysisRuleRequest request =
GetAnalysisRuleRequest.newBuilder()
.setName(AnalysisRuleName.of("[PROJECT]", "[LOCATION]", "[ANALYSIS_RULE]").toString())
.build();
ApiFuture<AnalysisRule> future =
contactCenterInsightsClient.getAnalysisRuleCallable().futureCall(request);
// Do something.
AnalysisRule response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetAnalysisRuleRequest,AnalysisRule> |
getConversation(ConversationName name)
public final Conversation getConversation(ConversationName name)
Gets a conversation.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ConversationName name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]");
Conversation response = contactCenterInsightsClient.getConversation(name);
}
Parameter | |
---|---|
Name | Description |
name |
ConversationName Required. The name of the conversation to get. |
Returns | |
---|---|
Type | Description |
Conversation |
getConversation(GetConversationRequest request)
public final Conversation getConversation(GetConversationRequest request)
Gets a conversation.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetConversationRequest request =
GetConversationRequest.newBuilder()
.setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
.setView(ConversationView.forNumber(0))
.build();
Conversation response = contactCenterInsightsClient.getConversation(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetConversationRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Conversation |
getConversation(String name)
public final Conversation getConversation(String name)
Gets a conversation.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString();
Conversation response = contactCenterInsightsClient.getConversation(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the conversation to get. |
Returns | |
---|---|
Type | Description |
Conversation |
getConversationCallable()
public final UnaryCallable<GetConversationRequest,Conversation> getConversationCallable()
Gets a conversation.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetConversationRequest request =
GetConversationRequest.newBuilder()
.setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
.setView(ConversationView.forNumber(0))
.build();
ApiFuture<Conversation> future =
contactCenterInsightsClient.getConversationCallable().futureCall(request);
// Do something.
Conversation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetConversationRequest,Conversation> |
getEncryptionSpec(EncryptionSpecName name)
public final EncryptionSpec getEncryptionSpec(EncryptionSpecName name)
Gets location-level encryption key specification.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
EncryptionSpecName name = EncryptionSpecName.of("[PROJECT]", "[LOCATION]");
EncryptionSpec response = contactCenterInsightsClient.getEncryptionSpec(name);
}
Parameter | |
---|---|
Name | Description |
name |
EncryptionSpecName Required. The name of the encryption spec resource to get. |
Returns | |
---|---|
Type | Description |
EncryptionSpec |
getEncryptionSpec(GetEncryptionSpecRequest request)
public final EncryptionSpec getEncryptionSpec(GetEncryptionSpecRequest request)
Gets location-level encryption key specification.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetEncryptionSpecRequest request =
GetEncryptionSpecRequest.newBuilder()
.setName(EncryptionSpecName.of("[PROJECT]", "[LOCATION]").toString())
.build();
EncryptionSpec response = contactCenterInsightsClient.getEncryptionSpec(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetEncryptionSpecRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
EncryptionSpec |
getEncryptionSpec(String name)
public final EncryptionSpec getEncryptionSpec(String name)
Gets location-level encryption key specification.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name = EncryptionSpecName.of("[PROJECT]", "[LOCATION]").toString();
EncryptionSpec response = contactCenterInsightsClient.getEncryptionSpec(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the encryption spec resource to get. |
Returns | |
---|---|
Type | Description |
EncryptionSpec |
getEncryptionSpecCallable()
public final UnaryCallable<GetEncryptionSpecRequest,EncryptionSpec> getEncryptionSpecCallable()
Gets location-level encryption key specification.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetEncryptionSpecRequest request =
GetEncryptionSpecRequest.newBuilder()
.setName(EncryptionSpecName.of("[PROJECT]", "[LOCATION]").toString())
.build();
ApiFuture<EncryptionSpec> future =
contactCenterInsightsClient.getEncryptionSpecCallable().futureCall(request);
// Do something.
EncryptionSpec response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetEncryptionSpecRequest,EncryptionSpec> |
getFeedbackLabel(FeedbackLabelName name)
public final FeedbackLabel getFeedbackLabel(FeedbackLabelName name)
Get feedback label.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
FeedbackLabelName name =
FeedbackLabelName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]", "[FEEDBACK_LABEL]");
FeedbackLabel response = contactCenterInsightsClient.getFeedbackLabel(name);
}
Parameter | |
---|---|
Name | Description |
name |
FeedbackLabelName Required. The name of the feedback label to get. |
Returns | |
---|---|
Type | Description |
FeedbackLabel |
getFeedbackLabel(GetFeedbackLabelRequest request)
public final FeedbackLabel getFeedbackLabel(GetFeedbackLabelRequest request)
Get feedback label.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetFeedbackLabelRequest request =
GetFeedbackLabelRequest.newBuilder()
.setName(
FeedbackLabelName.of(
"[PROJECT]", "[LOCATION]", "[CONVERSATION]", "[FEEDBACK_LABEL]")
.toString())
.build();
FeedbackLabel response = contactCenterInsightsClient.getFeedbackLabel(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetFeedbackLabelRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
FeedbackLabel |
getFeedbackLabel(String name)
public final FeedbackLabel getFeedbackLabel(String name)
Get feedback label.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name =
FeedbackLabelName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]", "[FEEDBACK_LABEL]")
.toString();
FeedbackLabel response = contactCenterInsightsClient.getFeedbackLabel(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the feedback label to get. |
Returns | |
---|---|
Type | Description |
FeedbackLabel |
getFeedbackLabelCallable()
public final UnaryCallable<GetFeedbackLabelRequest,FeedbackLabel> getFeedbackLabelCallable()
Get feedback label.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetFeedbackLabelRequest request =
GetFeedbackLabelRequest.newBuilder()
.setName(
FeedbackLabelName.of(
"[PROJECT]", "[LOCATION]", "[CONVERSATION]", "[FEEDBACK_LABEL]")
.toString())
.build();
ApiFuture<FeedbackLabel> future =
contactCenterInsightsClient.getFeedbackLabelCallable().futureCall(request);
// Do something.
FeedbackLabel response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetFeedbackLabelRequest,FeedbackLabel> |
getHttpJsonOperationsClient()
public final OperationsClient getHttpJsonOperationsClient()
Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.
Returns | |
---|---|
Type | Description |
OperationsClient |
getIssue(GetIssueRequest request)
public final Issue getIssue(GetIssueRequest request)
Gets an issue.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetIssueRequest request =
GetIssueRequest.newBuilder()
.setName(
IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]").toString())
.build();
Issue response = contactCenterInsightsClient.getIssue(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetIssueRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Issue |
getIssue(IssueName name)
public final Issue getIssue(IssueName name)
Gets an issue.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
IssueName name = IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]");
Issue response = contactCenterInsightsClient.getIssue(name);
}
Parameter | |
---|---|
Name | Description |
name |
IssueName Required. The name of the issue to get. |
Returns | |
---|---|
Type | Description |
Issue |
getIssue(String name)
public final Issue getIssue(String name)
Gets an issue.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name = IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]").toString();
Issue response = contactCenterInsightsClient.getIssue(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the issue to get. |
Returns | |
---|---|
Type | Description |
Issue |
getIssueCallable()
public final UnaryCallable<GetIssueRequest,Issue> getIssueCallable()
Gets an issue.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetIssueRequest request =
GetIssueRequest.newBuilder()
.setName(
IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]").toString())
.build();
ApiFuture<Issue> future = contactCenterInsightsClient.getIssueCallable().futureCall(request);
// Do something.
Issue response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetIssueRequest,Issue> |
getIssueModel(GetIssueModelRequest request)
public final IssueModel getIssueModel(GetIssueModelRequest request)
Gets an issue model.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetIssueModelRequest request =
GetIssueModelRequest.newBuilder()
.setName(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
IssueModel response = contactCenterInsightsClient.getIssueModel(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetIssueModelRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
IssueModel |
getIssueModel(IssueModelName name)
public final IssueModel getIssueModel(IssueModelName name)
Gets an issue model.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
IssueModelName name = IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]");
IssueModel response = contactCenterInsightsClient.getIssueModel(name);
}
Parameter | |
---|---|
Name | Description |
name |
IssueModelName Required. The name of the issue model to get. |
Returns | |
---|---|
Type | Description |
IssueModel |
getIssueModel(String name)
public final IssueModel getIssueModel(String name)
Gets an issue model.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name = IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString();
IssueModel response = contactCenterInsightsClient.getIssueModel(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the issue model to get. |
Returns | |
---|---|
Type | Description |
IssueModel |
getIssueModelCallable()
public final UnaryCallable<GetIssueModelRequest,IssueModel> getIssueModelCallable()
Gets an issue model.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetIssueModelRequest request =
GetIssueModelRequest.newBuilder()
.setName(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
ApiFuture<IssueModel> future =
contactCenterInsightsClient.getIssueModelCallable().futureCall(request);
// Do something.
IssueModel response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetIssueModelRequest,IssueModel> |
getOperationsClient()
public final OperationsClient getOperationsClient()
Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.
Returns | |
---|---|
Type | Description |
OperationsClient |
getPhraseMatcher(GetPhraseMatcherRequest request)
public final PhraseMatcher getPhraseMatcher(GetPhraseMatcherRequest request)
Gets a phrase matcher.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetPhraseMatcherRequest request =
GetPhraseMatcherRequest.newBuilder()
.setName(
PhraseMatcherName.of("[PROJECT]", "[LOCATION]", "[PHRASE_MATCHER]").toString())
.build();
PhraseMatcher response = contactCenterInsightsClient.getPhraseMatcher(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetPhraseMatcherRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
PhraseMatcher |
getPhraseMatcher(PhraseMatcherName name)
public final PhraseMatcher getPhraseMatcher(PhraseMatcherName name)
Gets a phrase matcher.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
PhraseMatcherName name = PhraseMatcherName.of("[PROJECT]", "[LOCATION]", "[PHRASE_MATCHER]");
PhraseMatcher response = contactCenterInsightsClient.getPhraseMatcher(name);
}
Parameter | |
---|---|
Name | Description |
name |
PhraseMatcherName Required. The name of the phrase matcher to get. |
Returns | |
---|---|
Type | Description |
PhraseMatcher |
getPhraseMatcher(String name)
public final PhraseMatcher getPhraseMatcher(String name)
Gets a phrase matcher.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name = PhraseMatcherName.of("[PROJECT]", "[LOCATION]", "[PHRASE_MATCHER]").toString();
PhraseMatcher response = contactCenterInsightsClient.getPhraseMatcher(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the phrase matcher to get. |
Returns | |
---|---|
Type | Description |
PhraseMatcher |
getPhraseMatcherCallable()
public final UnaryCallable<GetPhraseMatcherRequest,PhraseMatcher> getPhraseMatcherCallable()
Gets a phrase matcher.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetPhraseMatcherRequest request =
GetPhraseMatcherRequest.newBuilder()
.setName(
PhraseMatcherName.of("[PROJECT]", "[LOCATION]", "[PHRASE_MATCHER]").toString())
.build();
ApiFuture<PhraseMatcher> future =
contactCenterInsightsClient.getPhraseMatcherCallable().futureCall(request);
// Do something.
PhraseMatcher response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetPhraseMatcherRequest,PhraseMatcher> |
getQaQuestion(GetQaQuestionRequest request)
public final QaQuestion getQaQuestion(GetQaQuestionRequest request)
Gets a QaQuestion.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetQaQuestionRequest request =
GetQaQuestionRequest.newBuilder()
.setName(
QaQuestionName.of(
"[PROJECT]",
"[LOCATION]",
"[QA_SCORECARD]",
"[REVISION]",
"[QA_QUESTION]")
.toString())
.build();
QaQuestion response = contactCenterInsightsClient.getQaQuestion(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetQaQuestionRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
QaQuestion |
getQaQuestion(QaQuestionName name)
public final QaQuestion getQaQuestion(QaQuestionName name)
Gets a QaQuestion.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
QaQuestionName name =
QaQuestionName.of(
"[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]", "[QA_QUESTION]");
QaQuestion response = contactCenterInsightsClient.getQaQuestion(name);
}
Parameter | |
---|---|
Name | Description |
name |
QaQuestionName Required. The name of the QaQuestion to get. |
Returns | |
---|---|
Type | Description |
QaQuestion |
getQaQuestion(String name)
public final QaQuestion getQaQuestion(String name)
Gets a QaQuestion.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name =
QaQuestionName.of(
"[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]", "[QA_QUESTION]")
.toString();
QaQuestion response = contactCenterInsightsClient.getQaQuestion(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the QaQuestion to get. |
Returns | |
---|---|
Type | Description |
QaQuestion |
getQaQuestionCallable()
public final UnaryCallable<GetQaQuestionRequest,QaQuestion> getQaQuestionCallable()
Gets a QaQuestion.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetQaQuestionRequest request =
GetQaQuestionRequest.newBuilder()
.setName(
QaQuestionName.of(
"[PROJECT]",
"[LOCATION]",
"[QA_SCORECARD]",
"[REVISION]",
"[QA_QUESTION]")
.toString())
.build();
ApiFuture<QaQuestion> future =
contactCenterInsightsClient.getQaQuestionCallable().futureCall(request);
// Do something.
QaQuestion response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetQaQuestionRequest,QaQuestion> |
getQaScorecard(GetQaScorecardRequest request)
public final QaScorecard getQaScorecard(GetQaScorecardRequest request)
Gets a QaScorecard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetQaScorecardRequest request =
GetQaScorecardRequest.newBuilder()
.setName(QaScorecardName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]").toString())
.build();
QaScorecard response = contactCenterInsightsClient.getQaScorecard(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetQaScorecardRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
QaScorecard |
getQaScorecard(QaScorecardName name)
public final QaScorecard getQaScorecard(QaScorecardName name)
Gets a QaScorecard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
QaScorecardName name = QaScorecardName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]");
QaScorecard response = contactCenterInsightsClient.getQaScorecard(name);
}
Parameter | |
---|---|
Name | Description |
name |
QaScorecardName Required. The name of the QaScorecard to get. |
Returns | |
---|---|
Type | Description |
QaScorecard |
getQaScorecard(String name)
public final QaScorecard getQaScorecard(String name)
Gets a QaScorecard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name = QaScorecardName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]").toString();
QaScorecard response = contactCenterInsightsClient.getQaScorecard(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the QaScorecard to get. |
Returns | |
---|---|
Type | Description |
QaScorecard |
getQaScorecardCallable()
public final UnaryCallable<GetQaScorecardRequest,QaScorecard> getQaScorecardCallable()
Gets a QaScorecard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetQaScorecardRequest request =
GetQaScorecardRequest.newBuilder()
.setName(QaScorecardName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]").toString())
.build();
ApiFuture<QaScorecard> future =
contactCenterInsightsClient.getQaScorecardCallable().futureCall(request);
// Do something.
QaScorecard response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetQaScorecardRequest,QaScorecard> |
getQaScorecardRevision(GetQaScorecardRevisionRequest request)
public final QaScorecardRevision getQaScorecardRevision(GetQaScorecardRevisionRequest request)
Gets a QaScorecardRevision.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetQaScorecardRevisionRequest request =
GetQaScorecardRevisionRequest.newBuilder()
.setName(
QaScorecardRevisionName.of(
"[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString())
.build();
QaScorecardRevision response = contactCenterInsightsClient.getQaScorecardRevision(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetQaScorecardRevisionRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
QaScorecardRevision |
getQaScorecardRevision(QaScorecardRevisionName name)
public final QaScorecardRevision getQaScorecardRevision(QaScorecardRevisionName name)
Gets a QaScorecardRevision.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
QaScorecardRevisionName name =
QaScorecardRevisionName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]");
QaScorecardRevision response = contactCenterInsightsClient.getQaScorecardRevision(name);
}
Parameter | |
---|---|
Name | Description |
name |
QaScorecardRevisionName Required. The name of the QaScorecardRevision to get. |
Returns | |
---|---|
Type | Description |
QaScorecardRevision |
getQaScorecardRevision(String name)
public final QaScorecardRevision getQaScorecardRevision(String name)
Gets a QaScorecardRevision.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name =
QaScorecardRevisionName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString();
QaScorecardRevision response = contactCenterInsightsClient.getQaScorecardRevision(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the QaScorecardRevision to get. |
Returns | |
---|---|
Type | Description |
QaScorecardRevision |
getQaScorecardRevisionCallable()
public final UnaryCallable<GetQaScorecardRevisionRequest,QaScorecardRevision> getQaScorecardRevisionCallable()
Gets a QaScorecardRevision.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetQaScorecardRevisionRequest request =
GetQaScorecardRevisionRequest.newBuilder()
.setName(
QaScorecardRevisionName.of(
"[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString())
.build();
ApiFuture<QaScorecardRevision> future =
contactCenterInsightsClient.getQaScorecardRevisionCallable().futureCall(request);
// Do something.
QaScorecardRevision response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetQaScorecardRevisionRequest,QaScorecardRevision> |
getSettings()
public final ContactCenterInsightsSettings getSettings()
Returns | |
---|---|
Type | Description |
ContactCenterInsightsSettings |
getSettings(GetSettingsRequest request)
public final Settings getSettings(GetSettingsRequest request)
Gets project-level settings.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetSettingsRequest request =
GetSettingsRequest.newBuilder()
.setName(SettingsName.of("[PROJECT]", "[LOCATION]").toString())
.build();
Settings response = contactCenterInsightsClient.getSettings(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetSettingsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Settings |
getSettings(SettingsName name)
public final Settings getSettings(SettingsName name)
Gets project-level settings.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
SettingsName name = SettingsName.of("[PROJECT]", "[LOCATION]");
Settings response = contactCenterInsightsClient.getSettings(name);
}
Parameter | |
---|---|
Name | Description |
name |
SettingsName Required. The name of the settings resource to get. |
Returns | |
---|---|
Type | Description |
Settings |
getSettings(String name)
public final Settings getSettings(String name)
Gets project-level settings.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name = SettingsName.of("[PROJECT]", "[LOCATION]").toString();
Settings response = contactCenterInsightsClient.getSettings(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the settings resource to get. |
Returns | |
---|---|
Type | Description |
Settings |
getSettingsCallable()
public final UnaryCallable<GetSettingsRequest,Settings> getSettingsCallable()
Gets project-level settings.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetSettingsRequest request =
GetSettingsRequest.newBuilder()
.setName(SettingsName.of("[PROJECT]", "[LOCATION]").toString())
.build();
ApiFuture<Settings> future =
contactCenterInsightsClient.getSettingsCallable().futureCall(request);
// Do something.
Settings response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetSettingsRequest,Settings> |
getStub()
public ContactCenterInsightsStub getStub()
Returns | |
---|---|
Type | Description |
ContactCenterInsightsStub |
getView(GetViewRequest request)
public final View getView(GetViewRequest request)
Gets a view.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetViewRequest request =
GetViewRequest.newBuilder()
.setName(ViewName.of("[PROJECT]", "[LOCATION]", "[VIEW]").toString())
.build();
View response = contactCenterInsightsClient.getView(request);
}
Parameter | |
---|---|
Name | Description |
request |
GetViewRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
View |
getView(ViewName name)
public final View getView(ViewName name)
Gets a view.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ViewName name = ViewName.of("[PROJECT]", "[LOCATION]", "[VIEW]");
View response = contactCenterInsightsClient.getView(name);
}
Parameter | |
---|---|
Name | Description |
name |
ViewName Required. The name of the view to get. |
Returns | |
---|---|
Type | Description |
View |
getView(String name)
public final View getView(String name)
Gets a view.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name = ViewName.of("[PROJECT]", "[LOCATION]", "[VIEW]").toString();
View response = contactCenterInsightsClient.getView(name);
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The name of the view to get. |
Returns | |
---|---|
Type | Description |
View |
getViewCallable()
public final UnaryCallable<GetViewRequest,View> getViewCallable()
Gets a view.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
GetViewRequest request =
GetViewRequest.newBuilder()
.setName(ViewName.of("[PROJECT]", "[LOCATION]", "[VIEW]").toString())
.build();
ApiFuture<View> future = contactCenterInsightsClient.getViewCallable().futureCall(request);
// Do something.
View response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<GetViewRequest,View> |
importIssueModelAsync(ImportIssueModelRequest request)
public final OperationFuture<ImportIssueModelResponse,ImportIssueModelMetadata> importIssueModelAsync(ImportIssueModelRequest request)
Imports an issue model from a Cloud Storage bucket.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ImportIssueModelRequest request =
ImportIssueModelRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCreateNewModel(true)
.build();
ImportIssueModelResponse response =
contactCenterInsightsClient.importIssueModelAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
ImportIssueModelRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<ImportIssueModelResponse,ImportIssueModelMetadata> |
importIssueModelAsync(LocationName parent)
public final OperationFuture<ImportIssueModelResponse,ImportIssueModelMetadata> importIssueModelAsync(LocationName parent)
Imports an issue model from a Cloud Storage bucket.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
ImportIssueModelResponse response =
contactCenterInsightsClient.importIssueModelAsync(parent).get();
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource of the issue model. |
Returns | |
---|---|
Type | Description |
OperationFuture<ImportIssueModelResponse,ImportIssueModelMetadata> |
importIssueModelAsync(String parent)
public final OperationFuture<ImportIssueModelResponse,ImportIssueModelMetadata> importIssueModelAsync(String parent)
Imports an issue model from a Cloud Storage bucket.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
ImportIssueModelResponse response =
contactCenterInsightsClient.importIssueModelAsync(parent).get();
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the issue model. |
Returns | |
---|---|
Type | Description |
OperationFuture<ImportIssueModelResponse,ImportIssueModelMetadata> |
importIssueModelCallable()
public final UnaryCallable<ImportIssueModelRequest,Operation> importIssueModelCallable()
Imports an issue model from a Cloud Storage bucket.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ImportIssueModelRequest request =
ImportIssueModelRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCreateNewModel(true)
.build();
ApiFuture<Operation> future =
contactCenterInsightsClient.importIssueModelCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ImportIssueModelRequest,Operation> |
importIssueModelOperationCallable()
public final OperationCallable<ImportIssueModelRequest,ImportIssueModelResponse,ImportIssueModelMetadata> importIssueModelOperationCallable()
Imports an issue model from a Cloud Storage bucket.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ImportIssueModelRequest request =
ImportIssueModelRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setCreateNewModel(true)
.build();
OperationFuture<ImportIssueModelResponse, ImportIssueModelMetadata> future =
contactCenterInsightsClient.importIssueModelOperationCallable().futureCall(request);
// Do something.
ImportIssueModelResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<ImportIssueModelRequest,ImportIssueModelResponse,ImportIssueModelMetadata> |
ingestConversationsAsync(IngestConversationsRequest request)
public final OperationFuture<IngestConversationsResponse,IngestConversationsMetadata> ingestConversationsAsync(IngestConversationsRequest request)
Imports conversations and processes them according to the user's configuration.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
IngestConversationsRequest request =
IngestConversationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setConversationConfig(
IngestConversationsRequest.ConversationConfig.newBuilder().build())
.setRedactionConfig(RedactionConfig.newBuilder().build())
.setSpeechConfig(SpeechConfig.newBuilder().build())
.setSampleSize(153230710)
.build();
IngestConversationsResponse response =
contactCenterInsightsClient.ingestConversationsAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
IngestConversationsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<IngestConversationsResponse,IngestConversationsMetadata> |
ingestConversationsAsync(LocationName parent)
public final OperationFuture<IngestConversationsResponse,IngestConversationsMetadata> ingestConversationsAsync(LocationName parent)
Imports conversations and processes them according to the user's configuration.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
IngestConversationsResponse response =
contactCenterInsightsClient.ingestConversationsAsync(parent).get();
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource for new conversations. |
Returns | |
---|---|
Type | Description |
OperationFuture<IngestConversationsResponse,IngestConversationsMetadata> |
ingestConversationsAsync(String parent)
public final OperationFuture<IngestConversationsResponse,IngestConversationsMetadata> ingestConversationsAsync(String parent)
Imports conversations and processes them according to the user's configuration.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
IngestConversationsResponse response =
contactCenterInsightsClient.ingestConversationsAsync(parent).get();
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent resource for new conversations. |
Returns | |
---|---|
Type | Description |
OperationFuture<IngestConversationsResponse,IngestConversationsMetadata> |
ingestConversationsCallable()
public final UnaryCallable<IngestConversationsRequest,Operation> ingestConversationsCallable()
Imports conversations and processes them according to the user's configuration.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
IngestConversationsRequest request =
IngestConversationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setConversationConfig(
IngestConversationsRequest.ConversationConfig.newBuilder().build())
.setRedactionConfig(RedactionConfig.newBuilder().build())
.setSpeechConfig(SpeechConfig.newBuilder().build())
.setSampleSize(153230710)
.build();
ApiFuture<Operation> future =
contactCenterInsightsClient.ingestConversationsCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<IngestConversationsRequest,Operation> |
ingestConversationsOperationCallable()
public final OperationCallable<IngestConversationsRequest,IngestConversationsResponse,IngestConversationsMetadata> ingestConversationsOperationCallable()
Imports conversations and processes them according to the user's configuration.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
IngestConversationsRequest request =
IngestConversationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setConversationConfig(
IngestConversationsRequest.ConversationConfig.newBuilder().build())
.setRedactionConfig(RedactionConfig.newBuilder().build())
.setSpeechConfig(SpeechConfig.newBuilder().build())
.setSampleSize(153230710)
.build();
OperationFuture<IngestConversationsResponse, IngestConversationsMetadata> future =
contactCenterInsightsClient.ingestConversationsOperationCallable().futureCall(request);
// Do something.
IngestConversationsResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<IngestConversationsRequest,IngestConversationsResponse,IngestConversationsMetadata> |
initializeEncryptionSpecAsync(EncryptionSpec encryptionSpec)
public final OperationFuture<InitializeEncryptionSpecResponse,InitializeEncryptionSpecMetadata> initializeEncryptionSpecAsync(EncryptionSpec 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.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
EncryptionSpec encryptionSpec = EncryptionSpec.newBuilder().build();
InitializeEncryptionSpecResponse response =
contactCenterInsightsClient.initializeEncryptionSpecAsync(encryptionSpec).get();
}
Parameter | |
---|---|
Name | Description |
encryptionSpec |
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 |
Returns | |
---|---|
Type | Description |
OperationFuture<InitializeEncryptionSpecResponse,InitializeEncryptionSpecMetadata> |
initializeEncryptionSpecAsync(InitializeEncryptionSpecRequest request)
public final OperationFuture<InitializeEncryptionSpecResponse,InitializeEncryptionSpecMetadata> initializeEncryptionSpecAsync(InitializeEncryptionSpecRequest request)
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.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
InitializeEncryptionSpecRequest request =
InitializeEncryptionSpecRequest.newBuilder()
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.build();
InitializeEncryptionSpecResponse response =
contactCenterInsightsClient.initializeEncryptionSpecAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
InitializeEncryptionSpecRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<InitializeEncryptionSpecResponse,InitializeEncryptionSpecMetadata> |
initializeEncryptionSpecCallable()
public final UnaryCallable<InitializeEncryptionSpecRequest,Operation> initializeEncryptionSpecCallable()
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.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
InitializeEncryptionSpecRequest request =
InitializeEncryptionSpecRequest.newBuilder()
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.build();
ApiFuture<Operation> future =
contactCenterInsightsClient.initializeEncryptionSpecCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<InitializeEncryptionSpecRequest,Operation> |
initializeEncryptionSpecOperationCallable()
public final OperationCallable<InitializeEncryptionSpecRequest,InitializeEncryptionSpecResponse,InitializeEncryptionSpecMetadata> initializeEncryptionSpecOperationCallable()
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.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
InitializeEncryptionSpecRequest request =
InitializeEncryptionSpecRequest.newBuilder()
.setEncryptionSpec(EncryptionSpec.newBuilder().build())
.build();
OperationFuture<InitializeEncryptionSpecResponse, InitializeEncryptionSpecMetadata> future =
contactCenterInsightsClient
.initializeEncryptionSpecOperationCallable()
.futureCall(request);
// Do something.
InitializeEncryptionSpecResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<InitializeEncryptionSpecRequest,InitializeEncryptionSpecResponse,InitializeEncryptionSpecMetadata> |
isShutdown()
public boolean isShutdown()
Returns | |
---|---|
Type | Description |
boolean |
isTerminated()
public boolean isTerminated()
Returns | |
---|---|
Type | Description |
boolean |
listAllFeedbackLabels(ListAllFeedbackLabelsRequest request)
public final ContactCenterInsightsClient.ListAllFeedbackLabelsPagedResponse listAllFeedbackLabels(ListAllFeedbackLabelsRequest request)
List all feedback labels by project number.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListAllFeedbackLabelsRequest request =
ListAllFeedbackLabelsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
for (FeedbackLabel element :
contactCenterInsightsClient.listAllFeedbackLabels(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListAllFeedbackLabelsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListAllFeedbackLabelsPagedResponse |
listAllFeedbackLabels(LocationName parent)
public final ContactCenterInsightsClient.ListAllFeedbackLabelsPagedResponse listAllFeedbackLabels(LocationName parent)
List all feedback labels by project number.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (FeedbackLabel element :
contactCenterInsightsClient.listAllFeedbackLabels(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource of all feedback labels per project. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListAllFeedbackLabelsPagedResponse |
listAllFeedbackLabels(String parent)
public final ContactCenterInsightsClient.ListAllFeedbackLabelsPagedResponse listAllFeedbackLabels(String parent)
List all feedback labels by project number.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (FeedbackLabel element :
contactCenterInsightsClient.listAllFeedbackLabels(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent resource of all feedback labels per project. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListAllFeedbackLabelsPagedResponse |
listAllFeedbackLabelsCallable()
public final UnaryCallable<ListAllFeedbackLabelsRequest,ListAllFeedbackLabelsResponse> listAllFeedbackLabelsCallable()
List all feedback labels by project number.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListAllFeedbackLabelsRequest request =
ListAllFeedbackLabelsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
while (true) {
ListAllFeedbackLabelsResponse response =
contactCenterInsightsClient.listAllFeedbackLabelsCallable().call(request);
for (FeedbackLabel element : response.getFeedbackLabelsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListAllFeedbackLabelsRequest,ListAllFeedbackLabelsResponse> |
listAllFeedbackLabelsPagedCallable()
public final UnaryCallable<ListAllFeedbackLabelsRequest,ContactCenterInsightsClient.ListAllFeedbackLabelsPagedResponse> listAllFeedbackLabelsPagedCallable()
List all feedback labels by project number.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListAllFeedbackLabelsRequest request =
ListAllFeedbackLabelsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
ApiFuture<FeedbackLabel> future =
contactCenterInsightsClient.listAllFeedbackLabelsPagedCallable().futureCall(request);
// Do something.
for (FeedbackLabel element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListAllFeedbackLabelsRequest,ListAllFeedbackLabelsPagedResponse> |
listAnalyses(ConversationName parent)
public final ContactCenterInsightsClient.ListAnalysesPagedResponse listAnalyses(ConversationName parent)
Lists analyses.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ConversationName parent = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]");
for (Analysis element : contactCenterInsightsClient.listAnalyses(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
ConversationName Required. The parent resource of the analyses. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListAnalysesPagedResponse |
listAnalyses(ListAnalysesRequest request)
public final ContactCenterInsightsClient.ListAnalysesPagedResponse listAnalyses(ListAnalysesRequest request)
Lists analyses.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListAnalysesRequest request =
ListAnalysesRequest.newBuilder()
.setParent(
ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
for (Analysis element : contactCenterInsightsClient.listAnalyses(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListAnalysesRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListAnalysesPagedResponse |
listAnalyses(String parent)
public final ContactCenterInsightsClient.ListAnalysesPagedResponse listAnalyses(String parent)
Lists analyses.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString();
for (Analysis element : contactCenterInsightsClient.listAnalyses(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the analyses. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListAnalysesPagedResponse |
listAnalysesCallable()
public final UnaryCallable<ListAnalysesRequest,ListAnalysesResponse> listAnalysesCallable()
Lists analyses.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListAnalysesRequest request =
ListAnalysesRequest.newBuilder()
.setParent(
ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
while (true) {
ListAnalysesResponse response =
contactCenterInsightsClient.listAnalysesCallable().call(request);
for (Analysis element : response.getAnalysesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListAnalysesRequest,ListAnalysesResponse> |
listAnalysesPagedCallable()
public final UnaryCallable<ListAnalysesRequest,ContactCenterInsightsClient.ListAnalysesPagedResponse> listAnalysesPagedCallable()
Lists analyses.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListAnalysesRequest request =
ListAnalysesRequest.newBuilder()
.setParent(
ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
ApiFuture<Analysis> future =
contactCenterInsightsClient.listAnalysesPagedCallable().futureCall(request);
// Do something.
for (Analysis element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListAnalysesRequest,ListAnalysesPagedResponse> |
listAnalysisRules(ListAnalysisRulesRequest request)
public final ContactCenterInsightsClient.ListAnalysisRulesPagedResponse listAnalysisRules(ListAnalysisRulesRequest request)
Lists analysis rules.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListAnalysisRulesRequest request =
ListAnalysisRulesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (AnalysisRule element :
contactCenterInsightsClient.listAnalysisRules(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListAnalysisRulesRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListAnalysisRulesPagedResponse |
listAnalysisRules(LocationName parent)
public final ContactCenterInsightsClient.ListAnalysisRulesPagedResponse listAnalysisRules(LocationName parent)
Lists analysis rules.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (AnalysisRule element :
contactCenterInsightsClient.listAnalysisRules(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource of the analysis rules. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListAnalysisRulesPagedResponse |
listAnalysisRules(String parent)
public final ContactCenterInsightsClient.ListAnalysisRulesPagedResponse listAnalysisRules(String parent)
Lists analysis rules.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (AnalysisRule element :
contactCenterInsightsClient.listAnalysisRules(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the analysis rules. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListAnalysisRulesPagedResponse |
listAnalysisRulesCallable()
public final UnaryCallable<ListAnalysisRulesRequest,ListAnalysisRulesResponse> listAnalysisRulesCallable()
Lists analysis rules.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListAnalysisRulesRequest request =
ListAnalysisRulesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListAnalysisRulesResponse response =
contactCenterInsightsClient.listAnalysisRulesCallable().call(request);
for (AnalysisRule element : response.getAnalysisRulesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListAnalysisRulesRequest,ListAnalysisRulesResponse> |
listAnalysisRulesPagedCallable()
public final UnaryCallable<ListAnalysisRulesRequest,ContactCenterInsightsClient.ListAnalysisRulesPagedResponse> listAnalysisRulesPagedCallable()
Lists analysis rules.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListAnalysisRulesRequest request =
ListAnalysisRulesRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<AnalysisRule> future =
contactCenterInsightsClient.listAnalysisRulesPagedCallable().futureCall(request);
// Do something.
for (AnalysisRule element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListAnalysisRulesRequest,ListAnalysisRulesPagedResponse> |
listConversations(ListConversationsRequest request)
public final ContactCenterInsightsClient.ListConversationsPagedResponse listConversations(ListConversationsRequest request)
Lists conversations.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListConversationsRequest request =
ListConversationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.setView(ConversationView.forNumber(0))
.build();
for (Conversation element :
contactCenterInsightsClient.listConversations(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListConversationsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListConversationsPagedResponse |
listConversations(LocationName parent)
public final ContactCenterInsightsClient.ListConversationsPagedResponse listConversations(LocationName parent)
Lists conversations.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Conversation element :
contactCenterInsightsClient.listConversations(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource of the conversation. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListConversationsPagedResponse |
listConversations(String parent)
public final ContactCenterInsightsClient.ListConversationsPagedResponse listConversations(String parent)
Lists conversations.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Conversation element :
contactCenterInsightsClient.listConversations(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the conversation. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListConversationsPagedResponse |
listConversationsCallable()
public final UnaryCallable<ListConversationsRequest,ListConversationsResponse> listConversationsCallable()
Lists conversations.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListConversationsRequest request =
ListConversationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.setView(ConversationView.forNumber(0))
.build();
while (true) {
ListConversationsResponse response =
contactCenterInsightsClient.listConversationsCallable().call(request);
for (Conversation element : response.getConversationsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListConversationsRequest,ListConversationsResponse> |
listConversationsPagedCallable()
public final UnaryCallable<ListConversationsRequest,ContactCenterInsightsClient.ListConversationsPagedResponse> listConversationsPagedCallable()
Lists conversations.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListConversationsRequest request =
ListConversationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.setView(ConversationView.forNumber(0))
.build();
ApiFuture<Conversation> future =
contactCenterInsightsClient.listConversationsPagedCallable().futureCall(request);
// Do something.
for (Conversation element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListConversationsRequest,ListConversationsPagedResponse> |
listFeedbackLabels(ConversationName parent)
public final ContactCenterInsightsClient.ListFeedbackLabelsPagedResponse listFeedbackLabels(ConversationName parent)
List feedback labels.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ConversationName parent = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]");
for (FeedbackLabel element :
contactCenterInsightsClient.listFeedbackLabels(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
ConversationName Required. The parent resource of the feedback labels. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListFeedbackLabelsPagedResponse |
listFeedbackLabels(ListFeedbackLabelsRequest request)
public final ContactCenterInsightsClient.ListFeedbackLabelsPagedResponse listFeedbackLabels(ListFeedbackLabelsRequest request)
List feedback labels.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListFeedbackLabelsRequest request =
ListFeedbackLabelsRequest.newBuilder()
.setParent(
ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (FeedbackLabel element :
contactCenterInsightsClient.listFeedbackLabels(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListFeedbackLabelsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListFeedbackLabelsPagedResponse |
listFeedbackLabels(String parent)
public final ContactCenterInsightsClient.ListFeedbackLabelsPagedResponse listFeedbackLabels(String parent)
List feedback labels.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString();
for (FeedbackLabel element :
contactCenterInsightsClient.listFeedbackLabels(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the feedback labels. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListFeedbackLabelsPagedResponse |
listFeedbackLabelsCallable()
public final UnaryCallable<ListFeedbackLabelsRequest,ListFeedbackLabelsResponse> listFeedbackLabelsCallable()
List feedback labels.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListFeedbackLabelsRequest request =
ListFeedbackLabelsRequest.newBuilder()
.setParent(
ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListFeedbackLabelsResponse response =
contactCenterInsightsClient.listFeedbackLabelsCallable().call(request);
for (FeedbackLabel element : response.getFeedbackLabelsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListFeedbackLabelsRequest,ListFeedbackLabelsResponse> |
listFeedbackLabelsPagedCallable()
public final UnaryCallable<ListFeedbackLabelsRequest,ContactCenterInsightsClient.ListFeedbackLabelsPagedResponse> listFeedbackLabelsPagedCallable()
List feedback labels.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListFeedbackLabelsRequest request =
ListFeedbackLabelsRequest.newBuilder()
.setParent(
ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
.setFilter("filter-1274492040")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<FeedbackLabel> future =
contactCenterInsightsClient.listFeedbackLabelsPagedCallable().futureCall(request);
// Do something.
for (FeedbackLabel element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListFeedbackLabelsRequest,ListFeedbackLabelsPagedResponse> |
listIssueModels(ListIssueModelsRequest request)
public final ListIssueModelsResponse listIssueModels(ListIssueModelsRequest request)
Lists issue models.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListIssueModelsRequest request =
ListIssueModelsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.build();
ListIssueModelsResponse response = contactCenterInsightsClient.listIssueModels(request);
}
Parameter | |
---|---|
Name | Description |
request |
ListIssueModelsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
ListIssueModelsResponse |
listIssueModels(LocationName parent)
public final ListIssueModelsResponse listIssueModels(LocationName parent)
Lists issue models.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
ListIssueModelsResponse response = contactCenterInsightsClient.listIssueModels(parent);
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource of the issue model. |
Returns | |
---|---|
Type | Description |
ListIssueModelsResponse |
listIssueModels(String parent)
public final ListIssueModelsResponse listIssueModels(String parent)
Lists issue models.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
ListIssueModelsResponse response = contactCenterInsightsClient.listIssueModels(parent);
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the issue model. |
Returns | |
---|---|
Type | Description |
ListIssueModelsResponse |
listIssueModelsCallable()
public final UnaryCallable<ListIssueModelsRequest,ListIssueModelsResponse> listIssueModelsCallable()
Lists issue models.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListIssueModelsRequest request =
ListIssueModelsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.build();
ApiFuture<ListIssueModelsResponse> future =
contactCenterInsightsClient.listIssueModelsCallable().futureCall(request);
// Do something.
ListIssueModelsResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListIssueModelsRequest,ListIssueModelsResponse> |
listIssues(IssueModelName parent)
public final ListIssuesResponse listIssues(IssueModelName parent)
Lists issues.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
IssueModelName parent = IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]");
ListIssuesResponse response = contactCenterInsightsClient.listIssues(parent);
}
Parameter | |
---|---|
Name | Description |
parent |
IssueModelName Required. The parent resource of the issue. |
Returns | |
---|---|
Type | Description |
ListIssuesResponse |
listIssues(ListIssuesRequest request)
public final ListIssuesResponse listIssues(ListIssuesRequest request)
Lists issues.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListIssuesRequest request =
ListIssuesRequest.newBuilder()
.setParent(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
ListIssuesResponse response = contactCenterInsightsClient.listIssues(request);
}
Parameter | |
---|---|
Name | Description |
request |
ListIssuesRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
ListIssuesResponse |
listIssues(String parent)
public final ListIssuesResponse listIssues(String parent)
Lists issues.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString();
ListIssuesResponse response = contactCenterInsightsClient.listIssues(parent);
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the issue. |
Returns | |
---|---|
Type | Description |
ListIssuesResponse |
listIssuesCallable()
public final UnaryCallable<ListIssuesRequest,ListIssuesResponse> listIssuesCallable()
Lists issues.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListIssuesRequest request =
ListIssuesRequest.newBuilder()
.setParent(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
ApiFuture<ListIssuesResponse> future =
contactCenterInsightsClient.listIssuesCallable().futureCall(request);
// Do something.
ListIssuesResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListIssuesRequest,ListIssuesResponse> |
listPhraseMatchers(ListPhraseMatchersRequest request)
public final ContactCenterInsightsClient.ListPhraseMatchersPagedResponse listPhraseMatchers(ListPhraseMatchersRequest request)
Lists phrase matchers.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListPhraseMatchersRequest request =
ListPhraseMatchersRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
for (PhraseMatcher element :
contactCenterInsightsClient.listPhraseMatchers(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListPhraseMatchersRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListPhraseMatchersPagedResponse |
listPhraseMatchers(LocationName parent)
public final ContactCenterInsightsClient.ListPhraseMatchersPagedResponse listPhraseMatchers(LocationName parent)
Lists phrase matchers.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (PhraseMatcher element :
contactCenterInsightsClient.listPhraseMatchers(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource of the phrase matcher. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListPhraseMatchersPagedResponse |
listPhraseMatchers(String parent)
public final ContactCenterInsightsClient.ListPhraseMatchersPagedResponse listPhraseMatchers(String parent)
Lists phrase matchers.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (PhraseMatcher element :
contactCenterInsightsClient.listPhraseMatchers(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the phrase matcher. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListPhraseMatchersPagedResponse |
listPhraseMatchersCallable()
public final UnaryCallable<ListPhraseMatchersRequest,ListPhraseMatchersResponse> listPhraseMatchersCallable()
Lists phrase matchers.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListPhraseMatchersRequest request =
ListPhraseMatchersRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
while (true) {
ListPhraseMatchersResponse response =
contactCenterInsightsClient.listPhraseMatchersCallable().call(request);
for (PhraseMatcher element : response.getPhraseMatchersList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListPhraseMatchersRequest,ListPhraseMatchersResponse> |
listPhraseMatchersPagedCallable()
public final UnaryCallable<ListPhraseMatchersRequest,ContactCenterInsightsClient.ListPhraseMatchersPagedResponse> listPhraseMatchersPagedCallable()
Lists phrase matchers.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListPhraseMatchersRequest request =
ListPhraseMatchersRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
ApiFuture<PhraseMatcher> future =
contactCenterInsightsClient.listPhraseMatchersPagedCallable().futureCall(request);
// Do something.
for (PhraseMatcher element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListPhraseMatchersRequest,ListPhraseMatchersPagedResponse> |
listQaQuestions(ListQaQuestionsRequest request)
public final ContactCenterInsightsClient.ListQaQuestionsPagedResponse listQaQuestions(ListQaQuestionsRequest request)
Lists QaQuestions.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListQaQuestionsRequest request =
ListQaQuestionsRequest.newBuilder()
.setParent(
QaScorecardRevisionName.of(
"[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (QaQuestion element : contactCenterInsightsClient.listQaQuestions(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListQaQuestionsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListQaQuestionsPagedResponse |
listQaQuestions(QaScorecardRevisionName parent)
public final ContactCenterInsightsClient.ListQaQuestionsPagedResponse listQaQuestions(QaScorecardRevisionName parent)
Lists QaQuestions.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
QaScorecardRevisionName parent =
QaScorecardRevisionName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]");
for (QaQuestion element : contactCenterInsightsClient.listQaQuestions(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
QaScorecardRevisionName Required. The parent resource of the questions. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListQaQuestionsPagedResponse |
listQaQuestions(String parent)
public final ContactCenterInsightsClient.ListQaQuestionsPagedResponse listQaQuestions(String parent)
Lists QaQuestions.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent =
QaScorecardRevisionName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString();
for (QaQuestion element : contactCenterInsightsClient.listQaQuestions(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the questions. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListQaQuestionsPagedResponse |
listQaQuestionsCallable()
public final UnaryCallable<ListQaQuestionsRequest,ListQaQuestionsResponse> listQaQuestionsCallable()
Lists QaQuestions.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListQaQuestionsRequest request =
ListQaQuestionsRequest.newBuilder()
.setParent(
QaScorecardRevisionName.of(
"[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListQaQuestionsResponse response =
contactCenterInsightsClient.listQaQuestionsCallable().call(request);
for (QaQuestion element : response.getQaQuestionsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListQaQuestionsRequest,ListQaQuestionsResponse> |
listQaQuestionsPagedCallable()
public final UnaryCallable<ListQaQuestionsRequest,ContactCenterInsightsClient.ListQaQuestionsPagedResponse> listQaQuestionsPagedCallable()
Lists QaQuestions.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListQaQuestionsRequest request =
ListQaQuestionsRequest.newBuilder()
.setParent(
QaScorecardRevisionName.of(
"[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<QaQuestion> future =
contactCenterInsightsClient.listQaQuestionsPagedCallable().futureCall(request);
// Do something.
for (QaQuestion element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListQaQuestionsRequest,ListQaQuestionsPagedResponse> |
listQaScorecardRevisions(ListQaScorecardRevisionsRequest request)
public final ContactCenterInsightsClient.ListQaScorecardRevisionsPagedResponse listQaScorecardRevisions(ListQaScorecardRevisionsRequest request)
Lists all revisions under the parent QaScorecard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListQaScorecardRevisionsRequest request =
ListQaScorecardRevisionsRequest.newBuilder()
.setParent(QaScorecardName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
for (QaScorecardRevision element :
contactCenterInsightsClient.listQaScorecardRevisions(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListQaScorecardRevisionsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListQaScorecardRevisionsPagedResponse |
listQaScorecardRevisions(QaScorecardName parent)
public final ContactCenterInsightsClient.ListQaScorecardRevisionsPagedResponse listQaScorecardRevisions(QaScorecardName parent)
Lists all revisions under the parent QaScorecard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
QaScorecardName parent = QaScorecardName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]");
for (QaScorecardRevision element :
contactCenterInsightsClient.listQaScorecardRevisions(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
QaScorecardName Required. The parent resource of the scorecard revisions. To list all revisions of all scorecards, substitute the QaScorecard ID with a '-' character. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListQaScorecardRevisionsPagedResponse |
listQaScorecardRevisions(String parent)
public final ContactCenterInsightsClient.ListQaScorecardRevisionsPagedResponse listQaScorecardRevisions(String parent)
Lists all revisions under the parent QaScorecard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = QaScorecardName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]").toString();
for (QaScorecardRevision element :
contactCenterInsightsClient.listQaScorecardRevisions(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the scorecard revisions. To list all revisions of all scorecards, substitute the QaScorecard ID with a '-' character. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListQaScorecardRevisionsPagedResponse |
listQaScorecardRevisionsCallable()
public final UnaryCallable<ListQaScorecardRevisionsRequest,ListQaScorecardRevisionsResponse> listQaScorecardRevisionsCallable()
Lists all revisions under the parent QaScorecard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListQaScorecardRevisionsRequest request =
ListQaScorecardRevisionsRequest.newBuilder()
.setParent(QaScorecardName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
while (true) {
ListQaScorecardRevisionsResponse response =
contactCenterInsightsClient.listQaScorecardRevisionsCallable().call(request);
for (QaScorecardRevision element : response.getQaScorecardRevisionsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListQaScorecardRevisionsRequest,ListQaScorecardRevisionsResponse> |
listQaScorecardRevisionsPagedCallable()
public final UnaryCallable<ListQaScorecardRevisionsRequest,ContactCenterInsightsClient.ListQaScorecardRevisionsPagedResponse> listQaScorecardRevisionsPagedCallable()
Lists all revisions under the parent QaScorecard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListQaScorecardRevisionsRequest request =
ListQaScorecardRevisionsRequest.newBuilder()
.setParent(QaScorecardName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.build();
ApiFuture<QaScorecardRevision> future =
contactCenterInsightsClient.listQaScorecardRevisionsPagedCallable().futureCall(request);
// Do something.
for (QaScorecardRevision element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListQaScorecardRevisionsRequest,ListQaScorecardRevisionsPagedResponse> |
listQaScorecards(ListQaScorecardsRequest request)
public final ContactCenterInsightsClient.ListQaScorecardsPagedResponse listQaScorecards(ListQaScorecardsRequest request)
Lists QaScorecards.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListQaScorecardsRequest request =
ListQaScorecardsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (QaScorecard element :
contactCenterInsightsClient.listQaScorecards(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListQaScorecardsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListQaScorecardsPagedResponse |
listQaScorecards(LocationName parent)
public final ContactCenterInsightsClient.ListQaScorecardsPagedResponse listQaScorecards(LocationName parent)
Lists QaScorecards.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (QaScorecard element :
contactCenterInsightsClient.listQaScorecards(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource of the scorecards. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListQaScorecardsPagedResponse |
listQaScorecards(String parent)
public final ContactCenterInsightsClient.ListQaScorecardsPagedResponse listQaScorecards(String parent)
Lists QaScorecards.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (QaScorecard element :
contactCenterInsightsClient.listQaScorecards(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the scorecards. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListQaScorecardsPagedResponse |
listQaScorecardsCallable()
public final UnaryCallable<ListQaScorecardsRequest,ListQaScorecardsResponse> listQaScorecardsCallable()
Lists QaScorecards.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListQaScorecardsRequest request =
ListQaScorecardsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListQaScorecardsResponse response =
contactCenterInsightsClient.listQaScorecardsCallable().call(request);
for (QaScorecard element : response.getQaScorecardsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListQaScorecardsRequest,ListQaScorecardsResponse> |
listQaScorecardsPagedCallable()
public final UnaryCallable<ListQaScorecardsRequest,ContactCenterInsightsClient.ListQaScorecardsPagedResponse> listQaScorecardsPagedCallable()
Lists QaScorecards.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListQaScorecardsRequest request =
ListQaScorecardsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<QaScorecard> future =
contactCenterInsightsClient.listQaScorecardsPagedCallable().futureCall(request);
// Do something.
for (QaScorecard element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListQaScorecardsRequest,ListQaScorecardsPagedResponse> |
listViews(ListViewsRequest request)
public final ContactCenterInsightsClient.ListViewsPagedResponse listViews(ListViewsRequest request)
Lists views.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListViewsRequest request =
ListViewsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (View element : contactCenterInsightsClient.listViews(request).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
request |
ListViewsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListViewsPagedResponse |
listViews(LocationName parent)
public final ContactCenterInsightsClient.ListViewsPagedResponse listViews(LocationName parent)
Lists views.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (View element : contactCenterInsightsClient.listViews(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
LocationName Required. The parent resource of the views. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListViewsPagedResponse |
listViews(String parent)
public final ContactCenterInsightsClient.ListViewsPagedResponse listViews(String parent)
Lists views.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (View element : contactCenterInsightsClient.listViews(parent).iterateAll()) {
// doThingsWith(element);
}
}
Parameter | |
---|---|
Name | Description |
parent |
String Required. The parent resource of the views. |
Returns | |
---|---|
Type | Description |
ContactCenterInsightsClient.ListViewsPagedResponse |
listViewsCallable()
public final UnaryCallable<ListViewsRequest,ListViewsResponse> listViewsCallable()
Lists views.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListViewsRequest request =
ListViewsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListViewsResponse response = contactCenterInsightsClient.listViewsCallable().call(request);
for (View element : response.getViewsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListViewsRequest,ListViewsResponse> |
listViewsPagedCallable()
public final UnaryCallable<ListViewsRequest,ContactCenterInsightsClient.ListViewsPagedResponse> listViewsPagedCallable()
Lists views.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
ListViewsRequest request =
ListViewsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<View> future =
contactCenterInsightsClient.listViewsPagedCallable().futureCall(request);
// Do something.
for (View element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
Returns | |
---|---|
Type | Description |
UnaryCallable<ListViewsRequest,ListViewsPagedResponse> |
queryMetricsAsync(QueryMetricsRequest request)
public final OperationFuture<QueryMetricsResponse,QueryMetricsMetadata> queryMetricsAsync(QueryMetricsRequest request)
Query metrics.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
QueryMetricsRequest request =
QueryMetricsRequest.newBuilder()
.setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.addAllDimensions(new ArrayList<Dimension>())
.setMeasureMask(FieldMask.newBuilder().build())
.build();
QueryMetricsResponse response = contactCenterInsightsClient.queryMetricsAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
QueryMetricsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<QueryMetricsResponse,QueryMetricsMetadata> |
queryMetricsCallable()
public final UnaryCallable<QueryMetricsRequest,Operation> queryMetricsCallable()
Query metrics.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
QueryMetricsRequest request =
QueryMetricsRequest.newBuilder()
.setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.addAllDimensions(new ArrayList<Dimension>())
.setMeasureMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Operation> future =
contactCenterInsightsClient.queryMetricsCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<QueryMetricsRequest,Operation> |
queryMetricsOperationCallable()
public final OperationCallable<QueryMetricsRequest,QueryMetricsResponse,QueryMetricsMetadata> queryMetricsOperationCallable()
Query metrics.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
QueryMetricsRequest request =
QueryMetricsRequest.newBuilder()
.setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.addAllDimensions(new ArrayList<Dimension>())
.setMeasureMask(FieldMask.newBuilder().build())
.build();
OperationFuture<QueryMetricsResponse, QueryMetricsMetadata> future =
contactCenterInsightsClient.queryMetricsOperationCallable().futureCall(request);
// Do something.
QueryMetricsResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<QueryMetricsRequest,QueryMetricsResponse,QueryMetricsMetadata> |
shutdown()
public void shutdown()
shutdownNow()
public void shutdownNow()
tuneQaScorecardRevisionAsync(QaScorecardRevisionName parent, String filter, boolean validateOnly)
public final OperationFuture<TuneQaScorecardRevisionResponse,TuneQaScorecardRevisionMetadata> tuneQaScorecardRevisionAsync(QaScorecardRevisionName parent, String filter, boolean validateOnly)
Fine tune one or more QaModels.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
QaScorecardRevisionName parent =
QaScorecardRevisionName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]");
String filter = "filter-1274492040";
boolean validateOnly = true;
TuneQaScorecardRevisionResponse response =
contactCenterInsightsClient
.tuneQaScorecardRevisionAsync(parent, filter, validateOnly)
.get();
}
Parameters | |
---|---|
Name | Description |
parent |
QaScorecardRevisionName Required. The parent resource for new fine tuning job instance. |
filter |
String 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. |
validateOnly |
boolean 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. |
Returns | |
---|---|
Type | Description |
OperationFuture<TuneQaScorecardRevisionResponse,TuneQaScorecardRevisionMetadata> |
tuneQaScorecardRevisionAsync(TuneQaScorecardRevisionRequest request)
public final OperationFuture<TuneQaScorecardRevisionResponse,TuneQaScorecardRevisionMetadata> tuneQaScorecardRevisionAsync(TuneQaScorecardRevisionRequest request)
Fine tune one or more QaModels.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
TuneQaScorecardRevisionRequest request =
TuneQaScorecardRevisionRequest.newBuilder()
.setParent(
QaScorecardRevisionName.of(
"[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString())
.setFilter("filter-1274492040")
.setValidateOnly(true)
.build();
TuneQaScorecardRevisionResponse response =
contactCenterInsightsClient.tuneQaScorecardRevisionAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
TuneQaScorecardRevisionRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<TuneQaScorecardRevisionResponse,TuneQaScorecardRevisionMetadata> |
tuneQaScorecardRevisionAsync(String parent, String filter, boolean validateOnly)
public final OperationFuture<TuneQaScorecardRevisionResponse,TuneQaScorecardRevisionMetadata> tuneQaScorecardRevisionAsync(String parent, String filter, boolean validateOnly)
Fine tune one or more QaModels.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String parent =
QaScorecardRevisionName.of("[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString();
String filter = "filter-1274492040";
boolean validateOnly = true;
TuneQaScorecardRevisionResponse response =
contactCenterInsightsClient
.tuneQaScorecardRevisionAsync(parent, filter, validateOnly)
.get();
}
Parameters | |
---|---|
Name | Description |
parent |
String Required. The parent resource for new fine tuning job instance. |
filter |
String 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. |
validateOnly |
boolean 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. |
Returns | |
---|---|
Type | Description |
OperationFuture<TuneQaScorecardRevisionResponse,TuneQaScorecardRevisionMetadata> |
tuneQaScorecardRevisionCallable()
public final UnaryCallable<TuneQaScorecardRevisionRequest,Operation> tuneQaScorecardRevisionCallable()
Fine tune one or more QaModels.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
TuneQaScorecardRevisionRequest request =
TuneQaScorecardRevisionRequest.newBuilder()
.setParent(
QaScorecardRevisionName.of(
"[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString())
.setFilter("filter-1274492040")
.setValidateOnly(true)
.build();
ApiFuture<Operation> future =
contactCenterInsightsClient.tuneQaScorecardRevisionCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<TuneQaScorecardRevisionRequest,Operation> |
tuneQaScorecardRevisionOperationCallable()
public final OperationCallable<TuneQaScorecardRevisionRequest,TuneQaScorecardRevisionResponse,TuneQaScorecardRevisionMetadata> tuneQaScorecardRevisionOperationCallable()
Fine tune one or more QaModels.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
TuneQaScorecardRevisionRequest request =
TuneQaScorecardRevisionRequest.newBuilder()
.setParent(
QaScorecardRevisionName.of(
"[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString())
.setFilter("filter-1274492040")
.setValidateOnly(true)
.build();
OperationFuture<TuneQaScorecardRevisionResponse, TuneQaScorecardRevisionMetadata> future =
contactCenterInsightsClient
.tuneQaScorecardRevisionOperationCallable()
.futureCall(request);
// Do something.
TuneQaScorecardRevisionResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<TuneQaScorecardRevisionRequest,TuneQaScorecardRevisionResponse,TuneQaScorecardRevisionMetadata> |
undeployIssueModelAsync(IssueModelName name)
public final OperationFuture<UndeployIssueModelResponse,UndeployIssueModelMetadata> undeployIssueModelAsync(IssueModelName name)
Undeploys an issue model. An issue model can not be used in analysis after it has been undeployed.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
IssueModelName name = IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]");
UndeployIssueModelResponse response =
contactCenterInsightsClient.undeployIssueModelAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
IssueModelName Required. The issue model to undeploy. |
Returns | |
---|---|
Type | Description |
OperationFuture<UndeployIssueModelResponse,UndeployIssueModelMetadata> |
undeployIssueModelAsync(UndeployIssueModelRequest request)
public final OperationFuture<UndeployIssueModelResponse,UndeployIssueModelMetadata> undeployIssueModelAsync(UndeployIssueModelRequest request)
Undeploys an issue model. An issue model can not be used in analysis after it has been undeployed.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UndeployIssueModelRequest request =
UndeployIssueModelRequest.newBuilder()
.setName(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
UndeployIssueModelResponse response =
contactCenterInsightsClient.undeployIssueModelAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
UndeployIssueModelRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<UndeployIssueModelResponse,UndeployIssueModelMetadata> |
undeployIssueModelAsync(String name)
public final OperationFuture<UndeployIssueModelResponse,UndeployIssueModelMetadata> undeployIssueModelAsync(String name)
Undeploys an issue model. An issue model can not be used in analysis after it has been undeployed.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
String name = IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString();
UndeployIssueModelResponse response =
contactCenterInsightsClient.undeployIssueModelAsync(name).get();
}
Parameter | |
---|---|
Name | Description |
name |
String Required. The issue model to undeploy. |
Returns | |
---|---|
Type | Description |
OperationFuture<UndeployIssueModelResponse,UndeployIssueModelMetadata> |
undeployIssueModelCallable()
public final UnaryCallable<UndeployIssueModelRequest,Operation> undeployIssueModelCallable()
Undeploys an issue model. An issue model can not be used in analysis after it has been undeployed.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UndeployIssueModelRequest request =
UndeployIssueModelRequest.newBuilder()
.setName(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
ApiFuture<Operation> future =
contactCenterInsightsClient.undeployIssueModelCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UndeployIssueModelRequest,Operation> |
undeployIssueModelOperationCallable()
public final OperationCallable<UndeployIssueModelRequest,UndeployIssueModelResponse,UndeployIssueModelMetadata> undeployIssueModelOperationCallable()
Undeploys an issue model. An issue model can not be used in analysis after it has been undeployed.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UndeployIssueModelRequest request =
UndeployIssueModelRequest.newBuilder()
.setName(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
OperationFuture<UndeployIssueModelResponse, UndeployIssueModelMetadata> future =
contactCenterInsightsClient.undeployIssueModelOperationCallable().futureCall(request);
// Do something.
UndeployIssueModelResponse response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<UndeployIssueModelRequest,UndeployIssueModelResponse,UndeployIssueModelMetadata> |
undeployQaScorecardRevision(UndeployQaScorecardRevisionRequest request)
public final QaScorecardRevision undeployQaScorecardRevision(UndeployQaScorecardRevisionRequest request)
Undeploy a QaScorecardRevision.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UndeployQaScorecardRevisionRequest request =
UndeployQaScorecardRevisionRequest.newBuilder()
.setName(
QaScorecardRevisionName.of(
"[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString())
.build();
QaScorecardRevision response =
contactCenterInsightsClient.undeployQaScorecardRevision(request);
}
Parameter | |
---|---|
Name | Description |
request |
UndeployQaScorecardRevisionRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
QaScorecardRevision |
undeployQaScorecardRevisionCallable()
public final UnaryCallable<UndeployQaScorecardRevisionRequest,QaScorecardRevision> undeployQaScorecardRevisionCallable()
Undeploy a QaScorecardRevision.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UndeployQaScorecardRevisionRequest request =
UndeployQaScorecardRevisionRequest.newBuilder()
.setName(
QaScorecardRevisionName.of(
"[PROJECT]", "[LOCATION]", "[QA_SCORECARD]", "[REVISION]")
.toString())
.build();
ApiFuture<QaScorecardRevision> future =
contactCenterInsightsClient.undeployQaScorecardRevisionCallable().futureCall(request);
// Do something.
QaScorecardRevision response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UndeployQaScorecardRevisionRequest,QaScorecardRevision> |
updateAnalysisRule(AnalysisRule analysisRule, FieldMask updateMask)
public final AnalysisRule updateAnalysisRule(AnalysisRule analysisRule, FieldMask updateMask)
Updates a analysis rule.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
AnalysisRule analysisRule = AnalysisRule.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
AnalysisRule response =
contactCenterInsightsClient.updateAnalysisRule(analysisRule, updateMask);
}
Parameters | |
---|---|
Name | Description |
analysisRule |
AnalysisRule Required. The new analysis rule. |
updateMask |
FieldMask Optional. The list of fields to be updated. If the update_mask is not provided, the update will be applied to all fields. |
Returns | |
---|---|
Type | Description |
AnalysisRule |
updateAnalysisRule(UpdateAnalysisRuleRequest request)
public final AnalysisRule updateAnalysisRule(UpdateAnalysisRuleRequest request)
Updates a analysis rule.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UpdateAnalysisRuleRequest request =
UpdateAnalysisRuleRequest.newBuilder()
.setAnalysisRule(AnalysisRule.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
AnalysisRule response = contactCenterInsightsClient.updateAnalysisRule(request);
}
Parameter | |
---|---|
Name | Description |
request |
UpdateAnalysisRuleRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
AnalysisRule |
updateAnalysisRuleCallable()
public final UnaryCallable<UpdateAnalysisRuleRequest,AnalysisRule> updateAnalysisRuleCallable()
Updates a analysis rule.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UpdateAnalysisRuleRequest request =
UpdateAnalysisRuleRequest.newBuilder()
.setAnalysisRule(AnalysisRule.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<AnalysisRule> future =
contactCenterInsightsClient.updateAnalysisRuleCallable().futureCall(request);
// Do something.
AnalysisRule response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateAnalysisRuleRequest,AnalysisRule> |
updateConversation(Conversation conversation, FieldMask updateMask)
public final Conversation updateConversation(Conversation conversation, FieldMask updateMask)
Updates a conversation.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
Conversation conversation = Conversation.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Conversation response =
contactCenterInsightsClient.updateConversation(conversation, updateMask);
}
Parameters | |
---|---|
Name | Description |
conversation |
Conversation Required. The new values for the conversation. |
updateMask |
FieldMask The list of fields to be updated. All possible fields can be updated by
passing
|
Returns | |
---|---|
Type | Description |
Conversation |
updateConversation(UpdateConversationRequest request)
public final Conversation updateConversation(UpdateConversationRequest request)
Updates a conversation.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UpdateConversationRequest request =
UpdateConversationRequest.newBuilder()
.setConversation(Conversation.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Conversation response = contactCenterInsightsClient.updateConversation(request);
}
Parameter | |
---|---|
Name | Description |
request |
UpdateConversationRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Conversation |
updateConversationCallable()
public final UnaryCallable<UpdateConversationRequest,Conversation> updateConversationCallable()
Updates a conversation.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UpdateConversationRequest request =
UpdateConversationRequest.newBuilder()
.setConversation(Conversation.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Conversation> future =
contactCenterInsightsClient.updateConversationCallable().futureCall(request);
// Do something.
Conversation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateConversationRequest,Conversation> |
updateFeedbackLabel(FeedbackLabel feedbackLabel, FieldMask updateMask)
public final FeedbackLabel updateFeedbackLabel(FeedbackLabel feedbackLabel, FieldMask updateMask)
Update feedback label.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
FeedbackLabel feedbackLabel = FeedbackLabel.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
FeedbackLabel response =
contactCenterInsightsClient.updateFeedbackLabel(feedbackLabel, updateMask);
}
Parameters | |
---|---|
Name | Description |
feedbackLabel |
FeedbackLabel Required. The feedback label to update. |
updateMask |
FieldMask Required. The list of fields to be updated. |
Returns | |
---|---|
Type | Description |
FeedbackLabel |
updateFeedbackLabel(UpdateFeedbackLabelRequest request)
public final FeedbackLabel updateFeedbackLabel(UpdateFeedbackLabelRequest request)
Update feedback label.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UpdateFeedbackLabelRequest request =
UpdateFeedbackLabelRequest.newBuilder()
.setFeedbackLabel(FeedbackLabel.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
FeedbackLabel response = contactCenterInsightsClient.updateFeedbackLabel(request);
}
Parameter | |
---|---|
Name | Description |
request |
UpdateFeedbackLabelRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
FeedbackLabel |
updateFeedbackLabelCallable()
public final UnaryCallable<UpdateFeedbackLabelRequest,FeedbackLabel> updateFeedbackLabelCallable()
Update feedback label.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UpdateFeedbackLabelRequest request =
UpdateFeedbackLabelRequest.newBuilder()
.setFeedbackLabel(FeedbackLabel.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<FeedbackLabel> future =
contactCenterInsightsClient.updateFeedbackLabelCallable().futureCall(request);
// Do something.
FeedbackLabel response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateFeedbackLabelRequest,FeedbackLabel> |
updateIssue(Issue issue, FieldMask updateMask)
public final Issue updateIssue(Issue issue, FieldMask updateMask)
Updates an issue.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
Issue issue = Issue.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Issue response = contactCenterInsightsClient.updateIssue(issue, updateMask);
}
Parameters | |
---|---|
Name | Description |
issue |
Issue Required. The new values for the issue. |
updateMask |
FieldMask The list of fields to be updated. |
Returns | |
---|---|
Type | Description |
Issue |
updateIssue(UpdateIssueRequest request)
public final Issue updateIssue(UpdateIssueRequest request)
Updates an issue.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UpdateIssueRequest request =
UpdateIssueRequest.newBuilder()
.setIssue(Issue.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Issue response = contactCenterInsightsClient.updateIssue(request);
}
Parameter | |
---|---|
Name | Description |
request |
UpdateIssueRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Issue |
updateIssueCallable()
public final UnaryCallable<UpdateIssueRequest,Issue> updateIssueCallable()
Updates an issue.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UpdateIssueRequest request =
UpdateIssueRequest.newBuilder()
.setIssue(Issue.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Issue> future =
contactCenterInsightsClient.updateIssueCallable().futureCall(request);
// Do something.
Issue response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateIssueRequest,Issue> |
updateIssueModel(IssueModel issueModel, FieldMask updateMask)
public final IssueModel updateIssueModel(IssueModel issueModel, FieldMask updateMask)
Updates an issue model.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
IssueModel issueModel = IssueModel.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
IssueModel response = contactCenterInsightsClient.updateIssueModel(issueModel, updateMask);
}
Parameters | |
---|---|
Name | Description |
issueModel |
IssueModel Required. The new values for the issue model. |
updateMask |
FieldMask The list of fields to be updated. |
Returns | |
---|---|
Type | Description |
IssueModel |
updateIssueModel(UpdateIssueModelRequest request)
public final IssueModel updateIssueModel(UpdateIssueModelRequest request)
Updates an issue model.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UpdateIssueModelRequest request =
UpdateIssueModelRequest.newBuilder()
.setIssueModel(IssueModel.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
IssueModel response = contactCenterInsightsClient.updateIssueModel(request);
}
Parameter | |
---|---|
Name | Description |
request |
UpdateIssueModelRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
IssueModel |
updateIssueModelCallable()
public final UnaryCallable<UpdateIssueModelRequest,IssueModel> updateIssueModelCallable()
Updates an issue model.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UpdateIssueModelRequest request =
UpdateIssueModelRequest.newBuilder()
.setIssueModel(IssueModel.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<IssueModel> future =
contactCenterInsightsClient.updateIssueModelCallable().futureCall(request);
// Do something.
IssueModel response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateIssueModelRequest,IssueModel> |
updatePhraseMatcher(PhraseMatcher phraseMatcher, FieldMask updateMask)
public final PhraseMatcher updatePhraseMatcher(PhraseMatcher phraseMatcher, FieldMask updateMask)
Updates a phrase matcher.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
PhraseMatcher phraseMatcher = PhraseMatcher.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
PhraseMatcher response =
contactCenterInsightsClient.updatePhraseMatcher(phraseMatcher, updateMask);
}
Parameters | |
---|---|
Name | Description |
phraseMatcher |
PhraseMatcher Required. The new values for the phrase matcher. |
updateMask |
FieldMask The list of fields to be updated. |
Returns | |
---|---|
Type | Description |
PhraseMatcher |
updatePhraseMatcher(UpdatePhraseMatcherRequest request)
public final PhraseMatcher updatePhraseMatcher(UpdatePhraseMatcherRequest request)
Updates a phrase matcher.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UpdatePhraseMatcherRequest request =
UpdatePhraseMatcherRequest.newBuilder()
.setPhraseMatcher(PhraseMatcher.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
PhraseMatcher response = contactCenterInsightsClient.updatePhraseMatcher(request);
}
Parameter | |
---|---|
Name | Description |
request |
UpdatePhraseMatcherRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
PhraseMatcher |
updatePhraseMatcherCallable()
public final UnaryCallable<UpdatePhraseMatcherRequest,PhraseMatcher> updatePhraseMatcherCallable()
Updates a phrase matcher.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UpdatePhraseMatcherRequest request =
UpdatePhraseMatcherRequest.newBuilder()
.setPhraseMatcher(PhraseMatcher.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<PhraseMatcher> future =
contactCenterInsightsClient.updatePhraseMatcherCallable().futureCall(request);
// Do something.
PhraseMatcher response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdatePhraseMatcherRequest,PhraseMatcher> |
updateQaQuestion(QaQuestion qaQuestion, FieldMask updateMask)
public final QaQuestion updateQaQuestion(QaQuestion qaQuestion, FieldMask updateMask)
Updates a QaQuestion.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
QaQuestion qaQuestion = QaQuestion.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
QaQuestion response = contactCenterInsightsClient.updateQaQuestion(qaQuestion, updateMask);
}
Parameters | |
---|---|
Name | Description |
qaQuestion |
QaQuestion Required. The QaQuestion to update. |
updateMask |
FieldMask Required. The list of fields to be updated. All possible fields can be
updated by passing
|
Returns | |
---|---|
Type | Description |
QaQuestion |
updateQaQuestion(UpdateQaQuestionRequest request)
public final QaQuestion updateQaQuestion(UpdateQaQuestionRequest request)
Updates a QaQuestion.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UpdateQaQuestionRequest request =
UpdateQaQuestionRequest.newBuilder()
.setQaQuestion(QaQuestion.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
QaQuestion response = contactCenterInsightsClient.updateQaQuestion(request);
}
Parameter | |
---|---|
Name | Description |
request |
UpdateQaQuestionRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
QaQuestion |
updateQaQuestionCallable()
public final UnaryCallable<UpdateQaQuestionRequest,QaQuestion> updateQaQuestionCallable()
Updates a QaQuestion.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UpdateQaQuestionRequest request =
UpdateQaQuestionRequest.newBuilder()
.setQaQuestion(QaQuestion.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<QaQuestion> future =
contactCenterInsightsClient.updateQaQuestionCallable().futureCall(request);
// Do something.
QaQuestion response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateQaQuestionRequest,QaQuestion> |
updateQaScorecard(QaScorecard qaScorecard, FieldMask updateMask)
public final QaScorecard updateQaScorecard(QaScorecard qaScorecard, FieldMask updateMask)
Updates a QaScorecard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
QaScorecard qaScorecard = QaScorecard.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
QaScorecard response = contactCenterInsightsClient.updateQaScorecard(qaScorecard, updateMask);
}
Parameters | |
---|---|
Name | Description |
qaScorecard |
QaScorecard Required. The QaScorecard to update. |
updateMask |
FieldMask Required. The list of fields to be updated. All possible fields can be
updated by passing
|
Returns | |
---|---|
Type | Description |
QaScorecard |
updateQaScorecard(UpdateQaScorecardRequest request)
public final QaScorecard updateQaScorecard(UpdateQaScorecardRequest request)
Updates a QaScorecard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UpdateQaScorecardRequest request =
UpdateQaScorecardRequest.newBuilder()
.setQaScorecard(QaScorecard.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
QaScorecard response = contactCenterInsightsClient.updateQaScorecard(request);
}
Parameter | |
---|---|
Name | Description |
request |
UpdateQaScorecardRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
QaScorecard |
updateQaScorecardCallable()
public final UnaryCallable<UpdateQaScorecardRequest,QaScorecard> updateQaScorecardCallable()
Updates a QaScorecard.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UpdateQaScorecardRequest request =
UpdateQaScorecardRequest.newBuilder()
.setQaScorecard(QaScorecard.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<QaScorecard> future =
contactCenterInsightsClient.updateQaScorecardCallable().futureCall(request);
// Do something.
QaScorecard response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateQaScorecardRequest,QaScorecard> |
updateSettings(Settings settings, FieldMask updateMask)
public final Settings updateSettings(Settings settings, FieldMask updateMask)
Updates project-level settings.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
Settings settings = Settings.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Settings response = contactCenterInsightsClient.updateSettings(settings, updateMask);
}
Parameters | |
---|---|
Name | Description |
settings |
Settings Required. The new settings values. |
updateMask |
FieldMask Required. The list of fields to be updated. |
Returns | |
---|---|
Type | Description |
Settings |
updateSettings(UpdateSettingsRequest request)
public final Settings updateSettings(UpdateSettingsRequest request)
Updates project-level settings.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UpdateSettingsRequest request =
UpdateSettingsRequest.newBuilder()
.setSettings(Settings.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Settings response = contactCenterInsightsClient.updateSettings(request);
}
Parameter | |
---|---|
Name | Description |
request |
UpdateSettingsRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
Settings |
updateSettingsCallable()
public final UnaryCallable<UpdateSettingsRequest,Settings> updateSettingsCallable()
Updates project-level settings.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UpdateSettingsRequest request =
UpdateSettingsRequest.newBuilder()
.setSettings(Settings.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Settings> future =
contactCenterInsightsClient.updateSettingsCallable().futureCall(request);
// Do something.
Settings response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateSettingsRequest,Settings> |
updateView(UpdateViewRequest request)
public final View updateView(UpdateViewRequest request)
Updates a view.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UpdateViewRequest request =
UpdateViewRequest.newBuilder()
.setView(View.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
View response = contactCenterInsightsClient.updateView(request);
}
Parameter | |
---|---|
Name | Description |
request |
UpdateViewRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
View |
updateView(View view, FieldMask updateMask)
public final View updateView(View view, FieldMask updateMask)
Updates a view.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
View view = View.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
View response = contactCenterInsightsClient.updateView(view, updateMask);
}
Parameters | |
---|---|
Name | Description |
view |
View Required. The new view. |
updateMask |
FieldMask The list of fields to be updated. |
Returns | |
---|---|
Type | Description |
View |
updateViewCallable()
public final UnaryCallable<UpdateViewRequest,View> updateViewCallable()
Updates a view.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UpdateViewRequest request =
UpdateViewRequest.newBuilder()
.setView(View.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<View> future = contactCenterInsightsClient.updateViewCallable().futureCall(request);
// Do something.
View response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UpdateViewRequest,View> |
uploadConversationAsync(UploadConversationRequest request)
public final OperationFuture<Conversation,UploadConversationMetadata> uploadConversationAsync(UploadConversationRequest request)
Create a long-running conversation upload operation. This method differs from
CreateConversation
by allowing audio transcription and optional DLP redaction.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UploadConversationRequest request =
UploadConversationRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setConversation(Conversation.newBuilder().build())
.setConversationId("conversationId-1676095234")
.setRedactionConfig(RedactionConfig.newBuilder().build())
.setSpeechConfig(SpeechConfig.newBuilder().build())
.build();
Conversation response = contactCenterInsightsClient.uploadConversationAsync(request).get();
}
Parameter | |
---|---|
Name | Description |
request |
UploadConversationRequest The request object containing all of the parameters for the API call. |
Returns | |
---|---|
Type | Description |
OperationFuture<Conversation,UploadConversationMetadata> |
uploadConversationCallable()
public final UnaryCallable<UploadConversationRequest,Operation> uploadConversationCallable()
Create a long-running conversation upload operation. This method differs from
CreateConversation
by allowing audio transcription and optional DLP redaction.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UploadConversationRequest request =
UploadConversationRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setConversation(Conversation.newBuilder().build())
.setConversationId("conversationId-1676095234")
.setRedactionConfig(RedactionConfig.newBuilder().build())
.setSpeechConfig(SpeechConfig.newBuilder().build())
.build();
ApiFuture<Operation> future =
contactCenterInsightsClient.uploadConversationCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
Returns | |
---|---|
Type | Description |
UnaryCallable<UploadConversationRequest,Operation> |
uploadConversationOperationCallable()
public final OperationCallable<UploadConversationRequest,Conversation,UploadConversationMetadata> uploadConversationOperationCallable()
Create a long-running conversation upload operation. This method differs from
CreateConversation
by allowing audio transcription and optional DLP redaction.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ContactCenterInsightsClient contactCenterInsightsClient =
ContactCenterInsightsClient.create()) {
UploadConversationRequest request =
UploadConversationRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setConversation(Conversation.newBuilder().build())
.setConversationId("conversationId-1676095234")
.setRedactionConfig(RedactionConfig.newBuilder().build())
.setSpeechConfig(SpeechConfig.newBuilder().build())
.build();
OperationFuture<Conversation, UploadConversationMetadata> future =
contactCenterInsightsClient.uploadConversationOperationCallable().futureCall(request);
// Do something.
Conversation response = future.get();
}
Returns | |
---|---|
Type | Description |
OperationCallable<UploadConversationRequest,Conversation,UploadConversationMetadata> |