/// <summary>Snippet for GetLabel</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetLabel()
 {
     // Create client
     LabelServiceClient labelServiceClient = LabelServiceClient.Create();
     // Initialize request argument(s)
     string resourceName = "customers/[CUSTOMER]/labels/[LABEL]";
     // Make the request
     Label response = labelServiceClient.GetLabel(resourceName);
 }
Exemple #2
0
 /// <summary>Snippet for GetLabel</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetLabelResourceNames()
 {
     // Create client
     LabelServiceClient labelServiceClient = LabelServiceClient.Create();
     // Initialize request argument(s)
     LabelName resourceName = LabelName.FromCustomerLabel("[CUSTOMER]", "[LABEL]");
     // Make the request
     Label response = labelServiceClient.GetLabel(resourceName);
 }
Exemple #3
0
 /// <summary>Snippet for GetLabel</summary>
 public void GetLabelResourceNames()
 {
     // Snippet: GetLabel(LabelName, CallSettings)
     // Create client
     LabelServiceClient labelServiceClient = LabelServiceClient.Create();
     // Initialize request argument(s)
     LabelName resourceName = LabelName.FromCustomerLabel("[CUSTOMER_ID]", "[LABEL_ID]");
     // Make the request
     Label response = labelServiceClient.GetLabel(resourceName);
     // End snippet
 }
Exemple #4
0
 /// <summary>Snippet for GetLabel</summary>
 public void GetLabel()
 {
     // Snippet: GetLabel(string, CallSettings)
     // Create client
     LabelServiceClient labelServiceClient = LabelServiceClient.Create();
     // Initialize request argument(s)
     string resourceName = "customers/[CUSTOMER_ID]/labels/[LABEL_ID]";
     // Make the request
     Label response = labelServiceClient.GetLabel(resourceName);
     // End snippet
 }
 /// <summary>Snippet for GetLabel</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void GetLabelRequestObject()
 {
     // Create client
     LabelServiceClient labelServiceClient = LabelServiceClient.Create();
     // Initialize request argument(s)
     GetLabelRequest request = new GetLabelRequest
     {
         ResourceNameAsLabelName = LabelName.FromCustomerLabel("[CUSTOMER_ID]", "[LABEL_ID]"),
     };
     // Make the request
     Label response = labelServiceClient.GetLabel(request);
 }
Exemple #6
0
 /// <summary>Snippet for MutateLabels</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void MutateLabels()
 {
     // Create client
     LabelServiceClient labelServiceClient = LabelServiceClient.Create();
     // Initialize request argument(s)
     string customerId = "";
     IEnumerable <LabelOperation> operations = new LabelOperation[]
     {
         new LabelOperation(),
     };
     // Make the request
     MutateLabelsResponse response = labelServiceClient.MutateLabels(customerId, operations);
 }
 /// <summary>Snippet for MutateLabels</summary>
 /// <remarks>
 /// This snippet has been automatically generated for illustrative purposes only.
 /// It may require modifications to work in your environment.
 /// </remarks>
 public void MutateLabelsRequestObject()
 {
     // Create client
     LabelServiceClient labelServiceClient = LabelServiceClient.Create();
     // Initialize request argument(s)
     MutateLabelsRequest request = new MutateLabelsRequest
     {
         CustomerId = "",
         Operations =
         {
             new LabelOperation(),
         },
         PartialFailure = false,
         ValidateOnly   = false,
     };
     // Make the request
     MutateLabelsResponse response = labelServiceClient.MutateLabels(request);
 }
Exemple #8
0
 /// <summary>Snippet for MutateLabels</summary>
 public void MutateLabelsRequestObject()
 {
     // Snippet: MutateLabels(MutateLabelsRequest, CallSettings)
     // Create client
     LabelServiceClient labelServiceClient = LabelServiceClient.Create();
     // Initialize request argument(s)
     MutateLabelsRequest request = new MutateLabelsRequest
     {
         CustomerId = "",
         Operations =
         {
             new LabelOperation(),
         },
         PartialFailure      = false,
         ValidateOnly        = false,
         ResponseContentType = ResponseContentTypeEnum.Types.ResponseContentType.Unspecified,
     };
     // Make the request
     MutateLabelsResponse response = labelServiceClient.MutateLabels(request);
     // End snippet
 }