Documentation

Overview

Package dialogflow is an auto-generated package for the Dialogflow API.

Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices).

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 pkg.go.dev/cloud.google.com/go.

Index

Examples

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 AgentIterator

    type AgentIterator 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 []*dialogflowpb.Agent, nextPageToken string, err error)
    	// contains filtered or unexported fields
    }

      AgentIterator manages a stream of *dialogflowpb.Agent.

      func (*AgentIterator) Next

      func (it *AgentIterator) Next() (*dialogflowpb.Agent, 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 (*AgentIterator) PageInfo

        func (it *AgentIterator) PageInfo() *iterator.PageInfo

          PageInfo supports pagination. See the google.golang.org/api/iterator package for details.

          type AgentsCallOptions

          type AgentsCallOptions struct {
          	GetAgent            []gax.CallOption
          	SetAgent            []gax.CallOption
          	DeleteAgent         []gax.CallOption
          	SearchAgents        []gax.CallOption
          	TrainAgent          []gax.CallOption
          	ExportAgent         []gax.CallOption
          	ImportAgent         []gax.CallOption
          	RestoreAgent        []gax.CallOption
          	GetValidationResult []gax.CallOption
          }

            AgentsCallOptions contains the retry settings for each method of AgentsClient.

            type AgentsClient

            type AgentsClient struct {
            
            	// LROClient is used internally to handle longrunning operations.
            	// It is exposed so that its CallOptions can be modified if required.
            	// Users should not Close this client.
            	LROClient *lroauto.OperationsClient
            
            	// The call options for this service.
            	CallOptions *AgentsCallOptions
            	// contains filtered or unexported fields
            }

              AgentsClient is a client for interacting with Dialogflow API.

              Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

              func NewAgentsClient

              func NewAgentsClient(ctx context.Context, opts ...option.ClientOption) (*AgentsClient, error)

                NewAgentsClient creates a new agents client.

                Service for managing Agents.

                Example
                Output:
                
                

                func (*AgentsClient) Close

                func (c *AgentsClient) Close() error

                  Close closes the connection to the API service. The user should invoke this when the client is no longer required.

                  func (*AgentsClient) Connection

                  func (c *AgentsClient) Connection() *grpc.ClientConn

                    Connection returns a connection to the API service.

                    Deprecated.

                    func (*AgentsClient) DeleteAgent

                    func (c *AgentsClient) DeleteAgent(ctx context.Context, req *dialogflowpb.DeleteAgentRequest, opts ...gax.CallOption) error

                      DeleteAgent deletes the specified agent.

                      Example
                      Output:
                      
                      

                      func (*AgentsClient) ExportAgent

                        ExportAgent exports the specified agent to a ZIP file.

                        Operation <response: ExportAgentResponse>

                        Example
                        Output:
                        
                        

                        func (*AgentsClient) ExportAgentOperation

                        func (c *AgentsClient) ExportAgentOperation(name string) *ExportAgentOperation

                          ExportAgentOperation returns a new ExportAgentOperation from a given name. The name must be that of a previously created ExportAgentOperation, possibly from a different process.

                          func (*AgentsClient) GetAgent

                            GetAgent retrieves the specified agent.

                            Example
                            Output:
                            
                            

                            func (*AgentsClient) GetValidationResult

                              GetValidationResult gets agent validation result. Agent validation is performed during training time and is updated automatically when training is completed.

                              Example
                              Output:
                              
                              

                              func (*AgentsClient) ImportAgent

                                ImportAgent imports the specified agent from a ZIP file.

                                Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the new versions from ImportAgentRequest. After the import, the imported draft agent will be trained automatically (unless disabled in agent settings). However, once the import is done, training may not be completed yet. Please call TrainAgent and wait for the operation it returns in order to train explicitly.

                                Operation <response: google.protobuf.Empty> An operation which tracks when importing is complete. It only tracks when the draft agent is updated not when it is done training.

                                Example
                                Output:
                                
                                

                                func (*AgentsClient) ImportAgentOperation

                                func (c *AgentsClient) ImportAgentOperation(name string) *ImportAgentOperation

                                  ImportAgentOperation returns a new ImportAgentOperation from a given name. The name must be that of a previously created ImportAgentOperation, possibly from a different process.

                                  func (*AgentsClient) RestoreAgent

                                    RestoreAgent restores the specified agent from a ZIP file.

                                    Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. After the restore, the restored draft agent will be trained automatically (unless disabled in agent settings). However, once the restore is done, training may not be completed yet. Please call TrainAgent and wait for the operation it returns in order to train explicitly.

                                    Operation <response: google.protobuf.Empty> An operation which tracks when restoring is complete. It only tracks when the draft agent is updated not when it is done training.

                                    Example
                                    Output:
                                    
                                    

                                    func (*AgentsClient) RestoreAgentOperation

                                    func (c *AgentsClient) RestoreAgentOperation(name string) *RestoreAgentOperation

                                      RestoreAgentOperation returns a new RestoreAgentOperation from a given name. The name must be that of a previously created RestoreAgentOperation, possibly from a different process.

                                      func (*AgentsClient) SearchAgents

                                        SearchAgents returns the list of agents.

                                        Since there is at most one conversational agent per project, this method is useful primarily for listing all agents across projects the caller has access to. One can achieve that with a wildcard project collection id “-”. Refer to List Sub-Collections (at https://cloud.google.com/apis/design/design_patterns#list_sub-collections).

                                        Example
                                        Output:
                                        
                                        

                                        func (*AgentsClient) SetAgent

                                          SetAgent creates/updates the specified agent.

                                          Example
                                          Output:
                                          
                                          

                                          func (*AgentsClient) TrainAgent

                                            TrainAgent trains the specified agent.

                                            Operation <response: google.protobuf.Empty>

                                            Example
                                            Output:
                                            
                                            

                                            func (*AgentsClient) TrainAgentOperation

                                            func (c *AgentsClient) TrainAgentOperation(name string) *TrainAgentOperation

                                              TrainAgentOperation returns a new TrainAgentOperation from a given name. The name must be that of a previously created TrainAgentOperation, possibly from a different process.

                                              type AnswerRecordIterator

                                              type AnswerRecordIterator 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 []*dialogflowpb.AnswerRecord, nextPageToken string, err error)
                                              	// contains filtered or unexported fields
                                              }

                                                AnswerRecordIterator manages a stream of *dialogflowpb.AnswerRecord.

                                                func (*AnswerRecordIterator) Next

                                                  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 (*AnswerRecordIterator) PageInfo

                                                  func (it *AnswerRecordIterator) PageInfo() *iterator.PageInfo

                                                    PageInfo supports pagination. See the google.golang.org/api/iterator package for details.

                                                    type AnswerRecordsCallOptions

                                                    type AnswerRecordsCallOptions struct {
                                                    	ListAnswerRecords  []gax.CallOption
                                                    	UpdateAnswerRecord []gax.CallOption
                                                    }

                                                      AnswerRecordsCallOptions contains the retry settings for each method of AnswerRecordsClient.

                                                      type AnswerRecordsClient

                                                      type AnswerRecordsClient struct {
                                                      
                                                      	// The call options for this service.
                                                      	CallOptions *AnswerRecordsCallOptions
                                                      	// contains filtered or unexported fields
                                                      }

                                                        AnswerRecordsClient is a client for interacting with Dialogflow API.

                                                        Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

                                                        func NewAnswerRecordsClient

                                                        func NewAnswerRecordsClient(ctx context.Context, opts ...option.ClientOption) (*AnswerRecordsClient, error)

                                                          NewAnswerRecordsClient creates a new answer records client.

                                                          Service for managing AnswerRecords.

                                                          Example
                                                          Output:
                                                          
                                                          

                                                          func (*AnswerRecordsClient) Close

                                                          func (c *AnswerRecordsClient) Close() error

                                                            Close closes the connection to the API service. The user should invoke this when the client is no longer required.

                                                            func (*AnswerRecordsClient) Connection

                                                            func (c *AnswerRecordsClient) Connection() *grpc.ClientConn

                                                              Connection returns a connection to the API service.

                                                              Deprecated.

                                                              func (*AnswerRecordsClient) ListAnswerRecords

                                                                ListAnswerRecords returns the list of all answer records in the specified project in reverse chronological order.

                                                                Example
                                                                Output:
                                                                
                                                                

                                                                func (*AnswerRecordsClient) UpdateAnswerRecord

                                                                  UpdateAnswerRecord updates the specified answer record.

                                                                  Example
                                                                  Output:
                                                                  
                                                                  

                                                                  type BatchCreateEntitiesOperation

                                                                  type BatchCreateEntitiesOperation struct {
                                                                  	// contains filtered or unexported fields
                                                                  }

                                                                    BatchCreateEntitiesOperation manages a long-running operation from BatchCreateEntities.

                                                                    func (*BatchCreateEntitiesOperation) Done

                                                                      Done reports whether the long-running operation has completed.

                                                                      func (*BatchCreateEntitiesOperation) Metadata

                                                                        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 (*BatchCreateEntitiesOperation) Name

                                                                          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 (*BatchCreateEntitiesOperation) Poll

                                                                            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 (*BatchCreateEntitiesOperation) Wait

                                                                              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 BatchDeleteEntitiesOperation

                                                                              type BatchDeleteEntitiesOperation struct {
                                                                              	// contains filtered or unexported fields
                                                                              }

                                                                                BatchDeleteEntitiesOperation manages a long-running operation from BatchDeleteEntities.

                                                                                func (*BatchDeleteEntitiesOperation) Done

                                                                                  Done reports whether the long-running operation has completed.

                                                                                  func (*BatchDeleteEntitiesOperation) Metadata

                                                                                    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 (*BatchDeleteEntitiesOperation) Name

                                                                                      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 (*BatchDeleteEntitiesOperation) Poll

                                                                                        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 (*BatchDeleteEntitiesOperation) Wait

                                                                                          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 BatchDeleteEntityTypesOperation

                                                                                          type BatchDeleteEntityTypesOperation struct {
                                                                                          	// contains filtered or unexported fields
                                                                                          }

                                                                                            BatchDeleteEntityTypesOperation manages a long-running operation from BatchDeleteEntityTypes.

                                                                                            func (*BatchDeleteEntityTypesOperation) Done

                                                                                              Done reports whether the long-running operation has completed.

                                                                                              func (*BatchDeleteEntityTypesOperation) Metadata

                                                                                                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 (*BatchDeleteEntityTypesOperation) Name

                                                                                                  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 (*BatchDeleteEntityTypesOperation) Poll

                                                                                                    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 (*BatchDeleteEntityTypesOperation) Wait

                                                                                                      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 BatchDeleteIntentsOperation

                                                                                                      type BatchDeleteIntentsOperation struct {
                                                                                                      	// contains filtered or unexported fields
                                                                                                      }

                                                                                                        BatchDeleteIntentsOperation manages a long-running operation from BatchDeleteIntents.

                                                                                                        func (*BatchDeleteIntentsOperation) Done

                                                                                                        func (op *BatchDeleteIntentsOperation) Done() bool

                                                                                                          Done reports whether the long-running operation has completed.

                                                                                                          func (*BatchDeleteIntentsOperation) Metadata

                                                                                                          func (op *BatchDeleteIntentsOperation) Metadata() (*structpb.Struct, 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 (*BatchDeleteIntentsOperation) Name

                                                                                                              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 (*BatchDeleteIntentsOperation) Poll

                                                                                                                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 (*BatchDeleteIntentsOperation) Wait

                                                                                                                  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 BatchUpdateEntitiesOperation

                                                                                                                  type BatchUpdateEntitiesOperation struct {
                                                                                                                  	// contains filtered or unexported fields
                                                                                                                  }

                                                                                                                    BatchUpdateEntitiesOperation manages a long-running operation from BatchUpdateEntities.

                                                                                                                    func (*BatchUpdateEntitiesOperation) Done

                                                                                                                      Done reports whether the long-running operation has completed.

                                                                                                                      func (*BatchUpdateEntitiesOperation) Metadata

                                                                                                                        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 (*BatchUpdateEntitiesOperation) Name

                                                                                                                          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 (*BatchUpdateEntitiesOperation) Poll

                                                                                                                            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 (*BatchUpdateEntitiesOperation) Wait

                                                                                                                              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 BatchUpdateEntityTypesOperation

                                                                                                                              type BatchUpdateEntityTypesOperation struct {
                                                                                                                              	// contains filtered or unexported fields
                                                                                                                              }

                                                                                                                                BatchUpdateEntityTypesOperation manages a long-running operation from BatchUpdateEntityTypes.

                                                                                                                                func (*BatchUpdateEntityTypesOperation) Done

                                                                                                                                  Done reports whether the long-running operation has completed.

                                                                                                                                  func (*BatchUpdateEntityTypesOperation) Metadata

                                                                                                                                    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 (*BatchUpdateEntityTypesOperation) Name

                                                                                                                                      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 (*BatchUpdateEntityTypesOperation) Poll

                                                                                                                                        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 (*BatchUpdateEntityTypesOperation) Wait

                                                                                                                                          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 BatchUpdateIntentsOperation

                                                                                                                                          type BatchUpdateIntentsOperation struct {
                                                                                                                                          	// contains filtered or unexported fields
                                                                                                                                          }

                                                                                                                                            BatchUpdateIntentsOperation manages a long-running operation from BatchUpdateIntents.

                                                                                                                                            func (*BatchUpdateIntentsOperation) Done

                                                                                                                                            func (op *BatchUpdateIntentsOperation) Done() bool

                                                                                                                                              Done reports whether the long-running operation has completed.

                                                                                                                                              func (*BatchUpdateIntentsOperation) Metadata

                                                                                                                                              func (op *BatchUpdateIntentsOperation) Metadata() (*structpb.Struct, 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 (*BatchUpdateIntentsOperation) Name

                                                                                                                                                  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 (*BatchUpdateIntentsOperation) Poll

                                                                                                                                                    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 (*BatchUpdateIntentsOperation) Wait

                                                                                                                                                      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 ContextIterator

                                                                                                                                                      type ContextIterator 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 []*dialogflowpb.Context, nextPageToken string, err error)
                                                                                                                                                      	// contains filtered or unexported fields
                                                                                                                                                      }

                                                                                                                                                        ContextIterator manages a stream of *dialogflowpb.Context.

                                                                                                                                                        func (*ContextIterator) Next

                                                                                                                                                        func (it *ContextIterator) Next() (*dialogflowpb.Context, 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 (*ContextIterator) PageInfo

                                                                                                                                                          func (it *ContextIterator) PageInfo() *iterator.PageInfo

                                                                                                                                                            PageInfo supports pagination. See the google.golang.org/api/iterator package for details.

                                                                                                                                                            type ContextsCallOptions

                                                                                                                                                            type ContextsCallOptions struct {
                                                                                                                                                            	ListContexts      []gax.CallOption
                                                                                                                                                            	GetContext        []gax.CallOption
                                                                                                                                                            	CreateContext     []gax.CallOption
                                                                                                                                                            	UpdateContext     []gax.CallOption
                                                                                                                                                            	DeleteContext     []gax.CallOption
                                                                                                                                                            	DeleteAllContexts []gax.CallOption
                                                                                                                                                            }

                                                                                                                                                              ContextsCallOptions contains the retry settings for each method of ContextsClient.

                                                                                                                                                              type ContextsClient

                                                                                                                                                              type ContextsClient struct {
                                                                                                                                                              
                                                                                                                                                              	// The call options for this service.
                                                                                                                                                              	CallOptions *ContextsCallOptions
                                                                                                                                                              	// contains filtered or unexported fields
                                                                                                                                                              }

                                                                                                                                                                ContextsClient is a client for interacting with Dialogflow API.

                                                                                                                                                                Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

                                                                                                                                                                func NewContextsClient

                                                                                                                                                                func NewContextsClient(ctx context.Context, opts ...option.ClientOption) (*ContextsClient, error)

                                                                                                                                                                  NewContextsClient creates a new contexts client.

                                                                                                                                                                  Service for managing Contexts.

                                                                                                                                                                  Example
                                                                                                                                                                  Output:
                                                                                                                                                                  
                                                                                                                                                                  

                                                                                                                                                                  func (*ContextsClient) Close

                                                                                                                                                                  func (c *ContextsClient) Close() error

                                                                                                                                                                    Close closes the connection to the API service. The user should invoke this when the client is no longer required.

                                                                                                                                                                    func (*ContextsClient) Connection

                                                                                                                                                                    func (c *ContextsClient) Connection() *grpc.ClientConn

                                                                                                                                                                      Connection returns a connection to the API service.

                                                                                                                                                                      Deprecated.

                                                                                                                                                                      func (*ContextsClient) CreateContext

                                                                                                                                                                        CreateContext creates a context.

                                                                                                                                                                        If the specified context already exists, overrides the context.

                                                                                                                                                                        Example
                                                                                                                                                                        Output:
                                                                                                                                                                        
                                                                                                                                                                        

                                                                                                                                                                        func (*ContextsClient) DeleteAllContexts

                                                                                                                                                                        func (c *ContextsClient) DeleteAllContexts(ctx context.Context, req *dialogflowpb.DeleteAllContextsRequest, opts ...gax.CallOption) error

                                                                                                                                                                          DeleteAllContexts deletes all active contexts in the specified session.

                                                                                                                                                                          Example
                                                                                                                                                                          Output:
                                                                                                                                                                          
                                                                                                                                                                          

                                                                                                                                                                          func (*ContextsClient) DeleteContext

                                                                                                                                                                          func (c *ContextsClient) DeleteContext(ctx context.Context, req *dialogflowpb.DeleteContextRequest, opts ...gax.CallOption) error

                                                                                                                                                                            DeleteContext deletes the specified context.

                                                                                                                                                                            Example
                                                                                                                                                                            Output:
                                                                                                                                                                            
                                                                                                                                                                            

                                                                                                                                                                            func (*ContextsClient) GetContext

                                                                                                                                                                              GetContext retrieves the specified context.

                                                                                                                                                                              Example
                                                                                                                                                                              Output:
                                                                                                                                                                              
                                                                                                                                                                              

                                                                                                                                                                              func (*ContextsClient) ListContexts

                                                                                                                                                                                ListContexts returns the list of all contexts in the specified session.

                                                                                                                                                                                Example
                                                                                                                                                                                Output:
                                                                                                                                                                                
                                                                                                                                                                                

                                                                                                                                                                                func (*ContextsClient) UpdateContext

                                                                                                                                                                                  UpdateContext updates the specified context.

                                                                                                                                                                                  Example
                                                                                                                                                                                  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 []*dialogflowpb.Conversation, nextPageToken string, err error)
                                                                                                                                                                                  	// contains filtered or unexported fields
                                                                                                                                                                                  }

                                                                                                                                                                                    ConversationIterator manages a stream of *dialogflowpb.Conversation.

                                                                                                                                                                                    func (*ConversationIterator) Next

                                                                                                                                                                                      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 ConversationProfileIterator

                                                                                                                                                                                        type ConversationProfileIterator 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 []*dialogflowpb.ConversationProfile, nextPageToken string, err error)
                                                                                                                                                                                        	// contains filtered or unexported fields
                                                                                                                                                                                        }

                                                                                                                                                                                          ConversationProfileIterator manages a stream of *dialogflowpb.ConversationProfile.

                                                                                                                                                                                          func (*ConversationProfileIterator) Next

                                                                                                                                                                                            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 (*ConversationProfileIterator) PageInfo

                                                                                                                                                                                              PageInfo supports pagination. See the google.golang.org/api/iterator package for details.

                                                                                                                                                                                              type ConversationProfilesCallOptions

                                                                                                                                                                                              type ConversationProfilesCallOptions struct {
                                                                                                                                                                                              	ListConversationProfiles  []gax.CallOption
                                                                                                                                                                                              	GetConversationProfile    []gax.CallOption
                                                                                                                                                                                              	CreateConversationProfile []gax.CallOption
                                                                                                                                                                                              	UpdateConversationProfile []gax.CallOption
                                                                                                                                                                                              	DeleteConversationProfile []gax.CallOption
                                                                                                                                                                                              }

                                                                                                                                                                                                ConversationProfilesCallOptions contains the retry settings for each method of ConversationProfilesClient.

                                                                                                                                                                                                type ConversationProfilesClient

                                                                                                                                                                                                type ConversationProfilesClient struct {
                                                                                                                                                                                                
                                                                                                                                                                                                	// The call options for this service.
                                                                                                                                                                                                	CallOptions *ConversationProfilesCallOptions
                                                                                                                                                                                                	// contains filtered or unexported fields
                                                                                                                                                                                                }

                                                                                                                                                                                                  ConversationProfilesClient is a client for interacting with Dialogflow API.

                                                                                                                                                                                                  Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

                                                                                                                                                                                                  func NewConversationProfilesClient

                                                                                                                                                                                                  func NewConversationProfilesClient(ctx context.Context, opts ...option.ClientOption) (*ConversationProfilesClient, error)

                                                                                                                                                                                                    NewConversationProfilesClient creates a new conversation profiles client.

                                                                                                                                                                                                    Service for managing ConversationProfiles.

                                                                                                                                                                                                    Example
                                                                                                                                                                                                    Output:
                                                                                                                                                                                                    
                                                                                                                                                                                                    

                                                                                                                                                                                                    func (*ConversationProfilesClient) Close

                                                                                                                                                                                                    func (c *ConversationProfilesClient) Close() error

                                                                                                                                                                                                      Close closes the connection to the API service. The user should invoke this when the client is no longer required.

                                                                                                                                                                                                      func (*ConversationProfilesClient) Connection

                                                                                                                                                                                                      func (c *ConversationProfilesClient) Connection() *grpc.ClientConn

                                                                                                                                                                                                        Connection returns a connection to the API service.

                                                                                                                                                                                                        Deprecated.

                                                                                                                                                                                                        func (*ConversationProfilesClient) CreateConversationProfile

                                                                                                                                                                                                          CreateConversationProfile creates a conversation profile in the specified project.

                                                                                                                                                                                                          ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren’t populated in the response. You can retrieve them via GetConversationProfile API.

                                                                                                                                                                                                          Example
                                                                                                                                                                                                          Output:
                                                                                                                                                                                                          
                                                                                                                                                                                                          

                                                                                                                                                                                                          func (*ConversationProfilesClient) DeleteConversationProfile

                                                                                                                                                                                                            DeleteConversationProfile deletes the specified conversation profile.

                                                                                                                                                                                                            Example
                                                                                                                                                                                                            Output:
                                                                                                                                                                                                            
                                                                                                                                                                                                            

                                                                                                                                                                                                            func (*ConversationProfilesClient) GetConversationProfile

                                                                                                                                                                                                              GetConversationProfile retrieves the specified conversation profile.

                                                                                                                                                                                                              Example
                                                                                                                                                                                                              Output:
                                                                                                                                                                                                              
                                                                                                                                                                                                              

                                                                                                                                                                                                              func (*ConversationProfilesClient) ListConversationProfiles

                                                                                                                                                                                                                ListConversationProfiles returns the list of all conversation profiles in the specified project.

                                                                                                                                                                                                                Example
                                                                                                                                                                                                                Output:
                                                                                                                                                                                                                
                                                                                                                                                                                                                

                                                                                                                                                                                                                func (*ConversationProfilesClient) UpdateConversationProfile

                                                                                                                                                                                                                  UpdateConversationProfile updates the specified conversation profile.

                                                                                                                                                                                                                  ConversationProfile.CreateTime and ConversationProfile.UpdateTime aren’t populated in the response. You can retrieve them via GetConversationProfile API.

                                                                                                                                                                                                                  Example
                                                                                                                                                                                                                  Output:
                                                                                                                                                                                                                  
                                                                                                                                                                                                                  

                                                                                                                                                                                                                  type ConversationsCallOptions

                                                                                                                                                                                                                  type ConversationsCallOptions struct {
                                                                                                                                                                                                                  	CreateConversation   []gax.CallOption
                                                                                                                                                                                                                  	ListConversations    []gax.CallOption
                                                                                                                                                                                                                  	GetConversation      []gax.CallOption
                                                                                                                                                                                                                  	CompleteConversation []gax.CallOption
                                                                                                                                                                                                                  	ListMessages         []gax.CallOption
                                                                                                                                                                                                                  }

                                                                                                                                                                                                                    ConversationsCallOptions contains the retry settings for each method of ConversationsClient.

                                                                                                                                                                                                                    type ConversationsClient

                                                                                                                                                                                                                    type ConversationsClient struct {
                                                                                                                                                                                                                    
                                                                                                                                                                                                                    	// The call options for this service.
                                                                                                                                                                                                                    	CallOptions *ConversationsCallOptions
                                                                                                                                                                                                                    	// contains filtered or unexported fields
                                                                                                                                                                                                                    }

                                                                                                                                                                                                                      ConversationsClient is a client for interacting with Dialogflow API.

                                                                                                                                                                                                                      Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

                                                                                                                                                                                                                      func NewConversationsClient

                                                                                                                                                                                                                      func NewConversationsClient(ctx context.Context, opts ...option.ClientOption) (*ConversationsClient, error)

                                                                                                                                                                                                                        NewConversationsClient creates a new conversations client.

                                                                                                                                                                                                                        Service for managing Conversations.

                                                                                                                                                                                                                        Example
                                                                                                                                                                                                                        Output:
                                                                                                                                                                                                                        
                                                                                                                                                                                                                        

                                                                                                                                                                                                                        func (*ConversationsClient) Close

                                                                                                                                                                                                                        func (c *ConversationsClient) Close() error

                                                                                                                                                                                                                          Close closes the connection to the API service. The user should invoke this when the client is no longer required.

                                                                                                                                                                                                                          func (*ConversationsClient) CompleteConversation

                                                                                                                                                                                                                            CompleteConversation completes the specified conversation. Finished conversations are purged from the database after 30 days.

                                                                                                                                                                                                                            Example
                                                                                                                                                                                                                            Output:
                                                                                                                                                                                                                            
                                                                                                                                                                                                                            

                                                                                                                                                                                                                            func (*ConversationsClient) Connection

                                                                                                                                                                                                                            func (c *ConversationsClient) Connection() *grpc.ClientConn

                                                                                                                                                                                                                              Connection returns a connection to the API service.

                                                                                                                                                                                                                              Deprecated.

                                                                                                                                                                                                                              func (*ConversationsClient) CreateConversation

                                                                                                                                                                                                                                CreateConversation creates a new conversation. Conversations are auto-completed after 24 hours.

                                                                                                                                                                                                                                Conversation Lifecycle: There are two stages during a conversation: Automated Agent Stage and Assist Stage.

                                                                                                                                                                                                                                For Automated Agent Stage, there will be a dialogflow agent responding to user queries.

                                                                                                                                                                                                                                For Assist Stage, there’s no dialogflow agent responding to user queries. But we will provide suggestions which are generated from conversation.

                                                                                                                                                                                                                                If Conversation.conversation_profile is configured for a dialogflow agent, conversation will start from Automated Agent Stage, otherwise, it will start from Assist Stage. And during Automated Agent Stage, once an Intent with Intent.live_agent_handoff is triggered, conversation will transfer to Assist Stage.

                                                                                                                                                                                                                                Example
                                                                                                                                                                                                                                Output:
                                                                                                                                                                                                                                
                                                                                                                                                                                                                                

                                                                                                                                                                                                                                func (*ConversationsClient) GetConversation

                                                                                                                                                                                                                                  GetConversation retrieves the specific conversation.

                                                                                                                                                                                                                                  Example
                                                                                                                                                                                                                                  Output:
                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                  

                                                                                                                                                                                                                                  func (*ConversationsClient) ListConversations

                                                                                                                                                                                                                                    ListConversations returns the list of all conversations in the specified project.

                                                                                                                                                                                                                                    Example
                                                                                                                                                                                                                                    Output:
                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                    

                                                                                                                                                                                                                                    func (*ConversationsClient) ListMessages

                                                                                                                                                                                                                                      ListMessages lists messages that belong to a given conversation. messages are ordered by create_time in descending order. To fetch updates without duplication, send request with filter create_time_epoch_microseconds > [first item's create_time of previous request] and empty page_token.

                                                                                                                                                                                                                                      Example
                                                                                                                                                                                                                                      Output:
                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                      type CreateDocumentOperation

                                                                                                                                                                                                                                      type CreateDocumentOperation struct {
                                                                                                                                                                                                                                      	// contains filtered or unexported fields
                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                        CreateDocumentOperation manages a long-running operation from CreateDocument.

                                                                                                                                                                                                                                        func (*CreateDocumentOperation) Done

                                                                                                                                                                                                                                        func (op *CreateDocumentOperation) Done() bool

                                                                                                                                                                                                                                          Done reports whether the long-running operation has completed.

                                                                                                                                                                                                                                          func (*CreateDocumentOperation) Metadata

                                                                                                                                                                                                                                            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 (*CreateDocumentOperation) Name

                                                                                                                                                                                                                                            func (op *CreateDocumentOperation) 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 (*CreateDocumentOperation) Poll

                                                                                                                                                                                                                                                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 (*CreateDocumentOperation) Wait

                                                                                                                                                                                                                                                  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 DeleteDocumentOperation

                                                                                                                                                                                                                                                  type DeleteDocumentOperation struct {
                                                                                                                                                                                                                                                  	// contains filtered or unexported fields
                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                    DeleteDocumentOperation manages a long-running operation from DeleteDocument.

                                                                                                                                                                                                                                                    func (*DeleteDocumentOperation) Done

                                                                                                                                                                                                                                                    func (op *DeleteDocumentOperation) Done() bool

                                                                                                                                                                                                                                                      Done reports whether the long-running operation has completed.

                                                                                                                                                                                                                                                      func (*DeleteDocumentOperation) Metadata

                                                                                                                                                                                                                                                        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 (*DeleteDocumentOperation) Name

                                                                                                                                                                                                                                                        func (op *DeleteDocumentOperation) 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 (*DeleteDocumentOperation) Poll

                                                                                                                                                                                                                                                          func (op *DeleteDocumentOperation) 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 (*DeleteDocumentOperation) Wait

                                                                                                                                                                                                                                                            func (op *DeleteDocumentOperation) 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 DocumentIterator

                                                                                                                                                                                                                                                              type DocumentIterator 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 []*dialogflowpb.Document, nextPageToken string, err error)
                                                                                                                                                                                                                                                              	// contains filtered or unexported fields
                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                DocumentIterator manages a stream of *dialogflowpb.Document.

                                                                                                                                                                                                                                                                func (*DocumentIterator) Next

                                                                                                                                                                                                                                                                  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 (*DocumentIterator) PageInfo

                                                                                                                                                                                                                                                                  func (it *DocumentIterator) PageInfo() *iterator.PageInfo

                                                                                                                                                                                                                                                                    PageInfo supports pagination. See the google.golang.org/api/iterator package for details.

                                                                                                                                                                                                                                                                    type DocumentsCallOptions

                                                                                                                                                                                                                                                                    type DocumentsCallOptions struct {
                                                                                                                                                                                                                                                                    	ListDocuments  []gax.CallOption
                                                                                                                                                                                                                                                                    	GetDocument    []gax.CallOption
                                                                                                                                                                                                                                                                    	CreateDocument []gax.CallOption
                                                                                                                                                                                                                                                                    	DeleteDocument []gax.CallOption
                                                                                                                                                                                                                                                                    	UpdateDocument []gax.CallOption
                                                                                                                                                                                                                                                                    	ReloadDocument []gax.CallOption
                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                      DocumentsCallOptions contains the retry settings for each method of DocumentsClient.

                                                                                                                                                                                                                                                                      type DocumentsClient

                                                                                                                                                                                                                                                                      type DocumentsClient struct {
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      	// LROClient is used internally to handle longrunning operations.
                                                                                                                                                                                                                                                                      	// It is exposed so that its CallOptions can be modified if required.
                                                                                                                                                                                                                                                                      	// Users should not Close this client.
                                                                                                                                                                                                                                                                      	LROClient *lroauto.OperationsClient
                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                      	// The call options for this service.
                                                                                                                                                                                                                                                                      	CallOptions *DocumentsCallOptions
                                                                                                                                                                                                                                                                      	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                        DocumentsClient is a client for interacting with Dialogflow API.

                                                                                                                                                                                                                                                                        Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

                                                                                                                                                                                                                                                                        func NewDocumentsClient

                                                                                                                                                                                                                                                                        func NewDocumentsClient(ctx context.Context, opts ...option.ClientOption) (*DocumentsClient, error)

                                                                                                                                                                                                                                                                          NewDocumentsClient creates a new documents client.

                                                                                                                                                                                                                                                                          Service for managing knowledge Documents.

                                                                                                                                                                                                                                                                          Example
                                                                                                                                                                                                                                                                          Output:
                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                          

                                                                                                                                                                                                                                                                          func (*DocumentsClient) Close

                                                                                                                                                                                                                                                                          func (c *DocumentsClient) Close() error

                                                                                                                                                                                                                                                                            Close closes the connection to the API service. The user should invoke this when the client is no longer required.

                                                                                                                                                                                                                                                                            func (*DocumentsClient) Connection

                                                                                                                                                                                                                                                                            func (c *DocumentsClient) Connection() *grpc.ClientConn

                                                                                                                                                                                                                                                                              Connection returns a connection to the API service.

                                                                                                                                                                                                                                                                              Deprecated.

                                                                                                                                                                                                                                                                              func (*DocumentsClient) CreateDocument

                                                                                                                                                                                                                                                                                CreateDocument creates a new document.

                                                                                                                                                                                                                                                                                Operation <response: Document, metadata: KnowledgeOperationMetadata>

                                                                                                                                                                                                                                                                                Example
                                                                                                                                                                                                                                                                                Output:
                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                

                                                                                                                                                                                                                                                                                func (*DocumentsClient) CreateDocumentOperation

                                                                                                                                                                                                                                                                                func (c *DocumentsClient) CreateDocumentOperation(name string) *CreateDocumentOperation

                                                                                                                                                                                                                                                                                  CreateDocumentOperation returns a new CreateDocumentOperation from a given name. The name must be that of a previously created CreateDocumentOperation, possibly from a different process.

                                                                                                                                                                                                                                                                                  func (*DocumentsClient) DeleteDocument

                                                                                                                                                                                                                                                                                    DeleteDocument deletes the specified document.

                                                                                                                                                                                                                                                                                    Operation <response: google.protobuf.Empty, metadata: KnowledgeOperationMetadata>

                                                                                                                                                                                                                                                                                    Example
                                                                                                                                                                                                                                                                                    Output:
                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                    

                                                                                                                                                                                                                                                                                    func (*DocumentsClient) DeleteDocumentOperation

                                                                                                                                                                                                                                                                                    func (c *DocumentsClient) DeleteDocumentOperation(name string) *DeleteDocumentOperation

                                                                                                                                                                                                                                                                                      DeleteDocumentOperation returns a new DeleteDocumentOperation from a given name. The name must be that of a previously created DeleteDocumentOperation, possibly from a different process.

                                                                                                                                                                                                                                                                                      func (*DocumentsClient) GetDocument

                                                                                                                                                                                                                                                                                        GetDocument retrieves the specified document.

                                                                                                                                                                                                                                                                                        Example
                                                                                                                                                                                                                                                                                        Output:
                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                        

                                                                                                                                                                                                                                                                                        func (*DocumentsClient) ListDocuments

                                                                                                                                                                                                                                                                                          ListDocuments returns the list of all documents of the knowledge base.

                                                                                                                                                                                                                                                                                          Example
                                                                                                                                                                                                                                                                                          Output:
                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                          

                                                                                                                                                                                                                                                                                          func (*DocumentsClient) ReloadDocument

                                                                                                                                                                                                                                                                                            ReloadDocument reloads the specified document from its specified source, content_uri or content. The previously loaded content of the document will be deleted. Note: Even when the content of the document has not changed, there still may be side effects because of internal implementation changes.

                                                                                                                                                                                                                                                                                            Note: The projects.agent.knowledgeBases.documents resource is deprecated; only use projects.knowledgeBases.documents.

                                                                                                                                                                                                                                                                                            Operation <response: Document, metadata: KnowledgeOperationMetadata>

                                                                                                                                                                                                                                                                                            Example
                                                                                                                                                                                                                                                                                            Output:
                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                            

                                                                                                                                                                                                                                                                                            func (*DocumentsClient) ReloadDocumentOperation

                                                                                                                                                                                                                                                                                            func (c *DocumentsClient) ReloadDocumentOperation(name string) *ReloadDocumentOperation

                                                                                                                                                                                                                                                                                              ReloadDocumentOperation returns a new ReloadDocumentOperation from a given name. The name must be that of a previously created ReloadDocumentOperation, possibly from a different process.

                                                                                                                                                                                                                                                                                              func (*DocumentsClient) UpdateDocument

                                                                                                                                                                                                                                                                                                UpdateDocument updates the specified document.

                                                                                                                                                                                                                                                                                                Operation <response: Document, metadata: KnowledgeOperationMetadata>

                                                                                                                                                                                                                                                                                                Example
                                                                                                                                                                                                                                                                                                Output:
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                

                                                                                                                                                                                                                                                                                                func (*DocumentsClient) UpdateDocumentOperation

                                                                                                                                                                                                                                                                                                func (c *DocumentsClient) UpdateDocumentOperation(name string) *UpdateDocumentOperation

                                                                                                                                                                                                                                                                                                  UpdateDocumentOperation returns a new UpdateDocumentOperation from a given name. The name must be that of a previously created UpdateDocumentOperation, possibly from a different process.

                                                                                                                                                                                                                                                                                                  type EntityTypeIterator

                                                                                                                                                                                                                                                                                                  type EntityTypeIterator 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 []*dialogflowpb.EntityType, nextPageToken string, err error)
                                                                                                                                                                                                                                                                                                  	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                    EntityTypeIterator manages a stream of *dialogflowpb.EntityType.

                                                                                                                                                                                                                                                                                                    func (*EntityTypeIterator) Next

                                                                                                                                                                                                                                                                                                      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 (*EntityTypeIterator) PageInfo

                                                                                                                                                                                                                                                                                                      func (it *EntityTypeIterator) PageInfo() *iterator.PageInfo

                                                                                                                                                                                                                                                                                                        PageInfo supports pagination. See the google.golang.org/api/iterator package for details.

                                                                                                                                                                                                                                                                                                        type EntityTypesCallOptions

                                                                                                                                                                                                                                                                                                        type EntityTypesCallOptions struct {
                                                                                                                                                                                                                                                                                                        	ListEntityTypes        []gax.CallOption
                                                                                                                                                                                                                                                                                                        	GetEntityType          []gax.CallOption
                                                                                                                                                                                                                                                                                                        	CreateEntityType       []gax.CallOption
                                                                                                                                                                                                                                                                                                        	UpdateEntityType       []gax.CallOption
                                                                                                                                                                                                                                                                                                        	DeleteEntityType       []gax.CallOption
                                                                                                                                                                                                                                                                                                        	BatchUpdateEntityTypes []gax.CallOption
                                                                                                                                                                                                                                                                                                        	BatchDeleteEntityTypes []gax.CallOption
                                                                                                                                                                                                                                                                                                        	BatchCreateEntities    []gax.CallOption
                                                                                                                                                                                                                                                                                                        	BatchUpdateEntities    []gax.CallOption
                                                                                                                                                                                                                                                                                                        	BatchDeleteEntities    []gax.CallOption
                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                          EntityTypesCallOptions contains the retry settings for each method of EntityTypesClient.

                                                                                                                                                                                                                                                                                                          type EntityTypesClient

                                                                                                                                                                                                                                                                                                          type EntityTypesClient struct {
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// LROClient is used internally to handle longrunning operations.
                                                                                                                                                                                                                                                                                                          	// It is exposed so that its CallOptions can be modified if required.
                                                                                                                                                                                                                                                                                                          	// Users should not Close this client.
                                                                                                                                                                                                                                                                                                          	LROClient *lroauto.OperationsClient
                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                          	// The call options for this service.
                                                                                                                                                                                                                                                                                                          	CallOptions *EntityTypesCallOptions
                                                                                                                                                                                                                                                                                                          	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                            EntityTypesClient is a client for interacting with Dialogflow API.

                                                                                                                                                                                                                                                                                                            Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

                                                                                                                                                                                                                                                                                                            func NewEntityTypesClient

                                                                                                                                                                                                                                                                                                            func NewEntityTypesClient(ctx context.Context, opts ...option.ClientOption) (*EntityTypesClient, error)

                                                                                                                                                                                                                                                                                                              NewEntityTypesClient creates a new entity types client.

                                                                                                                                                                                                                                                                                                              Service for managing EntityTypes.

                                                                                                                                                                                                                                                                                                              Example
                                                                                                                                                                                                                                                                                                              Output:
                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                              

                                                                                                                                                                                                                                                                                                              func (*EntityTypesClient) BatchCreateEntities

                                                                                                                                                                                                                                                                                                                BatchCreateEntities creates multiple new entities in the specified entity type.

                                                                                                                                                                                                                                                                                                                Operation <response: google.protobuf.Empty>

                                                                                                                                                                                                                                                                                                                Example
                                                                                                                                                                                                                                                                                                                Output:
                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                

                                                                                                                                                                                                                                                                                                                func (*EntityTypesClient) BatchCreateEntitiesOperation

                                                                                                                                                                                                                                                                                                                func (c *EntityTypesClient) BatchCreateEntitiesOperation(name string) *BatchCreateEntitiesOperation

                                                                                                                                                                                                                                                                                                                  BatchCreateEntitiesOperation returns a new BatchCreateEntitiesOperation from a given name. The name must be that of a previously created BatchCreateEntitiesOperation, possibly from a different process.

                                                                                                                                                                                                                                                                                                                  func (*EntityTypesClient) BatchDeleteEntities

                                                                                                                                                                                                                                                                                                                    BatchDeleteEntities deletes entities in the specified entity type.

                                                                                                                                                                                                                                                                                                                    Operation <response: google.protobuf.Empty>

                                                                                                                                                                                                                                                                                                                    Example
                                                                                                                                                                                                                                                                                                                    Output:
                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                    

                                                                                                                                                                                                                                                                                                                    func (*EntityTypesClient) BatchDeleteEntitiesOperation

                                                                                                                                                                                                                                                                                                                    func (c *EntityTypesClient) BatchDeleteEntitiesOperation(name string) *BatchDeleteEntitiesOperation

                                                                                                                                                                                                                                                                                                                      BatchDeleteEntitiesOperation returns a new BatchDeleteEntitiesOperation from a given name. The name must be that of a previously created BatchDeleteEntitiesOperation, possibly from a different process.

                                                                                                                                                                                                                                                                                                                      func (*EntityTypesClient) BatchDeleteEntityTypes

                                                                                                                                                                                                                                                                                                                        BatchDeleteEntityTypes deletes entity types in the specified agent.

                                                                                                                                                                                                                                                                                                                        Operation <response: google.protobuf.Empty>

                                                                                                                                                                                                                                                                                                                        Example
                                                                                                                                                                                                                                                                                                                        Output:
                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                        

                                                                                                                                                                                                                                                                                                                        func (*EntityTypesClient) BatchDeleteEntityTypesOperation

                                                                                                                                                                                                                                                                                                                        func (c *EntityTypesClient) BatchDeleteEntityTypesOperation(name string) *BatchDeleteEntityTypesOperation

                                                                                                                                                                                                                                                                                                                          BatchDeleteEntityTypesOperation returns a new BatchDeleteEntityTypesOperation from a given name. The name must be that of a previously created BatchDeleteEntityTypesOperation, possibly from a different process.

                                                                                                                                                                                                                                                                                                                          func (*EntityTypesClient) BatchUpdateEntities

                                                                                                                                                                                                                                                                                                                            BatchUpdateEntities updates or creates multiple entities in the specified entity type. This method does not affect entities in the entity type that aren’t explicitly specified in the request.

                                                                                                                                                                                                                                                                                                                            Operation <response: google.protobuf.Empty>

                                                                                                                                                                                                                                                                                                                            Example
                                                                                                                                                                                                                                                                                                                            Output:
                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                            

                                                                                                                                                                                                                                                                                                                            func (*EntityTypesClient) BatchUpdateEntitiesOperation

                                                                                                                                                                                                                                                                                                                            func (c *EntityTypesClient) BatchUpdateEntitiesOperation(name string) *BatchUpdateEntitiesOperation

                                                                                                                                                                                                                                                                                                                              BatchUpdateEntitiesOperation returns a new BatchUpdateEntitiesOperation from a given name. The name must be that of a previously created BatchUpdateEntitiesOperation, possibly from a different process.

                                                                                                                                                                                                                                                                                                                              func (*EntityTypesClient) BatchUpdateEntityTypes

                                                                                                                                                                                                                                                                                                                                BatchUpdateEntityTypes updates/Creates multiple entity types in the specified agent.

                                                                                                                                                                                                                                                                                                                                Operation <response: BatchUpdateEntityTypesResponse>

                                                                                                                                                                                                                                                                                                                                Example
                                                                                                                                                                                                                                                                                                                                Output:
                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                

                                                                                                                                                                                                                                                                                                                                func (*EntityTypesClient) BatchUpdateEntityTypesOperation

                                                                                                                                                                                                                                                                                                                                func (c *EntityTypesClient) BatchUpdateEntityTypesOperation(name string) *BatchUpdateEntityTypesOperation

                                                                                                                                                                                                                                                                                                                                  BatchUpdateEntityTypesOperation returns a new BatchUpdateEntityTypesOperation from a given name. The name must be that of a previously created BatchUpdateEntityTypesOperation, possibly from a different process.

                                                                                                                                                                                                                                                                                                                                  func (*EntityTypesClient) Close

                                                                                                                                                                                                                                                                                                                                  func (c *EntityTypesClient) Close() error

                                                                                                                                                                                                                                                                                                                                    Close closes the connection to the API service. The user should invoke this when the client is no longer required.

                                                                                                                                                                                                                                                                                                                                    func (*EntityTypesClient) Connection

                                                                                                                                                                                                                                                                                                                                    func (c *EntityTypesClient) Connection() *grpc.ClientConn

                                                                                                                                                                                                                                                                                                                                      Connection returns a connection to the API service.

                                                                                                                                                                                                                                                                                                                                      Deprecated.

                                                                                                                                                                                                                                                                                                                                      func (*EntityTypesClient) CreateEntityType

                                                                                                                                                                                                                                                                                                                                        CreateEntityType creates an entity type in the specified agent.

                                                                                                                                                                                                                                                                                                                                        Example
                                                                                                                                                                                                                                                                                                                                        Output:
                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                        

                                                                                                                                                                                                                                                                                                                                        func (*EntityTypesClient) DeleteEntityType

                                                                                                                                                                                                                                                                                                                                        func (c *EntityTypesClient) DeleteEntityType(ctx context.Context, req *dialogflowpb.DeleteEntityTypeRequest, opts ...gax.CallOption) error

                                                                                                                                                                                                                                                                                                                                          DeleteEntityType deletes the specified entity type.

                                                                                                                                                                                                                                                                                                                                          Example
                                                                                                                                                                                                                                                                                                                                          Output:
                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                          

                                                                                                                                                                                                                                                                                                                                          func (*EntityTypesClient) GetEntityType

                                                                                                                                                                                                                                                                                                                                            GetEntityType retrieves the specified entity type.

                                                                                                                                                                                                                                                                                                                                            Example
                                                                                                                                                                                                                                                                                                                                            Output:
                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                            

                                                                                                                                                                                                                                                                                                                                            func (*EntityTypesClient) ListEntityTypes

                                                                                                                                                                                                                                                                                                                                              ListEntityTypes returns the list of all entity types in the specified agent.

                                                                                                                                                                                                                                                                                                                                              Example
                                                                                                                                                                                                                                                                                                                                              Output:
                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                              

                                                                                                                                                                                                                                                                                                                                              func (*EntityTypesClient) UpdateEntityType

                                                                                                                                                                                                                                                                                                                                                UpdateEntityType updates the specified entity type.

                                                                                                                                                                                                                                                                                                                                                Example
                                                                                                                                                                                                                                                                                                                                                Output:
                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                

                                                                                                                                                                                                                                                                                                                                                type EnvironmentIterator

                                                                                                                                                                                                                                                                                                                                                type EnvironmentIterator 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 []*dialogflowpb.Environment, nextPageToken string, err error)
                                                                                                                                                                                                                                                                                                                                                	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                  EnvironmentIterator manages a stream of *dialogflowpb.Environment.

                                                                                                                                                                                                                                                                                                                                                  func (*EnvironmentIterator) Next

                                                                                                                                                                                                                                                                                                                                                    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 (*EnvironmentIterator) PageInfo

                                                                                                                                                                                                                                                                                                                                                    func (it *EnvironmentIterator) PageInfo() *iterator.PageInfo

                                                                                                                                                                                                                                                                                                                                                      PageInfo supports pagination. See the google.golang.org/api/iterator package for details.

                                                                                                                                                                                                                                                                                                                                                      type EnvironmentsCallOptions

                                                                                                                                                                                                                                                                                                                                                      type EnvironmentsCallOptions struct {
                                                                                                                                                                                                                                                                                                                                                      	ListEnvironments []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                        EnvironmentsCallOptions contains the retry settings for each method of EnvironmentsClient.

                                                                                                                                                                                                                                                                                                                                                        type EnvironmentsClient

                                                                                                                                                                                                                                                                                                                                                        type EnvironmentsClient struct {
                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                        	// The call options for this service.
                                                                                                                                                                                                                                                                                                                                                        	CallOptions *EnvironmentsCallOptions
                                                                                                                                                                                                                                                                                                                                                        	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                                                          EnvironmentsClient is a client for interacting with Dialogflow API.

                                                                                                                                                                                                                                                                                                                                                          Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

                                                                                                                                                                                                                                                                                                                                                          func NewEnvironmentsClient

                                                                                                                                                                                                                                                                                                                                                          func NewEnvironmentsClient(ctx context.Context, opts ...option.ClientOption) (*EnvironmentsClient, error)

                                                                                                                                                                                                                                                                                                                                                            NewEnvironmentsClient creates a new environments client.

                                                                                                                                                                                                                                                                                                                                                            Service for managing Environments.

                                                                                                                                                                                                                                                                                                                                                            Example
                                                                                                                                                                                                                                                                                                                                                            Output:
                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                            

                                                                                                                                                                                                                                                                                                                                                            func (*EnvironmentsClient) Close

                                                                                                                                                                                                                                                                                                                                                            func (c *EnvironmentsClient) Close() error

                                                                                                                                                                                                                                                                                                                                                              Close closes the connection to the API service. The user should invoke this when the client is no longer required.

                                                                                                                                                                                                                                                                                                                                                              func (*EnvironmentsClient) Connection

                                                                                                                                                                                                                                                                                                                                                              func (c *EnvironmentsClient) Connection() *grpc.ClientConn

                                                                                                                                                                                                                                                                                                                                                                Connection returns a connection to the API service.

                                                                                                                                                                                                                                                                                                                                                                Deprecated.

                                                                                                                                                                                                                                                                                                                                                                func (*EnvironmentsClient) ListEnvironments

                                                                                                                                                                                                                                                                                                                                                                  ListEnvironments returns the list of all non-draft environments of the specified agent.

                                                                                                                                                                                                                                                                                                                                                                  Example
                                                                                                                                                                                                                                                                                                                                                                  Output:
                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                  

                                                                                                                                                                                                                                                                                                                                                                  type ExportAgentOperation

                                                                                                                                                                                                                                                                                                                                                                  type ExportAgentOperation struct {
                                                                                                                                                                                                                                                                                                                                                                  	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                    ExportAgentOperation manages a long-running operation from ExportAgent.

                                                                                                                                                                                                                                                                                                                                                                    func (*ExportAgentOperation) Done

                                                                                                                                                                                                                                                                                                                                                                    func (op *ExportAgentOperation) Done() bool

                                                                                                                                                                                                                                                                                                                                                                      Done reports whether the long-running operation has completed.

                                                                                                                                                                                                                                                                                                                                                                      func (*ExportAgentOperation) Metadata

                                                                                                                                                                                                                                                                                                                                                                      func (op *ExportAgentOperation) Metadata() (*structpb.Struct, 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 (*ExportAgentOperation) Name

                                                                                                                                                                                                                                                                                                                                                                        func (op *ExportAgentOperation) 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 (*ExportAgentOperation) Poll

                                                                                                                                                                                                                                                                                                                                                                            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 (*ExportAgentOperation) Wait

                                                                                                                                                                                                                                                                                                                                                                              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 ImportAgentOperation

                                                                                                                                                                                                                                                                                                                                                                              type ImportAgentOperation struct {
                                                                                                                                                                                                                                                                                                                                                                              	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                ImportAgentOperation manages a long-running operation from ImportAgent.

                                                                                                                                                                                                                                                                                                                                                                                func (*ImportAgentOperation) Done

                                                                                                                                                                                                                                                                                                                                                                                func (op *ImportAgentOperation) Done() bool

                                                                                                                                                                                                                                                                                                                                                                                  Done reports whether the long-running operation has completed.

                                                                                                                                                                                                                                                                                                                                                                                  func (*ImportAgentOperation) Metadata

                                                                                                                                                                                                                                                                                                                                                                                  func (op *ImportAgentOperation) Metadata() (*structpb.Struct, 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 (*ImportAgentOperation) Name

                                                                                                                                                                                                                                                                                                                                                                                    func (op *ImportAgentOperation) 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 (*ImportAgentOperation) Poll

                                                                                                                                                                                                                                                                                                                                                                                      func (op *ImportAgentOperation) 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 (*ImportAgentOperation) Wait

                                                                                                                                                                                                                                                                                                                                                                                        func (op *ImportAgentOperation) 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 IntentIterator

                                                                                                                                                                                                                                                                                                                                                                                          type IntentIterator 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 []*dialogflowpb.Intent, nextPageToken string, err error)
                                                                                                                                                                                                                                                                                                                                                                                          	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                            IntentIterator manages a stream of *dialogflowpb.Intent.

                                                                                                                                                                                                                                                                                                                                                                                            func (*IntentIterator) Next

                                                                                                                                                                                                                                                                                                                                                                                            func (it *IntentIterator) Next() (*dialogflowpb.Intent, 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 (*IntentIterator) PageInfo

                                                                                                                                                                                                                                                                                                                                                                                              func (it *IntentIterator) PageInfo() *iterator.PageInfo

                                                                                                                                                                                                                                                                                                                                                                                                PageInfo supports pagination. See the google.golang.org/api/iterator package for details.

                                                                                                                                                                                                                                                                                                                                                                                                type IntentsCallOptions

                                                                                                                                                                                                                                                                                                                                                                                                type IntentsCallOptions struct {
                                                                                                                                                                                                                                                                                                                                                                                                	ListIntents        []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                	GetIntent          []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                	CreateIntent       []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                	UpdateIntent       []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                	DeleteIntent       []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                	BatchUpdateIntents []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                	BatchDeleteIntents []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                }

                                                                                                                                                                                                                                                                                                                                                                                                  IntentsCallOptions contains the retry settings for each method of IntentsClient.

                                                                                                                                                                                                                                                                                                                                                                                                  type IntentsClient

                                                                                                                                                                                                                                                                                                                                                                                                  type IntentsClient struct {
                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                  	// LROClient is used internally to handle longrunning operations.
                                                                                                                                                                                                                                                                                                                                                                                                  	// It is exposed so that its CallOptions can be modified if required.
                                                                                                                                                                                                                                                                                                                                                                                                  	// Users should not Close this client.
                                                                                                                                                                                                                                                                                                                                                                                                  	LROClient *lroauto.OperationsClient
                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                  	// The call options for this service.
                                                                                                                                                                                                                                                                                                                                                                                                  	CallOptions *IntentsCallOptions
                                                                                                                                                                                                                                                                                                                                                                                                  	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                    IntentsClient is a client for interacting with Dialogflow API.

                                                                                                                                                                                                                                                                                                                                                                                                    Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

                                                                                                                                                                                                                                                                                                                                                                                                    func NewIntentsClient

                                                                                                                                                                                                                                                                                                                                                                                                    func NewIntentsClient(ctx context.Context, opts ...option.ClientOption) (*IntentsClient, error)

                                                                                                                                                                                                                                                                                                                                                                                                      NewIntentsClient creates a new intents client.

                                                                                                                                                                                                                                                                                                                                                                                                      Service for managing Intents.

                                                                                                                                                                                                                                                                                                                                                                                                      Example
                                                                                                                                                                                                                                                                                                                                                                                                      Output:
                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                                                                                                                                      func (*IntentsClient) BatchDeleteIntents

                                                                                                                                                                                                                                                                                                                                                                                                        BatchDeleteIntents deletes intents in the specified agent.

                                                                                                                                                                                                                                                                                                                                                                                                        Operation <response: google.protobuf.Empty>

                                                                                                                                                                                                                                                                                                                                                                                                        Example
                                                                                                                                                                                                                                                                                                                                                                                                        Output:
                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                        

                                                                                                                                                                                                                                                                                                                                                                                                        func (*IntentsClient) BatchDeleteIntentsOperation

                                                                                                                                                                                                                                                                                                                                                                                                        func (c *IntentsClient) BatchDeleteIntentsOperation(name string) *BatchDeleteIntentsOperation

                                                                                                                                                                                                                                                                                                                                                                                                          BatchDeleteIntentsOperation returns a new BatchDeleteIntentsOperation from a given name. The name must be that of a previously created BatchDeleteIntentsOperation, possibly from a different process.

                                                                                                                                                                                                                                                                                                                                                                                                          func (*IntentsClient) BatchUpdateIntents

                                                                                                                                                                                                                                                                                                                                                                                                            BatchUpdateIntents updates/Creates multiple intents in the specified agent.

                                                                                                                                                                                                                                                                                                                                                                                                            Operation <response: BatchUpdateIntentsResponse>

                                                                                                                                                                                                                                                                                                                                                                                                            Example
                                                                                                                                                                                                                                                                                                                                                                                                            Output:
                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                            

                                                                                                                                                                                                                                                                                                                                                                                                            func (*IntentsClient) BatchUpdateIntentsOperation

                                                                                                                                                                                                                                                                                                                                                                                                            func (c *IntentsClient) BatchUpdateIntentsOperation(name string) *BatchUpdateIntentsOperation

                                                                                                                                                                                                                                                                                                                                                                                                              BatchUpdateIntentsOperation returns a new BatchUpdateIntentsOperation from a given name. The name must be that of a previously created BatchUpdateIntentsOperation, possibly from a different process.

                                                                                                                                                                                                                                                                                                                                                                                                              func (*IntentsClient) Close

                                                                                                                                                                                                                                                                                                                                                                                                              func (c *IntentsClient) Close() error

                                                                                                                                                                                                                                                                                                                                                                                                                Close closes the connection to the API service. The user should invoke this when the client is no longer required.

                                                                                                                                                                                                                                                                                                                                                                                                                func (*IntentsClient) Connection

                                                                                                                                                                                                                                                                                                                                                                                                                func (c *IntentsClient) Connection() *grpc.ClientConn

                                                                                                                                                                                                                                                                                                                                                                                                                  Connection returns a connection to the API service.

                                                                                                                                                                                                                                                                                                                                                                                                                  Deprecated.

                                                                                                                                                                                                                                                                                                                                                                                                                  func (*IntentsClient) CreateIntent

                                                                                                                                                                                                                                                                                                                                                                                                                    CreateIntent creates an intent in the specified agent.

                                                                                                                                                                                                                                                                                                                                                                                                                    Example
                                                                                                                                                                                                                                                                                                                                                                                                                    Output:
                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                    

                                                                                                                                                                                                                                                                                                                                                                                                                    func (*IntentsClient) DeleteIntent

                                                                                                                                                                                                                                                                                                                                                                                                                    func (c *IntentsClient) DeleteIntent(ctx context.Context, req *dialogflowpb.DeleteIntentRequest, opts ...gax.CallOption) error

                                                                                                                                                                                                                                                                                                                                                                                                                      DeleteIntent deletes the specified intent and its direct or indirect followup intents.

                                                                                                                                                                                                                                                                                                                                                                                                                      Example
                                                                                                                                                                                                                                                                                                                                                                                                                      Output:
                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                                                                                                                                                      func (*IntentsClient) GetIntent

                                                                                                                                                                                                                                                                                                                                                                                                                        GetIntent retrieves the specified intent.

                                                                                                                                                                                                                                                                                                                                                                                                                        Example
                                                                                                                                                                                                                                                                                                                                                                                                                        Output:
                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                        

                                                                                                                                                                                                                                                                                                                                                                                                                        func (*IntentsClient) ListIntents

                                                                                                                                                                                                                                                                                                                                                                                                                          ListIntents returns the list of all intents in the specified agent.

                                                                                                                                                                                                                                                                                                                                                                                                                          Example
                                                                                                                                                                                                                                                                                                                                                                                                                          Output:
                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                          

                                                                                                                                                                                                                                                                                                                                                                                                                          func (*IntentsClient) UpdateIntent

                                                                                                                                                                                                                                                                                                                                                                                                                            UpdateIntent updates the specified intent.

                                                                                                                                                                                                                                                                                                                                                                                                                            Example
                                                                                                                                                                                                                                                                                                                                                                                                                            Output:
                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                            

                                                                                                                                                                                                                                                                                                                                                                                                                            type KnowledgeBaseIterator

                                                                                                                                                                                                                                                                                                                                                                                                                            type KnowledgeBaseIterator 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 []*dialogflowpb.KnowledgeBase, nextPageToken string, err error)
                                                                                                                                                                                                                                                                                                                                                                                                                            	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                              KnowledgeBaseIterator manages a stream of *dialogflowpb.KnowledgeBase.

                                                                                                                                                                                                                                                                                                                                                                                                                              func (*KnowledgeBaseIterator) Next

                                                                                                                                                                                                                                                                                                                                                                                                                                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 (*KnowledgeBaseIterator) PageInfo

                                                                                                                                                                                                                                                                                                                                                                                                                                func (it *KnowledgeBaseIterator) PageInfo() *iterator.PageInfo

                                                                                                                                                                                                                                                                                                                                                                                                                                  PageInfo supports pagination. See the google.golang.org/api/iterator package for details.

                                                                                                                                                                                                                                                                                                                                                                                                                                  type KnowledgeBasesCallOptions

                                                                                                                                                                                                                                                                                                                                                                                                                                  type KnowledgeBasesCallOptions struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                  	ListKnowledgeBases  []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                                                  	GetKnowledgeBase    []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                                                  	CreateKnowledgeBase []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                                                  	DeleteKnowledgeBase []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                                                  	UpdateKnowledgeBase []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                    KnowledgeBasesCallOptions contains the retry settings for each method of KnowledgeBasesClient.

                                                                                                                                                                                                                                                                                                                                                                                                                                    type KnowledgeBasesClient

                                                                                                                                                                                                                                                                                                                                                                                                                                    type KnowledgeBasesClient struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                    	// The call options for this service.
                                                                                                                                                                                                                                                                                                                                                                                                                                    	CallOptions *KnowledgeBasesCallOptions
                                                                                                                                                                                                                                                                                                                                                                                                                                    	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                      KnowledgeBasesClient is a client for interacting with Dialogflow API.

                                                                                                                                                                                                                                                                                                                                                                                                                                      Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewKnowledgeBasesClient

                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewKnowledgeBasesClient(ctx context.Context, opts ...option.ClientOption) (*KnowledgeBasesClient, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                        NewKnowledgeBasesClient creates a new knowledge bases client.

                                                                                                                                                                                                                                                                                                                                                                                                                                        Service for managing KnowledgeBases.

                                                                                                                                                                                                                                                                                                                                                                                                                                        Example
                                                                                                                                                                                                                                                                                                                                                                                                                                        Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                        

                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*KnowledgeBasesClient) Close

                                                                                                                                                                                                                                                                                                                                                                                                                                        func (c *KnowledgeBasesClient) Close() error

                                                                                                                                                                                                                                                                                                                                                                                                                                          Close closes the connection to the API service. The user should invoke this when the client is no longer required.

                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*KnowledgeBasesClient) Connection

                                                                                                                                                                                                                                                                                                                                                                                                                                          func (c *KnowledgeBasesClient) Connection() *grpc.ClientConn

                                                                                                                                                                                                                                                                                                                                                                                                                                            Connection returns a connection to the API service.

                                                                                                                                                                                                                                                                                                                                                                                                                                            Deprecated.

                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*KnowledgeBasesClient) CreateKnowledgeBase

                                                                                                                                                                                                                                                                                                                                                                                                                                              CreateKnowledgeBase creates a knowledge base.

                                                                                                                                                                                                                                                                                                                                                                                                                                              Example
                                                                                                                                                                                                                                                                                                                                                                                                                                              Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                              

                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*KnowledgeBasesClient) DeleteKnowledgeBase

                                                                                                                                                                                                                                                                                                                                                                                                                                                DeleteKnowledgeBase deletes the specified knowledge base.

                                                                                                                                                                                                                                                                                                                                                                                                                                                Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                

                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*KnowledgeBasesClient) GetKnowledgeBase

                                                                                                                                                                                                                                                                                                                                                                                                                                                  GetKnowledgeBase retrieves the specified knowledge base.

                                                                                                                                                                                                                                                                                                                                                                                                                                                  Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                  Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                  

                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*KnowledgeBasesClient) ListKnowledgeBases

                                                                                                                                                                                                                                                                                                                                                                                                                                                    ListKnowledgeBases returns the list of all knowledge bases of the specified agent.

                                                                                                                                                                                                                                                                                                                                                                                                                                                    Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                    Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                    

                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*KnowledgeBasesClient) UpdateKnowledgeBase

                                                                                                                                                                                                                                                                                                                                                                                                                                                      UpdateKnowledgeBase updates the specified knowledge base.

                                                                                                                                                                                                                                                                                                                                                                                                                                                      Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                      Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                                                                                                                                                                                      type MessageIterator

                                                                                                                                                                                                                                                                                                                                                                                                                                                      type MessageIterator 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 []*dialogflowpb.Message, nextPageToken string, err error)
                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                        MessageIterator manages a stream of *dialogflowpb.Message.

                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*MessageIterator) Next

                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (it *MessageIterator) Next() (*dialogflowpb.Message, 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 (*MessageIterator) PageInfo

                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (it *MessageIterator) PageInfo() *iterator.PageInfo

                                                                                                                                                                                                                                                                                                                                                                                                                                                            PageInfo supports pagination. See the google.golang.org/api/iterator package for details.

                                                                                                                                                                                                                                                                                                                                                                                                                                                            type ParticipantIterator

                                                                                                                                                                                                                                                                                                                                                                                                                                                            type ParticipantIterator 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 []*dialogflowpb.Participant, nextPageToken string, err error)
                                                                                                                                                                                                                                                                                                                                                                                                                                                            	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                              ParticipantIterator manages a stream of *dialogflowpb.Participant.

                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*ParticipantIterator) Next

                                                                                                                                                                                                                                                                                                                                                                                                                                                                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 (*ParticipantIterator) PageInfo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (it *ParticipantIterator) PageInfo() *iterator.PageInfo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  PageInfo supports pagination. See the google.golang.org/api/iterator package for details.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type ParticipantsCallOptions

                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type ParticipantsCallOptions struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	CreateParticipant []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	GetParticipant    []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	ListParticipants  []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	UpdateParticipant []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	AnalyzeContent    []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	SuggestArticles   []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	SuggestFaqAnswers []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ParticipantsCallOptions contains the retry settings for each method of ParticipantsClient.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type ParticipantsClient

                                                                                                                                                                                                                                                                                                                                                                                                                                                                    type ParticipantsClient struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// The call options for this service.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	CallOptions *ParticipantsCallOptions
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                    }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ParticipantsClient is a client for interacting with Dialogflow API.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewParticipantsClient

                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func NewParticipantsClient(ctx context.Context, opts ...option.ClientOption) (*ParticipantsClient, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NewParticipantsClient creates a new participants client.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Service for managing Participants.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*ParticipantsClient) AnalyzeContent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          AnalyzeContent adds a text (chat, for example), or audio (phone recording, for example) message from a participant into the conversation.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Note: Always use agent versions for production traffic sent to virtual agents. See Versions and environments (at https://cloud.google.com/dialogflow/es/docs/agents-versions).

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*ParticipantsClient) Close

                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (c *ParticipantsClient) Close() error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Close closes the connection to the API service. The user should invoke this when the client is no longer required.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*ParticipantsClient) Connection

                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (c *ParticipantsClient) Connection() *grpc.ClientConn

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Connection returns a connection to the API service.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Deprecated.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*ParticipantsClient) CreateParticipant

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                CreateParticipant creates a new participant in a conversation.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*ParticipantsClient) GetParticipant

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  GetParticipant retrieves a conversation participant.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*ParticipantsClient) ListParticipants

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    ListParticipants returns the list of all participants in the specified conversation.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*ParticipantsClient) SuggestArticles

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      SuggestArticles gets suggested articles for a participant based on specific historical messages.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*ParticipantsClient) SuggestFaqAnswers

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        SuggestFaqAnswers gets suggested faq answers for a participant based on specific historical messages.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*ParticipantsClient) UpdateParticipant

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          UpdateParticipant updates the specified participant.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type ReloadDocumentOperation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type ReloadDocumentOperation struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            ReloadDocumentOperation manages a long-running operation from ReloadDocument.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*ReloadDocumentOperation) Done

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (op *ReloadDocumentOperation) Done() bool

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Done reports whether the long-running operation has completed.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*ReloadDocumentOperation) Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                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 (*ReloadDocumentOperation) Name

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (op *ReloadDocumentOperation) 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 (*ReloadDocumentOperation) Poll

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    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 (*ReloadDocumentOperation) Wait

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      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 RestoreAgentOperation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type RestoreAgentOperation struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        RestoreAgentOperation manages a long-running operation from RestoreAgent.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*RestoreAgentOperation) Done

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (op *RestoreAgentOperation) Done() bool

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Done reports whether the long-running operation has completed.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*RestoreAgentOperation) Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (op *RestoreAgentOperation) Metadata() (*structpb.Struct, 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 (*RestoreAgentOperation) Name

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (op *RestoreAgentOperation) 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 (*RestoreAgentOperation) Poll

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (op *RestoreAgentOperation) 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 (*RestoreAgentOperation) Wait

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (op *RestoreAgentOperation) 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 SessionEntityTypeIterator

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  type SessionEntityTypeIterator 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 []*dialogflowpb.SessionEntityType, nextPageToken string, err error)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    SessionEntityTypeIterator manages a stream of *dialogflowpb.SessionEntityType.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*SessionEntityTypeIterator) Next

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      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 (*SessionEntityTypeIterator) PageInfo

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        PageInfo supports pagination. See the google.golang.org/api/iterator package for details.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type SessionEntityTypesCallOptions

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        type SessionEntityTypesCallOptions struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	ListSessionEntityTypes  []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	GetSessionEntityType    []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	CreateSessionEntityType []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	UpdateSessionEntityType []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        	DeleteSessionEntityType []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          SessionEntityTypesCallOptions contains the retry settings for each method of SessionEntityTypesClient.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type SessionEntityTypesClient

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type SessionEntityTypesClient struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// The call options for this service.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	CallOptions *SessionEntityTypesCallOptions
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            SessionEntityTypesClient is a client for interacting with Dialogflow API.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewSessionEntityTypesClient

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func NewSessionEntityTypesClient(ctx context.Context, opts ...option.ClientOption) (*SessionEntityTypesClient, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              NewSessionEntityTypesClient creates a new session entity types client.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Service for managing SessionEntityTypes.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*SessionEntityTypesClient) Close

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (c *SessionEntityTypesClient) Close() error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Close closes the connection to the API service. The user should invoke this when the client is no longer required.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (*SessionEntityTypesClient) Connection

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (c *SessionEntityTypesClient) Connection() *grpc.ClientConn

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Connection returns a connection to the API service.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Deprecated.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*SessionEntityTypesClient) CreateSessionEntityType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    CreateSessionEntityType creates a session entity type.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    If the specified session entity type already exists, overrides the session entity type.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*SessionEntityTypesClient) DeleteSessionEntityType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      DeleteSessionEntityType deletes the specified session entity type.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*SessionEntityTypesClient) GetSessionEntityType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        GetSessionEntityType retrieves the specified session entity type.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*SessionEntityTypesClient) ListSessionEntityTypes

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ListSessionEntityTypes returns the list of all session entity types in the specified session.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*SessionEntityTypesClient) UpdateSessionEntityType

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            UpdateSessionEntityType updates the specified session entity type.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            This method doesn’t work with Google Assistant integration. Contact Dialogflow support if you need to use session entities with Google Assistant integration.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type SessionsCallOptions

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            type SessionsCallOptions struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	DetectIntent          []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            	StreamingDetectIntent []gax.CallOption
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              SessionsCallOptions contains the retry settings for each method of SessionsClient.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type SessionsClient

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              type SessionsClient struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// The call options for this service.
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	CallOptions *SessionsCallOptions
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                SessionsClient is a client for interacting with Dialogflow API.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                Methods, except Close, may be called concurrently. However, fields must not be modified concurrently with method calls.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func NewSessionsClient

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func NewSessionsClient(ctx context.Context, opts ...option.ClientOption) (*SessionsClient, error)

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NewSessionsClient creates a new sessions client.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  A service used for session interactions.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  For more information, see the API interactions guide (at https://cloud.google.com/dialogflow/docs/api-overview).

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (*SessionsClient) Close

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (c *SessionsClient) Close() error

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    Close closes the connection to the API service. The user should invoke this when the client is no longer required.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (*SessionsClient) Connection

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (c *SessionsClient) Connection() *grpc.ClientConn

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Connection returns a connection to the API service.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Deprecated.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      func (*SessionsClient) DetectIntent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        DetectIntent processes a natural language query and returns structured, actionable data as a result. This method is not idempotent, because it may cause contexts and session entity types to be updated, which in turn might affect results of future queries.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Note: Always use agent versions for production traffic. See Versions and environments (at https://cloud.google.com/dialogflow/es/docs/agents-versions).

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*SessionsClient) StreamingDetectIntent

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          StreamingDetectIntent processes a natural language query in audio format in a streaming fashion and returns structured, actionable data as a result. This method is only available via the gRPC API (not REST).

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Note: Always use agent versions for production traffic. See Versions and environments (at https://cloud.google.com/dialogflow/es/docs/agents-versions).

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Example
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Output:
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type TrainAgentOperation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          type TrainAgentOperation struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            TrainAgentOperation manages a long-running operation from TrainAgent.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (*TrainAgentOperation) Done

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (op *TrainAgentOperation) Done() bool

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              Done reports whether the long-running operation has completed.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (*TrainAgentOperation) Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func (op *TrainAgentOperation) Metadata() (*structpb.Struct, 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 (*TrainAgentOperation) Name

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                func (op *TrainAgentOperation) 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 (*TrainAgentOperation) Poll

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  func (op *TrainAgentOperation) 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 (*TrainAgentOperation) Wait

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func (op *TrainAgentOperation) 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 UpdateDocumentOperation

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      type UpdateDocumentOperation struct {
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      	// contains filtered or unexported fields
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      }

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        UpdateDocumentOperation manages a long-running operation from UpdateDocument.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (*UpdateDocumentOperation) Done

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        func (op *UpdateDocumentOperation) Done() bool

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          Done reports whether the long-running operation has completed.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          func (*UpdateDocumentOperation) Metadata

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            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 (*UpdateDocumentOperation) Name

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            func (op *UpdateDocumentOperation) 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 (*UpdateDocumentOperation) Poll

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                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 (*UpdateDocumentOperation) Wait

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  Wait blocks until the long-running operation is completed, returning the response and any errors encountered.

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  See documentation of Poll for error-handling information.