Class FulfillmentsClient (2.29.0-rc)

Service for managing Fulfillments.

Equality

Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection> objects compare equal. Objects that compare equal share the same underlying resources.

Performance

Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.

Thread Safety

Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.

Constructors

FulfillmentsClient(FulfillmentsClient const &)

Copy and move support

Parameter
Name Description
FulfillmentsClient const &

FulfillmentsClient(FulfillmentsClient &&)

Copy and move support

Parameter
Name Description
FulfillmentsClient &&

FulfillmentsClient(std::shared_ptr< FulfillmentsConnection >, Options)

Parameters
Name Description
connection std::shared_ptr< FulfillmentsConnection >
opts Options

Operators

operator=(FulfillmentsClient const &)

Copy and move support

Parameter
Name Description
FulfillmentsClient const &
Returns
Type Description
FulfillmentsClient &

operator=(FulfillmentsClient &&)

Copy and move support

Parameter
Name Description
FulfillmentsClient &&
Returns
Type Description
FulfillmentsClient &

Functions

GetFulfillment(std::string const &, Options)

Retrieves the fulfillment.

Parameters
Name Description
name std::string const &

Required. The name of the fulfillment. Format: projects/<ProjectID>/agent/fulfillment.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::dialogflow::v2::Fulfillment >

the result of the RPC. The response message type (google.cloud.dialogflow.v2.Fulfillment) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

GetFulfillment(google::cloud::dialogflow::v2::GetFulfillmentRequest const &, Options)

Retrieves the fulfillment.

Parameters
Name Description
request google::cloud::dialogflow::v2::GetFulfillmentRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.dialogflow.v2.GetFulfillmentRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::dialogflow::v2::Fulfillment >

the result of the RPC. The response message type (google.cloud.dialogflow.v2.Fulfillment) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

UpdateFulfillment(google::cloud::dialogflow::v2::Fulfillment const &, google::protobuf::FieldMask const &, Options)

Updates the fulfillment.

Parameters
Name Description
fulfillment google::cloud::dialogflow::v2::Fulfillment const &

Required. The fulfillment to update.

update_mask google::protobuf::FieldMask const &

Required. The mask to control which fields get updated. If the mask is not present, all fields will be updated.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::dialogflow::v2::Fulfillment >

the result of the RPC. The response message type (google.cloud.dialogflow.v2.Fulfillment) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.

UpdateFulfillment(google::cloud::dialogflow::v2::UpdateFulfillmentRequest const &, Options)

Updates the fulfillment.

Parameters
Name Description
request google::cloud::dialogflow::v2::UpdateFulfillmentRequest const &

Unary RPCs, such as the one wrapped by this function, receive a single request proto message which includes all the inputs for the RPC. In this case, the proto message is a google.cloud.dialogflow.v2.UpdateFulfillmentRequest. Proto messages are converted to C++ classes by Protobuf, using the Protobuf mapping rules.

opts Options

Optional. Override the class-level options, such as retry and backoff policies.

Returns
Type Description
StatusOr< google::cloud::dialogflow::v2::Fulfillment >

the result of the RPC. The response message type (google.cloud.dialogflow.v2.Fulfillment) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the StatusOr contains the error details.