public sealed class CreateSchemaRequest : IMessage<CreateSchemaRequest>, IEquatable<CreateSchemaRequest>, IDeepCloneable<CreateSchemaRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class CreateSchemaRequest.
Request message for
[SchemaService.CreateSchema][google.cloud.discoveryengine.v1.SchemaService.CreateSchema]
method.
Required. The parent data store resource name, in the format of
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}.
Required. The ID to use for the
[Schema][google.cloud.discoveryengine.v1.Schema], which becomes the final
component of the
[Schema.name][google.cloud.discoveryengine.v1.Schema.name].
This field should conform to
RFC-1034 standard with a length
limit of 63 characters.
[[["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\u003eThe latest version of the \u003ccode\u003eCreateSchemaRequest\u003c/code\u003e class is 1.6.0, and there are several previous versions available, ranging from 1.5.0 down to 1.0.0-beta06.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCreateSchemaRequest\u003c/code\u003e is a request message used for the \u003ccode\u003eSchemaService.CreateSchema\u003c/code\u003e method within the Discovery Engine v1 API, allowing users to create new schemas.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateSchemaRequest\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 \u003ccode\u003eobject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eCreateSchemaRequest\u003c/code\u003e include \u003ccode\u003eParent\u003c/code\u003e (the data store's resource name), \u003ccode\u003eParentAsDataStoreName\u003c/code\u003e (a DataStoreName-typed view of Parent), \u003ccode\u003eSchema\u003c/code\u003e (the schema to be created), and \u003ccode\u003eSchemaId\u003c/code\u003e (the unique ID for the new schema).\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors for \u003ccode\u003eCreateSchemaRequest\u003c/code\u003e: one default constructor, and another that clones a schema request.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class CreateSchemaRequest (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.CreateSchemaRequest)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.CreateSchemaRequest)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.CreateSchemaRequest)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.CreateSchemaRequest)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.CreateSchemaRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.CreateSchemaRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.CreateSchemaRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.CreateSchemaRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.CreateSchemaRequest)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.CreateSchemaRequest) \n\n public sealed class CreateSchemaRequest : IMessage\u003cCreateSchemaRequest\u003e, IEquatable\u003cCreateSchemaRequest\u003e, IDeepCloneable\u003cCreateSchemaRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1 API class CreateSchemaRequest.\n\nRequest message for\n\\[SchemaService.CreateSchema\\]\\[google.cloud.discoveryengine.v1.SchemaService.CreateSchema\\]\nmethod. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateSchemaRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateSchemaRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateSchemaRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateSchemaRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateSchemaRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateSchemaRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CreateSchemaRequest), [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### CreateSchemaRequest()\n\n public CreateSchemaRequest()\n\n### CreateSchemaRequest(CreateSchemaRequest)\n\n public CreateSchemaRequest(CreateSchemaRequest other)\n\nProperties\n----------\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The parent data store resource name, in the format of\n`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.\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.CreateSchemaRequest#Google_Cloud_DiscoveryEngine_V1_CreateSchemaRequest_Parent) resource name property.\n\n### Schema\n\n public Schema Schema { get; set; }\n\nRequired. The \\[Schema\\]\\[google.cloud.discoveryengine.v1.Schema\\] to create.\n\n### SchemaId\n\n public string SchemaId { get; set; }\n\nRequired. The ID to use for the\n\\[Schema\\]\\[google.cloud.discoveryengine.v1.Schema\\], which becomes the final\ncomponent of the\n\\[Schema.name\\]\\[google.cloud.discoveryengine.v1.Schema.name\\].\n\nThis field should conform to\n[RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length\nlimit of 63 characters."]]