Google Cloud Service Directory V1 Client - Class PBNamespace (1.2.1)

Reference documentation and code samples for the Google Cloud Service Directory V1 Client class PBNamespace.

A container for services.

Namespaces allow administrators to group services together and define permissions for a collection of services.

Generated from protobuf message google.cloud.servicedirectory.v1.Namespace

Namespace

Google \ Cloud \ ServiceDirectory \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Immutable. The resource name for the namespace in the format projects/*/locations/*/namespaces/*.

↳ labels array|Google\Protobuf\Internal\MapField

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 format projects/*/locations/*/namespaces/*.

Returns
TypeDescription
string

setName

Immutable. The resource name for the namespace in the format projects/*/locations/*/namespaces/*.

Parameter
NameDescription
var string
Returns
TypeDescription
$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.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

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.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getUid

Output only. The globally unique identifier of the namespace in the UUID4 format.

Returns
TypeDescription
string

setUid

Output only. The globally unique identifier of the namespace in the UUID4 format.

Parameter
NameDescription
var string
Returns
TypeDescription
$this