Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::Generators::Rest::ServiceStub (v1.2.0)

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

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

  • Object

#create_generator

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

Baseline implementation for the create_generator REST call

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

#delete_generator

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

Baseline implementation for the delete_generator 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_generator

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

Baseline implementation for the get_generator 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_generators

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

Baseline implementation for the list_generators 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_generator

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

Baseline implementation for the update_generator REST call

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