1// Copyright 2023 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto3"; 16 17package google.cloud.servicedirectory.v1; 18 19import "google/api/field_behavior.proto"; 20import "google/api/resource.proto"; 21 22option cc_enable_arenas = true; 23option csharp_namespace = "Google.Cloud.ServiceDirectory.V1"; 24option go_package = "cloud.google.com/go/servicedirectory/apiv1/servicedirectorypb;servicedirectorypb"; 25option java_multiple_files = true; 26option java_outer_classname = "NamespaceProto"; 27option java_package = "com.google.cloud.servicedirectory.v1"; 28option php_namespace = "Google\\Cloud\\ServiceDirectory\\V1"; 29option ruby_package = "Google::Cloud::ServiceDirectory::V1"; 30 31// A container for [services][google.cloud.servicedirectory.v1.Service]. 32// Namespaces allow administrators to group services together and define 33// permissions for a collection of services. 34message Namespace { 35 option (google.api.resource) = { 36 type: "servicedirectory.googleapis.com/Namespace" 37 pattern: "projects/{project}/locations/{location}/namespaces/{namespace}" 38 }; 39 40 // Immutable. The resource name for the namespace in the format 41 // `projects/*/locations/*/namespaces/*`. 42 string name = 1 [(google.api.field_behavior) = IMMUTABLE]; 43 44 // Optional. Resource labels associated with this namespace. 45 // No more than 64 user labels can be associated with a given resource. Label 46 // keys and values can be no longer than 63 characters. 47 map<string, string> labels = 2 [(google.api.field_behavior) = OPTIONAL]; 48 49 // Output only. The globally unique identifier of the namespace in the UUID4 50 // format. 51 string uid = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; 52} 53