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
- request_pb (::Google::Cloud::Dialogflow::V2::CreateKnowledgeBaseRequest) — 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::KnowledgeBase)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::KnowledgeBase) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::Dialogflow::V2::DeleteKnowledgeBaseRequest) — 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::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::Dialogflow::V2::GetKnowledgeBaseRequest) — 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::KnowledgeBase)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::KnowledgeBase) — A result object deserialized from the server's reply
- (::ArgumentError)
#initialize
def initialize(endpoint:, credentials:) -> ServiceStub
- (ServiceStub) — a new instance of ServiceStub
#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
- request_pb (::Google::Cloud::Dialogflow::V2::ListKnowledgeBasesRequest) — 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::ListKnowledgeBasesResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::ListKnowledgeBasesResponse) — A result object deserialized from the server's reply
- (::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
- request_pb (::Google::Cloud::Dialogflow::V2::UpdateKnowledgeBaseRequest) — 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::KnowledgeBase)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::KnowledgeBase) — A result object deserialized from the server's reply
- (::ArgumentError)