/// <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);
 }
Esempio n. 2
0
 /// <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 GetCarrierConstant()
 {
     // Create client
     CarrierConstantServiceClient carrierConstantServiceClient = CarrierConstantServiceClient.Create();
     // Initialize request argument(s)
     string resourceName = "carrierConstants/[CARRIER_CONSTANT]";
     // Make the request
     CarrierConstant response = carrierConstantServiceClient.GetCarrierConstant(resourceName);
 }
Esempio n. 3
0
 /// <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.FromCarrierConstant("[CARRIER_CONSTANT]");
     // Make the request
     CarrierConstant response = carrierConstantServiceClient.GetCarrierConstant(resourceName);
 }
Esempio n. 4
0
        /// <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 GetCarrierConstantAsync()
        {
            // Create client
            CarrierConstantServiceClient carrierConstantServiceClient = await CarrierConstantServiceClient.CreateAsync();

            // Initialize request argument(s)
            string resourceName = "carrierConstants/[CARRIER_CONSTANT]";
            // Make the request
            CarrierConstant response = await carrierConstantServiceClient.GetCarrierConstantAsync(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);
        }
Esempio n. 6
0
        /// <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.FromCarrierConstant("[CARRIER_CONSTANT]");
            // Make the request
            CarrierConstant response = await carrierConstantServiceClient.GetCarrierConstantAsync(resourceName);
        }
Esempio n. 7
0
 /// <summary>Snippet for GetCarrierConstant</summary>
 public void GetCarrierConstant()
 {
     // Snippet: GetCarrierConstant(string, CallSettings)
     // Create client
     CarrierConstantServiceClient carrierConstantServiceClient = CarrierConstantServiceClient.Create();
     // Initialize request argument(s)
     string resourceName = "carrierConstants/[CRITERION_ID]";
     // Make the request
     CarrierConstant response = carrierConstantServiceClient.GetCarrierConstant(resourceName);
     // End snippet
 }
Esempio n. 8
0
        /// <summary>Snippet for GetCarrierConstantAsync</summary>
        public async Task GetCarrierConstantAsync()
        {
            // Snippet: GetCarrierConstantAsync(string, CallSettings)
            // Additional: GetCarrierConstantAsync(string, CancellationToken)
            // Create client
            CarrierConstantServiceClient carrierConstantServiceClient = await CarrierConstantServiceClient.CreateAsync();

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

            // End snippet
        }
Esempio n. 9
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
 }
Esempio n. 10
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
        }
        /// <summary>Snippet for GetCarrierConstantAsync</summary>
        public async Task GetCarrierConstantRequestObjectAsync()
        {
            // Snippet: GetCarrierConstantAsync(GetCarrierConstantRequest, CallSettings)
            // Additional: GetCarrierConstantAsync(GetCarrierConstantRequest, CancellationToken)
            // Create client
            CarrierConstantServiceClient carrierConstantServiceClient = await CarrierConstantServiceClient.CreateAsync();

            // Initialize request argument(s)
            GetCarrierConstantRequest request = new GetCarrierConstantRequest
            {
                ResourceNameAsCarrierConstantName = CarrierConstantName.FromCarrierConstant("[CARRIER_CONSTANT]"),
            };
            // Make the request
            CarrierConstant response = await carrierConstantServiceClient.GetCarrierConstantAsync(request);

            // End snippet
        }