public sealed class AddControlRequest : IMessage<AddControlRequest>, IEquatable<AddControlRequest>, IDeepCloneable<AddControlRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Retail v2 API class AddControlRequest.
Required. The id of the control to apply. Assumed to be in the same catalog
as the serving config - if id is not found a NOT_FOUND error is returned.
Property Value
Type
Description
System.String
ServingConfig
public string ServingConfig { get; set; }
Required. The source ServingConfig resource name . Format:
projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}
Property Value
Type
Description
System.String
ServingConfigAsServingConfigName
public ServingConfigName ServingConfigAsServingConfigName { get; set; }
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eAddControlRequest\u003c/code\u003e class within the Google Cloud Retail v2 API, detailing its usage and properties.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the API documented here is 2.12.0, with versions ranging from 1.0.0 up to the latest.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAddControlRequest\u003c/code\u003e class is used to request the addition of a control, inheriting from \u003ccode\u003eObject\u003c/code\u003e and implementing multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eAddControlRequest\u003c/code\u003e include \u003ccode\u003eControlId\u003c/code\u003e and \u003ccode\u003eServingConfig\u003c/code\u003e, which are both strings and required for the request.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServingConfigAsServingConfigName\u003c/code\u003e allows a strongly-typed view of the \u003ccode\u003eServingConfig\u003c/code\u003e property, representing it as a \u003ccode\u003eServingConfigName\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]