Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::Configuration
Configure the Fulfillments Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all Fulfillments clients ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.configure do |config| config.timeout = 10.0 end
#configure
def configure() { |config| ... } -> Client::Configuration
Configure the Fulfillments Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#get_fulfillment
def get_fulfillment(request, options = nil) -> ::Google::Cloud::Dialogflow::V2::Fulfillment
def get_fulfillment(name: nil) -> ::Google::Cloud::Dialogflow::V2::Fulfillment
Retrieves the fulfillment.
def get_fulfillment(request, options = nil) -> ::Google::Cloud::Dialogflow::V2::Fulfillment
get_fulfillment
via a request object, either of type
GetFulfillmentRequest or an equivalent Hash.
- request (::Google::Cloud::Dialogflow::V2::GetFulfillmentRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def get_fulfillment(name: nil) -> ::Google::Cloud::Dialogflow::V2::Fulfillment
get_fulfillment
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The name of the fulfillment.
Format:
projects/<Project ID>/agent/fulfillment
.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Dialogflow::V2::Fulfillment)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dialogflow/v2" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dialogflow::V2::Fulfillments::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dialogflow::V2::GetFulfillmentRequest.new # Call the get_fulfillment method. result = client.get_fulfillment request # The returned object is of type Google::Cloud::Dialogflow::V2::Fulfillment. p result
#initialize
def initialize() { |config| ... } -> Client
Create a new Fulfillments client object.
- (config) — Configure the Fulfillments client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.new # Create a client using a custom configuration client = ::Google::Cloud::Dialogflow::V2::Fulfillments::Client.new do |config| config.timeout = 10.0 end
#update_fulfillment
def update_fulfillment(request, options = nil) -> ::Google::Cloud::Dialogflow::V2::Fulfillment
def update_fulfillment(fulfillment: nil, update_mask: nil) -> ::Google::Cloud::Dialogflow::V2::Fulfillment
Updates the fulfillment.
def update_fulfillment(request, options = nil) -> ::Google::Cloud::Dialogflow::V2::Fulfillment
update_fulfillment
via a request object, either of type
UpdateFulfillmentRequest or an equivalent Hash.
- request (::Google::Cloud::Dialogflow::V2::UpdateFulfillmentRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
def update_fulfillment(fulfillment: nil, update_mask: nil) -> ::Google::Cloud::Dialogflow::V2::Fulfillment
update_fulfillment
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- fulfillment (::Google::Cloud::Dialogflow::V2::Fulfillment, ::Hash) — Required. The fulfillment to update.
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. The mask to control which fields get updated. If the mask is not present, all fields will be updated.
- (response, operation) — Access the result along with the RPC operation
- response (::Google::Cloud::Dialogflow::V2::Fulfillment)
- operation (::GRPC::ActiveCall::Operation)
- (::Google::Cloud::Error) — if the RPC is aborted.
Basic example
require "google/cloud/dialogflow/v2" # Create a client object. The client can be reused for multiple calls. client = Google::Cloud::Dialogflow::V2::Fulfillments::Client.new # Create a request. To set request fields, pass in keyword arguments. request = Google::Cloud::Dialogflow::V2::UpdateFulfillmentRequest.new # Call the update_fulfillment method. result = client.update_fulfillment request # The returned object is of type Google::Cloud::Dialogflow::V2::Fulfillment. p result