/// <summary>Snippet for GetCarrierConstant</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetCarrierConstantResourceNames()
 {
     // Create client
     CarrierConstantServiceClient carrierConstantServiceClient = CarrierConstantServiceClient.Create();
     // Initialize request argument(s)
     CarrierConstantName resourceName = CarrierConstantName.FromCriterion("[CRITERION_ID]");
     // Make the request
     CarrierConstant response = carrierConstantServiceClient.GetCarrierConstant(resourceName);
 }
        /// <summary>Snippet for GetCarrierConstantAsync</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 GetCarrierConstantResourceNamesAsync()
        {
            // Create client
            CarrierConstantServiceClient carrierConstantServiceClient = await CarrierConstantServiceClient.CreateAsync();

            // Initialize request argument(s)
            CarrierConstantName resourceName = CarrierConstantName.FromCriterion("[CRITERION_ID]");
            // Make the request
            CarrierConstant response = await carrierConstantServiceClient.GetCarrierConstantAsync(resourceName);
        }
示例#3
0
 /// <summary>Snippet for GetCarrierConstant</summary>
 public void GetCarrierConstantRequestObject()
 {
     // Snippet: GetCarrierConstant(GetCarrierConstantRequest, CallSettings)
     // Create client
     CarrierConstantServiceClient carrierConstantServiceClient = CarrierConstantServiceClient.Create();
     // Initialize request argument(s)
     GetCarrierConstantRequest request = new GetCarrierConstantRequest
     {
         ResourceNameAsCarrierConstantName = CarrierConstantName.FromCriterion("[CRITERION_ID]"),
     };
     // Make the request
     CarrierConstant response = carrierConstantServiceClient.GetCarrierConstant(request);
     // End snippet
 }
示例#4
0
        /// <summary>Snippet for GetCarrierConstantAsync</summary>
        public async Task GetCarrierConstantResourceNamesAsync()
        {
            // Snippet: GetCarrierConstantAsync(CarrierConstantName, CallSettings)
            // Additional: GetCarrierConstantAsync(CarrierConstantName, CancellationToken)
            // Create client
            CarrierConstantServiceClient carrierConstantServiceClient = await CarrierConstantServiceClient.CreateAsync();

            // Initialize request argument(s)
            CarrierConstantName resourceName = CarrierConstantName.FromCriterion("[CRITERION_ID]");
            // Make the request
            CarrierConstant response = await carrierConstantServiceClient.GetCarrierConstantAsync(resourceName);

            // End snippet
        }