public sealed class CreateRepositoryRequest : IMessage<CreateRepositoryRequest>, IEquatable<CreateRepositoryRequest>, IDeepCloneable<CreateRepositoryRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Build v2 API class CreateRepositoryRequest.
Required. The connection to contain the repository. If the request is part
of a BatchCreateRepositoriesRequest, this field should be empty or match
the parent specified there.
Required. The ID to use for the repository, which will become the final
component of the repository's resource name. This ID should be unique in
the connection. Allows alphanumeric characters and any of
-._~%!$&'()*+,;=@.
[[["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 document provides reference documentation for the \u003ccode\u003eCreateRepositoryRequest\u003c/code\u003e class within the Google Cloud Build v2 API, detailing its use in creating repositories.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateRepositoryRequest\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.CloudBuild.V2\u003c/code\u003e namespace and is available in the \u003ccode\u003eGoogle.Cloud.CloudBuild.V2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eCreateRepositoryRequest\u003c/code\u003e class is 1.4.0, with previous versions 1.3.0, 1.2.0, 1.1.0, and 1.0.0 also documented, and it inherits from \u003ccode\u003eobject\u003c/code\u003e and implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateRepositoryRequest\u003c/code\u003e class has properties such as \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003eParentAsConnectionName\u003c/code\u003e, \u003ccode\u003eRepository\u003c/code\u003e, and \u003ccode\u003eRepositoryId\u003c/code\u003e for configuring the creation of a repository.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eCreateRepositoryRequest\u003c/code\u003e has two constructors, one default and one that takes a \u003ccode\u003eCreateRepositoryRequest\u003c/code\u003e object, and is used to create a repository.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v2 API - Class CreateRepositoryRequest (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.CreateRepositoryRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.3.0/Google.Cloud.CloudBuild.V2.CreateRepositoryRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.2.0/Google.Cloud.CloudBuild.V2.CreateRepositoryRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.1.0/Google.Cloud.CloudBuild.V2.CreateRepositoryRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.0.0/Google.Cloud.CloudBuild.V2.CreateRepositoryRequest) \n\n public sealed class CreateRepositoryRequest : IMessage\u003cCreateRepositoryRequest\u003e, IEquatable\u003cCreateRepositoryRequest\u003e, IDeepCloneable\u003cCreateRepositoryRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v2 API class CreateRepositoryRequest.\n\nMessage for creating a Repository. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateRepositoryRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateRepositoryRequest](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.CreateRepositoryRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateRepositoryRequest](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.CreateRepositoryRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateRepositoryRequest](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.CreateRepositoryRequest), [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.CloudBuild.V2](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudBuild.V2.dll\n\nConstructors\n------------\n\n### CreateRepositoryRequest()\n\n public CreateRepositoryRequest()\n\n### CreateRepositoryRequest(CreateRepositoryRequest)\n\n public CreateRepositoryRequest(CreateRepositoryRequest other)\n\nProperties\n----------\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The connection to contain the repository. If the request is part\nof a BatchCreateRepositoriesRequest, this field should be empty or match\nthe parent specified there.\n\n### ParentAsConnectionName\n\n public ConnectionName ParentAsConnectionName { get; set; }\n\n[ConnectionName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.ConnectionName)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.CreateRepositoryRequest#Google_Cloud_CloudBuild_V2_CreateRepositoryRequest_Parent) resource name property.\n\n### Repository\n\n public Repository Repository { get; set; }\n\nRequired. The repository to create.\n\n### RepositoryId\n\n public string RepositoryId { get; set; }\n\nRequired. The ID to use for the repository, which will become the final\ncomponent of the repository's resource name. This ID should be unique in\nthe connection. Allows alphanumeric characters and any of\n-._\\~%!$\\&'()\\*+,;=@."]]