/// <summary>Snippet for UpdateConnectivityTestAsync</summary>
        public async Task UpdateConnectivityTestAsync()
        {
            // Snippet: UpdateConnectivityTestAsync(FieldMask, ConnectivityTest, CallSettings)
            // Additional: UpdateConnectivityTestAsync(FieldMask, ConnectivityTest, CancellationToken)
            // Create client
            ReachabilityServiceClient reachabilityServiceClient = await ReachabilityServiceClient.CreateAsync();

            // Initialize request argument(s)
            FieldMask        updateMask = new FieldMask();
            ConnectivityTest resource   = new ConnectivityTest();
            // Make the request
            Operation <ConnectivityTest, OperationMetadata> response = await reachabilityServiceClient.UpdateConnectivityTestAsync(updateMask, resource);

            // Poll until the returned long-running operation is complete
            Operation <ConnectivityTest, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();

            // Retrieve the operation result
            ConnectivityTest result = completedResponse.Result;

            // Or get the name of the operation
            string operationName = response.Name;
            // This name can be stored, then the long-running operation retrieved later by name
            Operation <ConnectivityTest, OperationMetadata> retrievedResponse = await reachabilityServiceClient.PollOnceUpdateConnectivityTestAsync(operationName);

            // Check if the retrieved long-running operation has completed
            if (retrievedResponse.IsCompleted)
            {
                // If it has completed, then access the result
                ConnectivityTest retrievedResult = retrievedResponse.Result;
            }
            // End snippet
        }
        /// <summary>Snippet for DeleteConnectivityTestAsync</summary>
        public async Task DeleteConnectivityTestAsync()
        {
            // Snippet: DeleteConnectivityTestAsync(string, CallSettings)
            // Additional: DeleteConnectivityTestAsync(string, CancellationToken)
            // Create client
            ReachabilityServiceClient reachabilityServiceClient = await ReachabilityServiceClient.CreateAsync();

            // Initialize request argument(s)
            string name = "";
            // Make the request
            Operation <Empty, OperationMetadata> response = await reachabilityServiceClient.DeleteConnectivityTestAsync(name);

            // Poll until the returned long-running operation is complete
            Operation <Empty, OperationMetadata> completedResponse = await response.PollUntilCompletedAsync();

            // Retrieve the operation result
            Empty result = completedResponse.Result;

            // Or get the name of the operation
            string operationName = response.Name;
            // This name can be stored, then the long-running operation retrieved later by name
            Operation <Empty, OperationMetadata> retrievedResponse = await reachabilityServiceClient.PollOnceDeleteConnectivityTestAsync(operationName);

            // Check if the retrieved long-running operation has completed
            if (retrievedResponse.IsCompleted)
            {
                // If it has completed, then access the result
                Empty retrievedResult = retrievedResponse.Result;
            }
            // End snippet
        }
        /// <summary>Snippet for ListConnectivityTestsAsync</summary>
        public async Task ListConnectivityTestsRequestObjectAsync()
        {
            // Snippet: ListConnectivityTestsAsync(ListConnectivityTestsRequest, CallSettings)
            // Create client
            ReachabilityServiceClient reachabilityServiceClient = await ReachabilityServiceClient.CreateAsync();

            // Initialize request argument(s)
            ListConnectivityTestsRequest request = new ListConnectivityTestsRequest
            {
                Parent  = "",
                Filter  = "",
                OrderBy = "",
            };
            // Make the request
            PagedAsyncEnumerable <ListConnectivityTestsResponse, ConnectivityTest> response = reachabilityServiceClient.ListConnectivityTestsAsync(request);

            // Iterate over all response items, lazily performing RPCs as required
            await response.ForEachAsync((ConnectivityTest item) =>
            {
                // Do something with each item
                Console.WriteLine(item);
            });

            // Or iterate over pages (of server-defined size), performing one RPC per page
            await response.AsRawResponses().ForEachAsync((ListConnectivityTestsResponse page) =>
            {
                // Do something with each page of items
                Console.WriteLine("A page of results:");
                foreach (ConnectivityTest item in page)
                {
                    // Do something with each item
                    Console.WriteLine(item);
                }
            });

            // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
            int pageSize = 10;
            Page <ConnectivityTest> singlePage = await response.ReadPageAsync(pageSize);

            // Do something with the page of items
            Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
            foreach (ConnectivityTest item in singlePage)
            {
                // Do something with each item
                Console.WriteLine(item);
            }
            // Store the pageToken, for when the next page is required.
            string nextPageToken = singlePage.NextPageToken;
            // End snippet
        }
        /// <summary>Snippet for GetConnectivityTestAsync</summary>
        public async Task GetConnectivityTestAsync()
        {
            // Snippet: GetConnectivityTestAsync(string, CallSettings)
            // Additional: GetConnectivityTestAsync(string, CancellationToken)
            // Create client
            ReachabilityServiceClient reachabilityServiceClient = await ReachabilityServiceClient.CreateAsync();

            // Initialize request argument(s)
            string name = "";
            // Make the request
            ConnectivityTest response = await reachabilityServiceClient.GetConnectivityTestAsync(name);

            // End snippet
        }