[[["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\u003eSubject\u003c/code\u003e class within the Google Cloud Security PrivateCA v1 API, which is used to describe the subject of a certificate using distinguished name parts.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this \u003ccode\u003eSubject\u003c/code\u003e class is 3.9.0, with older versions listed from 3.8.0 down to 1.0.0, and links are provided to access all the older versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSubject\u003c/code\u003e class 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 interfaces.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes constructors for creating a new \u003ccode\u003eSubject\u003c/code\u003e instance or copying an existing one, and also contains properties for various attributes of the subject's distinguished name, such as \u003ccode\u003eCommonName\u003c/code\u003e, \u003ccode\u003eCountryCode\u003c/code\u003e, \u003ccode\u003eLocality\u003c/code\u003e, \u003ccode\u003eOrganization\u003c/code\u003e, and more.\u003c/p\u003e\n"]]],[],null,["# Certificate Authority v1 API - Class Subject (3.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.10.0 (latest)](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.Subject)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.9.0/Google.Cloud.Security.PrivateCA.V1.Subject)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.8.0/Google.Cloud.Security.PrivateCA.V1.Subject)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.7.0/Google.Cloud.Security.PrivateCA.V1.Subject)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.6.0/Google.Cloud.Security.PrivateCA.V1.Subject)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.5.0/Google.Cloud.Security.PrivateCA.V1.Subject)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.4.0/Google.Cloud.Security.PrivateCA.V1.Subject)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.3.0/Google.Cloud.Security.PrivateCA.V1.Subject)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.2.0/Google.Cloud.Security.PrivateCA.V1.Subject)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.1.0/Google.Cloud.Security.PrivateCA.V1.Subject)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/3.0.0/Google.Cloud.Security.PrivateCA.V1.Subject)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/2.3.0/Google.Cloud.Security.PrivateCA.V1.Subject)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/2.2.0/Google.Cloud.Security.PrivateCA.V1.Subject)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/2.1.0/Google.Cloud.Security.PrivateCA.V1.Subject)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/2.0.0/Google.Cloud.Security.PrivateCA.V1.Subject)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/1.0.0/Google.Cloud.Security.PrivateCA.V1.Subject) \n\n public sealed class Subject : IMessage\u003cSubject\u003e, IEquatable\u003cSubject\u003e, IDeepCloneable\u003cSubject\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Certificate Authority v1 API class Subject.\n\n\\[Subject\\]\\[google.cloud.security.privateca.v1.Subject\\] describes parts of a\ndistinguished name that, in turn, describes the subject of the certificate. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Subject \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Subject](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.Subject), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Subject](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.Subject), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Subject](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1.Subject), [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.Security.PrivateCA.V1](/dotnet/docs/reference/Google.Cloud.Security.PrivateCA.V1/latest/Google.Cloud.Security.PrivateCA.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Security.PrivateCA.V1.dll\n\nConstructors\n------------\n\n### Subject()\n\n public Subject()\n\n### Subject(Subject)\n\n public Subject(Subject other)\n\nProperties\n----------\n\n### CommonName\n\n public string CommonName { get; set; }\n\nThe \"common name\" of the subject.\n\n### CountryCode\n\n public string CountryCode { get; set; }\n\nThe country code of the subject.\n\n### Locality\n\n public string Locality { get; set; }\n\nThe locality or city of the subject.\n\n### Organization\n\n public string Organization { get; set; }\n\nThe organization of the subject.\n\n### OrganizationalUnit\n\n public string OrganizationalUnit { get; set; }\n\nThe organizational_unit of the subject.\n\n### PostalCode\n\n public string PostalCode { get; set; }\n\nThe postal code of the subject.\n\n### Province\n\n public string Province { get; set; }\n\nThe province, territory, or regional state of the subject.\n\n### RdnSequence\n\n public RepeatedField\u003cRelativeDistinguishedName\u003e RdnSequence { get; }\n\nThis field can be used in place of the named subject fields.\n\n### StreetAddress\n\n public string StreetAddress { get; set; }\n\nThe street address of the subject."]]