Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::KnowledgeBases::Rest::ServiceStub (v0.31.0)

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

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

Inherits

  • Object

Methods

#create_knowledge_base

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

Baseline implementation for the create_knowledge_base REST call

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

#delete_knowledge_base

def delete_knowledge_base(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_knowledge_base REST call

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

#get_knowledge_base

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

Baseline implementation for the get_knowledge_base REST call

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

#initialize

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

#list_knowledge_bases

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

Baseline implementation for the list_knowledge_bases REST call

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

#update_knowledge_base

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

Baseline implementation for the update_knowledge_base REST call

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