Documentation
¶
Overview ¶
Package contactcenterinsights is an auto-generated package for the Contact Center AI Insights API.
General documentation ¶
For information that is relevant for all client libraries please reference https://pkg.go.dev/cloud.google.com/go#pkg-overview. Some information on this page includes:
- Authentication and Authorization
- Timeouts and Cancellation
- Testing against Client Libraries
- Debugging Client Libraries
- Inspecting errors
Example usage ¶
To get started with this package, create a client.
// go get cloud.google.com/go/contactcenterinsights/apiv1@latest
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
The client will use your default application credentials. Clients should be reused instead of created as needed. The methods of Client are safe for concurrent use by multiple goroutines. The returned client must be Closed when it is done being used.
Using the Client ¶
The following is an example of making an API call with the newly created client, mentioned above.
req := &contactcenterinsightspb.BulkAnalyzeConversationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#BulkAnalyzeConversationsRequest.
}
op, err := c.BulkAnalyzeConversations(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
Use of Context ¶
The ctx passed to NewClient is used for authentication requests and for creating the underlying connection, but is not used for subsequent calls. Individual methods on the client use the ctx given to them.
To close the open connection, use the Close() method.
Index ¶
- func DefaultAuthScopes() []string
- type AnalysisIterator
- type AnalysisRuleIterator
- type BulkAnalyzeConversationsOperation
- func (op *BulkAnalyzeConversationsOperation) Done() bool
- func (op *BulkAnalyzeConversationsOperation) Metadata() (*contactcenterinsightspb.BulkAnalyzeConversationsMetadata, error)
- func (op *BulkAnalyzeConversationsOperation) Name() string
- func (op *BulkAnalyzeConversationsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.BulkAnalyzeConversationsResponse, error)
- func (op *BulkAnalyzeConversationsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.BulkAnalyzeConversationsResponse, error)
- type BulkDeleteConversationsOperation
- func (op *BulkDeleteConversationsOperation) Done() bool
- func (op *BulkDeleteConversationsOperation) Metadata() (*contactcenterinsightspb.BulkDeleteConversationsMetadata, error)
- func (op *BulkDeleteConversationsOperation) Name() string
- func (op *BulkDeleteConversationsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.BulkDeleteConversationsResponse, error)
- func (op *BulkDeleteConversationsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.BulkDeleteConversationsResponse, error)
- type BulkDownloadFeedbackLabelsOperation
- func (op *BulkDownloadFeedbackLabelsOperation) Done() bool
- func (op *BulkDownloadFeedbackLabelsOperation) Metadata() (*contactcenterinsightspb.BulkDownloadFeedbackLabelsMetadata, error)
- func (op *BulkDownloadFeedbackLabelsOperation) Name() string
- func (op *BulkDownloadFeedbackLabelsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.BulkDownloadFeedbackLabelsResponse, error)
- func (op *BulkDownloadFeedbackLabelsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.BulkDownloadFeedbackLabelsResponse, error)
- type BulkUploadFeedbackLabelsOperation
- func (op *BulkUploadFeedbackLabelsOperation) Done() bool
- func (op *BulkUploadFeedbackLabelsOperation) Metadata() (*contactcenterinsightspb.BulkUploadFeedbackLabelsMetadata, error)
- func (op *BulkUploadFeedbackLabelsOperation) Name() string
- func (op *BulkUploadFeedbackLabelsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.BulkUploadFeedbackLabelsResponse, error)
- func (op *BulkUploadFeedbackLabelsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.BulkUploadFeedbackLabelsResponse, error)
- type CallOptions
- type Client
- func (c *Client) BulkAnalyzeConversations(ctx context.Context, ...) (*BulkAnalyzeConversationsOperation, error)
- func (c *Client) BulkAnalyzeConversationsOperation(name string) *BulkAnalyzeConversationsOperation
- func (c *Client) BulkDeleteConversations(ctx context.Context, ...) (*BulkDeleteConversationsOperation, error)
- func (c *Client) BulkDeleteConversationsOperation(name string) *BulkDeleteConversationsOperation
- func (c *Client) BulkDownloadFeedbackLabels(ctx context.Context, ...) (*BulkDownloadFeedbackLabelsOperation, error)
- func (c *Client) BulkDownloadFeedbackLabelsOperation(name string) *BulkDownloadFeedbackLabelsOperation
- func (c *Client) BulkUploadFeedbackLabels(ctx context.Context, ...) (*BulkUploadFeedbackLabelsOperation, error)
- func (c *Client) BulkUploadFeedbackLabelsOperation(name string) *BulkUploadFeedbackLabelsOperation
- func (c *Client) CalculateIssueModelStats(ctx context.Context, ...) (*contactcenterinsightspb.CalculateIssueModelStatsResponse, error)
- func (c *Client) CalculateStats(ctx context.Context, req *contactcenterinsightspb.CalculateStatsRequest, ...) (*contactcenterinsightspb.CalculateStatsResponse, error)
- func (c *Client) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, ...) error
- func (c *Client) Close() error
- func (c *Client) Connection() *grpc.ClientConndeprecated
- func (c *Client) CreateAnalysis(ctx context.Context, req *contactcenterinsightspb.CreateAnalysisRequest, ...) (*CreateAnalysisOperation, error)
- func (c *Client) CreateAnalysisOperation(name string) *CreateAnalysisOperation
- func (c *Client) CreateAnalysisRule(ctx context.Context, req *contactcenterinsightspb.CreateAnalysisRuleRequest, ...) (*contactcenterinsightspb.AnalysisRule, error)
- func (c *Client) CreateConversation(ctx context.Context, req *contactcenterinsightspb.CreateConversationRequest, ...) (*contactcenterinsightspb.Conversation, error)
- func (c *Client) CreateFeedbackLabel(ctx context.Context, req *contactcenterinsightspb.CreateFeedbackLabelRequest, ...) (*contactcenterinsightspb.FeedbackLabel, error)
- func (c *Client) CreateIssueModel(ctx context.Context, req *contactcenterinsightspb.CreateIssueModelRequest, ...) (*CreateIssueModelOperation, error)
- func (c *Client) CreateIssueModelOperation(name string) *CreateIssueModelOperation
- func (c *Client) CreatePhraseMatcher(ctx context.Context, req *contactcenterinsightspb.CreatePhraseMatcherRequest, ...) (*contactcenterinsightspb.PhraseMatcher, error)
- func (c *Client) CreateQaQuestion(ctx context.Context, req *contactcenterinsightspb.CreateQaQuestionRequest, ...) (*contactcenterinsightspb.QaQuestion, error)
- func (c *Client) CreateQaScorecard(ctx context.Context, req *contactcenterinsightspb.CreateQaScorecardRequest, ...) (*contactcenterinsightspb.QaScorecard, error)
- func (c *Client) CreateQaScorecardRevision(ctx context.Context, ...) (*contactcenterinsightspb.QaScorecardRevision, error)
- func (c *Client) CreateView(ctx context.Context, req *contactcenterinsightspb.CreateViewRequest, ...) (*contactcenterinsightspb.View, error)
- func (c *Client) DeleteAnalysis(ctx context.Context, req *contactcenterinsightspb.DeleteAnalysisRequest, ...) error
- func (c *Client) DeleteAnalysisRule(ctx context.Context, req *contactcenterinsightspb.DeleteAnalysisRuleRequest, ...) error
- func (c *Client) DeleteConversation(ctx context.Context, req *contactcenterinsightspb.DeleteConversationRequest, ...) error
- func (c *Client) DeleteFeedbackLabel(ctx context.Context, req *contactcenterinsightspb.DeleteFeedbackLabelRequest, ...) error
- func (c *Client) DeleteIssue(ctx context.Context, req *contactcenterinsightspb.DeleteIssueRequest, ...) error
- func (c *Client) DeleteIssueModel(ctx context.Context, req *contactcenterinsightspb.DeleteIssueModelRequest, ...) (*DeleteIssueModelOperation, error)
- func (c *Client) DeleteIssueModelOperation(name string) *DeleteIssueModelOperation
- func (c *Client) DeletePhraseMatcher(ctx context.Context, req *contactcenterinsightspb.DeletePhraseMatcherRequest, ...) error
- func (c *Client) DeleteQaQuestion(ctx context.Context, req *contactcenterinsightspb.DeleteQaQuestionRequest, ...) error
- func (c *Client) DeleteQaScorecard(ctx context.Context, req *contactcenterinsightspb.DeleteQaScorecardRequest, ...) error
- func (c *Client) DeleteQaScorecardRevision(ctx context.Context, ...) error
- func (c *Client) DeleteView(ctx context.Context, req *contactcenterinsightspb.DeleteViewRequest, ...) error
- func (c *Client) DeployIssueModel(ctx context.Context, req *contactcenterinsightspb.DeployIssueModelRequest, ...) (*DeployIssueModelOperation, error)
- func (c *Client) DeployIssueModelOperation(name string) *DeployIssueModelOperation
- func (c *Client) DeployQaScorecardRevision(ctx context.Context, ...) (*contactcenterinsightspb.QaScorecardRevision, error)
- func (c *Client) ExportInsightsData(ctx context.Context, req *contactcenterinsightspb.ExportInsightsDataRequest, ...) (*ExportInsightsDataOperation, error)
- func (c *Client) ExportInsightsDataOperation(name string) *ExportInsightsDataOperation
- func (c *Client) ExportIssueModel(ctx context.Context, req *contactcenterinsightspb.ExportIssueModelRequest, ...) (*ExportIssueModelOperation, error)
- func (c *Client) ExportIssueModelOperation(name string) *ExportIssueModelOperation
- func (c *Client) GetAnalysis(ctx context.Context, req *contactcenterinsightspb.GetAnalysisRequest, ...) (*contactcenterinsightspb.Analysis, error)
- func (c *Client) GetAnalysisRule(ctx context.Context, req *contactcenterinsightspb.GetAnalysisRuleRequest, ...) (*contactcenterinsightspb.AnalysisRule, error)
- func (c *Client) GetConversation(ctx context.Context, req *contactcenterinsightspb.GetConversationRequest, ...) (*contactcenterinsightspb.Conversation, error)
- func (c *Client) GetEncryptionSpec(ctx context.Context, req *contactcenterinsightspb.GetEncryptionSpecRequest, ...) (*contactcenterinsightspb.EncryptionSpec, error)
- func (c *Client) GetFeedbackLabel(ctx context.Context, req *contactcenterinsightspb.GetFeedbackLabelRequest, ...) (*contactcenterinsightspb.FeedbackLabel, error)
- func (c *Client) GetIssue(ctx context.Context, req *contactcenterinsightspb.GetIssueRequest, ...) (*contactcenterinsightspb.Issue, error)
- func (c *Client) GetIssueModel(ctx context.Context, req *contactcenterinsightspb.GetIssueModelRequest, ...) (*contactcenterinsightspb.IssueModel, error)
- func (c *Client) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, ...) (*longrunningpb.Operation, error)
- func (c *Client) GetPhraseMatcher(ctx context.Context, req *contactcenterinsightspb.GetPhraseMatcherRequest, ...) (*contactcenterinsightspb.PhraseMatcher, error)
- func (c *Client) GetQaQuestion(ctx context.Context, req *contactcenterinsightspb.GetQaQuestionRequest, ...) (*contactcenterinsightspb.QaQuestion, error)
- func (c *Client) GetQaScorecard(ctx context.Context, req *contactcenterinsightspb.GetQaScorecardRequest, ...) (*contactcenterinsightspb.QaScorecard, error)
- func (c *Client) GetQaScorecardRevision(ctx context.Context, ...) (*contactcenterinsightspb.QaScorecardRevision, error)
- func (c *Client) GetSettings(ctx context.Context, req *contactcenterinsightspb.GetSettingsRequest, ...) (*contactcenterinsightspb.Settings, error)
- func (c *Client) GetView(ctx context.Context, req *contactcenterinsightspb.GetViewRequest, ...) (*contactcenterinsightspb.View, error)
- func (c *Client) ImportIssueModel(ctx context.Context, req *contactcenterinsightspb.ImportIssueModelRequest, ...) (*ImportIssueModelOperation, error)
- func (c *Client) ImportIssueModelOperation(name string) *ImportIssueModelOperation
- func (c *Client) IngestConversations(ctx context.Context, req *contactcenterinsightspb.IngestConversationsRequest, ...) (*IngestConversationsOperation, error)
- func (c *Client) IngestConversationsOperation(name string) *IngestConversationsOperation
- func (c *Client) InitializeEncryptionSpec(ctx context.Context, ...) (*InitializeEncryptionSpecOperation, error)
- func (c *Client) InitializeEncryptionSpecOperation(name string) *InitializeEncryptionSpecOperation
- func (c *Client) ListAllFeedbackLabels(ctx context.Context, req *contactcenterinsightspb.ListAllFeedbackLabelsRequest, ...) *FeedbackLabelIterator
- func (c *Client) ListAnalyses(ctx context.Context, req *contactcenterinsightspb.ListAnalysesRequest, ...) *AnalysisIterator
- func (c *Client) ListAnalysisRules(ctx context.Context, req *contactcenterinsightspb.ListAnalysisRulesRequest, ...) *AnalysisRuleIterator
- func (c *Client) ListConversations(ctx context.Context, req *contactcenterinsightspb.ListConversationsRequest, ...) *ConversationIterator
- func (c *Client) ListFeedbackLabels(ctx context.Context, req *contactcenterinsightspb.ListFeedbackLabelsRequest, ...) *FeedbackLabelIterator
- func (c *Client) ListIssueModels(ctx context.Context, req *contactcenterinsightspb.ListIssueModelsRequest, ...) (*contactcenterinsightspb.ListIssueModelsResponse, error)
- func (c *Client) ListIssues(ctx context.Context, req *contactcenterinsightspb.ListIssuesRequest, ...) (*contactcenterinsightspb.ListIssuesResponse, error)
- func (c *Client) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, ...) *OperationIterator
- func (c *Client) ListPhraseMatchers(ctx context.Context, req *contactcenterinsightspb.ListPhraseMatchersRequest, ...) *PhraseMatcherIterator
- func (c *Client) ListQaQuestions(ctx context.Context, req *contactcenterinsightspb.ListQaQuestionsRequest, ...) *QaQuestionIterator
- func (c *Client) ListQaScorecardRevisions(ctx context.Context, ...) *QaScorecardRevisionIterator
- func (c *Client) ListQaScorecards(ctx context.Context, req *contactcenterinsightspb.ListQaScorecardsRequest, ...) *QaScorecardIterator
- func (c *Client) ListViews(ctx context.Context, req *contactcenterinsightspb.ListViewsRequest, ...) *ViewIterator
- func (c *Client) QueryMetrics(ctx context.Context, req *contactcenterinsightspb.QueryMetricsRequest, ...) (*QueryMetricsOperation, error)
- func (c *Client) QueryMetricsOperation(name string) *QueryMetricsOperation
- func (c *Client) TuneQaScorecardRevision(ctx context.Context, ...) (*TuneQaScorecardRevisionOperation, error)
- func (c *Client) TuneQaScorecardRevisionOperation(name string) *TuneQaScorecardRevisionOperation
- func (c *Client) UndeployIssueModel(ctx context.Context, req *contactcenterinsightspb.UndeployIssueModelRequest, ...) (*UndeployIssueModelOperation, error)
- func (c *Client) UndeployIssueModelOperation(name string) *UndeployIssueModelOperation
- func (c *Client) UndeployQaScorecardRevision(ctx context.Context, ...) (*contactcenterinsightspb.QaScorecardRevision, error)
- func (c *Client) UpdateAnalysisRule(ctx context.Context, req *contactcenterinsightspb.UpdateAnalysisRuleRequest, ...) (*contactcenterinsightspb.AnalysisRule, error)
- func (c *Client) UpdateConversation(ctx context.Context, req *contactcenterinsightspb.UpdateConversationRequest, ...) (*contactcenterinsightspb.Conversation, error)
- func (c *Client) UpdateFeedbackLabel(ctx context.Context, req *contactcenterinsightspb.UpdateFeedbackLabelRequest, ...) (*contactcenterinsightspb.FeedbackLabel, error)
- func (c *Client) UpdateIssue(ctx context.Context, req *contactcenterinsightspb.UpdateIssueRequest, ...) (*contactcenterinsightspb.Issue, error)
- func (c *Client) UpdateIssueModel(ctx context.Context, req *contactcenterinsightspb.UpdateIssueModelRequest, ...) (*contactcenterinsightspb.IssueModel, error)
- func (c *Client) UpdatePhraseMatcher(ctx context.Context, req *contactcenterinsightspb.UpdatePhraseMatcherRequest, ...) (*contactcenterinsightspb.PhraseMatcher, error)
- func (c *Client) UpdateQaQuestion(ctx context.Context, req *contactcenterinsightspb.UpdateQaQuestionRequest, ...) (*contactcenterinsightspb.QaQuestion, error)
- func (c *Client) UpdateQaScorecard(ctx context.Context, req *contactcenterinsightspb.UpdateQaScorecardRequest, ...) (*contactcenterinsightspb.QaScorecard, error)
- func (c *Client) UpdateSettings(ctx context.Context, req *contactcenterinsightspb.UpdateSettingsRequest, ...) (*contactcenterinsightspb.Settings, error)
- func (c *Client) UpdateView(ctx context.Context, req *contactcenterinsightspb.UpdateViewRequest, ...) (*contactcenterinsightspb.View, error)
- func (c *Client) UploadConversation(ctx context.Context, req *contactcenterinsightspb.UploadConversationRequest, ...) (*UploadConversationOperation, error)
- func (c *Client) UploadConversationOperation(name string) *UploadConversationOperation
- type ConversationIterator
- type CreateAnalysisOperation
- func (op *CreateAnalysisOperation) Done() bool
- func (op *CreateAnalysisOperation) Metadata() (*contactcenterinsightspb.CreateAnalysisOperationMetadata, error)
- func (op *CreateAnalysisOperation) Name() string
- func (op *CreateAnalysisOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.Analysis, error)
- func (op *CreateAnalysisOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.Analysis, error)
- type CreateIssueModelOperation
- func (op *CreateIssueModelOperation) Done() bool
- func (op *CreateIssueModelOperation) Metadata() (*contactcenterinsightspb.CreateIssueModelMetadata, error)
- func (op *CreateIssueModelOperation) Name() string
- func (op *CreateIssueModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.IssueModel, error)
- func (op *CreateIssueModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.IssueModel, error)
- type DeleteIssueModelOperation
- func (op *DeleteIssueModelOperation) Done() bool
- func (op *DeleteIssueModelOperation) Metadata() (*contactcenterinsightspb.DeleteIssueModelMetadata, error)
- func (op *DeleteIssueModelOperation) Name() string
- func (op *DeleteIssueModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
- func (op *DeleteIssueModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
- type DeployIssueModelOperation
- func (op *DeployIssueModelOperation) Done() bool
- func (op *DeployIssueModelOperation) Metadata() (*contactcenterinsightspb.DeployIssueModelMetadata, error)
- func (op *DeployIssueModelOperation) Name() string
- func (op *DeployIssueModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.DeployIssueModelResponse, error)
- func (op *DeployIssueModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.DeployIssueModelResponse, error)
- type ExportInsightsDataOperation
- func (op *ExportInsightsDataOperation) Done() bool
- func (op *ExportInsightsDataOperation) Metadata() (*contactcenterinsightspb.ExportInsightsDataMetadata, error)
- func (op *ExportInsightsDataOperation) Name() string
- func (op *ExportInsightsDataOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.ExportInsightsDataResponse, error)
- func (op *ExportInsightsDataOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.ExportInsightsDataResponse, error)
- type ExportIssueModelOperation
- func (op *ExportIssueModelOperation) Done() bool
- func (op *ExportIssueModelOperation) Metadata() (*contactcenterinsightspb.ExportIssueModelMetadata, error)
- func (op *ExportIssueModelOperation) Name() string
- func (op *ExportIssueModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.ExportIssueModelResponse, error)
- func (op *ExportIssueModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.ExportIssueModelResponse, error)
- type FeedbackLabelIterator
- type ImportIssueModelOperation
- func (op *ImportIssueModelOperation) Done() bool
- func (op *ImportIssueModelOperation) Metadata() (*contactcenterinsightspb.ImportIssueModelMetadata, error)
- func (op *ImportIssueModelOperation) Name() string
- func (op *ImportIssueModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.ImportIssueModelResponse, error)
- func (op *ImportIssueModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.ImportIssueModelResponse, error)
- type IngestConversationsOperation
- func (op *IngestConversationsOperation) Done() bool
- func (op *IngestConversationsOperation) Metadata() (*contactcenterinsightspb.IngestConversationsMetadata, error)
- func (op *IngestConversationsOperation) Name() string
- func (op *IngestConversationsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.IngestConversationsResponse, error)
- func (op *IngestConversationsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.IngestConversationsResponse, error)
- type InitializeEncryptionSpecOperation
- func (op *InitializeEncryptionSpecOperation) Done() bool
- func (op *InitializeEncryptionSpecOperation) Metadata() (*contactcenterinsightspb.InitializeEncryptionSpecMetadata, error)
- func (op *InitializeEncryptionSpecOperation) Name() string
- func (op *InitializeEncryptionSpecOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.InitializeEncryptionSpecResponse, error)
- func (op *InitializeEncryptionSpecOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.InitializeEncryptionSpecResponse, error)
- type OperationIterator
- type PhraseMatcherIterator
- type QaQuestionIterator
- type QaScorecardIterator
- type QaScorecardRevisionIterator
- type QueryMetricsOperation
- func (op *QueryMetricsOperation) Done() bool
- func (op *QueryMetricsOperation) Metadata() (*contactcenterinsightspb.QueryMetricsMetadata, error)
- func (op *QueryMetricsOperation) Name() string
- func (op *QueryMetricsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.QueryMetricsResponse, error)
- func (op *QueryMetricsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.QueryMetricsResponse, error)
- type TuneQaScorecardRevisionOperation
- func (op *TuneQaScorecardRevisionOperation) Done() bool
- func (op *TuneQaScorecardRevisionOperation) Metadata() (*contactcenterinsightspb.TuneQaScorecardRevisionMetadata, error)
- func (op *TuneQaScorecardRevisionOperation) Name() string
- func (op *TuneQaScorecardRevisionOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.TuneQaScorecardRevisionResponse, error)
- func (op *TuneQaScorecardRevisionOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.TuneQaScorecardRevisionResponse, error)
- type UndeployIssueModelOperation
- func (op *UndeployIssueModelOperation) Done() bool
- func (op *UndeployIssueModelOperation) Metadata() (*contactcenterinsightspb.UndeployIssueModelMetadata, error)
- func (op *UndeployIssueModelOperation) Name() string
- func (op *UndeployIssueModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.UndeployIssueModelResponse, error)
- func (op *UndeployIssueModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.UndeployIssueModelResponse, error)
- type UploadConversationOperation
- func (op *UploadConversationOperation) Done() bool
- func (op *UploadConversationOperation) Metadata() (*contactcenterinsightspb.UploadConversationMetadata, error)
- func (op *UploadConversationOperation) Name() string
- func (op *UploadConversationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.Conversation, error)
- func (op *UploadConversationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.Conversation, error)
- type ViewIterator
Examples ¶
- Client.BulkAnalyzeConversations
- Client.BulkDeleteConversations
- Client.BulkDownloadFeedbackLabels
- Client.BulkUploadFeedbackLabels
- Client.CalculateIssueModelStats
- Client.CalculateStats
- Client.CancelOperation
- Client.CreateAnalysis
- Client.CreateAnalysisRule
- Client.CreateConversation
- Client.CreateFeedbackLabel
- Client.CreateIssueModel
- Client.CreatePhraseMatcher
- Client.CreateQaQuestion
- Client.CreateQaScorecard
- Client.CreateQaScorecardRevision
- Client.CreateView
- Client.DeleteAnalysis
- Client.DeleteAnalysisRule
- Client.DeleteConversation
- Client.DeleteFeedbackLabel
- Client.DeleteIssue
- Client.DeleteIssueModel
- Client.DeletePhraseMatcher
- Client.DeleteQaQuestion
- Client.DeleteQaScorecard
- Client.DeleteQaScorecardRevision
- Client.DeleteView
- Client.DeployIssueModel
- Client.DeployQaScorecardRevision
- Client.ExportInsightsData
- Client.ExportIssueModel
- Client.GetAnalysis
- Client.GetAnalysisRule
- Client.GetConversation
- Client.GetEncryptionSpec
- Client.GetFeedbackLabel
- Client.GetIssue
- Client.GetIssueModel
- Client.GetOperation
- Client.GetPhraseMatcher
- Client.GetQaQuestion
- Client.GetQaScorecard
- Client.GetQaScorecardRevision
- Client.GetSettings
- Client.GetView
- Client.ImportIssueModel
- Client.IngestConversations
- Client.InitializeEncryptionSpec
- Client.ListAllFeedbackLabels
- Client.ListAllFeedbackLabels (All)
- Client.ListAnalyses
- Client.ListAnalyses (All)
- Client.ListAnalysisRules
- Client.ListAnalysisRules (All)
- Client.ListConversations
- Client.ListConversations (All)
- Client.ListFeedbackLabels
- Client.ListFeedbackLabels (All)
- Client.ListIssueModels
- Client.ListIssues
- Client.ListOperations
- Client.ListOperations (All)
- Client.ListPhraseMatchers
- Client.ListPhraseMatchers (All)
- Client.ListQaQuestions
- Client.ListQaQuestions (All)
- Client.ListQaScorecardRevisions
- Client.ListQaScorecardRevisions (All)
- Client.ListQaScorecards
- Client.ListQaScorecards (All)
- Client.ListViews
- Client.ListViews (All)
- Client.QueryMetrics
- Client.TuneQaScorecardRevision
- Client.UndeployIssueModel
- Client.UndeployQaScorecardRevision
- Client.UpdateAnalysisRule
- Client.UpdateConversation
- Client.UpdateFeedbackLabel
- Client.UpdateIssue
- Client.UpdateIssueModel
- Client.UpdatePhraseMatcher
- Client.UpdateQaQuestion
- Client.UpdateQaScorecard
- Client.UpdateSettings
- Client.UpdateView
- Client.UploadConversation
- NewClient
- NewRESTClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultAuthScopes ¶
func DefaultAuthScopes() []string
DefaultAuthScopes reports the default set of authentication scopes to use with this package.
Types ¶
type AnalysisIterator ¶
type AnalysisIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*contactcenterinsightspb.Analysis, nextPageToken string, err error)
// contains filtered or unexported fields
}
AnalysisIterator manages a stream of *contactcenterinsightspb.Analysis.
func (*AnalysisIterator) All ¶ added in v1.14.1
func (it *AnalysisIterator) All() iter.Seq2[*contactcenterinsightspb.Analysis, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*AnalysisIterator) Next ¶
func (it *AnalysisIterator) Next() (*contactcenterinsightspb.Analysis, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*AnalysisIterator) PageInfo ¶
func (it *AnalysisIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type AnalysisRuleIterator ¶ added in v1.16.0
type AnalysisRuleIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*contactcenterinsightspb.AnalysisRule, nextPageToken string, err error)
// contains filtered or unexported fields
}
AnalysisRuleIterator manages a stream of *contactcenterinsightspb.AnalysisRule.
func (*AnalysisRuleIterator) All ¶ added in v1.16.0
func (it *AnalysisRuleIterator) All() iter.Seq2[*contactcenterinsightspb.AnalysisRule, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*AnalysisRuleIterator) Next ¶ added in v1.16.0
func (it *AnalysisRuleIterator) Next() (*contactcenterinsightspb.AnalysisRule, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*AnalysisRuleIterator) PageInfo ¶ added in v1.16.0
func (it *AnalysisRuleIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type BulkAnalyzeConversationsOperation ¶ added in v1.5.0
type BulkAnalyzeConversationsOperation struct {
// contains filtered or unexported fields
}
BulkAnalyzeConversationsOperation manages a long-running operation from BulkAnalyzeConversations.
func (*BulkAnalyzeConversationsOperation) Done ¶ added in v1.5.0
func (op *BulkAnalyzeConversationsOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*BulkAnalyzeConversationsOperation) Metadata ¶ added in v1.5.0
func (op *BulkAnalyzeConversationsOperation) Metadata() (*contactcenterinsightspb.BulkAnalyzeConversationsMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*BulkAnalyzeConversationsOperation) Name ¶ added in v1.5.0
func (op *BulkAnalyzeConversationsOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*BulkAnalyzeConversationsOperation) Poll ¶ added in v1.5.0
func (op *BulkAnalyzeConversationsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.BulkAnalyzeConversationsResponse, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*BulkAnalyzeConversationsOperation) Wait ¶ added in v1.5.0
func (op *BulkAnalyzeConversationsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.BulkAnalyzeConversationsResponse, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type BulkDeleteConversationsOperation ¶ added in v1.12.0
type BulkDeleteConversationsOperation struct {
// contains filtered or unexported fields
}
BulkDeleteConversationsOperation manages a long-running operation from BulkDeleteConversations.
func (*BulkDeleteConversationsOperation) Done ¶ added in v1.12.0
func (op *BulkDeleteConversationsOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*BulkDeleteConversationsOperation) Metadata ¶ added in v1.12.0
func (op *BulkDeleteConversationsOperation) Metadata() (*contactcenterinsightspb.BulkDeleteConversationsMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*BulkDeleteConversationsOperation) Name ¶ added in v1.12.0
func (op *BulkDeleteConversationsOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*BulkDeleteConversationsOperation) Poll ¶ added in v1.12.0
func (op *BulkDeleteConversationsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.BulkDeleteConversationsResponse, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*BulkDeleteConversationsOperation) Wait ¶ added in v1.12.0
func (op *BulkDeleteConversationsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.BulkDeleteConversationsResponse, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type BulkDownloadFeedbackLabelsOperation ¶ added in v1.16.0
type BulkDownloadFeedbackLabelsOperation struct {
// contains filtered or unexported fields
}
BulkDownloadFeedbackLabelsOperation manages a long-running operation from BulkDownloadFeedbackLabels.
func (*BulkDownloadFeedbackLabelsOperation) Done ¶ added in v1.16.0
func (op *BulkDownloadFeedbackLabelsOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*BulkDownloadFeedbackLabelsOperation) Metadata ¶ added in v1.16.0
func (op *BulkDownloadFeedbackLabelsOperation) Metadata() (*contactcenterinsightspb.BulkDownloadFeedbackLabelsMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*BulkDownloadFeedbackLabelsOperation) Name ¶ added in v1.16.0
func (op *BulkDownloadFeedbackLabelsOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*BulkDownloadFeedbackLabelsOperation) Poll ¶ added in v1.16.0
func (op *BulkDownloadFeedbackLabelsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.BulkDownloadFeedbackLabelsResponse, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*BulkDownloadFeedbackLabelsOperation) Wait ¶ added in v1.16.0
func (op *BulkDownloadFeedbackLabelsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.BulkDownloadFeedbackLabelsResponse, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type BulkUploadFeedbackLabelsOperation ¶ added in v1.16.0
type BulkUploadFeedbackLabelsOperation struct {
// contains filtered or unexported fields
}
BulkUploadFeedbackLabelsOperation manages a long-running operation from BulkUploadFeedbackLabels.
func (*BulkUploadFeedbackLabelsOperation) Done ¶ added in v1.16.0
func (op *BulkUploadFeedbackLabelsOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*BulkUploadFeedbackLabelsOperation) Metadata ¶ added in v1.16.0
func (op *BulkUploadFeedbackLabelsOperation) Metadata() (*contactcenterinsightspb.BulkUploadFeedbackLabelsMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*BulkUploadFeedbackLabelsOperation) Name ¶ added in v1.16.0
func (op *BulkUploadFeedbackLabelsOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*BulkUploadFeedbackLabelsOperation) Poll ¶ added in v1.16.0
func (op *BulkUploadFeedbackLabelsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.BulkUploadFeedbackLabelsResponse, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*BulkUploadFeedbackLabelsOperation) Wait ¶ added in v1.16.0
func (op *BulkUploadFeedbackLabelsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.BulkUploadFeedbackLabelsResponse, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CallOptions ¶
type CallOptions struct {
CreateConversation []gax.CallOption
UploadConversation []gax.CallOption
UpdateConversation []gax.CallOption
GetConversation []gax.CallOption
ListConversations []gax.CallOption
DeleteConversation []gax.CallOption
CreateAnalysis []gax.CallOption
GetAnalysis []gax.CallOption
ListAnalyses []gax.CallOption
DeleteAnalysis []gax.CallOption
BulkAnalyzeConversations []gax.CallOption
BulkDeleteConversations []gax.CallOption
IngestConversations []gax.CallOption
ExportInsightsData []gax.CallOption
CreateIssueModel []gax.CallOption
UpdateIssueModel []gax.CallOption
GetIssueModel []gax.CallOption
ListIssueModels []gax.CallOption
DeleteIssueModel []gax.CallOption
DeployIssueModel []gax.CallOption
UndeployIssueModel []gax.CallOption
ExportIssueModel []gax.CallOption
ImportIssueModel []gax.CallOption
GetIssue []gax.CallOption
ListIssues []gax.CallOption
UpdateIssue []gax.CallOption
DeleteIssue []gax.CallOption
CalculateIssueModelStats []gax.CallOption
CreatePhraseMatcher []gax.CallOption
GetPhraseMatcher []gax.CallOption
ListPhraseMatchers []gax.CallOption
DeletePhraseMatcher []gax.CallOption
UpdatePhraseMatcher []gax.CallOption
CalculateStats []gax.CallOption
GetSettings []gax.CallOption
UpdateSettings []gax.CallOption
CreateAnalysisRule []gax.CallOption
GetAnalysisRule []gax.CallOption
ListAnalysisRules []gax.CallOption
UpdateAnalysisRule []gax.CallOption
DeleteAnalysisRule []gax.CallOption
GetEncryptionSpec []gax.CallOption
InitializeEncryptionSpec []gax.CallOption
CreateView []gax.CallOption
GetView []gax.CallOption
ListViews []gax.CallOption
UpdateView []gax.CallOption
DeleteView []gax.CallOption
QueryMetrics []gax.CallOption
CreateQaQuestion []gax.CallOption
GetQaQuestion []gax.CallOption
UpdateQaQuestion []gax.CallOption
DeleteQaQuestion []gax.CallOption
ListQaQuestions []gax.CallOption
CreateQaScorecard []gax.CallOption
GetQaScorecard []gax.CallOption
UpdateQaScorecard []gax.CallOption
DeleteQaScorecard []gax.CallOption
ListQaScorecards []gax.CallOption
CreateQaScorecardRevision []gax.CallOption
GetQaScorecardRevision []gax.CallOption
TuneQaScorecardRevision []gax.CallOption
DeployQaScorecardRevision []gax.CallOption
UndeployQaScorecardRevision []gax.CallOption
DeleteQaScorecardRevision []gax.CallOption
ListQaScorecardRevisions []gax.CallOption
CreateFeedbackLabel []gax.CallOption
ListFeedbackLabels []gax.CallOption
GetFeedbackLabel []gax.CallOption
UpdateFeedbackLabel []gax.CallOption
DeleteFeedbackLabel []gax.CallOption
ListAllFeedbackLabels []gax.CallOption
BulkUploadFeedbackLabels []gax.CallOption
BulkDownloadFeedbackLabels []gax.CallOption
CancelOperation []gax.CallOption
GetOperation []gax.CallOption
ListOperations []gax.CallOption
}
CallOptions contains the retry settings for each method of Client.
type Client ¶
type Client struct {
// The call options for this service.
CallOptions *CallOptions
// LROClient is used internally to handle long-running operations.
// It is exposed so that its CallOptions can be modified if required.
// Users should not Close this client.
LROClient *lroauto.OperationsClient
// contains filtered or unexported fields
}
Client is a client for interacting with Contact Center AI Insights API. Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.
An API that lets users analyze and explore their business conversation data.
func NewClient ¶
NewClient creates a new contact center insights client based on gRPC. The returned client must be Closed when it is done being used to clean up its underlying connections.
An API that lets users analyze and explore their business conversation data.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
func NewRESTClient ¶ added in v1.5.0
NewRESTClient creates a new contact center insights rest client.
An API that lets users analyze and explore their business conversation data.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewRESTClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
// TODO: Use client.
_ = c
}
func (*Client) BulkAnalyzeConversations ¶ added in v1.5.0
func (c *Client) BulkAnalyzeConversations(ctx context.Context, req *contactcenterinsightspb.BulkAnalyzeConversationsRequest, opts ...gax.CallOption) (*BulkAnalyzeConversationsOperation, error)
BulkAnalyzeConversations analyzes multiple conversations in a single request.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.BulkAnalyzeConversationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#BulkAnalyzeConversationsRequest.
}
op, err := c.BulkAnalyzeConversations(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) BulkAnalyzeConversationsOperation ¶ added in v1.5.0
func (c *Client) BulkAnalyzeConversationsOperation(name string) *BulkAnalyzeConversationsOperation
BulkAnalyzeConversationsOperation returns a new BulkAnalyzeConversationsOperation from a given name. The name must be that of a previously created BulkAnalyzeConversationsOperation, possibly from a different process.
func (*Client) BulkDeleteConversations ¶ added in v1.12.0
func (c *Client) BulkDeleteConversations(ctx context.Context, req *contactcenterinsightspb.BulkDeleteConversationsRequest, opts ...gax.CallOption) (*BulkDeleteConversationsOperation, error)
BulkDeleteConversations deletes multiple conversations in a single request.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.BulkDeleteConversationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#BulkDeleteConversationsRequest.
}
op, err := c.BulkDeleteConversations(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) BulkDeleteConversationsOperation ¶ added in v1.12.0
func (c *Client) BulkDeleteConversationsOperation(name string) *BulkDeleteConversationsOperation
BulkDeleteConversationsOperation returns a new BulkDeleteConversationsOperation from a given name. The name must be that of a previously created BulkDeleteConversationsOperation, possibly from a different process.
func (*Client) BulkDownloadFeedbackLabels ¶ added in v1.16.0
func (c *Client) BulkDownloadFeedbackLabels(ctx context.Context, req *contactcenterinsightspb.BulkDownloadFeedbackLabelsRequest, opts ...gax.CallOption) (*BulkDownloadFeedbackLabelsOperation, error)
BulkDownloadFeedbackLabels download feedback labels in bulk.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.BulkDownloadFeedbackLabelsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#BulkDownloadFeedbackLabelsRequest.
}
op, err := c.BulkDownloadFeedbackLabels(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) BulkDownloadFeedbackLabelsOperation ¶ added in v1.16.0
func (c *Client) BulkDownloadFeedbackLabelsOperation(name string) *BulkDownloadFeedbackLabelsOperation
BulkDownloadFeedbackLabelsOperation returns a new BulkDownloadFeedbackLabelsOperation from a given name. The name must be that of a previously created BulkDownloadFeedbackLabelsOperation, possibly from a different process.
func (*Client) BulkUploadFeedbackLabels ¶ added in v1.16.0
func (c *Client) BulkUploadFeedbackLabels(ctx context.Context, req *contactcenterinsightspb.BulkUploadFeedbackLabelsRequest, opts ...gax.CallOption) (*BulkUploadFeedbackLabelsOperation, error)
BulkUploadFeedbackLabels upload feedback labels in bulk.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.BulkUploadFeedbackLabelsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#BulkUploadFeedbackLabelsRequest.
}
op, err := c.BulkUploadFeedbackLabels(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) BulkUploadFeedbackLabelsOperation ¶ added in v1.16.0
func (c *Client) BulkUploadFeedbackLabelsOperation(name string) *BulkUploadFeedbackLabelsOperation
BulkUploadFeedbackLabelsOperation returns a new BulkUploadFeedbackLabelsOperation from a given name. The name must be that of a previously created BulkUploadFeedbackLabelsOperation, possibly from a different process.
func (*Client) CalculateIssueModelStats ¶
func (c *Client) CalculateIssueModelStats(ctx context.Context, req *contactcenterinsightspb.CalculateIssueModelStatsRequest, opts ...gax.CallOption) (*contactcenterinsightspb.CalculateIssueModelStatsResponse, error)
CalculateIssueModelStats gets an issue model’s statistics.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.CalculateIssueModelStatsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#CalculateIssueModelStatsRequest.
}
resp, err := c.CalculateIssueModelStats(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CalculateStats ¶
func (c *Client) CalculateStats(ctx context.Context, req *contactcenterinsightspb.CalculateStatsRequest, opts ...gax.CallOption) (*contactcenterinsightspb.CalculateStatsResponse, error)
CalculateStats gets conversation statistics.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.CalculateStatsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#CalculateStatsRequest.
}
resp, err := c.CalculateStats(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CancelOperation ¶ added in v1.2.1
func (c *Client) CancelOperation(ctx context.Context, req *longrunningpb.CancelOperationRequest, opts ...gax.CallOption) error
CancelOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.CancelOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#CancelOperationRequest.
}
err = c.CancelOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) Close ¶
Close closes the connection to the API service. The user should invoke this when the client is no longer required.
func (*Client) Connection
deprecated
func (c *Client) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated: Connections are now pooled so this method does not always return the same resource.
func (*Client) CreateAnalysis ¶
func (c *Client) CreateAnalysis(ctx context.Context, req *contactcenterinsightspb.CreateAnalysisRequest, opts ...gax.CallOption) (*CreateAnalysisOperation, error)
CreateAnalysis creates an analysis. The long running operation is done when the analysis has completed.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.CreateAnalysisRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#CreateAnalysisRequest.
}
op, err := c.CreateAnalysis(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateAnalysisOperation ¶
func (c *Client) CreateAnalysisOperation(name string) *CreateAnalysisOperation
CreateAnalysisOperation returns a new CreateAnalysisOperation from a given name. The name must be that of a previously created CreateAnalysisOperation, possibly from a different process.
func (*Client) CreateAnalysisRule ¶ added in v1.16.0
func (c *Client) CreateAnalysisRule(ctx context.Context, req *contactcenterinsightspb.CreateAnalysisRuleRequest, opts ...gax.CallOption) (*contactcenterinsightspb.AnalysisRule, error)
CreateAnalysisRule creates a analysis rule.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.CreateAnalysisRuleRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#CreateAnalysisRuleRequest.
}
resp, err := c.CreateAnalysisRule(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateConversation ¶
func (c *Client) CreateConversation(ctx context.Context, req *contactcenterinsightspb.CreateConversationRequest, opts ...gax.CallOption) (*contactcenterinsightspb.Conversation, error)
CreateConversation creates a conversation. Note that this method does not support audio transcription or redaction. Use conversations.upload instead.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.CreateConversationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#CreateConversationRequest.
}
resp, err := c.CreateConversation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateFeedbackLabel ¶ added in v1.16.0
func (c *Client) CreateFeedbackLabel(ctx context.Context, req *contactcenterinsightspb.CreateFeedbackLabelRequest, opts ...gax.CallOption) (*contactcenterinsightspb.FeedbackLabel, error)
CreateFeedbackLabel create feedback label.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.CreateFeedbackLabelRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#CreateFeedbackLabelRequest.
}
resp, err := c.CreateFeedbackLabel(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateIssueModel ¶
func (c *Client) CreateIssueModel(ctx context.Context, req *contactcenterinsightspb.CreateIssueModelRequest, opts ...gax.CallOption) (*CreateIssueModelOperation, error)
CreateIssueModel creates an issue model.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.CreateIssueModelRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#CreateIssueModelRequest.
}
op, err := c.CreateIssueModel(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateIssueModelOperation ¶
func (c *Client) CreateIssueModelOperation(name string) *CreateIssueModelOperation
CreateIssueModelOperation returns a new CreateIssueModelOperation from a given name. The name must be that of a previously created CreateIssueModelOperation, possibly from a different process.
func (*Client) CreatePhraseMatcher ¶
func (c *Client) CreatePhraseMatcher(ctx context.Context, req *contactcenterinsightspb.CreatePhraseMatcherRequest, opts ...gax.CallOption) (*contactcenterinsightspb.PhraseMatcher, error)
CreatePhraseMatcher creates a phrase matcher.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.CreatePhraseMatcherRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#CreatePhraseMatcherRequest.
}
resp, err := c.CreatePhraseMatcher(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateQaQuestion ¶ added in v1.16.0
func (c *Client) CreateQaQuestion(ctx context.Context, req *contactcenterinsightspb.CreateQaQuestionRequest, opts ...gax.CallOption) (*contactcenterinsightspb.QaQuestion, error)
CreateQaQuestion create a QaQuestion.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.CreateQaQuestionRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#CreateQaQuestionRequest.
}
resp, err := c.CreateQaQuestion(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateQaScorecard ¶ added in v1.16.0
func (c *Client) CreateQaScorecard(ctx context.Context, req *contactcenterinsightspb.CreateQaScorecardRequest, opts ...gax.CallOption) (*contactcenterinsightspb.QaScorecard, error)
CreateQaScorecard create a QaScorecard.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.CreateQaScorecardRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#CreateQaScorecardRequest.
}
resp, err := c.CreateQaScorecard(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateQaScorecardRevision ¶ added in v1.16.0
func (c *Client) CreateQaScorecardRevision(ctx context.Context, req *contactcenterinsightspb.CreateQaScorecardRevisionRequest, opts ...gax.CallOption) (*contactcenterinsightspb.QaScorecardRevision, error)
CreateQaScorecardRevision creates a QaScorecardRevision.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.CreateQaScorecardRevisionRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#CreateQaScorecardRevisionRequest.
}
resp, err := c.CreateQaScorecardRevision(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) CreateView ¶ added in v1.0.0
func (c *Client) CreateView(ctx context.Context, req *contactcenterinsightspb.CreateViewRequest, opts ...gax.CallOption) (*contactcenterinsightspb.View, error)
CreateView creates a view.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.CreateViewRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#CreateViewRequest.
}
resp, err := c.CreateView(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) DeleteAnalysis ¶
func (c *Client) DeleteAnalysis(ctx context.Context, req *contactcenterinsightspb.DeleteAnalysisRequest, opts ...gax.CallOption) error
DeleteAnalysis deletes an analysis.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.DeleteAnalysisRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#DeleteAnalysisRequest.
}
err = c.DeleteAnalysis(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteAnalysisRule ¶ added in v1.16.0
func (c *Client) DeleteAnalysisRule(ctx context.Context, req *contactcenterinsightspb.DeleteAnalysisRuleRequest, opts ...gax.CallOption) error
DeleteAnalysisRule deletes a analysis rule.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.DeleteAnalysisRuleRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#DeleteAnalysisRuleRequest.
}
err = c.DeleteAnalysisRule(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteConversation ¶
func (c *Client) DeleteConversation(ctx context.Context, req *contactcenterinsightspb.DeleteConversationRequest, opts ...gax.CallOption) error
DeleteConversation deletes a conversation.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.DeleteConversationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#DeleteConversationRequest.
}
err = c.DeleteConversation(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteFeedbackLabel ¶ added in v1.16.0
func (c *Client) DeleteFeedbackLabel(ctx context.Context, req *contactcenterinsightspb.DeleteFeedbackLabelRequest, opts ...gax.CallOption) error
DeleteFeedbackLabel delete feedback label.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.DeleteFeedbackLabelRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#DeleteFeedbackLabelRequest.
}
err = c.DeleteFeedbackLabel(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteIssue ¶ added in v1.5.0
func (c *Client) DeleteIssue(ctx context.Context, req *contactcenterinsightspb.DeleteIssueRequest, opts ...gax.CallOption) error
DeleteIssue deletes an issue.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.DeleteIssueRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#DeleteIssueRequest.
}
err = c.DeleteIssue(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteIssueModel ¶
func (c *Client) DeleteIssueModel(ctx context.Context, req *contactcenterinsightspb.DeleteIssueModelRequest, opts ...gax.CallOption) (*DeleteIssueModelOperation, error)
DeleteIssueModel deletes an issue model.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.DeleteIssueModelRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#DeleteIssueModelRequest.
}
op, err := c.DeleteIssueModel(ctx, req)
if err != nil {
// TODO: Handle error.
}
err = op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteIssueModelOperation ¶
func (c *Client) DeleteIssueModelOperation(name string) *DeleteIssueModelOperation
DeleteIssueModelOperation returns a new DeleteIssueModelOperation from a given name. The name must be that of a previously created DeleteIssueModelOperation, possibly from a different process.
func (*Client) DeletePhraseMatcher ¶
func (c *Client) DeletePhraseMatcher(ctx context.Context, req *contactcenterinsightspb.DeletePhraseMatcherRequest, opts ...gax.CallOption) error
DeletePhraseMatcher deletes a phrase matcher.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.DeletePhraseMatcherRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#DeletePhraseMatcherRequest.
}
err = c.DeletePhraseMatcher(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteQaQuestion ¶ added in v1.16.0
func (c *Client) DeleteQaQuestion(ctx context.Context, req *contactcenterinsightspb.DeleteQaQuestionRequest, opts ...gax.CallOption) error
DeleteQaQuestion deletes a QaQuestion.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.DeleteQaQuestionRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#DeleteQaQuestionRequest.
}
err = c.DeleteQaQuestion(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteQaScorecard ¶ added in v1.16.0
func (c *Client) DeleteQaScorecard(ctx context.Context, req *contactcenterinsightspb.DeleteQaScorecardRequest, opts ...gax.CallOption) error
DeleteQaScorecard deletes a QaScorecard.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.DeleteQaScorecardRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#DeleteQaScorecardRequest.
}
err = c.DeleteQaScorecard(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteQaScorecardRevision ¶ added in v1.16.0
func (c *Client) DeleteQaScorecardRevision(ctx context.Context, req *contactcenterinsightspb.DeleteQaScorecardRevisionRequest, opts ...gax.CallOption) error
DeleteQaScorecardRevision deletes a QaScorecardRevision.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.DeleteQaScorecardRevisionRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#DeleteQaScorecardRevisionRequest.
}
err = c.DeleteQaScorecardRevision(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeleteView ¶ added in v1.0.0
func (c *Client) DeleteView(ctx context.Context, req *contactcenterinsightspb.DeleteViewRequest, opts ...gax.CallOption) error
DeleteView deletes a view.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.DeleteViewRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#DeleteViewRequest.
}
err = c.DeleteView(ctx, req)
if err != nil {
// TODO: Handle error.
}
}
func (*Client) DeployIssueModel ¶
func (c *Client) DeployIssueModel(ctx context.Context, req *contactcenterinsightspb.DeployIssueModelRequest, opts ...gax.CallOption) (*DeployIssueModelOperation, error)
DeployIssueModel deploys an issue model. Returns an error if a model is already deployed. An issue model can only be used in analysis after it has been deployed.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.DeployIssueModelRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#DeployIssueModelRequest.
}
op, err := c.DeployIssueModel(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) DeployIssueModelOperation ¶
func (c *Client) DeployIssueModelOperation(name string) *DeployIssueModelOperation
DeployIssueModelOperation returns a new DeployIssueModelOperation from a given name. The name must be that of a previously created DeployIssueModelOperation, possibly from a different process.
func (*Client) DeployQaScorecardRevision ¶ added in v1.16.0
func (c *Client) DeployQaScorecardRevision(ctx context.Context, req *contactcenterinsightspb.DeployQaScorecardRevisionRequest, opts ...gax.CallOption) (*contactcenterinsightspb.QaScorecardRevision, error)
DeployQaScorecardRevision deploy a QaScorecardRevision.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.DeployQaScorecardRevisionRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#DeployQaScorecardRevisionRequest.
}
resp, err := c.DeployQaScorecardRevision(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) ExportInsightsData ¶
func (c *Client) ExportInsightsData(ctx context.Context, req *contactcenterinsightspb.ExportInsightsDataRequest, opts ...gax.CallOption) (*ExportInsightsDataOperation, error)
ExportInsightsData export insights data to a destination defined in the request body.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ExportInsightsDataRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ExportInsightsDataRequest.
}
op, err := c.ExportInsightsData(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) ExportInsightsDataOperation ¶
func (c *Client) ExportInsightsDataOperation(name string) *ExportInsightsDataOperation
ExportInsightsDataOperation returns a new ExportInsightsDataOperation from a given name. The name must be that of a previously created ExportInsightsDataOperation, possibly from a different process.
func (*Client) ExportIssueModel ¶ added in v1.15.0
func (c *Client) ExportIssueModel(ctx context.Context, req *contactcenterinsightspb.ExportIssueModelRequest, opts ...gax.CallOption) (*ExportIssueModelOperation, error)
ExportIssueModel exports an issue model to the provided destination.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ExportIssueModelRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ExportIssueModelRequest.
}
op, err := c.ExportIssueModel(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) ExportIssueModelOperation ¶ added in v1.15.0
func (c *Client) ExportIssueModelOperation(name string) *ExportIssueModelOperation
ExportIssueModelOperation returns a new ExportIssueModelOperation from a given name. The name must be that of a previously created ExportIssueModelOperation, possibly from a different process.
func (*Client) GetAnalysis ¶
func (c *Client) GetAnalysis(ctx context.Context, req *contactcenterinsightspb.GetAnalysisRequest, opts ...gax.CallOption) (*contactcenterinsightspb.Analysis, error)
GetAnalysis gets an analysis.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.GetAnalysisRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#GetAnalysisRequest.
}
resp, err := c.GetAnalysis(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetAnalysisRule ¶ added in v1.16.0
func (c *Client) GetAnalysisRule(ctx context.Context, req *contactcenterinsightspb.GetAnalysisRuleRequest, opts ...gax.CallOption) (*contactcenterinsightspb.AnalysisRule, error)
GetAnalysisRule get a analysis rule.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.GetAnalysisRuleRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#GetAnalysisRuleRequest.
}
resp, err := c.GetAnalysisRule(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetConversation ¶
func (c *Client) GetConversation(ctx context.Context, req *contactcenterinsightspb.GetConversationRequest, opts ...gax.CallOption) (*contactcenterinsightspb.Conversation, error)
GetConversation gets a conversation.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.GetConversationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#GetConversationRequest.
}
resp, err := c.GetConversation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetEncryptionSpec ¶ added in v1.15.0
func (c *Client) GetEncryptionSpec(ctx context.Context, req *contactcenterinsightspb.GetEncryptionSpecRequest, opts ...gax.CallOption) (*contactcenterinsightspb.EncryptionSpec, error)
GetEncryptionSpec gets location-level encryption key specification.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.GetEncryptionSpecRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#GetEncryptionSpecRequest.
}
resp, err := c.GetEncryptionSpec(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetFeedbackLabel ¶ added in v1.16.0
func (c *Client) GetFeedbackLabel(ctx context.Context, req *contactcenterinsightspb.GetFeedbackLabelRequest, opts ...gax.CallOption) (*contactcenterinsightspb.FeedbackLabel, error)
GetFeedbackLabel get feedback label.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.GetFeedbackLabelRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#GetFeedbackLabelRequest.
}
resp, err := c.GetFeedbackLabel(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetIssue ¶
func (c *Client) GetIssue(ctx context.Context, req *contactcenterinsightspb.GetIssueRequest, opts ...gax.CallOption) (*contactcenterinsightspb.Issue, error)
GetIssue gets an issue.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.GetIssueRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#GetIssueRequest.
}
resp, err := c.GetIssue(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetIssueModel ¶
func (c *Client) GetIssueModel(ctx context.Context, req *contactcenterinsightspb.GetIssueModelRequest, opts ...gax.CallOption) (*contactcenterinsightspb.IssueModel, error)
GetIssueModel gets an issue model.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.GetIssueModelRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#GetIssueModelRequest.
}
resp, err := c.GetIssueModel(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetOperation ¶ added in v1.2.1
func (c *Client) GetOperation(ctx context.Context, req *longrunningpb.GetOperationRequest, opts ...gax.CallOption) (*longrunningpb.Operation, error)
GetOperation is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.GetOperationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#GetOperationRequest.
}
resp, err := c.GetOperation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetPhraseMatcher ¶
func (c *Client) GetPhraseMatcher(ctx context.Context, req *contactcenterinsightspb.GetPhraseMatcherRequest, opts ...gax.CallOption) (*contactcenterinsightspb.PhraseMatcher, error)
GetPhraseMatcher gets a phrase matcher.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.GetPhraseMatcherRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#GetPhraseMatcherRequest.
}
resp, err := c.GetPhraseMatcher(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetQaQuestion ¶ added in v1.16.0
func (c *Client) GetQaQuestion(ctx context.Context, req *contactcenterinsightspb.GetQaQuestionRequest, opts ...gax.CallOption) (*contactcenterinsightspb.QaQuestion, error)
GetQaQuestion gets a QaQuestion.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.GetQaQuestionRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#GetQaQuestionRequest.
}
resp, err := c.GetQaQuestion(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetQaScorecard ¶ added in v1.16.0
func (c *Client) GetQaScorecard(ctx context.Context, req *contactcenterinsightspb.GetQaScorecardRequest, opts ...gax.CallOption) (*contactcenterinsightspb.QaScorecard, error)
GetQaScorecard gets a QaScorecard.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.GetQaScorecardRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#GetQaScorecardRequest.
}
resp, err := c.GetQaScorecard(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetQaScorecardRevision ¶ added in v1.16.0
func (c *Client) GetQaScorecardRevision(ctx context.Context, req *contactcenterinsightspb.GetQaScorecardRevisionRequest, opts ...gax.CallOption) (*contactcenterinsightspb.QaScorecardRevision, error)
GetQaScorecardRevision gets a QaScorecardRevision.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.GetQaScorecardRevisionRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#GetQaScorecardRevisionRequest.
}
resp, err := c.GetQaScorecardRevision(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetSettings ¶
func (c *Client) GetSettings(ctx context.Context, req *contactcenterinsightspb.GetSettingsRequest, opts ...gax.CallOption) (*contactcenterinsightspb.Settings, error)
GetSettings gets project-level settings.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.GetSettingsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#GetSettingsRequest.
}
resp, err := c.GetSettings(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) GetView ¶ added in v1.0.0
func (c *Client) GetView(ctx context.Context, req *contactcenterinsightspb.GetViewRequest, opts ...gax.CallOption) (*contactcenterinsightspb.View, error)
GetView gets a view.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.GetViewRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#GetViewRequest.
}
resp, err := c.GetView(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) ImportIssueModel ¶ added in v1.15.0
func (c *Client) ImportIssueModel(ctx context.Context, req *contactcenterinsightspb.ImportIssueModelRequest, opts ...gax.CallOption) (*ImportIssueModelOperation, error)
ImportIssueModel imports an issue model from a Cloud Storage bucket.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ImportIssueModelRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ImportIssueModelRequest.
}
op, err := c.ImportIssueModel(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) ImportIssueModelOperation ¶ added in v1.15.0
func (c *Client) ImportIssueModelOperation(name string) *ImportIssueModelOperation
ImportIssueModelOperation returns a new ImportIssueModelOperation from a given name. The name must be that of a previously created ImportIssueModelOperation, possibly from a different process.
func (*Client) IngestConversations ¶ added in v1.5.0
func (c *Client) IngestConversations(ctx context.Context, req *contactcenterinsightspb.IngestConversationsRequest, opts ...gax.CallOption) (*IngestConversationsOperation, error)
IngestConversations imports conversations and processes them according to the user’s configuration.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.IngestConversationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#IngestConversationsRequest.
}
op, err := c.IngestConversations(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) IngestConversationsOperation ¶ added in v1.5.0
func (c *Client) IngestConversationsOperation(name string) *IngestConversationsOperation
IngestConversationsOperation returns a new IngestConversationsOperation from a given name. The name must be that of a previously created IngestConversationsOperation, possibly from a different process.
func (*Client) InitializeEncryptionSpec ¶ added in v1.15.0
func (c *Client) InitializeEncryptionSpec(ctx context.Context, req *contactcenterinsightspb.InitializeEncryptionSpecRequest, opts ...gax.CallOption) (*InitializeEncryptionSpecOperation, error)
InitializeEncryptionSpec initializes a location-level encryption key specification. An error will result if the location has resources already created before the initialization. After the encryption specification is initialized at a location, it is immutable and all newly created resources under the location will be encrypted with the existing specification.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.InitializeEncryptionSpecRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#InitializeEncryptionSpecRequest.
}
op, err := c.InitializeEncryptionSpec(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) InitializeEncryptionSpecOperation ¶ added in v1.15.0
func (c *Client) InitializeEncryptionSpecOperation(name string) *InitializeEncryptionSpecOperation
InitializeEncryptionSpecOperation returns a new InitializeEncryptionSpecOperation from a given name. The name must be that of a previously created InitializeEncryptionSpecOperation, possibly from a different process.
func (*Client) ListAllFeedbackLabels ¶ added in v1.16.0
func (c *Client) ListAllFeedbackLabels(ctx context.Context, req *contactcenterinsightspb.ListAllFeedbackLabelsRequest, opts ...gax.CallOption) *FeedbackLabelIterator
ListAllFeedbackLabels list all feedback labels by project number.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListAllFeedbackLabelsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListAllFeedbackLabelsRequest.
}
it := c.ListAllFeedbackLabels(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*contactcenterinsightspb.ListAllFeedbackLabelsResponse)
}
}
Example (All) ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListAllFeedbackLabelsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListAllFeedbackLabelsRequest.
}
for resp, err := range c.ListAllFeedbackLabels(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListAnalyses ¶
func (c *Client) ListAnalyses(ctx context.Context, req *contactcenterinsightspb.ListAnalysesRequest, opts ...gax.CallOption) *AnalysisIterator
ListAnalyses lists analyses.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListAnalysesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListAnalysesRequest.
}
it := c.ListAnalyses(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*contactcenterinsightspb.ListAnalysesResponse)
}
}
Example (All) ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListAnalysesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListAnalysesRequest.
}
for resp, err := range c.ListAnalyses(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListAnalysisRules ¶ added in v1.16.0
func (c *Client) ListAnalysisRules(ctx context.Context, req *contactcenterinsightspb.ListAnalysisRulesRequest, opts ...gax.CallOption) *AnalysisRuleIterator
ListAnalysisRules lists analysis rules.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListAnalysisRulesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListAnalysisRulesRequest.
}
it := c.ListAnalysisRules(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*contactcenterinsightspb.ListAnalysisRulesResponse)
}
}
Example (All) ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListAnalysisRulesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListAnalysisRulesRequest.
}
for resp, err := range c.ListAnalysisRules(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListConversations ¶
func (c *Client) ListConversations(ctx context.Context, req *contactcenterinsightspb.ListConversationsRequest, opts ...gax.CallOption) *ConversationIterator
ListConversations lists conversations.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListConversationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListConversationsRequest.
}
it := c.ListConversations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*contactcenterinsightspb.ListConversationsResponse)
}
}
Example (All) ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListConversationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListConversationsRequest.
}
for resp, err := range c.ListConversations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListFeedbackLabels ¶ added in v1.16.0
func (c *Client) ListFeedbackLabels(ctx context.Context, req *contactcenterinsightspb.ListFeedbackLabelsRequest, opts ...gax.CallOption) *FeedbackLabelIterator
ListFeedbackLabels list feedback labels.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListFeedbackLabelsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListFeedbackLabelsRequest.
}
it := c.ListFeedbackLabels(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*contactcenterinsightspb.ListFeedbackLabelsResponse)
}
}
Example (All) ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListFeedbackLabelsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListFeedbackLabelsRequest.
}
for resp, err := range c.ListFeedbackLabels(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListIssueModels ¶
func (c *Client) ListIssueModels(ctx context.Context, req *contactcenterinsightspb.ListIssueModelsRequest, opts ...gax.CallOption) (*contactcenterinsightspb.ListIssueModelsResponse, error)
ListIssueModels lists issue models.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListIssueModelsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListIssueModelsRequest.
}
resp, err := c.ListIssueModels(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) ListIssues ¶
func (c *Client) ListIssues(ctx context.Context, req *contactcenterinsightspb.ListIssuesRequest, opts ...gax.CallOption) (*contactcenterinsightspb.ListIssuesResponse, error)
ListIssues lists issues.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListIssuesRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListIssuesRequest.
}
resp, err := c.ListIssues(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) ListOperations ¶ added in v1.2.1
func (c *Client) ListOperations(ctx context.Context, req *longrunningpb.ListOperationsRequest, opts ...gax.CallOption) *OperationIterator
ListOperations is a utility method from google.longrunning.Operations.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
it := c.ListOperations(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*longrunningpb.ListOperationsResponse)
}
}
Example (All) ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &longrunningpb.ListOperationsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/longrunning/autogen/longrunningpb#ListOperationsRequest.
}
for resp, err := range c.ListOperations(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListPhraseMatchers ¶
func (c *Client) ListPhraseMatchers(ctx context.Context, req *contactcenterinsightspb.ListPhraseMatchersRequest, opts ...gax.CallOption) *PhraseMatcherIterator
ListPhraseMatchers lists phrase matchers.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListPhraseMatchersRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListPhraseMatchersRequest.
}
it := c.ListPhraseMatchers(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*contactcenterinsightspb.ListPhraseMatchersResponse)
}
}
Example (All) ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListPhraseMatchersRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListPhraseMatchersRequest.
}
for resp, err := range c.ListPhraseMatchers(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListQaQuestions ¶ added in v1.16.0
func (c *Client) ListQaQuestions(ctx context.Context, req *contactcenterinsightspb.ListQaQuestionsRequest, opts ...gax.CallOption) *QaQuestionIterator
ListQaQuestions lists QaQuestions.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListQaQuestionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListQaQuestionsRequest.
}
it := c.ListQaQuestions(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*contactcenterinsightspb.ListQaQuestionsResponse)
}
}
Example (All) ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListQaQuestionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListQaQuestionsRequest.
}
for resp, err := range c.ListQaQuestions(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListQaScorecardRevisions ¶ added in v1.16.0
func (c *Client) ListQaScorecardRevisions(ctx context.Context, req *contactcenterinsightspb.ListQaScorecardRevisionsRequest, opts ...gax.CallOption) *QaScorecardRevisionIterator
ListQaScorecardRevisions lists all revisions under the parent QaScorecard.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListQaScorecardRevisionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListQaScorecardRevisionsRequest.
}
it := c.ListQaScorecardRevisions(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*contactcenterinsightspb.ListQaScorecardRevisionsResponse)
}
}
Example (All) ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListQaScorecardRevisionsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListQaScorecardRevisionsRequest.
}
for resp, err := range c.ListQaScorecardRevisions(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListQaScorecards ¶ added in v1.16.0
func (c *Client) ListQaScorecards(ctx context.Context, req *contactcenterinsightspb.ListQaScorecardsRequest, opts ...gax.CallOption) *QaScorecardIterator
ListQaScorecards lists QaScorecards.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListQaScorecardsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListQaScorecardsRequest.
}
it := c.ListQaScorecards(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*contactcenterinsightspb.ListQaScorecardsResponse)
}
}
Example (All) ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListQaScorecardsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListQaScorecardsRequest.
}
for resp, err := range c.ListQaScorecards(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) ListViews ¶ added in v1.0.0
func (c *Client) ListViews(ctx context.Context, req *contactcenterinsightspb.ListViewsRequest, opts ...gax.CallOption) *ViewIterator
ListViews lists views.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
"google.golang.org/api/iterator"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListViewsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListViewsRequest.
}
it := c.ListViews(ctx, req)
for {
resp, err := it.Next()
if err == iterator.Done {
break
}
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
// If you need to access the underlying RPC response,
// you can do so by casting the `Response` as below.
// Otherwise, remove this line. Only populated after
// first call to Next(). Not safe for concurrent access.
_ = it.Response.(*contactcenterinsightspb.ListViewsResponse)
}
}
Example (All) ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.ListViewsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#ListViewsRequest.
}
for resp, err := range c.ListViews(ctx, req).All() {
if err != nil {
// TODO: Handle error and break/return/continue. Iteration will stop after any error.
}
// TODO: Use resp.
_ = resp
}
}
func (*Client) QueryMetrics ¶ added in v1.16.0
func (c *Client) QueryMetrics(ctx context.Context, req *contactcenterinsightspb.QueryMetricsRequest, opts ...gax.CallOption) (*QueryMetricsOperation, error)
QueryMetrics query metrics.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.QueryMetricsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#QueryMetricsRequest.
}
op, err := c.QueryMetrics(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) QueryMetricsOperation ¶ added in v1.16.0
func (c *Client) QueryMetricsOperation(name string) *QueryMetricsOperation
QueryMetricsOperation returns a new QueryMetricsOperation from a given name. The name must be that of a previously created QueryMetricsOperation, possibly from a different process.
func (*Client) TuneQaScorecardRevision ¶ added in v1.16.0
func (c *Client) TuneQaScorecardRevision(ctx context.Context, req *contactcenterinsightspb.TuneQaScorecardRevisionRequest, opts ...gax.CallOption) (*TuneQaScorecardRevisionOperation, error)
TuneQaScorecardRevision fine tune one or more QaModels.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.TuneQaScorecardRevisionRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#TuneQaScorecardRevisionRequest.
}
op, err := c.TuneQaScorecardRevision(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) TuneQaScorecardRevisionOperation ¶ added in v1.16.0
func (c *Client) TuneQaScorecardRevisionOperation(name string) *TuneQaScorecardRevisionOperation
TuneQaScorecardRevisionOperation returns a new TuneQaScorecardRevisionOperation from a given name. The name must be that of a previously created TuneQaScorecardRevisionOperation, possibly from a different process.
func (*Client) UndeployIssueModel ¶
func (c *Client) UndeployIssueModel(ctx context.Context, req *contactcenterinsightspb.UndeployIssueModelRequest, opts ...gax.CallOption) (*UndeployIssueModelOperation, error)
UndeployIssueModel undeploys an issue model. An issue model can not be used in analysis after it has been undeployed.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.UndeployIssueModelRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#UndeployIssueModelRequest.
}
op, err := c.UndeployIssueModel(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UndeployIssueModelOperation ¶
func (c *Client) UndeployIssueModelOperation(name string) *UndeployIssueModelOperation
UndeployIssueModelOperation returns a new UndeployIssueModelOperation from a given name. The name must be that of a previously created UndeployIssueModelOperation, possibly from a different process.
func (*Client) UndeployQaScorecardRevision ¶ added in v1.16.0
func (c *Client) UndeployQaScorecardRevision(ctx context.Context, req *contactcenterinsightspb.UndeployQaScorecardRevisionRequest, opts ...gax.CallOption) (*contactcenterinsightspb.QaScorecardRevision, error)
UndeployQaScorecardRevision undeploy a QaScorecardRevision.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.UndeployQaScorecardRevisionRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#UndeployQaScorecardRevisionRequest.
}
resp, err := c.UndeployQaScorecardRevision(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateAnalysisRule ¶ added in v1.16.0
func (c *Client) UpdateAnalysisRule(ctx context.Context, req *contactcenterinsightspb.UpdateAnalysisRuleRequest, opts ...gax.CallOption) (*contactcenterinsightspb.AnalysisRule, error)
UpdateAnalysisRule updates a analysis rule.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.UpdateAnalysisRuleRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#UpdateAnalysisRuleRequest.
}
resp, err := c.UpdateAnalysisRule(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateConversation ¶
func (c *Client) UpdateConversation(ctx context.Context, req *contactcenterinsightspb.UpdateConversationRequest, opts ...gax.CallOption) (*contactcenterinsightspb.Conversation, error)
UpdateConversation updates a conversation.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.UpdateConversationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#UpdateConversationRequest.
}
resp, err := c.UpdateConversation(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateFeedbackLabel ¶ added in v1.16.0
func (c *Client) UpdateFeedbackLabel(ctx context.Context, req *contactcenterinsightspb.UpdateFeedbackLabelRequest, opts ...gax.CallOption) (*contactcenterinsightspb.FeedbackLabel, error)
UpdateFeedbackLabel update feedback label.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.UpdateFeedbackLabelRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#UpdateFeedbackLabelRequest.
}
resp, err := c.UpdateFeedbackLabel(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateIssue ¶
func (c *Client) UpdateIssue(ctx context.Context, req *contactcenterinsightspb.UpdateIssueRequest, opts ...gax.CallOption) (*contactcenterinsightspb.Issue, error)
UpdateIssue updates an issue.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.UpdateIssueRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#UpdateIssueRequest.
}
resp, err := c.UpdateIssue(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateIssueModel ¶
func (c *Client) UpdateIssueModel(ctx context.Context, req *contactcenterinsightspb.UpdateIssueModelRequest, opts ...gax.CallOption) (*contactcenterinsightspb.IssueModel, error)
UpdateIssueModel updates an issue model.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.UpdateIssueModelRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#UpdateIssueModelRequest.
}
resp, err := c.UpdateIssueModel(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdatePhraseMatcher ¶ added in v0.4.0
func (c *Client) UpdatePhraseMatcher(ctx context.Context, req *contactcenterinsightspb.UpdatePhraseMatcherRequest, opts ...gax.CallOption) (*contactcenterinsightspb.PhraseMatcher, error)
UpdatePhraseMatcher updates a phrase matcher.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.UpdatePhraseMatcherRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#UpdatePhraseMatcherRequest.
}
resp, err := c.UpdatePhraseMatcher(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateQaQuestion ¶ added in v1.16.0
func (c *Client) UpdateQaQuestion(ctx context.Context, req *contactcenterinsightspb.UpdateQaQuestionRequest, opts ...gax.CallOption) (*contactcenterinsightspb.QaQuestion, error)
UpdateQaQuestion updates a QaQuestion.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.UpdateQaQuestionRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#UpdateQaQuestionRequest.
}
resp, err := c.UpdateQaQuestion(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateQaScorecard ¶ added in v1.16.0
func (c *Client) UpdateQaScorecard(ctx context.Context, req *contactcenterinsightspb.UpdateQaScorecardRequest, opts ...gax.CallOption) (*contactcenterinsightspb.QaScorecard, error)
UpdateQaScorecard updates a QaScorecard.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.UpdateQaScorecardRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#UpdateQaScorecardRequest.
}
resp, err := c.UpdateQaScorecard(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateSettings ¶
func (c *Client) UpdateSettings(ctx context.Context, req *contactcenterinsightspb.UpdateSettingsRequest, opts ...gax.CallOption) (*contactcenterinsightspb.Settings, error)
UpdateSettings updates project-level settings.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.UpdateSettingsRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#UpdateSettingsRequest.
}
resp, err := c.UpdateSettings(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UpdateView ¶ added in v1.0.0
func (c *Client) UpdateView(ctx context.Context, req *contactcenterinsightspb.UpdateViewRequest, opts ...gax.CallOption) (*contactcenterinsightspb.View, error)
UpdateView updates a view.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.UpdateViewRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#UpdateViewRequest.
}
resp, err := c.UpdateView(ctx, req)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UploadConversation ¶ added in v1.7.0
func (c *Client) UploadConversation(ctx context.Context, req *contactcenterinsightspb.UploadConversationRequest, opts ...gax.CallOption) (*UploadConversationOperation, error)
UploadConversation create a long-running conversation upload operation. This method differs from CreateConversation by allowing audio transcription and optional DLP redaction.
Example ¶
package main
import (
"context"
contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1"
contactcenterinsightspb "cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb"
)
func main() {
ctx := context.Background()
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in:
// https://pkg.go.dev/cloud.google.com/go#hdr-Client_Options
c, err := contactcenterinsights.NewClient(ctx)
if err != nil {
// TODO: Handle error.
}
defer c.Close()
req := &contactcenterinsightspb.UploadConversationRequest{
// TODO: Fill request struct fields.
// See https://pkg.go.dev/cloud.google.com/go/contactcenterinsights/apiv1/contactcenterinsightspb#UploadConversationRequest.
}
op, err := c.UploadConversation(ctx, req)
if err != nil {
// TODO: Handle error.
}
resp, err := op.Wait(ctx)
if err != nil {
// TODO: Handle error.
}
// TODO: Use resp.
_ = resp
}
func (*Client) UploadConversationOperation ¶ added in v1.7.0
func (c *Client) UploadConversationOperation(name string) *UploadConversationOperation
UploadConversationOperation returns a new UploadConversationOperation from a given name. The name must be that of a previously created UploadConversationOperation, possibly from a different process.
type ConversationIterator ¶
type ConversationIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*contactcenterinsightspb.Conversation, nextPageToken string, err error)
// contains filtered or unexported fields
}
ConversationIterator manages a stream of *contactcenterinsightspb.Conversation.
func (*ConversationIterator) All ¶ added in v1.14.1
func (it *ConversationIterator) All() iter.Seq2[*contactcenterinsightspb.Conversation, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ConversationIterator) Next ¶
func (it *ConversationIterator) Next() (*contactcenterinsightspb.Conversation, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*ConversationIterator) PageInfo ¶
func (it *ConversationIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type CreateAnalysisOperation ¶
type CreateAnalysisOperation struct {
// contains filtered or unexported fields
}
CreateAnalysisOperation manages a long-running operation from CreateAnalysis.
func (*CreateAnalysisOperation) Done ¶
func (op *CreateAnalysisOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateAnalysisOperation) Metadata ¶
func (op *CreateAnalysisOperation) Metadata() (*contactcenterinsightspb.CreateAnalysisOperationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateAnalysisOperation) Name ¶
func (op *CreateAnalysisOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateAnalysisOperation) Poll ¶
func (op *CreateAnalysisOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.Analysis, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateAnalysisOperation) Wait ¶
func (op *CreateAnalysisOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.Analysis, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type CreateIssueModelOperation ¶
type CreateIssueModelOperation struct {
// contains filtered or unexported fields
}
CreateIssueModelOperation manages a long-running operation from CreateIssueModel.
func (*CreateIssueModelOperation) Done ¶
func (op *CreateIssueModelOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*CreateIssueModelOperation) Metadata ¶
func (op *CreateIssueModelOperation) Metadata() (*contactcenterinsightspb.CreateIssueModelMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*CreateIssueModelOperation) Name ¶
func (op *CreateIssueModelOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*CreateIssueModelOperation) Poll ¶
func (op *CreateIssueModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.IssueModel, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*CreateIssueModelOperation) Wait ¶
func (op *CreateIssueModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.IssueModel, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeleteIssueModelOperation ¶
type DeleteIssueModelOperation struct {
// contains filtered or unexported fields
}
DeleteIssueModelOperation manages a long-running operation from DeleteIssueModel.
func (*DeleteIssueModelOperation) Done ¶
func (op *DeleteIssueModelOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeleteIssueModelOperation) Metadata ¶
func (op *DeleteIssueModelOperation) Metadata() (*contactcenterinsightspb.DeleteIssueModelMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeleteIssueModelOperation) Name ¶
func (op *DeleteIssueModelOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeleteIssueModelOperation) Poll ¶
func (op *DeleteIssueModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) error
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeleteIssueModelOperation) Wait ¶
func (op *DeleteIssueModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) error
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type DeployIssueModelOperation ¶
type DeployIssueModelOperation struct {
// contains filtered or unexported fields
}
DeployIssueModelOperation manages a long-running operation from DeployIssueModel.
func (*DeployIssueModelOperation) Done ¶
func (op *DeployIssueModelOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*DeployIssueModelOperation) Metadata ¶
func (op *DeployIssueModelOperation) Metadata() (*contactcenterinsightspb.DeployIssueModelMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*DeployIssueModelOperation) Name ¶
func (op *DeployIssueModelOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*DeployIssueModelOperation) Poll ¶
func (op *DeployIssueModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.DeployIssueModelResponse, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*DeployIssueModelOperation) Wait ¶
func (op *DeployIssueModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.DeployIssueModelResponse, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type ExportInsightsDataOperation ¶
type ExportInsightsDataOperation struct {
// contains filtered or unexported fields
}
ExportInsightsDataOperation manages a long-running operation from ExportInsightsData.
func (*ExportInsightsDataOperation) Done ¶
func (op *ExportInsightsDataOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*ExportInsightsDataOperation) Metadata ¶
func (op *ExportInsightsDataOperation) Metadata() (*contactcenterinsightspb.ExportInsightsDataMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*ExportInsightsDataOperation) Name ¶
func (op *ExportInsightsDataOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*ExportInsightsDataOperation) Poll ¶
func (op *ExportInsightsDataOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.ExportInsightsDataResponse, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*ExportInsightsDataOperation) Wait ¶
func (op *ExportInsightsDataOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.ExportInsightsDataResponse, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type ExportIssueModelOperation ¶ added in v1.15.0
type ExportIssueModelOperation struct {
// contains filtered or unexported fields
}
ExportIssueModelOperation manages a long-running operation from ExportIssueModel.
func (*ExportIssueModelOperation) Done ¶ added in v1.15.0
func (op *ExportIssueModelOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*ExportIssueModelOperation) Metadata ¶ added in v1.15.0
func (op *ExportIssueModelOperation) Metadata() (*contactcenterinsightspb.ExportIssueModelMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*ExportIssueModelOperation) Name ¶ added in v1.15.0
func (op *ExportIssueModelOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*ExportIssueModelOperation) Poll ¶ added in v1.15.0
func (op *ExportIssueModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.ExportIssueModelResponse, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*ExportIssueModelOperation) Wait ¶ added in v1.15.0
func (op *ExportIssueModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.ExportIssueModelResponse, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type FeedbackLabelIterator ¶ added in v1.16.0
type FeedbackLabelIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*contactcenterinsightspb.FeedbackLabel, nextPageToken string, err error)
// contains filtered or unexported fields
}
FeedbackLabelIterator manages a stream of *contactcenterinsightspb.FeedbackLabel.
func (*FeedbackLabelIterator) All ¶ added in v1.16.0
func (it *FeedbackLabelIterator) All() iter.Seq2[*contactcenterinsightspb.FeedbackLabel, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*FeedbackLabelIterator) Next ¶ added in v1.16.0
func (it *FeedbackLabelIterator) Next() (*contactcenterinsightspb.FeedbackLabel, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*FeedbackLabelIterator) PageInfo ¶ added in v1.16.0
func (it *FeedbackLabelIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type ImportIssueModelOperation ¶ added in v1.15.0
type ImportIssueModelOperation struct {
// contains filtered or unexported fields
}
ImportIssueModelOperation manages a long-running operation from ImportIssueModel.
func (*ImportIssueModelOperation) Done ¶ added in v1.15.0
func (op *ImportIssueModelOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*ImportIssueModelOperation) Metadata ¶ added in v1.15.0
func (op *ImportIssueModelOperation) Metadata() (*contactcenterinsightspb.ImportIssueModelMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*ImportIssueModelOperation) Name ¶ added in v1.15.0
func (op *ImportIssueModelOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*ImportIssueModelOperation) Poll ¶ added in v1.15.0
func (op *ImportIssueModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.ImportIssueModelResponse, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*ImportIssueModelOperation) Wait ¶ added in v1.15.0
func (op *ImportIssueModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.ImportIssueModelResponse, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type IngestConversationsOperation ¶ added in v1.5.0
type IngestConversationsOperation struct {
// contains filtered or unexported fields
}
IngestConversationsOperation manages a long-running operation from IngestConversations.
func (*IngestConversationsOperation) Done ¶ added in v1.5.0
func (op *IngestConversationsOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*IngestConversationsOperation) Metadata ¶ added in v1.5.0
func (op *IngestConversationsOperation) Metadata() (*contactcenterinsightspb.IngestConversationsMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*IngestConversationsOperation) Name ¶ added in v1.5.0
func (op *IngestConversationsOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*IngestConversationsOperation) Poll ¶ added in v1.5.0
func (op *IngestConversationsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.IngestConversationsResponse, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*IngestConversationsOperation) Wait ¶ added in v1.5.0
func (op *IngestConversationsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.IngestConversationsResponse, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type InitializeEncryptionSpecOperation ¶ added in v1.15.0
type InitializeEncryptionSpecOperation struct {
// contains filtered or unexported fields
}
InitializeEncryptionSpecOperation manages a long-running operation from InitializeEncryptionSpec.
func (*InitializeEncryptionSpecOperation) Done ¶ added in v1.15.0
func (op *InitializeEncryptionSpecOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*InitializeEncryptionSpecOperation) Metadata ¶ added in v1.15.0
func (op *InitializeEncryptionSpecOperation) Metadata() (*contactcenterinsightspb.InitializeEncryptionSpecMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*InitializeEncryptionSpecOperation) Name ¶ added in v1.15.0
func (op *InitializeEncryptionSpecOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*InitializeEncryptionSpecOperation) Poll ¶ added in v1.15.0
func (op *InitializeEncryptionSpecOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.InitializeEncryptionSpecResponse, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*InitializeEncryptionSpecOperation) Wait ¶ added in v1.15.0
func (op *InitializeEncryptionSpecOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.InitializeEncryptionSpecResponse, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type OperationIterator ¶ added in v1.2.1
type OperationIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*longrunningpb.Operation, nextPageToken string, err error)
// contains filtered or unexported fields
}
OperationIterator manages a stream of *longrunningpb.Operation.
func (*OperationIterator) All ¶ added in v1.14.1
func (it *OperationIterator) All() iter.Seq2[*longrunningpb.Operation, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*OperationIterator) Next ¶ added in v1.2.1
func (it *OperationIterator) Next() (*longrunningpb.Operation, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*OperationIterator) PageInfo ¶ added in v1.2.1
func (it *OperationIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type PhraseMatcherIterator ¶
type PhraseMatcherIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*contactcenterinsightspb.PhraseMatcher, nextPageToken string, err error)
// contains filtered or unexported fields
}
PhraseMatcherIterator manages a stream of *contactcenterinsightspb.PhraseMatcher.
func (*PhraseMatcherIterator) All ¶ added in v1.14.1
func (it *PhraseMatcherIterator) All() iter.Seq2[*contactcenterinsightspb.PhraseMatcher, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*PhraseMatcherIterator) Next ¶
func (it *PhraseMatcherIterator) Next() (*contactcenterinsightspb.PhraseMatcher, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*PhraseMatcherIterator) PageInfo ¶
func (it *PhraseMatcherIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type QaQuestionIterator ¶ added in v1.16.0
type QaQuestionIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*contactcenterinsightspb.QaQuestion, nextPageToken string, err error)
// contains filtered or unexported fields
}
QaQuestionIterator manages a stream of *contactcenterinsightspb.QaQuestion.
func (*QaQuestionIterator) All ¶ added in v1.16.0
func (it *QaQuestionIterator) All() iter.Seq2[*contactcenterinsightspb.QaQuestion, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*QaQuestionIterator) Next ¶ added in v1.16.0
func (it *QaQuestionIterator) Next() (*contactcenterinsightspb.QaQuestion, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*QaQuestionIterator) PageInfo ¶ added in v1.16.0
func (it *QaQuestionIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type QaScorecardIterator ¶ added in v1.16.0
type QaScorecardIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*contactcenterinsightspb.QaScorecard, nextPageToken string, err error)
// contains filtered or unexported fields
}
QaScorecardIterator manages a stream of *contactcenterinsightspb.QaScorecard.
func (*QaScorecardIterator) All ¶ added in v1.16.0
func (it *QaScorecardIterator) All() iter.Seq2[*contactcenterinsightspb.QaScorecard, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*QaScorecardIterator) Next ¶ added in v1.16.0
func (it *QaScorecardIterator) Next() (*contactcenterinsightspb.QaScorecard, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*QaScorecardIterator) PageInfo ¶ added in v1.16.0
func (it *QaScorecardIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type QaScorecardRevisionIterator ¶ added in v1.16.0
type QaScorecardRevisionIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*contactcenterinsightspb.QaScorecardRevision, nextPageToken string, err error)
// contains filtered or unexported fields
}
QaScorecardRevisionIterator manages a stream of *contactcenterinsightspb.QaScorecardRevision.
func (*QaScorecardRevisionIterator) All ¶ added in v1.16.0
func (it *QaScorecardRevisionIterator) All() iter.Seq2[*contactcenterinsightspb.QaScorecardRevision, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*QaScorecardRevisionIterator) Next ¶ added in v1.16.0
func (it *QaScorecardRevisionIterator) Next() (*contactcenterinsightspb.QaScorecardRevision, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*QaScorecardRevisionIterator) PageInfo ¶ added in v1.16.0
func (it *QaScorecardRevisionIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.
type QueryMetricsOperation ¶ added in v1.16.0
type QueryMetricsOperation struct {
// contains filtered or unexported fields
}
QueryMetricsOperation manages a long-running operation from QueryMetrics.
func (*QueryMetricsOperation) Done ¶ added in v1.16.0
func (op *QueryMetricsOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*QueryMetricsOperation) Metadata ¶ added in v1.16.0
func (op *QueryMetricsOperation) Metadata() (*contactcenterinsightspb.QueryMetricsMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*QueryMetricsOperation) Name ¶ added in v1.16.0
func (op *QueryMetricsOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*QueryMetricsOperation) Poll ¶ added in v1.16.0
func (op *QueryMetricsOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.QueryMetricsResponse, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*QueryMetricsOperation) Wait ¶ added in v1.16.0
func (op *QueryMetricsOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.QueryMetricsResponse, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type TuneQaScorecardRevisionOperation ¶ added in v1.16.0
type TuneQaScorecardRevisionOperation struct {
// contains filtered or unexported fields
}
TuneQaScorecardRevisionOperation manages a long-running operation from TuneQaScorecardRevision.
func (*TuneQaScorecardRevisionOperation) Done ¶ added in v1.16.0
func (op *TuneQaScorecardRevisionOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*TuneQaScorecardRevisionOperation) Metadata ¶ added in v1.16.0
func (op *TuneQaScorecardRevisionOperation) Metadata() (*contactcenterinsightspb.TuneQaScorecardRevisionMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*TuneQaScorecardRevisionOperation) Name ¶ added in v1.16.0
func (op *TuneQaScorecardRevisionOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*TuneQaScorecardRevisionOperation) Poll ¶ added in v1.16.0
func (op *TuneQaScorecardRevisionOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.TuneQaScorecardRevisionResponse, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*TuneQaScorecardRevisionOperation) Wait ¶ added in v1.16.0
func (op *TuneQaScorecardRevisionOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.TuneQaScorecardRevisionResponse, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UndeployIssueModelOperation ¶
type UndeployIssueModelOperation struct {
// contains filtered or unexported fields
}
UndeployIssueModelOperation manages a long-running operation from UndeployIssueModel.
func (*UndeployIssueModelOperation) Done ¶
func (op *UndeployIssueModelOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UndeployIssueModelOperation) Metadata ¶
func (op *UndeployIssueModelOperation) Metadata() (*contactcenterinsightspb.UndeployIssueModelMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UndeployIssueModelOperation) Name ¶
func (op *UndeployIssueModelOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UndeployIssueModelOperation) Poll ¶
func (op *UndeployIssueModelOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.UndeployIssueModelResponse, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UndeployIssueModelOperation) Wait ¶
func (op *UndeployIssueModelOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.UndeployIssueModelResponse, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type UploadConversationOperation ¶ added in v1.7.0
type UploadConversationOperation struct {
// contains filtered or unexported fields
}
UploadConversationOperation manages a long-running operation from UploadConversation.
func (*UploadConversationOperation) Done ¶ added in v1.7.0
func (op *UploadConversationOperation) Done() bool
Done reports whether the long-running operation has completed.
func (*UploadConversationOperation) Metadata ¶ added in v1.7.0
func (op *UploadConversationOperation) Metadata() (*contactcenterinsightspb.UploadConversationMetadata, error)
Metadata returns metadata associated with the long-running operation. Metadata itself does not contact the server, but Poll does. To get the latest metadata, call this method after a successful call to Poll. If the metadata is not available, the returned metadata and error are both nil.
func (*UploadConversationOperation) Name ¶ added in v1.7.0
func (op *UploadConversationOperation) Name() string
Name returns the name of the long-running operation. The name is assigned by the server and is unique within the service from which the operation is created.
func (*UploadConversationOperation) Poll ¶ added in v1.7.0
func (op *UploadConversationOperation) Poll(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.Conversation, error)
Poll fetches the latest state of the long-running operation.
Poll also fetches the latest metadata, which can be retrieved by Metadata.
If Poll fails, the error is returned and op is unmodified. If Poll succeeds and the operation has completed with failure, the error is returned and op.Done will return true. If Poll succeeds and the operation has completed successfully, op.Done will return true, and the response of the operation is returned. If Poll succeeds and the operation has not completed, the returned response and error are both nil.
func (*UploadConversationOperation) Wait ¶ added in v1.7.0
func (op *UploadConversationOperation) Wait(ctx context.Context, opts ...gax.CallOption) (*contactcenterinsightspb.Conversation, error)
Wait blocks until the long-running operation is completed, returning the response and any errors encountered.
See documentation of Poll for error-handling information.
type ViewIterator ¶ added in v1.0.0
type ViewIterator struct {
// Response is the raw response for the current page.
// It must be cast to the RPC response type.
// Calling Next() or InternalFetch() updates this value.
Response interface{}
// InternalFetch is for use by the Google Cloud Libraries only.
// It is not part of the stable interface of this package.
//
// InternalFetch returns results from a single call to the underlying RPC.
// The number of results is no greater than pageSize.
// If there are no more results, nextPageToken is empty and err is nil.
InternalFetch func(pageSize int, pageToken string) (results []*contactcenterinsightspb.View, nextPageToken string, err error)
// contains filtered or unexported fields
}
ViewIterator manages a stream of *contactcenterinsightspb.View.
func (*ViewIterator) All ¶ added in v1.14.1
func (it *ViewIterator) All() iter.Seq2[*contactcenterinsightspb.View, error]
All returns an iterator. If an error is returned by the iterator, the iterator will stop after that iteration.
func (*ViewIterator) Next ¶ added in v1.0.0
func (it *ViewIterator) Next() (*contactcenterinsightspb.View, error)
Next returns the next result. Its second return value is iterator.Done if there are no more results. Once Next returns Done, all subsequent calls will return Done.
func (*ViewIterator) PageInfo ¶ added in v1.0.0
func (it *ViewIterator) PageInfo() *iterator.PageInfo
PageInfo supports pagination. See the google.golang.org/api/iterator package for details.