public sealed class CreatePreferenceSetRequest : IMessage<CreatePreferenceSetRequest>, IEquatable<CreatePreferenceSetRequest>, IDeepCloneable<CreatePreferenceSetRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Migration Center v1 API class CreatePreferenceSetRequest.
Required. User specified ID for the preference set. It will become the last
component of the preference set name. The ID must be unique within the
project, must conform with RFC-1034, is restricted to lower-cased letters,
and has a maximum length of 63 characters. The ID must match the regular
expression
[a-z]([a-z0-9-]{0,61}[a-z0-9])?.
Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server will know to
ignore the request if it has already been completed. The server will
guarantee that for at least 60 minutes since the first request.
For example, consider a situation where you make an initial request and
the request times out. If you make the request again with the same request
ID, the server can check if original operation with the same request ID
was received, and if so, will ignore the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
[[["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-09-04 UTC."],[[["\u003cp\u003eThis page documents the \u003ccode\u003eCreatePreferenceSetRequest\u003c/code\u003e class within the Google Cloud Migration Center v1 API, used to create a preference set.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreatePreferenceSetRequest\u003c/code\u003e class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is 1.4.0, and the \u003ccode\u003eCreatePreferenceSetRequest\u003c/code\u003e class has had previous versions of 1.3.0, 1.2.0, 1.1.0, and 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eCreatePreferenceSetRequest\u003c/code\u003e include \u003ccode\u003eParent\u003c/code\u003e (location of the preference set), \u003ccode\u003ePreferenceSet\u003c/code\u003e (the preference set resource), \u003ccode\u003ePreferenceSetId\u003c/code\u003e (user-specified ID for the preference set), and \u003ccode\u003eRequestId\u003c/code\u003e (optional request identifier).\u003c/p\u003e\n"]]],[],null,["# Migration Center v1 API - Class CreatePreferenceSetRequest (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.CreatePreferenceSetRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.3.0/Google.Cloud.MigrationCenter.V1.CreatePreferenceSetRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.2.0/Google.Cloud.MigrationCenter.V1.CreatePreferenceSetRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.1.0/Google.Cloud.MigrationCenter.V1.CreatePreferenceSetRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.0.0/Google.Cloud.MigrationCenter.V1.CreatePreferenceSetRequest) \n\n public sealed class CreatePreferenceSetRequest : IMessage\u003cCreatePreferenceSetRequest\u003e, IEquatable\u003cCreatePreferenceSetRequest\u003e, IDeepCloneable\u003cCreatePreferenceSetRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Migration Center v1 API class CreatePreferenceSetRequest.\n\nA request to create a preference set. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreatePreferenceSetRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreatePreferenceSetRequest](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.CreatePreferenceSetRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreatePreferenceSetRequest](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.CreatePreferenceSetRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreatePreferenceSetRequest](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.CreatePreferenceSetRequest), [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.MigrationCenter.V1](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.MigrationCenter.V1.dll\n\nConstructors\n------------\n\n### CreatePreferenceSetRequest()\n\n public CreatePreferenceSetRequest()\n\n### CreatePreferenceSetRequest(CreatePreferenceSetRequest)\n\n public CreatePreferenceSetRequest(CreatePreferenceSetRequest other)\n\nProperties\n----------\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. Value for parent.\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://github.com/googleapis/gax-dotnet/blob/83f42b5edc4529818dbdb34d9ea9ecc3c04f7b6e/Google.Api.Gax/ResourceNames/LocationName.cs)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.CreatePreferenceSetRequest#Google_Cloud_MigrationCenter_V1_CreatePreferenceSetRequest_Parent) resource name property.\n\n### PreferenceSet\n\n public PreferenceSet PreferenceSet { get; set; }\n\nRequired. The preference set resource being created.\n\n### PreferenceSetId\n\n public string PreferenceSetId { get; set; }\n\nRequired. User specified ID for the preference set. It will become the last\ncomponent of the preference set name. The ID must be unique within the\nproject, must conform with RFC-1034, is restricted to lower-cased letters,\nand has a maximum length of 63 characters. The ID must match the regular\nexpression\n`[a-z]([a-z0-9-]{0,61}[a-z0-9])?`.\n\n### RequestId\n\n public string RequestId { get; set; }\n\nOptional. An optional request ID to identify requests. Specify a unique\nrequest ID so that if you must retry your request, the server will know to\nignore the request if it has already been completed. The server will\nguarantee that for at least 60 minutes since the first request.\n\nFor example, consider a situation where you make an initial request and\nthe request times out. If you make the request again with the same request\nID, the server can check if original operation with the same request ID\nwas received, and if so, will ignore the second request. This prevents\nclients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is\nnot supported (00000000-0000-0000-0000-000000000000)."]]