public sealed class CreateControlRequest : IMessage<CreateControlRequest>, IEquatable<CreateControlRequest>, IDeepCloneable<CreateControlRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class CreateControlRequest.
Required. Full resource name of parent data store. Format:
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}
or
projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eCreateControlRequest\u003c/code\u003e class within the Google Cloud Discovery Engine v1 API, which is used to create a control.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateControlRequest\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing it to be used with various .NET functionalities.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eCreateControlRequest\u003c/code\u003e include \u003ccode\u003eControl\u003c/code\u003e, \u003ccode\u003eControlId\u003c/code\u003e, and \u003ccode\u003eParent\u003c/code\u003e, which are essential for defining and locating the new control within the Discovery Engine hierarchy.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eParent\u003c/code\u003e property can be represented as a string or through specific typed views like \u003ccode\u003eDataStoreName\u003c/code\u003e, \u003ccode\u003eEngineName\u003c/code\u003e, and \u003ccode\u003eIResourceName\u003c/code\u003e, offering flexibility in handling resource names.\u003c/p\u003e\n"],["\u003cp\u003eThere are several versions of this documentation available, with the latest being version 1.6.0, which can be found at the top of the documentation in the dropdown menu.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class CreateControlRequest (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateControlRequest)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.CreateControlRequest)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.CreateControlRequest)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.CreateControlRequest)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.CreateControlRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.CreateControlRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.CreateControlRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.CreateControlRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.CreateControlRequest)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.CreateControlRequest) \n\n public sealed class CreateControlRequest : IMessage\u003cCreateControlRequest\u003e, IEquatable\u003cCreateControlRequest\u003e, IDeepCloneable\u003cCreateControlRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1 API class CreateControlRequest.\n\nRequest for CreateControl method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateControlRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateControlRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateControlRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateControlRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateControlRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateControlRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateControlRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DiscoveryEngine.V1](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1.dll\n\nConstructors\n------------\n\n### CreateControlRequest()\n\n public CreateControlRequest()\n\n### CreateControlRequest(CreateControlRequest)\n\n public CreateControlRequest(CreateControlRequest other)\n\nProperties\n----------\n\n### Control\n\n public Control Control { get; set; }\n\nRequired. The Control to create.\n\n### ControlId\n\n public string ControlId { get; set; }\n\nRequired. The ID to use for the Control, which will become the final\ncomponent of the Control's resource name.\n\nThis value must be within 1-63 characters.\nValid characters are /\\[a-z\\]\\[0-9\\]-_/.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. Full resource name of parent data store. Format:\n`projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`\nor\n`projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.\n\n### ParentAsDataStoreName\n\n public DataStoreName ParentAsDataStoreName { get; set; }\n\n[DataStoreName](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.DataStoreName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateControlRequest#Google_Cloud_DiscoveryEngine_V1_CreateControlRequest_Parent) resource name property.\n\n### ParentAsEngineName\n\n public EngineName ParentAsEngineName { get; set; }\n\n[EngineName](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.EngineName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateControlRequest#Google_Cloud_DiscoveryEngine_V1_CreateControlRequest_Parent) resource name property.\n\n### ParentAsResourceName\n\n public IResourceName ParentAsResourceName { get; set; }\n\n[IResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateControlRequest#Google_Cloud_DiscoveryEngine_V1_CreateControlRequest_Parent) resource name property."]]