/// <summary>Snippet for GetDistanceView</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetDistanceViewRequestObject()
 {
     // Create client
     DistanceViewServiceClient distanceViewServiceClient = DistanceViewServiceClient.Create();
     // Initialize request argument(s)
     GetDistanceViewRequest request = new GetDistanceViewRequest
     {
         ResourceNameAsDistanceViewName = DistanceViewName.FromCustomerDistanceView("[CUSTOMER]", "[DISTANCE_VIEW]"),
     };
     // Make the request
     DistanceView response = distanceViewServiceClient.GetDistanceView(request);
 }
예제 #2
0
 /// <summary>Snippet for GetDistanceView</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetDistanceViewRequestObject()
 {
     // Create client
     DistanceViewServiceClient distanceViewServiceClient = DistanceViewServiceClient.Create();
     // Initialize request argument(s)
     GetDistanceViewRequest request = new GetDistanceViewRequest
     {
         ResourceNameAsDistanceViewName = DistanceViewName.FromCustomerPlaceholderChainDistanceBucket("[CUSTOMER_ID]", "[PLACEHOLDER_CHAIN_ID]", "[DISTANCE_BUCKET]"),
     };
     // Make the request
     DistanceView response = distanceViewServiceClient.GetDistanceView(request);
 }
        /// <summary>Snippet for GetDistanceViewAsync</summary>
        public async Task GetDistanceViewAsync()
        {
            // Snippet: GetDistanceViewAsync(string, CallSettings)
            // Additional: GetDistanceViewAsync(string, CancellationToken)
            // Create client
            DistanceViewServiceClient distanceViewServiceClient = await DistanceViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "customers/[CUSTOMER]/distanceViews/[DISTANCE_VIEW]";
            // Make the request
            DistanceView response = await distanceViewServiceClient.GetDistanceViewAsync(resourceName);

            // End snippet
        }
        /// <summary>Snippet for GetDistanceViewAsync</summary>
        public async Task GetDistanceViewResourceNamesAsync()
        {
            // Snippet: GetDistanceViewAsync(DistanceViewName, CallSettings)
            // Additional: GetDistanceViewAsync(DistanceViewName, CancellationToken)
            // Create client
            DistanceViewServiceClient distanceViewServiceClient = await DistanceViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            DistanceViewName resourceName = DistanceViewName.FromCustomerDistanceView("[CUSTOMER]", "[DISTANCE_VIEW]");
            // Make the request
            DistanceView response = await distanceViewServiceClient.GetDistanceViewAsync(resourceName);

            // End snippet
        }
예제 #5
0
        /// <summary>Snippet for GetDistanceViewAsync</summary>
        public async Task GetDistanceViewResourceNamesAsync()
        {
            // Snippet: GetDistanceViewAsync(DistanceViewName, CallSettings)
            // Additional: GetDistanceViewAsync(DistanceViewName, CancellationToken)
            // Create client
            DistanceViewServiceClient distanceViewServiceClient = await DistanceViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            DistanceViewName resourceName = DistanceViewName.FromCustomerPlaceholderChainDistanceBucket("[CUSTOMER_ID]", "[PLACEHOLDER_CHAIN_ID]", "[DISTANCE_BUCKET]");
            // Make the request
            DistanceView response = await distanceViewServiceClient.GetDistanceViewAsync(resourceName);

            // End snippet
        }