Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::Tools::Rest::ServiceStub.
REST service stub for the Tools service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#create_tool
def create_tool(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::ToolBaseline implementation for the create_tool REST call
- request_pb (::Google::Cloud::Dialogflow::V2::CreateToolRequest) — 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::Tool)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::Tool) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_tool
def delete_tool(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::EmptyBaseline implementation for the delete_tool REST call
- request_pb (::Google::Cloud::Dialogflow::V2::DeleteToolRequest) — 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)
#endpoint
def endpoint() -> StringThe effective endpoint
- (String)
#get_tool
def get_tool(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::ToolBaseline implementation for the get_tool REST call
- request_pb (::Google::Cloud::Dialogflow::V2::GetToolRequest) — 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::Tool)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::Tool) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_tools
def list_tools(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::ListToolsResponseBaseline implementation for the list_tools REST call
- request_pb (::Google::Cloud::Dialogflow::V2::ListToolsRequest) — 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::ListToolsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::ListToolsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#logger
def logger(stub: false) -> LoggerThe logger used for request/response debug logging.
- (Logger)
#universe_domain
def universe_domain() -> StringThe effective universe domain
- (String)
#update_tool
def update_tool(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Dialogflow::V2::ToolBaseline implementation for the update_tool REST call
- request_pb (::Google::Cloud::Dialogflow::V2::UpdateToolRequest) — 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::Tool)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Dialogflow::V2::Tool) — A result object deserialized from the server's reply
- (::ArgumentError)