/// <summary>Snippet for GetFulfillmentAsync</summary> public async Task GetFulfillmentAsync() { // Snippet: GetFulfillmentAsync(string, CallSettings) // Additional: GetFulfillmentAsync(string, CancellationToken) // Create client FulfillmentsClient fulfillmentsClient = await FulfillmentsClient.CreateAsync(); // Initialize request argument(s) string name = "projects/[PROJECT]/agent/fulfillment"; // Make the request Fulfillment response = await fulfillmentsClient.GetFulfillmentAsync(name); // End snippet }
/// <summary>Snippet for GetFulfillmentAsync</summary> public async Task GetFulfillmentResourceNamesAsync() { // Snippet: GetFulfillmentAsync(FulfillmentName, CallSettings) // Additional: GetFulfillmentAsync(FulfillmentName, CancellationToken) // Create client FulfillmentsClient fulfillmentsClient = await FulfillmentsClient.CreateAsync(); // Initialize request argument(s) FulfillmentName name = FulfillmentName.FromProject("[PROJECT]"); // Make the request Fulfillment response = await fulfillmentsClient.GetFulfillmentAsync(name); // End snippet }
/// <summary>Snippet for GetFulfillmentAsync</summary> public async Task GetFulfillmentRequestObjectAsync() { // Snippet: GetFulfillmentAsync(GetFulfillmentRequest, CallSettings) // Additional: GetFulfillmentAsync(GetFulfillmentRequest, CancellationToken) // Create client FulfillmentsClient fulfillmentsClient = await FulfillmentsClient.CreateAsync(); // Initialize request argument(s) GetFulfillmentRequest request = new GetFulfillmentRequest { FulfillmentName = FulfillmentName.FromProject("[PROJECT]"), }; // Make the request Fulfillment response = await fulfillmentsClient.GetFulfillmentAsync(request); // End snippet }