/// <summary>Snippet for GetLocationView</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetLocationViewResourceNames()
 {
     // Create client
     LocationViewServiceClient locationViewServiceClient = LocationViewServiceClient.Create();
     // Initialize request argument(s)
     LocationViewName resourceName = LocationViewName.FromCustomerLocationView("[CUSTOMER]", "[LOCATION_VIEW]");
     // Make the request
     LocationView response = locationViewServiceClient.GetLocationView(resourceName);
 }
Beispiel #2
0
        /// <summary>Snippet for GetLocationViewAsync</summary>
        /// <remarks>
        /// This snippet has been automatically generated for illustrative purposes only.
        /// It may require modifications to work in your environment.
        /// </remarks>
        public async Task GetLocationViewRequestObjectAsync()
        {
            // Create client
            LocationViewServiceClient locationViewServiceClient = await LocationViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetLocationViewRequest request = new GetLocationViewRequest
            {
                ResourceNameAsLocationViewName = LocationViewName.FromCustomerLocationView("[CUSTOMER]", "[LOCATION_VIEW]"),
            };
            // Make the request
            LocationView response = await locationViewServiceClient.GetLocationViewAsync(request);
        }
Beispiel #3
0
 /// <summary>Snippet for GetLocationView</summary>
 public void GetLocationViewRequestObject()
 {
     // Snippet: GetLocationView(GetLocationViewRequest, CallSettings)
     // Create client
     LocationViewServiceClient locationViewServiceClient = LocationViewServiceClient.Create();
     // Initialize request argument(s)
     GetLocationViewRequest request = new GetLocationViewRequest
     {
         ResourceNameAsLocationViewName = LocationViewName.FromCustomerLocationView("[CUSTOMER]", "[LOCATION_VIEW]"),
     };
     // Make the request
     LocationView response = locationViewServiceClient.GetLocationView(request);
     // End snippet
 }
Beispiel #4
0
        /// <summary>Snippet for GetLocationViewAsync</summary>
        public async Task GetLocationViewResourceNamesAsync()
        {
            // Snippet: GetLocationViewAsync(LocationViewName, CallSettings)
            // Additional: GetLocationViewAsync(LocationViewName, CancellationToken)
            // Create client
            LocationViewServiceClient locationViewServiceClient = await LocationViewServiceClient.CreateAsync();

            // Initialize request argument(s)
            LocationViewName resourceName = LocationViewName.FromCustomerLocationView("[CUSTOMER]", "[LOCATION_VIEW]");
            // Make the request
            LocationView response = await locationViewServiceClient.GetLocationViewAsync(resourceName);

            // End snippet
        }