@Generated(value="by gapic-generator-java") public class ContactCenterInsightsClient extends Object implements com.google.api.gax.core.BackgroundResource
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().
The surface of this class includes several types of Java methods for each of the API's methods:
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
ContactCenterInsightsClient.ListAnalysesFixedSizeCollection |
static class |
ContactCenterInsightsClient.ListAnalysesPage |
static class |
ContactCenterInsightsClient.ListAnalysesPagedResponse |
static class |
ContactCenterInsightsClient.ListConversationsFixedSizeCollection |
static class |
ContactCenterInsightsClient.ListConversationsPage |
static class |
ContactCenterInsightsClient.ListConversationsPagedResponse |
static class |
ContactCenterInsightsClient.ListPhraseMatchersFixedSizeCollection |
static class |
ContactCenterInsightsClient.ListPhraseMatchersPage |
static class |
ContactCenterInsightsClient.ListPhraseMatchersPagedResponse |
static class |
ContactCenterInsightsClient.ListViewsFixedSizeCollection |
static class |
ContactCenterInsightsClient.ListViewsPage |
static class |
ContactCenterInsightsClient.ListViewsPagedResponse |
| Modifier | Constructor and Description |
|---|---|
protected |
ContactCenterInsightsClient(ContactCenterInsightsSettings settings)
Constructs an instance of ContactCenterInsightsClient, using the given settings.
|
protected |
ContactCenterInsightsClient(ContactCenterInsightsStub stub) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
awaitTermination(long duration,
TimeUnit unit) |
com.google.api.gax.longrunning.OperationFuture<BulkAnalyzeConversationsResponse,BulkAnalyzeConversationsMetadata> |
bulkAnalyzeConversationsAsync(BulkAnalyzeConversationsRequest request)
Analyzes multiple conversations in a single request.
|
com.google.api.gax.longrunning.OperationFuture<BulkAnalyzeConversationsResponse,BulkAnalyzeConversationsMetadata> |
bulkAnalyzeConversationsAsync(LocationName parent,
String filter,
float analysisPercentage)
Analyzes multiple conversations in a single request.
|
com.google.api.gax.longrunning.OperationFuture<BulkAnalyzeConversationsResponse,BulkAnalyzeConversationsMetadata> |
bulkAnalyzeConversationsAsync(String parent,
String filter,
float analysisPercentage)
Analyzes multiple conversations in a single request.
|
com.google.api.gax.rpc.UnaryCallable<BulkAnalyzeConversationsRequest,com.google.longrunning.Operation> |
bulkAnalyzeConversationsCallable()
Analyzes multiple conversations in a single request.
|
com.google.api.gax.rpc.OperationCallable<BulkAnalyzeConversationsRequest,BulkAnalyzeConversationsResponse,BulkAnalyzeConversationsMetadata> |
bulkAnalyzeConversationsOperationCallable()
Analyzes multiple conversations in a single request.
|
com.google.api.gax.longrunning.OperationFuture<BulkDeleteConversationsResponse,BulkDeleteConversationsMetadata> |
bulkDeleteConversationsAsync(BulkDeleteConversationsRequest request)
Deletes multiple conversations in a single request.
|
com.google.api.gax.longrunning.OperationFuture<BulkDeleteConversationsResponse,BulkDeleteConversationsMetadata> |
bulkDeleteConversationsAsync(LocationName parent,
String filter)
Deletes multiple conversations in a single request.
|
com.google.api.gax.longrunning.OperationFuture<BulkDeleteConversationsResponse,BulkDeleteConversationsMetadata> |
bulkDeleteConversationsAsync(String parent,
String filter)
Deletes multiple conversations in a single request.
|
com.google.api.gax.rpc.UnaryCallable<BulkDeleteConversationsRequest,com.google.longrunning.Operation> |
bulkDeleteConversationsCallable()
Deletes multiple conversations in a single request.
|
com.google.api.gax.rpc.OperationCallable<BulkDeleteConversationsRequest,BulkDeleteConversationsResponse,BulkDeleteConversationsMetadata> |
bulkDeleteConversationsOperationCallable()
Deletes multiple conversations in a single request.
|
CalculateIssueModelStatsResponse |
calculateIssueModelStats(CalculateIssueModelStatsRequest request)
Gets an issue model's statistics.
|
CalculateIssueModelStatsResponse |
calculateIssueModelStats(IssueModelName issueModel)
Gets an issue model's statistics.
|
CalculateIssueModelStatsResponse |
calculateIssueModelStats(String issueModel)
Gets an issue model's statistics.
|
com.google.api.gax.rpc.UnaryCallable<CalculateIssueModelStatsRequest,CalculateIssueModelStatsResponse> |
calculateIssueModelStatsCallable()
Gets an issue model's statistics.
|
CalculateStatsResponse |
calculateStats(CalculateStatsRequest request)
Gets conversation statistics.
|
CalculateStatsResponse |
calculateStats(LocationName location)
Gets conversation statistics.
|
CalculateStatsResponse |
calculateStats(String location)
Gets conversation statistics.
|
com.google.api.gax.rpc.UnaryCallable<CalculateStatsRequest,CalculateStatsResponse> |
calculateStatsCallable()
Gets conversation statistics.
|
void |
close() |
static ContactCenterInsightsClient |
create()
Constructs an instance of ContactCenterInsightsClient with default settings.
|
static ContactCenterInsightsClient |
create(ContactCenterInsightsSettings settings)
Constructs an instance of ContactCenterInsightsClient, using the given settings.
|
static ContactCenterInsightsClient |
create(ContactCenterInsightsStub stub)
Constructs an instance of ContactCenterInsightsClient, using the given stub for making calls.
|
com.google.api.gax.longrunning.OperationFuture<Analysis,CreateAnalysisOperationMetadata> |
createAnalysisAsync(ConversationName parent,
Analysis analysis)
Creates an analysis.
|
com.google.api.gax.longrunning.OperationFuture<Analysis,CreateAnalysisOperationMetadata> |
createAnalysisAsync(CreateAnalysisRequest request)
Creates an analysis.
|
com.google.api.gax.longrunning.OperationFuture<Analysis,CreateAnalysisOperationMetadata> |
createAnalysisAsync(String parent,
Analysis analysis)
Creates an analysis.
|
com.google.api.gax.rpc.UnaryCallable<CreateAnalysisRequest,com.google.longrunning.Operation> |
createAnalysisCallable()
Creates an analysis.
|
com.google.api.gax.rpc.OperationCallable<CreateAnalysisRequest,Analysis,CreateAnalysisOperationMetadata> |
createAnalysisOperationCallable()
Creates an analysis.
|
Conversation |
createConversation(CreateConversationRequest request)
Creates a conversation.
|
Conversation |
createConversation(LocationName parent,
Conversation conversation,
String conversationId)
Creates a conversation.
|
Conversation |
createConversation(String parent,
Conversation conversation,
String conversationId)
Creates a conversation.
|
com.google.api.gax.rpc.UnaryCallable<CreateConversationRequest,Conversation> |
createConversationCallable()
Creates a conversation.
|
com.google.api.gax.longrunning.OperationFuture<IssueModel,CreateIssueModelMetadata> |
createIssueModelAsync(CreateIssueModelRequest request)
Creates an issue model.
|
com.google.api.gax.longrunning.OperationFuture<IssueModel,CreateIssueModelMetadata> |
createIssueModelAsync(LocationName parent,
IssueModel issueModel)
Creates an issue model.
|
com.google.api.gax.longrunning.OperationFuture<IssueModel,CreateIssueModelMetadata> |
createIssueModelAsync(String parent,
IssueModel issueModel)
Creates an issue model.
|
com.google.api.gax.rpc.UnaryCallable<CreateIssueModelRequest,com.google.longrunning.Operation> |
createIssueModelCallable()
Creates an issue model.
|
com.google.api.gax.rpc.OperationCallable<CreateIssueModelRequest,IssueModel,CreateIssueModelMetadata> |
createIssueModelOperationCallable()
Creates an issue model.
|
PhraseMatcher |
createPhraseMatcher(CreatePhraseMatcherRequest request)
Creates a phrase matcher.
|
PhraseMatcher |
createPhraseMatcher(LocationName parent,
PhraseMatcher phraseMatcher)
Creates a phrase matcher.
|
PhraseMatcher |
createPhraseMatcher(String parent,
PhraseMatcher phraseMatcher)
Creates a phrase matcher.
|
com.google.api.gax.rpc.UnaryCallable<CreatePhraseMatcherRequest,PhraseMatcher> |
createPhraseMatcherCallable()
Creates a phrase matcher.
|
View |
createView(CreateViewRequest request)
Creates a view.
|
View |
createView(LocationName parent,
View view)
Creates a view.
|
View |
createView(String parent,
View view)
Creates a view.
|
com.google.api.gax.rpc.UnaryCallable<CreateViewRequest,View> |
createViewCallable()
Creates a view.
|
void |
deleteAnalysis(AnalysisName name)
Deletes an analysis.
|
void |
deleteAnalysis(DeleteAnalysisRequest request)
Deletes an analysis.
|
void |
deleteAnalysis(String name)
Deletes an analysis.
|
com.google.api.gax.rpc.UnaryCallable<DeleteAnalysisRequest,com.google.protobuf.Empty> |
deleteAnalysisCallable()
Deletes an analysis.
|
void |
deleteConversation(ConversationName name)
Deletes a conversation.
|
void |
deleteConversation(DeleteConversationRequest request)
Deletes a conversation.
|
void |
deleteConversation(String name)
Deletes a conversation.
|
com.google.api.gax.rpc.UnaryCallable<DeleteConversationRequest,com.google.protobuf.Empty> |
deleteConversationCallable()
Deletes a conversation.
|
void |
deleteIssue(DeleteIssueRequest request)
Deletes an issue.
|
void |
deleteIssue(IssueName name)
Deletes an issue.
|
void |
deleteIssue(String name)
Deletes an issue.
|
com.google.api.gax.rpc.UnaryCallable<DeleteIssueRequest,com.google.protobuf.Empty> |
deleteIssueCallable()
Deletes an issue.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,DeleteIssueModelMetadata> |
deleteIssueModelAsync(DeleteIssueModelRequest request)
Deletes an issue model.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,DeleteIssueModelMetadata> |
deleteIssueModelAsync(IssueModelName name)
Deletes an issue model.
|
com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,DeleteIssueModelMetadata> |
deleteIssueModelAsync(String name)
Deletes an issue model.
|
com.google.api.gax.rpc.UnaryCallable<DeleteIssueModelRequest,com.google.longrunning.Operation> |
deleteIssueModelCallable()
Deletes an issue model.
|
com.google.api.gax.rpc.OperationCallable<DeleteIssueModelRequest,com.google.protobuf.Empty,DeleteIssueModelMetadata> |
deleteIssueModelOperationCallable()
Deletes an issue model.
|
void |
deletePhraseMatcher(DeletePhraseMatcherRequest request)
Deletes a phrase matcher.
|
void |
deletePhraseMatcher(PhraseMatcherName name)
Deletes a phrase matcher.
|
void |
deletePhraseMatcher(String name)
Deletes a phrase matcher.
|
com.google.api.gax.rpc.UnaryCallable<DeletePhraseMatcherRequest,com.google.protobuf.Empty> |
deletePhraseMatcherCallable()
Deletes a phrase matcher.
|
void |
deleteView(DeleteViewRequest request)
Deletes a view.
|
void |
deleteView(String name)
Deletes a view.
|
void |
deleteView(ViewName name)
Deletes a view.
|
com.google.api.gax.rpc.UnaryCallable<DeleteViewRequest,com.google.protobuf.Empty> |
deleteViewCallable()
Deletes a view.
|
com.google.api.gax.longrunning.OperationFuture<DeployIssueModelResponse,DeployIssueModelMetadata> |
deployIssueModelAsync(DeployIssueModelRequest request)
Deploys an issue model.
|
com.google.api.gax.longrunning.OperationFuture<DeployIssueModelResponse,DeployIssueModelMetadata> |
deployIssueModelAsync(IssueModelName name)
Deploys an issue model.
|
com.google.api.gax.longrunning.OperationFuture<DeployIssueModelResponse,DeployIssueModelMetadata> |
deployIssueModelAsync(String name)
Deploys an issue model.
|
com.google.api.gax.rpc.UnaryCallable<DeployIssueModelRequest,com.google.longrunning.Operation> |
deployIssueModelCallable()
Deploys an issue model.
|
com.google.api.gax.rpc.OperationCallable<DeployIssueModelRequest,DeployIssueModelResponse,DeployIssueModelMetadata> |
deployIssueModelOperationCallable()
Deploys an issue model.
|
com.google.api.gax.longrunning.OperationFuture<ExportInsightsDataResponse,ExportInsightsDataMetadata> |
exportInsightsDataAsync(ExportInsightsDataRequest request)
Export insights data to a destination defined in the request body.
|
com.google.api.gax.longrunning.OperationFuture<ExportInsightsDataResponse,ExportInsightsDataMetadata> |
exportInsightsDataAsync(LocationName parent)
Export insights data to a destination defined in the request body.
|
com.google.api.gax.longrunning.OperationFuture<ExportInsightsDataResponse,ExportInsightsDataMetadata> |
exportInsightsDataAsync(String parent)
Export insights data to a destination defined in the request body.
|
com.google.api.gax.rpc.UnaryCallable<ExportInsightsDataRequest,com.google.longrunning.Operation> |
exportInsightsDataCallable()
Export insights data to a destination defined in the request body.
|
com.google.api.gax.rpc.OperationCallable<ExportInsightsDataRequest,ExportInsightsDataResponse,ExportInsightsDataMetadata> |
exportInsightsDataOperationCallable()
Export insights data to a destination defined in the request body.
|
Analysis |
getAnalysis(AnalysisName name)
Gets an analysis.
|
Analysis |
getAnalysis(GetAnalysisRequest request)
Gets an analysis.
|
Analysis |
getAnalysis(String name)
Gets an analysis.
|
com.google.api.gax.rpc.UnaryCallable<GetAnalysisRequest,Analysis> |
getAnalysisCallable()
Gets an analysis.
|
Conversation |
getConversation(ConversationName name)
Gets a conversation.
|
Conversation |
getConversation(GetConversationRequest request)
Gets a conversation.
|
Conversation |
getConversation(String name)
Gets a conversation.
|
com.google.api.gax.rpc.UnaryCallable<GetConversationRequest,Conversation> |
getConversationCallable()
Gets a conversation.
|
com.google.api.gax.httpjson.longrunning.OperationsClient |
getHttpJsonOperationsClient()
Returns the OperationsClient that can be used to query the status of a long-running operation
returned by another API method call.
|
Issue |
getIssue(GetIssueRequest request)
Gets an issue.
|
Issue |
getIssue(IssueName name)
Gets an issue.
|
Issue |
getIssue(String name)
Gets an issue.
|
com.google.api.gax.rpc.UnaryCallable<GetIssueRequest,Issue> |
getIssueCallable()
Gets an issue.
|
IssueModel |
getIssueModel(GetIssueModelRequest request)
Gets an issue model.
|
IssueModel |
getIssueModel(IssueModelName name)
Gets an issue model.
|
IssueModel |
getIssueModel(String name)
Gets an issue model.
|
com.google.api.gax.rpc.UnaryCallable<GetIssueModelRequest,IssueModel> |
getIssueModelCallable()
Gets an issue model.
|
com.google.longrunning.OperationsClient |
getOperationsClient()
Returns the OperationsClient that can be used to query the status of a long-running operation
returned by another API method call.
|
PhraseMatcher |
getPhraseMatcher(GetPhraseMatcherRequest request)
Gets a phrase matcher.
|
PhraseMatcher |
getPhraseMatcher(PhraseMatcherName name)
Gets a phrase matcher.
|
PhraseMatcher |
getPhraseMatcher(String name)
Gets a phrase matcher.
|
com.google.api.gax.rpc.UnaryCallable<GetPhraseMatcherRequest,PhraseMatcher> |
getPhraseMatcherCallable()
Gets a phrase matcher.
|
ContactCenterInsightsSettings |
getSettings() |
Settings |
getSettings(GetSettingsRequest request)
Gets project-level settings.
|
Settings |
getSettings(SettingsName name)
Gets project-level settings.
|
Settings |
getSettings(String name)
Gets project-level settings.
|
com.google.api.gax.rpc.UnaryCallable<GetSettingsRequest,Settings> |
getSettingsCallable()
Gets project-level settings.
|
ContactCenterInsightsStub |
getStub() |
View |
getView(GetViewRequest request)
Gets a view.
|
View |
getView(String name)
Gets a view.
|
View |
getView(ViewName name)
Gets a view.
|
com.google.api.gax.rpc.UnaryCallable<GetViewRequest,View> |
getViewCallable()
Gets a view.
|
com.google.api.gax.longrunning.OperationFuture<IngestConversationsResponse,IngestConversationsMetadata> |
ingestConversationsAsync(IngestConversationsRequest request)
Imports conversations and processes them according to the user's configuration.
|
com.google.api.gax.longrunning.OperationFuture<IngestConversationsResponse,IngestConversationsMetadata> |
ingestConversationsAsync(LocationName parent)
Imports conversations and processes them according to the user's configuration.
|
com.google.api.gax.longrunning.OperationFuture<IngestConversationsResponse,IngestConversationsMetadata> |
ingestConversationsAsync(String parent)
Imports conversations and processes them according to the user's configuration.
|
com.google.api.gax.rpc.UnaryCallable<IngestConversationsRequest,com.google.longrunning.Operation> |
ingestConversationsCallable()
Imports conversations and processes them according to the user's configuration.
|
com.google.api.gax.rpc.OperationCallable<IngestConversationsRequest,IngestConversationsResponse,IngestConversationsMetadata> |
ingestConversationsOperationCallable()
Imports conversations and processes them according to the user's configuration.
|
boolean |
isShutdown() |
boolean |
isTerminated() |
ContactCenterInsightsClient.ListAnalysesPagedResponse |
listAnalyses(ConversationName parent)
Lists analyses.
|
ContactCenterInsightsClient.ListAnalysesPagedResponse |
listAnalyses(ListAnalysesRequest request)
Lists analyses.
|
ContactCenterInsightsClient.ListAnalysesPagedResponse |
listAnalyses(String parent)
Lists analyses.
|
com.google.api.gax.rpc.UnaryCallable<ListAnalysesRequest,ListAnalysesResponse> |
listAnalysesCallable()
Lists analyses.
|
com.google.api.gax.rpc.UnaryCallable<ListAnalysesRequest,ContactCenterInsightsClient.ListAnalysesPagedResponse> |
listAnalysesPagedCallable()
Lists analyses.
|
ContactCenterInsightsClient.ListConversationsPagedResponse |
listConversations(ListConversationsRequest request)
Lists conversations.
|
ContactCenterInsightsClient.ListConversationsPagedResponse |
listConversations(LocationName parent)
Lists conversations.
|
ContactCenterInsightsClient.ListConversationsPagedResponse |
listConversations(String parent)
Lists conversations.
|
com.google.api.gax.rpc.UnaryCallable<ListConversationsRequest,ListConversationsResponse> |
listConversationsCallable()
Lists conversations.
|
com.google.api.gax.rpc.UnaryCallable<ListConversationsRequest,ContactCenterInsightsClient.ListConversationsPagedResponse> |
listConversationsPagedCallable()
Lists conversations.
|
ListIssueModelsResponse |
listIssueModels(ListIssueModelsRequest request)
Lists issue models.
|
ListIssueModelsResponse |
listIssueModels(LocationName parent)
Lists issue models.
|
ListIssueModelsResponse |
listIssueModels(String parent)
Lists issue models.
|
com.google.api.gax.rpc.UnaryCallable<ListIssueModelsRequest,ListIssueModelsResponse> |
listIssueModelsCallable()
Lists issue models.
|
ListIssuesResponse |
listIssues(IssueModelName parent)
Lists issues.
|
ListIssuesResponse |
listIssues(ListIssuesRequest request)
Lists issues.
|
ListIssuesResponse |
listIssues(String parent)
Lists issues.
|
com.google.api.gax.rpc.UnaryCallable<ListIssuesRequest,ListIssuesResponse> |
listIssuesCallable()
Lists issues.
|
ContactCenterInsightsClient.ListPhraseMatchersPagedResponse |
listPhraseMatchers(ListPhraseMatchersRequest request)
Lists phrase matchers.
|
ContactCenterInsightsClient.ListPhraseMatchersPagedResponse |
listPhraseMatchers(LocationName parent)
Lists phrase matchers.
|
ContactCenterInsightsClient.ListPhraseMatchersPagedResponse |
listPhraseMatchers(String parent)
Lists phrase matchers.
|
com.google.api.gax.rpc.UnaryCallable<ListPhraseMatchersRequest,ListPhraseMatchersResponse> |
listPhraseMatchersCallable()
Lists phrase matchers.
|
com.google.api.gax.rpc.UnaryCallable<ListPhraseMatchersRequest,ContactCenterInsightsClient.ListPhraseMatchersPagedResponse> |
listPhraseMatchersPagedCallable()
Lists phrase matchers.
|
ContactCenterInsightsClient.ListViewsPagedResponse |
listViews(ListViewsRequest request)
Lists views.
|
ContactCenterInsightsClient.ListViewsPagedResponse |
listViews(LocationName parent)
Lists views.
|
ContactCenterInsightsClient.ListViewsPagedResponse |
listViews(String parent)
Lists views.
|
com.google.api.gax.rpc.UnaryCallable<ListViewsRequest,ListViewsResponse> |
listViewsCallable()
Lists views.
|
com.google.api.gax.rpc.UnaryCallable<ListViewsRequest,ContactCenterInsightsClient.ListViewsPagedResponse> |
listViewsPagedCallable()
Lists views.
|
void |
shutdown() |
void |
shutdownNow() |
com.google.api.gax.longrunning.OperationFuture<UndeployIssueModelResponse,UndeployIssueModelMetadata> |
undeployIssueModelAsync(IssueModelName name)
Undeploys an issue model.
|
com.google.api.gax.longrunning.OperationFuture<UndeployIssueModelResponse,UndeployIssueModelMetadata> |
undeployIssueModelAsync(String name)
Undeploys an issue model.
|
com.google.api.gax.longrunning.OperationFuture<UndeployIssueModelResponse,UndeployIssueModelMetadata> |
undeployIssueModelAsync(UndeployIssueModelRequest request)
Undeploys an issue model.
|
com.google.api.gax.rpc.UnaryCallable<UndeployIssueModelRequest,com.google.longrunning.Operation> |
undeployIssueModelCallable()
Undeploys an issue model.
|
com.google.api.gax.rpc.OperationCallable<UndeployIssueModelRequest,UndeployIssueModelResponse,UndeployIssueModelMetadata> |
undeployIssueModelOperationCallable()
Undeploys an issue model.
|
Conversation |
updateConversation(Conversation conversation,
com.google.protobuf.FieldMask updateMask)
Updates a conversation.
|
Conversation |
updateConversation(UpdateConversationRequest request)
Updates a conversation.
|
com.google.api.gax.rpc.UnaryCallable<UpdateConversationRequest,Conversation> |
updateConversationCallable()
Updates a conversation.
|
Issue |
updateIssue(Issue issue,
com.google.protobuf.FieldMask updateMask)
Updates an issue.
|
Issue |
updateIssue(UpdateIssueRequest request)
Updates an issue.
|
com.google.api.gax.rpc.UnaryCallable<UpdateIssueRequest,Issue> |
updateIssueCallable()
Updates an issue.
|
IssueModel |
updateIssueModel(IssueModel issueModel,
com.google.protobuf.FieldMask updateMask)
Updates an issue model.
|
IssueModel |
updateIssueModel(UpdateIssueModelRequest request)
Updates an issue model.
|
com.google.api.gax.rpc.UnaryCallable<UpdateIssueModelRequest,IssueModel> |
updateIssueModelCallable()
Updates an issue model.
|
PhraseMatcher |
updatePhraseMatcher(PhraseMatcher phraseMatcher,
com.google.protobuf.FieldMask updateMask)
Updates a phrase matcher.
|
PhraseMatcher |
updatePhraseMatcher(UpdatePhraseMatcherRequest request)
Updates a phrase matcher.
|
com.google.api.gax.rpc.UnaryCallable<UpdatePhraseMatcherRequest,PhraseMatcher> |
updatePhraseMatcherCallable()
Updates a phrase matcher.
|
Settings |
updateSettings(Settings settings,
com.google.protobuf.FieldMask updateMask)
Updates project-level settings.
|
Settings |
updateSettings(UpdateSettingsRequest request)
Updates project-level settings.
|
com.google.api.gax.rpc.UnaryCallable<UpdateSettingsRequest,Settings> |
updateSettingsCallable()
Updates project-level settings.
|
View |
updateView(UpdateViewRequest request)
Updates a view.
|
View |
updateView(View view,
com.google.protobuf.FieldMask updateMask)
Updates a view.
|
com.google.api.gax.rpc.UnaryCallable<UpdateViewRequest,View> |
updateViewCallable()
Updates a view.
|
com.google.api.gax.longrunning.OperationFuture<Conversation,UploadConversationMetadata> |
uploadConversationAsync(UploadConversationRequest request)
Create a longrunning conversation upload operation.
|
com.google.api.gax.rpc.UnaryCallable<UploadConversationRequest,com.google.longrunning.Operation> |
uploadConversationCallable()
Create a longrunning conversation upload operation.
|
com.google.api.gax.rpc.OperationCallable<UploadConversationRequest,Conversation,UploadConversationMetadata> |
uploadConversationOperationCallable()
Create a longrunning conversation upload operation.
|
protected ContactCenterInsightsClient(ContactCenterInsightsSettings settings) throws IOException
IOExceptionprotected ContactCenterInsightsClient(ContactCenterInsightsStub stub)
public static final ContactCenterInsightsClient create() throws IOException
IOExceptionpublic static final ContactCenterInsightsClient create(ContactCenterInsightsSettings settings) throws IOException
IOExceptionpublic static final ContactCenterInsightsClient create(ContactCenterInsightsStub stub)
public final ContactCenterInsightsSettings getSettings()
public ContactCenterInsightsStub getStub()
public final com.google.longrunning.OperationsClient getOperationsClient()
@BetaApi public final com.google.api.gax.httpjson.longrunning.OperationsClient getHttpJsonOperationsClient()
public final Conversation createConversation(LocationName parent, Conversation conversation, String conversationId)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
parent - Required. The parent resource of the conversation.conversation - Required. The conversation resource to create.conversationId - A unique ID for the new conversation. This ID will become the final
component of the conversation's resource name. If no ID is specified, a server-generated ID
will be used.
This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`
com.google.api.gax.rpc.ApiException - if the remote call failspublic final Conversation createConversation(String parent, Conversation conversation, String conversationId)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
parent - Required. The parent resource of the conversation.conversation - Required. The conversation resource to create.conversationId - A unique ID for the new conversation. This ID will become the final
component of the conversation's resource name. If no ID is specified, a server-generated ID
will be used.
This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`
com.google.api.gax.rpc.ApiException - if the remote call failspublic final Conversation createConversation(CreateConversationRequest 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()) {
CreateConversationRequest request =
CreateConversationRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setConversation(Conversation.newBuilder().build())
.setConversationId("conversationId-1676095234")
.build();
Conversation response = contactCenterInsightsClient.createConversation(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<CreateConversationRequest,Conversation> createConversationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final com.google.api.gax.longrunning.OperationFuture<Conversation,UploadConversationMetadata> uploadConversationAsync(UploadConversationRequest 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()) {
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();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<UploadConversationRequest,Conversation,UploadConversationMetadata> uploadConversationOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final com.google.api.gax.rpc.UnaryCallable<UploadConversationRequest,com.google.longrunning.Operation> uploadConversationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final Conversation updateConversation(Conversation conversation, com.google.protobuf.FieldMask updateMask)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
conversation - Required. The new values for the conversation.updateMask - The list of fields to be updated.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Conversation updateConversation(UpdateConversationRequest 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()) {
UpdateConversationRequest request =
UpdateConversationRequest.newBuilder()
.setConversation(Conversation.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Conversation response = contactCenterInsightsClient.updateConversation(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<UpdateConversationRequest,Conversation> updateConversationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final Conversation getConversation(ConversationName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the conversation to get.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Conversation getConversation(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the conversation to get.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Conversation getConversation(GetConversationRequest 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()) {
GetConversationRequest request =
GetConversationRequest.newBuilder()
.setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
.setView(ConversationView.forNumber(0))
.build();
Conversation response = contactCenterInsightsClient.getConversation(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetConversationRequest,Conversation> getConversationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final ContactCenterInsightsClient.ListConversationsPagedResponse listConversations(LocationName parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
}
parent - Required. The parent resource of the conversation.com.google.api.gax.rpc.ApiException - if the remote call failspublic final ContactCenterInsightsClient.ListConversationsPagedResponse listConversations(String parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
}
parent - Required. The parent resource of the conversation.com.google.api.gax.rpc.ApiException - if the remote call failspublic final ContactCenterInsightsClient.ListConversationsPagedResponse listConversations(ListConversationsRequest 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()) {
ListConversationsRequest request =
ListConversationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setView(ConversationView.forNumber(0))
.build();
for (Conversation element :
contactCenterInsightsClient.listConversations(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListConversationsRequest,ContactCenterInsightsClient.ListConversationsPagedResponse> listConversationsPagedCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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")
.setView(ConversationView.forNumber(0))
.build();
ApiFuture<Conversation> future =
contactCenterInsightsClient.listConversationsPagedCallable().futureCall(request);
// Do something.
for (Conversation element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListConversationsRequest,ListConversationsResponse> listConversationsCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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")
.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;
}
}
}
public final void deleteConversation(ConversationName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the conversation to delete.com.google.api.gax.rpc.ApiException - if the remote call failspublic final void deleteConversation(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the conversation to delete.com.google.api.gax.rpc.ApiException - if the remote call failspublic final void deleteConversation(DeleteConversationRequest 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()) {
DeleteConversationRequest request =
DeleteConversationRequest.newBuilder()
.setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
.setForce(true)
.build();
contactCenterInsightsClient.deleteConversation(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<DeleteConversationRequest,com.google.protobuf.Empty> deleteConversationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final com.google.api.gax.longrunning.OperationFuture<Analysis,CreateAnalysisOperationMetadata> createAnalysisAsync(ConversationName parent, Analysis 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()) {
ConversationName parent = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]");
Analysis analysis = Analysis.newBuilder().build();
Analysis response = contactCenterInsightsClient.createAnalysisAsync(parent, analysis).get();
}
parent - Required. The parent resource of the analysis.analysis - Required. The analysis to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Analysis,CreateAnalysisOperationMetadata> createAnalysisAsync(String parent, Analysis 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 parent = ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString();
Analysis analysis = Analysis.newBuilder().build();
Analysis response = contactCenterInsightsClient.createAnalysisAsync(parent, analysis).get();
}
parent - Required. The parent resource of the analysis.analysis - Required. The analysis to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<Analysis,CreateAnalysisOperationMetadata> createAnalysisAsync(CreateAnalysisRequest 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()) {
CreateAnalysisRequest request =
CreateAnalysisRequest.newBuilder()
.setParent(
ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString())
.setAnalysis(Analysis.newBuilder().build())
.build();
Analysis response = contactCenterInsightsClient.createAnalysisAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<CreateAnalysisRequest,Analysis,CreateAnalysisOperationMetadata> createAnalysisOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateAnalysisRequest,com.google.longrunning.Operation> createAnalysisCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final Analysis getAnalysis(AnalysisName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the analysis to get.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Analysis getAnalysis(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the analysis to get.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Analysis getAnalysis(GetAnalysisRequest 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()) {
GetAnalysisRequest request =
GetAnalysisRequest.newBuilder()
.setName(
AnalysisName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]", "[ANALYSIS]")
.toString())
.build();
Analysis response = contactCenterInsightsClient.getAnalysis(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetAnalysisRequest,Analysis> getAnalysisCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final ContactCenterInsightsClient.ListAnalysesPagedResponse listAnalyses(ConversationName parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
}
parent - Required. The parent resource of the analyses.com.google.api.gax.rpc.ApiException - if the remote call failspublic final ContactCenterInsightsClient.ListAnalysesPagedResponse listAnalyses(String parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
}
parent - Required. The parent resource of the analyses.com.google.api.gax.rpc.ApiException - if the remote call failspublic final ContactCenterInsightsClient.ListAnalysesPagedResponse listAnalyses(ListAnalysesRequest 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()) {
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);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListAnalysesRequest,ContactCenterInsightsClient.ListAnalysesPagedResponse> listAnalysesPagedCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListAnalysesRequest,ListAnalysesResponse> listAnalysesCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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;
}
}
}
public final void deleteAnalysis(AnalysisName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the analysis to delete.com.google.api.gax.rpc.ApiException - if the remote call failspublic final void deleteAnalysis(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the analysis to delete.com.google.api.gax.rpc.ApiException - if the remote call failspublic final void deleteAnalysis(DeleteAnalysisRequest 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()) {
DeleteAnalysisRequest request =
DeleteAnalysisRequest.newBuilder()
.setName(
AnalysisName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]", "[ANALYSIS]")
.toString())
.build();
contactCenterInsightsClient.deleteAnalysis(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<DeleteAnalysisRequest,com.google.protobuf.Empty> deleteAnalysisCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final com.google.api.gax.longrunning.OperationFuture<BulkAnalyzeConversationsResponse,BulkAnalyzeConversationsMetadata> bulkAnalyzeConversationsAsync(LocationName parent, String filter, float analysisPercentage)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
parent - Required. The parent resource to create analyses in.filter - Required. Filter used to select the subset of conversations to analyze.analysisPercentage - Required. Percentage of selected conversation to analyze, between [0,
100].com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<BulkAnalyzeConversationsResponse,BulkAnalyzeConversationsMetadata> bulkAnalyzeConversationsAsync(String parent, String filter, float analysisPercentage)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
parent - Required. The parent resource to create analyses in.filter - Required. Filter used to select the subset of conversations to analyze.analysisPercentage - Required. Percentage of selected conversation to analyze, between [0,
100].com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<BulkAnalyzeConversationsResponse,BulkAnalyzeConversationsMetadata> bulkAnalyzeConversationsAsync(BulkAnalyzeConversationsRequest 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();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<BulkAnalyzeConversationsRequest,BulkAnalyzeConversationsResponse,BulkAnalyzeConversationsMetadata> bulkAnalyzeConversationsOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final com.google.api.gax.rpc.UnaryCallable<BulkAnalyzeConversationsRequest,com.google.longrunning.Operation> bulkAnalyzeConversationsCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final com.google.api.gax.longrunning.OperationFuture<BulkDeleteConversationsResponse,BulkDeleteConversationsMetadata> bulkDeleteConversationsAsync(LocationName parent, String filter)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
parent - Required. The parent resource to delete conversations from. Format:
projects/{project}/locations/{location}filter - Filter used to select the subset of conversations to delete.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<BulkDeleteConversationsResponse,BulkDeleteConversationsMetadata> bulkDeleteConversationsAsync(String parent, String filter)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
parent - Required. The parent resource to delete conversations from. Format:
projects/{project}/locations/{location}filter - Filter used to select the subset of conversations to delete.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<BulkDeleteConversationsResponse,BulkDeleteConversationsMetadata> bulkDeleteConversationsAsync(BulkDeleteConversationsRequest 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();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<BulkDeleteConversationsRequest,BulkDeleteConversationsResponse,BulkDeleteConversationsMetadata> bulkDeleteConversationsOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final com.google.api.gax.rpc.UnaryCallable<BulkDeleteConversationsRequest,com.google.longrunning.Operation> bulkDeleteConversationsCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final com.google.api.gax.longrunning.OperationFuture<IngestConversationsResponse,IngestConversationsMetadata> ingestConversationsAsync(LocationName parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
parent - Required. The parent resource for new conversations.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<IngestConversationsResponse,IngestConversationsMetadata> ingestConversationsAsync(String parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
parent - Required. The parent resource for new conversations.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<IngestConversationsResponse,IngestConversationsMetadata> ingestConversationsAsync(IngestConversationsRequest 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()) {
IngestConversationsRequest request =
IngestConversationsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setConversationConfig(
IngestConversationsRequest.ConversationConfig.newBuilder().build())
.setRedactionConfig(RedactionConfig.newBuilder().build())
.setSpeechConfig(SpeechConfig.newBuilder().build())
.build();
IngestConversationsResponse response =
contactCenterInsightsClient.ingestConversationsAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<IngestConversationsRequest,IngestConversationsResponse,IngestConversationsMetadata> ingestConversationsOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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())
.build();
OperationFuture<IngestConversationsResponse, IngestConversationsMetadata> future =
contactCenterInsightsClient.ingestConversationsOperationCallable().futureCall(request);
// Do something.
IngestConversationsResponse response = future.get();
}
public final com.google.api.gax.rpc.UnaryCallable<IngestConversationsRequest,com.google.longrunning.Operation> ingestConversationsCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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())
.build();
ApiFuture<Operation> future =
contactCenterInsightsClient.ingestConversationsCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
public final com.google.api.gax.longrunning.OperationFuture<ExportInsightsDataResponse,ExportInsightsDataMetadata> exportInsightsDataAsync(LocationName parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
parent - Required. The parent resource to export data from.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<ExportInsightsDataResponse,ExportInsightsDataMetadata> exportInsightsDataAsync(String parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
parent - Required. The parent resource to export data from.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<ExportInsightsDataResponse,ExportInsightsDataMetadata> exportInsightsDataAsync(ExportInsightsDataRequest 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()) {
ExportInsightsDataRequest request =
ExportInsightsDataRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.setKmsKey("kmsKey-1127483058")
.build();
ExportInsightsDataResponse response =
contactCenterInsightsClient.exportInsightsDataAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<ExportInsightsDataRequest,ExportInsightsDataResponse,ExportInsightsDataMetadata> exportInsightsDataOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final com.google.api.gax.rpc.UnaryCallable<ExportInsightsDataRequest,com.google.longrunning.Operation> exportInsightsDataCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final com.google.api.gax.longrunning.OperationFuture<IssueModel,CreateIssueModelMetadata> createIssueModelAsync(LocationName parent, IssueModel issueModel)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
parent - Required. The parent resource of the issue model.issueModel - Required. The issue model to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<IssueModel,CreateIssueModelMetadata> createIssueModelAsync(String parent, IssueModel issueModel)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
parent - Required. The parent resource of the issue model.issueModel - Required. The issue model to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<IssueModel,CreateIssueModelMetadata> createIssueModelAsync(CreateIssueModelRequest 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()) {
CreateIssueModelRequest request =
CreateIssueModelRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setIssueModel(IssueModel.newBuilder().build())
.build();
IssueModel response = contactCenterInsightsClient.createIssueModelAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<CreateIssueModelRequest,IssueModel,CreateIssueModelMetadata> createIssueModelOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final com.google.api.gax.rpc.UnaryCallable<CreateIssueModelRequest,com.google.longrunning.Operation> createIssueModelCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final IssueModel updateIssueModel(IssueModel issueModel, com.google.protobuf.FieldMask updateMask)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
issueModel - Required. The new values for the issue model.updateMask - The list of fields to be updated.com.google.api.gax.rpc.ApiException - if the remote call failspublic final IssueModel updateIssueModel(UpdateIssueModelRequest 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()) {
UpdateIssueModelRequest request =
UpdateIssueModelRequest.newBuilder()
.setIssueModel(IssueModel.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
IssueModel response = contactCenterInsightsClient.updateIssueModel(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<UpdateIssueModelRequest,IssueModel> updateIssueModelCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final IssueModel getIssueModel(IssueModelName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the issue model to get.com.google.api.gax.rpc.ApiException - if the remote call failspublic final IssueModel getIssueModel(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the issue model to get.com.google.api.gax.rpc.ApiException - if the remote call failspublic final IssueModel getIssueModel(GetIssueModelRequest 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()) {
GetIssueModelRequest request =
GetIssueModelRequest.newBuilder()
.setName(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
IssueModel response = contactCenterInsightsClient.getIssueModel(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetIssueModelRequest,IssueModel> getIssueModelCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final ListIssueModelsResponse listIssueModels(LocationName parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
parent - Required. The parent resource of the issue model.com.google.api.gax.rpc.ApiException - if the remote call failspublic final ListIssueModelsResponse listIssueModels(String parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
parent - Required. The parent resource of the issue model.com.google.api.gax.rpc.ApiException - if the remote call failspublic final ListIssueModelsResponse listIssueModels(ListIssueModelsRequest 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()) {
ListIssueModelsRequest request =
ListIssueModelsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.build();
ListIssueModelsResponse response = contactCenterInsightsClient.listIssueModels(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListIssueModelsRequest,ListIssueModelsResponse> listIssueModelsCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,DeleteIssueModelMetadata> deleteIssueModelAsync(IssueModelName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
name - Required. The name of the issue model to delete.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,DeleteIssueModelMetadata> deleteIssueModelAsync(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
name - Required. The name of the issue model to delete.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<com.google.protobuf.Empty,DeleteIssueModelMetadata> deleteIssueModelAsync(DeleteIssueModelRequest 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()) {
DeleteIssueModelRequest request =
DeleteIssueModelRequest.newBuilder()
.setName(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
contactCenterInsightsClient.deleteIssueModelAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeleteIssueModelRequest,com.google.protobuf.Empty,DeleteIssueModelMetadata> deleteIssueModelOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final com.google.api.gax.rpc.UnaryCallable<DeleteIssueModelRequest,com.google.longrunning.Operation> deleteIssueModelCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final com.google.api.gax.longrunning.OperationFuture<DeployIssueModelResponse,DeployIssueModelMetadata> deployIssueModelAsync(IssueModelName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
name - Required. The issue model to deploy.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<DeployIssueModelResponse,DeployIssueModelMetadata> deployIssueModelAsync(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
name - Required. The issue model to deploy.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<DeployIssueModelResponse,DeployIssueModelMetadata> deployIssueModelAsync(DeployIssueModelRequest 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()) {
DeployIssueModelRequest request =
DeployIssueModelRequest.newBuilder()
.setName(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
DeployIssueModelResponse response =
contactCenterInsightsClient.deployIssueModelAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<DeployIssueModelRequest,DeployIssueModelResponse,DeployIssueModelMetadata> deployIssueModelOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final com.google.api.gax.rpc.UnaryCallable<DeployIssueModelRequest,com.google.longrunning.Operation> deployIssueModelCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final com.google.api.gax.longrunning.OperationFuture<UndeployIssueModelResponse,UndeployIssueModelMetadata> undeployIssueModelAsync(IssueModelName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
name - Required. The issue model to undeploy.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<UndeployIssueModelResponse,UndeployIssueModelMetadata> undeployIssueModelAsync(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
name - Required. The issue model to undeploy.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.longrunning.OperationFuture<UndeployIssueModelResponse,UndeployIssueModelMetadata> undeployIssueModelAsync(UndeployIssueModelRequest 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()) {
UndeployIssueModelRequest request =
UndeployIssueModelRequest.newBuilder()
.setName(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
UndeployIssueModelResponse response =
contactCenterInsightsClient.undeployIssueModelAsync(request).get();
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.OperationCallable<UndeployIssueModelRequest,UndeployIssueModelResponse,UndeployIssueModelMetadata> undeployIssueModelOperationCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final com.google.api.gax.rpc.UnaryCallable<UndeployIssueModelRequest,com.google.longrunning.Operation> undeployIssueModelCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final Issue getIssue(IssueName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the issue to get.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Issue getIssue(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the issue to get.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Issue getIssue(GetIssueRequest 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()) {
GetIssueRequest request =
GetIssueRequest.newBuilder()
.setName(
IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]").toString())
.build();
Issue response = contactCenterInsightsClient.getIssue(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetIssueRequest,Issue> getIssueCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final ListIssuesResponse listIssues(IssueModelName parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
parent - Required. The parent resource of the issue.com.google.api.gax.rpc.ApiException - if the remote call failspublic final ListIssuesResponse listIssues(String parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
parent - Required. The parent resource of the issue.com.google.api.gax.rpc.ApiException - if the remote call failspublic final ListIssuesResponse listIssues(ListIssuesRequest 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()) {
ListIssuesRequest request =
ListIssuesRequest.newBuilder()
.setParent(IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
ListIssuesResponse response = contactCenterInsightsClient.listIssues(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListIssuesRequest,ListIssuesResponse> listIssuesCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final Issue updateIssue(Issue issue, com.google.protobuf.FieldMask updateMask)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
issue - Required. The new values for the issue.updateMask - The list of fields to be updated.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Issue updateIssue(UpdateIssueRequest 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()) {
UpdateIssueRequest request =
UpdateIssueRequest.newBuilder()
.setIssue(Issue.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Issue response = contactCenterInsightsClient.updateIssue(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<UpdateIssueRequest,Issue> updateIssueCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final void deleteIssue(IssueName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the issue to delete.com.google.api.gax.rpc.ApiException - if the remote call failspublic final void deleteIssue(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the issue to delete.com.google.api.gax.rpc.ApiException - if the remote call failspublic final void deleteIssue(DeleteIssueRequest 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()) {
DeleteIssueRequest request =
DeleteIssueRequest.newBuilder()
.setName(
IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]").toString())
.build();
contactCenterInsightsClient.deleteIssue(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<DeleteIssueRequest,com.google.protobuf.Empty> deleteIssueCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final CalculateIssueModelStatsResponse calculateIssueModelStats(IssueModelName issueModel)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
issueModel - Required. The resource name of the issue model to query against.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CalculateIssueModelStatsResponse calculateIssueModelStats(String issueModel)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
issueModel - Required. The resource name of the issue model to query against.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CalculateIssueModelStatsResponse calculateIssueModelStats(CalculateIssueModelStatsRequest 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()) {
CalculateIssueModelStatsRequest request =
CalculateIssueModelStatsRequest.newBuilder()
.setIssueModel(
IssueModelName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]").toString())
.build();
CalculateIssueModelStatsResponse response =
contactCenterInsightsClient.calculateIssueModelStats(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<CalculateIssueModelStatsRequest,CalculateIssueModelStatsResponse> calculateIssueModelStatsCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final PhraseMatcher createPhraseMatcher(LocationName parent, PhraseMatcher phraseMatcher)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
parent - Required. The parent resource of the phrase matcher. Required. The location to
create a phrase matcher for. Format: `projects/<Project ID>/locations/<Location
ID>` or `projects/<Project Number>/locations/<Location ID>`phraseMatcher - Required. The phrase matcher resource to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final PhraseMatcher createPhraseMatcher(String parent, PhraseMatcher phraseMatcher)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
parent - Required. The parent resource of the phrase matcher. Required. The location to
create a phrase matcher for. Format: `projects/<Project ID>/locations/<Location
ID>` or `projects/<Project Number>/locations/<Location ID>`phraseMatcher - Required. The phrase matcher resource to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final PhraseMatcher createPhraseMatcher(CreatePhraseMatcherRequest 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()) {
CreatePhraseMatcherRequest request =
CreatePhraseMatcherRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPhraseMatcher(PhraseMatcher.newBuilder().build())
.build();
PhraseMatcher response = contactCenterInsightsClient.createPhraseMatcher(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<CreatePhraseMatcherRequest,PhraseMatcher> createPhraseMatcherCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final PhraseMatcher getPhraseMatcher(PhraseMatcherName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the phrase matcher to get.com.google.api.gax.rpc.ApiException - if the remote call failspublic final PhraseMatcher getPhraseMatcher(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the phrase matcher to get.com.google.api.gax.rpc.ApiException - if the remote call failspublic final PhraseMatcher getPhraseMatcher(GetPhraseMatcherRequest 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()) {
GetPhraseMatcherRequest request =
GetPhraseMatcherRequest.newBuilder()
.setName(
PhraseMatcherName.of("[PROJECT]", "[LOCATION]", "[PHRASE_MATCHER]").toString())
.build();
PhraseMatcher response = contactCenterInsightsClient.getPhraseMatcher(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetPhraseMatcherRequest,PhraseMatcher> getPhraseMatcherCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final ContactCenterInsightsClient.ListPhraseMatchersPagedResponse listPhraseMatchers(LocationName parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
}
parent - Required. The parent resource of the phrase matcher.com.google.api.gax.rpc.ApiException - if the remote call failspublic final ContactCenterInsightsClient.ListPhraseMatchersPagedResponse listPhraseMatchers(String parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
}
parent - Required. The parent resource of the phrase matcher.com.google.api.gax.rpc.ApiException - if the remote call failspublic final ContactCenterInsightsClient.ListPhraseMatchersPagedResponse listPhraseMatchers(ListPhraseMatchersRequest 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()) {
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);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListPhraseMatchersRequest,ContactCenterInsightsClient.ListPhraseMatchersPagedResponse> listPhraseMatchersPagedCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListPhraseMatchersRequest,ListPhraseMatchersResponse> listPhraseMatchersCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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;
}
}
}
public final void deletePhraseMatcher(PhraseMatcherName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the phrase matcher to delete.com.google.api.gax.rpc.ApiException - if the remote call failspublic final void deletePhraseMatcher(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the phrase matcher to delete.com.google.api.gax.rpc.ApiException - if the remote call failspublic final void deletePhraseMatcher(DeletePhraseMatcherRequest 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()) {
DeletePhraseMatcherRequest request =
DeletePhraseMatcherRequest.newBuilder()
.setName(
PhraseMatcherName.of("[PROJECT]", "[LOCATION]", "[PHRASE_MATCHER]").toString())
.build();
contactCenterInsightsClient.deletePhraseMatcher(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<DeletePhraseMatcherRequest,com.google.protobuf.Empty> deletePhraseMatcherCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final PhraseMatcher updatePhraseMatcher(PhraseMatcher phraseMatcher, com.google.protobuf.FieldMask updateMask)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
phraseMatcher - Required. The new values for the phrase matcher.updateMask - The list of fields to be updated.com.google.api.gax.rpc.ApiException - if the remote call failspublic final PhraseMatcher updatePhraseMatcher(UpdatePhraseMatcherRequest 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()) {
UpdatePhraseMatcherRequest request =
UpdatePhraseMatcherRequest.newBuilder()
.setPhraseMatcher(PhraseMatcher.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
PhraseMatcher response = contactCenterInsightsClient.updatePhraseMatcher(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<UpdatePhraseMatcherRequest,PhraseMatcher> updatePhraseMatcherCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final CalculateStatsResponse calculateStats(LocationName location)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
location - Required. The location of the conversations.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CalculateStatsResponse calculateStats(String location)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
location - Required. The location of the conversations.com.google.api.gax.rpc.ApiException - if the remote call failspublic final CalculateStatsResponse calculateStats(CalculateStatsRequest 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()) {
CalculateStatsRequest request =
CalculateStatsRequest.newBuilder()
.setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setFilter("filter-1274492040")
.build();
CalculateStatsResponse response = contactCenterInsightsClient.calculateStats(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<CalculateStatsRequest,CalculateStatsResponse> calculateStatsCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final Settings getSettings(SettingsName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the settings resource to get.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Settings getSettings(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the settings resource to get.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Settings getSettings(GetSettingsRequest 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()) {
GetSettingsRequest request =
GetSettingsRequest.newBuilder()
.setName(SettingsName.of("[PROJECT]", "[LOCATION]").toString())
.build();
Settings response = contactCenterInsightsClient.getSettings(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetSettingsRequest,Settings> getSettingsCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final Settings updateSettings(Settings settings, com.google.protobuf.FieldMask updateMask)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
settings - Required. The new settings values.updateMask - Required. The list of fields to be updated.com.google.api.gax.rpc.ApiException - if the remote call failspublic final Settings updateSettings(UpdateSettingsRequest 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()) {
UpdateSettingsRequest request =
UpdateSettingsRequest.newBuilder()
.setSettings(Settings.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Settings response = contactCenterInsightsClient.updateSettings(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<UpdateSettingsRequest,Settings> updateSettingsCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final View createView(LocationName parent, View 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);
}
parent - Required. The parent resource of the view. Required. The location to create a
view for. Format: `projects/<Project ID>/locations/<Location ID>` or
`projects/<Project Number>/locations/<Location ID>`view - Required. The view resource to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final View createView(String parent, View 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);
}
parent - Required. The parent resource of the view. Required. The location to create a
view for. Format: `projects/<Project ID>/locations/<Location ID>` or
`projects/<Project Number>/locations/<Location ID>`view - Required. The view resource to create.com.google.api.gax.rpc.ApiException - if the remote call failspublic final View createView(CreateViewRequest 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()) {
CreateViewRequest request =
CreateViewRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setView(View.newBuilder().build())
.build();
View response = contactCenterInsightsClient.createView(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<CreateViewRequest,View> createViewCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final View getView(ViewName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the view to get.com.google.api.gax.rpc.ApiException - if the remote call failspublic final View getView(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the view to get.com.google.api.gax.rpc.ApiException - if the remote call failspublic final View getView(GetViewRequest 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()) {
GetViewRequest request =
GetViewRequest.newBuilder()
.setName(ViewName.of("[PROJECT]", "[LOCATION]", "[VIEW]").toString())
.build();
View response = contactCenterInsightsClient.getView(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<GetViewRequest,View> getViewCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final ContactCenterInsightsClient.ListViewsPagedResponse listViews(LocationName parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
}
parent - Required. The parent resource of the views.com.google.api.gax.rpc.ApiException - if the remote call failspublic final ContactCenterInsightsClient.ListViewsPagedResponse listViews(String parent)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
}
parent - Required. The parent resource of the views.com.google.api.gax.rpc.ApiException - if the remote call failspublic final ContactCenterInsightsClient.ListViewsPagedResponse listViews(ListViewsRequest 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()) {
ListViewsRequest request =
ListViewsRequest.newBuilder()
.setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (View element : contactCenterInsightsClient.listViews(request).iterateAll()) {
// doThingsWith(element);
}
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<ListViewsRequest,ContactCenterInsightsClient.ListViewsPagedResponse> listViewsPagedCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
}
public final com.google.api.gax.rpc.UnaryCallable<ListViewsRequest,ListViewsResponse> listViewsCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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;
}
}
}
public final View updateView(View view, com.google.protobuf.FieldMask updateMask)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
view - Required. The new view.updateMask - The list of fields to be updated.com.google.api.gax.rpc.ApiException - if the remote call failspublic final View updateView(UpdateViewRequest 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()) {
UpdateViewRequest request =
UpdateViewRequest.newBuilder()
.setView(View.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
View response = contactCenterInsightsClient.updateView(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<UpdateViewRequest,View> updateViewCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final void deleteView(ViewName name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the view to delete.com.google.api.gax.rpc.ApiException - if the remote call failspublic final void deleteView(String name)
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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);
}
name - Required. The name of the view to delete.com.google.api.gax.rpc.ApiException - if the remote call failspublic final void deleteView(DeleteViewRequest 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()) {
DeleteViewRequest request =
DeleteViewRequest.newBuilder()
.setName(ViewName.of("[PROJECT]", "[LOCATION]", "[VIEW]").toString())
.build();
contactCenterInsightsClient.deleteView(request);
}
request - The request object containing all of the parameters for the API call.com.google.api.gax.rpc.ApiException - if the remote call failspublic final com.google.api.gax.rpc.UnaryCallable<DeleteViewRequest,com.google.protobuf.Empty> deleteViewCallable()
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating 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();
}
public final void close()
close in interface AutoCloseablepublic void shutdown()
shutdown in interface com.google.api.gax.core.BackgroundResourcepublic boolean isShutdown()
isShutdown in interface com.google.api.gax.core.BackgroundResourcepublic boolean isTerminated()
isTerminated in interface com.google.api.gax.core.BackgroundResourcepublic void shutdownNow()
shutdownNow in interface com.google.api.gax.core.BackgroundResourcepublic boolean awaitTermination(long duration,
TimeUnit unit)
throws InterruptedException
awaitTermination in interface com.google.api.gax.core.BackgroundResourceInterruptedExceptionCopyright © 2023 Google LLC. All rights reserved.