Debian Codegraph @

servicedirectory/apiv1/servicedirectorypb/namespace.pb.go

raw
1 // Copyright 2025 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
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/servicedirectory/v1/namespace.proto
20
21 package servicedirectorypb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27 reflect "reflect"
28 sync "sync"
29 )
30
31 const (
32 // Verify that this generated code is sufficiently up-to-date.
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34 // Verify that runtime/protoimpl is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38 // A container for [services][google.cloud.servicedirectory.v1.Service].
39 // Namespaces allow administrators to group services together and define
40 // permissions for a collection of services.
41 type Namespace struct {
42 state protoimpl.MessageState
43 sizeCache protoimpl.SizeCache
44 unknownFields protoimpl.UnknownFields
45
46 // Immutable. The resource name for the namespace in the format
47 // `projects/*/locations/*/namespaces/*`.
48 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
49 // Optional. Resource labels associated with this namespace.
50 // No more than 64 user labels can be associated with a given resource. Label
51 // keys and values can be no longer than 63 characters.
52 Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
53 // Output only. The globally unique identifier of the namespace in the UUID4
54 // format.
55 Uid string `protobuf:"bytes,5,opt,name=uid,proto3" json:"uid,omitempty"`
56 }
57
58 func (x *Namespace) Reset() {
59 *x = Namespace{}
60 mi := &file_google_cloud_servicedirectory_v1_namespace_proto_msgTypes[0]
61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
62 ms.StoreMessageInfo(mi)
63 }
64
65 func (x *Namespace) String() string {
66 return protoimpl.X.MessageStringOf(x)
67 }
68
69 func (*Namespace) ProtoMessage() {}
70
71 func (x *Namespace) ProtoReflect() protoreflect.Message {
72 mi := &file_google_cloud_servicedirectory_v1_namespace_proto_msgTypes[0]
73 if x != nil {
74 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
75 if ms.LoadMessageInfo() == nil {
76 ms.StoreMessageInfo(mi)
77 }
78 return ms
79 }
80 return mi.MessageOf(x)
81 }
82
83 // Deprecated: Use Namespace.ProtoReflect.Descriptor instead.
84 func (*Namespace) Descriptor() ([]byte, []int) {
85 return file_google_cloud_servicedirectory_v1_namespace_proto_rawDescGZIP(), []int{0}
86 }
87
88 func (x *Namespace) GetName() string {
89 if x != nil {
90 return x.Name
91 }
92 return ""
93 }
94
95 func (x *Namespace) GetLabels() map[string]string {
96 if x != nil {
97 return x.Labels
98 }
99 return nil
100 }
101
102 func (x *Namespace) GetUid() string {
103 if x != nil {
104 return x.Uid
105 }
106 return ""
107 }
108
109 var File_google_cloud_servicedirectory_v1_namespace_proto protoreflect.FileDescriptor
110
111 var file_google_cloud_servicedirectory_v1_namespace_proto_rawDesc = []byte{
112 0x0a, 0x30, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
113 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f,
114 0x76, 0x31, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f,
115 0x74, 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64,
116 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72,
117 0x79, 0x2e, 0x76, 0x31, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
118 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e,
119 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
120 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
121 0x22, 0xbc, 0x02, 0x0a, 0x09, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x17,
122 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
123 0x05, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x54, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c,
124 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
125 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69,
126 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x73,
127 0x70, 0x61, 0x63, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
128 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x15, 0x0a,
129 0x03, 0x75, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,
130 0x03, 0x75, 0x69, 0x64, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e,
131 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
132 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
133 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a,
134 0x6e, 0xea, 0x41, 0x6b, 0x0a, 0x29, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72,
135 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
136 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12,
137 0x3e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65,
138 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c,
139 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61,
140 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x7d, 0x42,
141 0xf6, 0x01, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
142 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65,
143 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70,
144 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x50, 0x63, 0x6c, 0x6f, 0x75,
145 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f,
146 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79,
147 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69,
148 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
149 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0xaa, 0x02, 0x20, 0x47,
150 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x72, 0x76,
151 0x69, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x56, 0x31, 0xca,
152 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53,
153 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5c,
154 0x56, 0x31, 0xea, 0x02, 0x23, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f,
155 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63,
156 0x74, 0x6f, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
157 }
158
159 var (
160 file_google_cloud_servicedirectory_v1_namespace_proto_rawDescOnce sync.Once
161 file_google_cloud_servicedirectory_v1_namespace_proto_rawDescData = file_google_cloud_servicedirectory_v1_namespace_proto_rawDesc
162 )
163
164 func file_google_cloud_servicedirectory_v1_namespace_proto_rawDescGZIP() []byte {
165 file_google_cloud_servicedirectory_v1_namespace_proto_rawDescOnce.Do(func() {
166 file_google_cloud_servicedirectory_v1_namespace_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_servicedirectory_v1_namespace_proto_rawDescData)
167 })
168 return file_google_cloud_servicedirectory_v1_namespace_proto_rawDescData
169 }
170
171 var file_google_cloud_servicedirectory_v1_namespace_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
172 var file_google_cloud_servicedirectory_v1_namespace_proto_goTypes = []any{
173 (*Namespace)(nil), // 0: google.cloud.servicedirectory.v1.Namespace
174 nil, // 1: google.cloud.servicedirectory.v1.Namespace.LabelsEntry
175 }
176 var file_google_cloud_servicedirectory_v1_namespace_proto_depIdxs = []int32{
177 1, // 0: google.cloud.servicedirectory.v1.Namespace.labels:type_name -> google.cloud.servicedirectory.v1.Namespace.LabelsEntry
178 1, // [1:1] is the sub-list for method output_type
179 1, // [1:1] is the sub-list for method input_type
180 1, // [1:1] is the sub-list for extension type_name
181 1, // [1:1] is the sub-list for extension extendee
182 0, // [0:1] is the sub-list for field type_name
183 }
184
185 func init() { file_google_cloud_servicedirectory_v1_namespace_proto_init() }
186 func file_google_cloud_servicedirectory_v1_namespace_proto_init() {
187 if File_google_cloud_servicedirectory_v1_namespace_proto != nil {
188 return
189 }
190 type x struct{}
191 out := protoimpl.TypeBuilder{
192 File: protoimpl.DescBuilder{
193 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
194 RawDescriptor: file_google_cloud_servicedirectory_v1_namespace_proto_rawDesc,
195 NumEnums: 0,
196 NumMessages: 2,
197 NumExtensions: 0,
198 NumServices: 0,
199 },
200 GoTypes: file_google_cloud_servicedirectory_v1_namespace_proto_goTypes,
201 DependencyIndexes: file_google_cloud_servicedirectory_v1_namespace_proto_depIdxs,
202 MessageInfos: file_google_cloud_servicedirectory_v1_namespace_proto_msgTypes,
203 }.Build()
204 File_google_cloud_servicedirectory_v1_namespace_proto = out.File
205 file_google_cloud_servicedirectory_v1_namespace_proto_rawDesc = nil
206 file_google_cloud_servicedirectory_v1_namespace_proto_goTypes = nil
207 file_google_cloud_servicedirectory_v1_namespace_proto_depIdxs = nil
208 }