Optional. Resource labels associated with this namespace. No more than 64 user labels can be associated with a given resource. Label keys and values can be no longer than 63 characters.
↳ uid
string
Output only. The globally unique identifier of the namespace in the UUID4 format.
getName
Immutable. The resource name for the namespace in the formatprojects/*/locations/*/namespaces/*.
Returns
Type
Description
string
setName
Immutable. The resource name for the namespace in the formatprojects/*/locations/*/namespaces/*.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getLabels
Optional. Resource labels associated with this namespace.
No more than 64 user labels can be associated with a given resource. Label
keys and values can be no longer than 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-09-04 UTC."],[],[],null,["# Google Cloud Service Directory V1 Client - Class PBNamespace (2.0.6)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.6 (latest)](/php/docs/reference/cloud-service-directory/latest/V1.PBNamespace)\n- [2.0.5](/php/docs/reference/cloud-service-directory/2.0.5/V1.PBNamespace)\n- [1.3.6](/php/docs/reference/cloud-service-directory/1.3.6/V1.PBNamespace)\n- [1.2.1](/php/docs/reference/cloud-service-directory/1.2.1/V1.PBNamespace)\n- [1.1.2](/php/docs/reference/cloud-service-directory/1.1.2/V1.PBNamespace)\n- [1.0.5](/php/docs/reference/cloud-service-directory/1.0.5/V1.PBNamespace) \nReference documentation and code samples for the Google Cloud Service Directory V1 Client class PBNamespace.\n\nA container for [services](/php/docs/reference/cloud-service-directory/latest/V1.Service).\n\nNamespaces allow administrators to group services together and define\npermissions for a collection of services.\n\nGenerated from protobuf message `google.cloud.servicedirectory.v1.Namespace`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ ServiceDirectory \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nImmutable. The resource name for the namespace in the format\n`projects/*/locations/*/namespaces/*`.\n\n### setName\n\nImmutable. The resource name for the namespace in the format\n`projects/*/locations/*/namespaces/*`.\n\n### getLabels\n\nOptional. Resource labels associated with this namespace.\n\nNo more than 64 user labels can be associated with a given resource. Label\nkeys and values can be no longer than 63 characters.\n\n### setLabels\n\nOptional. Resource labels associated with this namespace.\n\nNo more than 64 user labels can be associated with a given resource. Label\nkeys and values can be no longer than 63 characters.\n\n### getUid\n\nOutput only. The globally unique identifier of the namespace in the UUID4\nformat.\n\n### setUid\n\nOutput only. The globally unique identifier of the namespace in the UUID4\nformat."]]