If true will successfully store an unparseable resource name into the UnparsedResource
property; otherwise will throw an ArgumentException if an unparseable resource name is
specified.
If true will successfully store an unparseable resource name into the UnparsedResource
property; otherwise will throw an ArgumentException if an unparseable resource name is
specified.
[[["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\u003e\u003ccode\u003eCompanyName\u003c/code\u003e is a class within the Google Cloud Talent Solution v4beta1 API, representing the resource name for a \u003ccode\u003eCompany\u003c/code\u003e entity.\u003c/p\u003e\n"],["\u003cp\u003eThis class can be constructed with a \u003ccode\u003eprojectId\u003c/code\u003e, \u003ccode\u003etenantId\u003c/code\u003e, and \u003ccode\u003ecompanyId\u003c/code\u003e, following the pattern \u003ccode\u003eprojects/{project}/tenants/{tenant}/companies/{company}\u003c/code\u003e, and also supports \u003ccode\u003eprojects/{project}/companies/{company}\u003c/code\u003e pattern.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCompanyName\u003c/code\u003e provides methods for formatting, parsing, and validating resource names, including handling unparsed resource names if needed.\u003c/p\u003e\n"],["\u003cp\u003eIt implements \u003ccode\u003eIResourceName\u003c/code\u003e and \u003ccode\u003eIEquatable<CompanyName>\u003c/code\u003e, allowing for resource name management and comparison within the .NET ecosystem.\u003c/p\u003e\n"],["\u003cp\u003eThe class exposes properties such as \u003ccode\u003eProjectId\u003c/code\u003e, \u003ccode\u003eTenantId\u003c/code\u003e, and \u003ccode\u003eCompanyId\u003c/code\u003e, as well as \u003ccode\u003eIsKnownPattern\u003c/code\u003e, \u003ccode\u003eType\u003c/code\u003e, and \u003ccode\u003eUnparsedResource\u003c/code\u003e, giving access to the data that makes up the resource.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Talent Solution v4beta1 API - Class CompanyName (3.0.0-beta06)\n\nVersion latestkeyboard_arrow_down\n\n- [3.0.0-beta06 (latest)](/dotnet/docs/reference/Google.Cloud.Talent.V4Beta1/latest/Google.Cloud.Talent.V4Beta1.CompanyName)\n- [3.0.0-beta05](/dotnet/docs/reference/Google.Cloud.Talent.V4Beta1/3.0.0-beta05/Google.Cloud.Talent.V4Beta1.CompanyName)\n- [2.0.0-beta07](/dotnet/docs/reference/Google.Cloud.Talent.V4Beta1/2.0.0-beta07/Google.Cloud.Talent.V4Beta1.CompanyName) \n\n public sealed class CompanyName : IResourceName, IEquatable\u003cCompanyName\u003e\n\nReference documentation and code samples for the Google Cloud Talent Solution v4beta1 API class CompanyName.\n\nResource name for the `Company` resource. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CompanyName \n\nImplements\n----------\n\n[IResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.IResourceName.html), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CompanyName](/dotnet/docs/reference/Google.Cloud.Talent.V4Beta1/latest/Google.Cloud.Talent.V4Beta1.CompanyName) \n\nInherited Members\n-----------------\n\n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype)\n\nNamespace\n---------\n\n[Google.Cloud.Talent.V4Beta1](/dotnet/docs/reference/Google.Cloud.Talent.V4Beta1/latest/Google.Cloud.Talent.V4Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.Talent.V4Beta1.dll\n\nConstructors\n------------\n\n### CompanyName(string, string, string)\n\n public CompanyName(string projectId, string tenantId, string companyId)\n\nConstructs a new instance of a [CompanyName](/dotnet/docs/reference/Google.Cloud.Talent.V4Beta1/latest/Google.Cloud.Talent.V4Beta1.CompanyName) class from the component parts of pattern\n`projects/{project}/tenants/{tenant}/companies/{company}`\n\nProperties\n----------\n\n### CompanyId\n\n public string CompanyId { get; }\n\nThe `Company` ID. May be `null`, depending on which resource name is contained by this instance.\n\n### IsKnownPattern\n\n public bool IsKnownPattern { get; }\n\nWhether this instance contains a resource name with a known pattern.\n\n### ProjectId\n\n public string ProjectId { get; }\n\nThe `Project` ID. May be `null`, depending on which resource name is contained by this instance.\n\n### TenantId\n\n public string TenantId { get; }\n\nThe `Tenant` ID. May be `null`, depending on which resource name is contained by this instance.\n\n### Type\n\n public CompanyName.ResourceNameType Type { get; }\n\nThe [CompanyName.ResourceNameType](/dotnet/docs/reference/Google.Cloud.Talent.V4Beta1/latest/Google.Cloud.Talent.V4Beta1.CompanyName.ResourceNameType) of the contained resource name.\n\n### UnparsedResource\n\n public UnparsedResourceName UnparsedResource { get; }\n\nThe contained [UnparsedResourceName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.UnparsedResourceName.html). Only non-`null` if this instance contains an\nunparsed resource name.\n\nMethods\n-------\n\n### Format(string, string, string)\n\n public static string Format(string projectId, string tenantId, string companyId)\n\nFormats the IDs into the string representation of this [CompanyName](/dotnet/docs/reference/Google.Cloud.Talent.V4Beta1/latest/Google.Cloud.Talent.V4Beta1.CompanyName) with pattern\n`projects/{project}/tenants/{tenant}/companies/{company}`.\n\n### FormatProjectCompany(string, string)\n\n public static string FormatProjectCompany(string projectId, string companyId)\n\nFormats the IDs into the string representation of this [CompanyName](/dotnet/docs/reference/Google.Cloud.Talent.V4Beta1/latest/Google.Cloud.Talent.V4Beta1.CompanyName) with pattern\n`projects/{project}/companies/{company}`.\n\n### FormatProjectTenantCompany(string, string, string)\n\n public static string FormatProjectTenantCompany(string projectId, string tenantId, string companyId)\n\nFormats the IDs into the string representation of this [CompanyName](/dotnet/docs/reference/Google.Cloud.Talent.V4Beta1/latest/Google.Cloud.Talent.V4Beta1.CompanyName) with pattern\n`projects/{project}/tenants/{tenant}/companies/{company}`.\n\n### FromProjectCompany(string, string)\n\n public static CompanyName FromProjectCompany(string projectId, string companyId)\n\nCreates a [CompanyName](/dotnet/docs/reference/Google.Cloud.Talent.V4Beta1/latest/Google.Cloud.Talent.V4Beta1.CompanyName) with the pattern `projects/{project}/companies/{company}`.\n\n### FromProjectTenantCompany(string, string, string)\n\n public static CompanyName FromProjectTenantCompany(string projectId, string tenantId, string companyId)\n\nCreates a [CompanyName](/dotnet/docs/reference/Google.Cloud.Talent.V4Beta1/latest/Google.Cloud.Talent.V4Beta1.CompanyName) with the pattern\n`projects/{project}/tenants/{tenant}/companies/{company}`.\n\n### FromUnparsed(UnparsedResourceName)\n\n public static CompanyName FromUnparsed(UnparsedResourceName unparsedResourceName)\n\nCreates a [CompanyName](/dotnet/docs/reference/Google.Cloud.Talent.V4Beta1/latest/Google.Cloud.Talent.V4Beta1.CompanyName) containing an unparsed resource name.\n\n### GetHashCode()\n\n public override int GetHashCode()\n\nReturns a hash code for this resource name.\n\n**Overrides** \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)\n\n### Parse(string)\n\n public static CompanyName Parse(string companyName)\n\nParses the given resource name string into a new [CompanyName](/dotnet/docs/reference/Google.Cloud.Talent.V4Beta1/latest/Google.Cloud.Talent.V4Beta1.CompanyName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `projects/{project}/tenants/{tenant}/companies/{company}`\n- `projects/{project}/companies/{company}`\n\n\u003cbr /\u003e\n\n### Parse(string, bool)\n\n public static CompanyName Parse(string companyName, bool allowUnparsed)\n\nParses the given resource name string into a new [CompanyName](/dotnet/docs/reference/Google.Cloud.Talent.V4Beta1/latest/Google.Cloud.Talent.V4Beta1.CompanyName) instance; optionally allowing an\nunparseable resource name.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `projects/{project}/tenants/{tenant}/companies/{company}`\n- `projects/{project}/companies/{company}`\n\nOr may be in any format if `allowUnparsed` is `true`.\n\n\u003cbr /\u003e\n\n### ToString()\n\n public override string ToString()\n\nThe string representation of the resource name.\n\n**Overrides** \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\n### TryParse(string, out CompanyName)\n\n public static bool TryParse(string companyName, out CompanyName result)\n\nTries to parse the given resource name string into a new [CompanyName](/dotnet/docs/reference/Google.Cloud.Talent.V4Beta1/latest/Google.Cloud.Talent.V4Beta1.CompanyName) instance.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `projects/{project}/tenants/{tenant}/companies/{company}`\n- `projects/{project}/companies/{company}`\n\n\u003cbr /\u003e\n\n### TryParse(string, bool, out CompanyName)\n\n public static bool TryParse(string companyName, bool allowUnparsed, out CompanyName result)\n\nTries to parse the given resource name string into a new [CompanyName](/dotnet/docs/reference/Google.Cloud.Talent.V4Beta1/latest/Google.Cloud.Talent.V4Beta1.CompanyName) instance; optionally\nallowing an unparseable resource name.\n\n**Remarks** \nTo parse successfully, the resource name must be formatted as one of the following:\n\n- `projects/{project}/tenants/{tenant}/companies/{company}`\n- `projects/{project}/companies/{company}`\n\nOr may be in any format if `allowUnparsed` is `true`.\n\n\u003cbr /\u003e\n\nOperators\n---------\n\n### operator ==(CompanyName, CompanyName)\n\n public static bool operator ==(CompanyName a, CompanyName b)\n\nDetermines whether two specified resource names have the same value.\n\n### operator !=(CompanyName, CompanyName)\n\n public static bool operator !=(CompanyName a, CompanyName b)\n\nDetermines whether two specified resource names have different values."]]