Documentation ¶
Overview ¶
Package contactcenterinsights is an auto-generated package for the Contact Center AI Insights API.
NOTE: This package is in beta. It is not stable, and may be subject to changes.
Example usage ¶
To get started with this package, create a client.
ctx := context.Background() 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.
ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#CreateConversationRequest. } resp, err := c.CreateConversation(ctx, req) 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.
For information about setting deadlines, reusing contexts, and more please visit https://pkg.go.dev/cloud.google.com/go.
Index ¶
- func DefaultAuthScopes() []string
- type AnalysisIterator
- type CallOptions
- type Client
- 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) Close() error
- func (c *Client) Connection() *grpc.ClientConn
- func (c *Client) CreateAnalysis(ctx context.Context, req *contactcenterinsightspb.CreateAnalysisRequest, ...) (*CreateAnalysisOperation, error)
- func (c *Client) CreateAnalysisOperation(name string) *CreateAnalysisOperation
- func (c *Client) CreateConversation(ctx context.Context, req *contactcenterinsightspb.CreateConversationRequest, ...) (*contactcenterinsightspb.Conversation, 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) DeleteAnalysis(ctx context.Context, req *contactcenterinsightspb.DeleteAnalysisRequest, ...) error
- func (c *Client) DeleteConversation(ctx context.Context, req *contactcenterinsightspb.DeleteConversationRequest, ...) 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) DeployIssueModel(ctx context.Context, req *contactcenterinsightspb.DeployIssueModelRequest, ...) (*DeployIssueModelOperation, error)
- func (c *Client) DeployIssueModelOperation(name string) *DeployIssueModelOperation
- func (c *Client) ExportInsightsData(ctx context.Context, req *contactcenterinsightspb.ExportInsightsDataRequest, ...) (*ExportInsightsDataOperation, error)
- func (c *Client) ExportInsightsDataOperation(name string) *ExportInsightsDataOperation
- func (c *Client) GetAnalysis(ctx context.Context, req *contactcenterinsightspb.GetAnalysisRequest, ...) (*contactcenterinsightspb.Analysis, error)
- func (c *Client) GetConversation(ctx context.Context, req *contactcenterinsightspb.GetConversationRequest, ...) (*contactcenterinsightspb.Conversation, 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) GetPhraseMatcher(ctx context.Context, req *contactcenterinsightspb.GetPhraseMatcherRequest, ...) (*contactcenterinsightspb.PhraseMatcher, error)
- func (c *Client) GetSettings(ctx context.Context, req *contactcenterinsightspb.GetSettingsRequest, ...) (*contactcenterinsightspb.Settings, error)
- func (c *Client) ListAnalyses(ctx context.Context, req *contactcenterinsightspb.ListAnalysesRequest, ...) *AnalysisIterator
- func (c *Client) ListConversations(ctx context.Context, req *contactcenterinsightspb.ListConversationsRequest, ...) *ConversationIterator
- 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) ListPhraseMatchers(ctx context.Context, req *contactcenterinsightspb.ListPhraseMatchersRequest, ...) *PhraseMatcherIterator
- func (c *Client) UndeployIssueModel(ctx context.Context, req *contactcenterinsightspb.UndeployIssueModelRequest, ...) (*UndeployIssueModelOperation, error)
- func (c *Client) UndeployIssueModelOperation(name string) *UndeployIssueModelOperation
- func (c *Client) UpdateConversation(ctx context.Context, req *contactcenterinsightspb.UpdateConversationRequest, ...) (*contactcenterinsightspb.Conversation, 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) UpdateSettings(ctx context.Context, req *contactcenterinsightspb.UpdateSettingsRequest, ...) (*contactcenterinsightspb.Settings, error)
- 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 PhraseMatcherIterator
- 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)
Examples ¶
- Client.CalculateIssueModelStats
- Client.CalculateStats
- Client.CreateAnalysis
- Client.CreateConversation
- Client.CreateIssueModel
- Client.CreatePhraseMatcher
- Client.DeleteAnalysis
- Client.DeleteConversation
- Client.DeleteIssueModel
- Client.DeletePhraseMatcher
- Client.DeployIssueModel
- Client.ExportInsightsData
- Client.GetAnalysis
- Client.GetConversation
- Client.GetIssue
- Client.GetIssueModel
- Client.GetPhraseMatcher
- Client.GetSettings
- Client.ListAnalyses
- Client.ListConversations
- Client.ListIssueModels
- Client.ListIssues
- Client.ListPhraseMatchers
- Client.UndeployIssueModel
- Client.UpdateConversation
- Client.UpdateIssue
- Client.UpdateIssueModel
- Client.UpdatePhraseMatcher
- Client.UpdateSettings
- NewClient
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) 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 CallOptions ¶
type CallOptions struct { CreateConversation []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 ExportInsightsData []gax.CallOption CreateIssueModel []gax.CallOption UpdateIssueModel []gax.CallOption GetIssueModel []gax.CallOption ListIssueModels []gax.CallOption DeleteIssueModel []gax.CallOption DeployIssueModel []gax.CallOption UndeployIssueModel []gax.CallOption GetIssue []gax.CallOption ListIssues []gax.CallOption UpdateIssue []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 }
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() c, err := contactcenterinsights.NewClient(ctx) if err != nil { // TODO: Handle error. } defer c.Close() // TODO: Use client. _ = c }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#CalculateIssueModelStatsRequest. } resp, err := c.CalculateIssueModelStats(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#CalculateStatsRequest. } resp, err := c.CalculateStats(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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 ¶
func (c *Client) Connection() *grpc.ClientConn
Connection returns a connection to the API service.
Deprecated.
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#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 }
Output:
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) CreateConversation ¶
func (c *Client) CreateConversation(ctx context.Context, req *contactcenterinsightspb.CreateConversationRequest, opts ...gax.CallOption) (*contactcenterinsightspb.Conversation, error)
CreateConversation creates a conversation.
Example ¶
package main import ( "context" contactcenterinsights "cloud.google.com/go/contactcenterinsights/apiv1" contactcenterinsightspb "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#CreateConversationRequest. } resp, err := c.CreateConversation(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#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 }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#CreatePhraseMatcherRequest. } resp, err := c.CreatePhraseMatcher(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#DeleteAnalysisRequest. } err = c.DeleteAnalysis(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#DeleteConversationRequest. } err = c.DeleteConversation(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#DeleteIssueModelRequest. } op, err := c.DeleteIssueModel(ctx, req) if err != nil { // TODO: Handle error. } err = op.Wait(ctx) if err != nil { // TODO: Handle error. } }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#DeletePhraseMatcherRequest. } err = c.DeletePhraseMatcher(ctx, req) if err != nil { // TODO: Handle error. } }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#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 }
Output:
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) 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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#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 }
Output:
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) 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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#GetAnalysisRequest. } resp, err := c.GetAnalysis(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#GetConversationRequest. } resp, err := c.GetConversation(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#GetIssueRequest. } resp, err := c.GetIssue(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#GetIssueModelRequest. } resp, err := c.GetIssueModel(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#GetPhraseMatcherRequest. } resp, err := c.GetPhraseMatcher(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#GetSettingsRequest. } resp, err := c.GetSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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" "google.golang.org/api/iterator" contactcenterinsightspb "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#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 } }
Output:
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" "google.golang.org/api/iterator" contactcenterinsightspb "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#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 } }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#ListIssueModelsRequest. } resp, err := c.ListIssueModels(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#ListIssuesRequest. } resp, err := c.ListIssues(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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" "google.golang.org/api/iterator" contactcenterinsightspb "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#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 } }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#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 }
Output:
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) 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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#UpdateConversationRequest. } resp, err := c.UpdateConversation(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#UpdateIssueRequest. } resp, err := c.UpdateIssue(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#UpdateIssueModelRequest. } resp, err := c.UpdateIssueModel(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#UpdatePhraseMatcherRequest. } resp, err := c.UpdatePhraseMatcher(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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 "google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1" ) func main() { ctx := context.Background() 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/google.golang.org/genproto/googleapis/cloud/contactcenterinsights/v1#UpdateSettingsRequest. } resp, err := c.UpdateSettings(ctx, req) if err != nil { // TODO: Handle error. } // TODO: Use resp. _ = resp }
Output:
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) 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 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) 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 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.