Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::Tools::Rest::ServiceStub (v1.13.0)

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::Tool

Baseline implementation for the create_tool REST call

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

#delete_tool

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

Baseline implementation for the delete_tool 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_tool

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

Baseline implementation for the get_tool REST call

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

#list_tools

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

Baseline implementation for the list_tools REST call

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

#logger

def logger(stub: false) -> Logger

The logger used for request/response debug logging.

Returns
  • (Logger)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#update_tool

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

Baseline implementation for the update_tool REST call

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