Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::Conversations::Rest::ServiceStub (v0.34.0)

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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
Returns

#list_conversations

def list_conversations(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::ListConversationsResponse

Baseline implementation for the list_conversations REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::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

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)