Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::Participants::Rest::ServiceStub (v1.0.0)

Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::Participants::Rest::ServiceStub.

REST service stub for the Participants service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.

Inherits

  • Object

Methods

#analyze_content

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

Baseline implementation for the analyze_content REST call

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

#create_participant

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

Baseline implementation for the create_participant 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)

#get_participant

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

Baseline implementation for the get_participant 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_participants

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

Baseline implementation for the list_participants REST call

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

#suggest_articles

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

Baseline implementation for the suggest_articles REST call

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

#suggest_faq_answers

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

Baseline implementation for the suggest_faq_answers REST call

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

#suggest_smart_replies

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

Baseline implementation for the suggest_smart_replies 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)

#update_participant

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

Baseline implementation for the update_participant REST call

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