Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::Conversations::Rest::ServiceStub.
REST service stub for the Conversations service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#complete_conversation
def complete_conversation(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::Conversation
Baseline implementation for the complete_conversation REST call
- request_pb (::Google::Cloud::Dialogflow::V2::CompleteConversationRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dialogflow::V2::Conversation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::Conversation) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_conversation
def create_conversation(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::Conversation
Baseline implementation for the create_conversation REST call
- request_pb (::Google::Cloud::Dialogflow::V2::CreateConversationRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dialogflow::V2::Conversation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::Conversation) — A result object deserialized from the server's reply
- (::ArgumentError)
#endpoint
def endpoint() -> String
The effective endpoint
- (String)
#generate_stateless_suggestion
def generate_stateless_suggestion(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::GenerateStatelessSuggestionResponse
Baseline implementation for the generate_stateless_suggestion REST call
- request_pb (::Google::Cloud::Dialogflow::V2::GenerateStatelessSuggestionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dialogflow::V2::GenerateStatelessSuggestionResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::GenerateStatelessSuggestionResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#generate_stateless_summary
def generate_stateless_summary(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::GenerateStatelessSummaryResponse
Baseline implementation for the generate_stateless_summary REST call
- request_pb (::Google::Cloud::Dialogflow::V2::GenerateStatelessSummaryRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dialogflow::V2::GenerateStatelessSummaryResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::GenerateStatelessSummaryResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_conversation
def get_conversation(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::Conversation
Baseline implementation for the get_conversation REST call
- request_pb (::Google::Cloud::Dialogflow::V2::GetConversationRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dialogflow::V2::Conversation)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::Conversation) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#list_conversations
def list_conversations(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::ListConversationsResponse
Baseline implementation for the list_conversations REST call
- request_pb (::Google::Cloud::Dialogflow::V2::ListConversationsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dialogflow::V2::ListConversationsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::ListConversationsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_messages
def list_messages(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::ListMessagesResponse
Baseline implementation for the list_messages REST call
- request_pb (::Google::Cloud::Dialogflow::V2::ListMessagesRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dialogflow::V2::ListMessagesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::ListMessagesResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#search_knowledge
def search_knowledge(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::SearchKnowledgeResponse
Baseline implementation for the search_knowledge REST call
- request_pb (::Google::Cloud::Dialogflow::V2::SearchKnowledgeRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dialogflow::V2::SearchKnowledgeResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::SearchKnowledgeResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#suggest_conversation_summary
def suggest_conversation_summary(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::SuggestConversationSummaryResponse
Baseline implementation for the suggest_conversation_summary REST call
- request_pb (::Google::Cloud::Dialogflow::V2::SuggestConversationSummaryRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::Dialogflow::V2::SuggestConversationSummaryResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::SuggestConversationSummaryResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)