Debian Codegraph @

servicedirectory/apiv1beta1/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/v1beta1/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 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
28 reflect "reflect"
29 sync "sync"
30 )
31
32 const (
33 // Verify that this generated code is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35 // Verify that runtime/protoimpl is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39 // A container for [services][google.cloud.servicedirectory.v1beta1.Service].
40 // Namespaces allow administrators to group services together and define
41 // permissions for a collection of services.
42 type Namespace struct {
43 state protoimpl.MessageState
44 sizeCache protoimpl.SizeCache
45 unknownFields protoimpl.UnknownFields
46
47 // Immutable. The resource name for the namespace in the format
48 // `projects/*/locations/*/namespaces/*`.
49 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
50 // Optional. Resource labels associated with this namespace.
51 // No more than 64 user labels can be associated with a given resource. Label
52 // keys and values can be no longer than 63 characters.
53 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"`
54 // Output only. The timestamp when the namespace was created.
55 CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
56 // Output only. The timestamp when the namespace was last updated.
57 UpdateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
58 // Output only. A globally unique identifier (in UUID4 format) for this
59 // namespace.
60 Uid string `protobuf:"bytes,6,opt,name=uid,proto3" json:"uid,omitempty"`
61 }
62
63 func (x *Namespace) Reset() {
64 *x = Namespace{}
65 mi := &file_google_cloud_servicedirectory_v1beta1_namespace_proto_msgTypes[0]
66 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
67 ms.StoreMessageInfo(mi)
68 }
69
70 func (x *Namespace) String() string {
71 return protoimpl.X.MessageStringOf(x)
72 }
73
74 func (*Namespace) ProtoMessage() {}
75
76 func (x *Namespace) ProtoReflect() protoreflect.Message {
77 mi := &file_google_cloud_servicedirectory_v1beta1_namespace_proto_msgTypes[0]
78 if x != nil {
79 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
80 if ms.LoadMessageInfo() == nil {
81 ms.StoreMessageInfo(mi)
82 }
83 return ms
84 }
85 return mi.MessageOf(x)
86 }
87
88 // Deprecated: Use Namespace.ProtoReflect.Descriptor instead.
89 func (*Namespace) Descriptor() ([]byte, []int) {
90 return file_google_cloud_servicedirectory_v1beta1_namespace_proto_rawDescGZIP(), []int{0}
91 }
92
93 func (x *Namespace) GetName() string {
94 if x != nil {
95 return x.Name
96 }
97 return ""
98 }
99
100 func (x *Namespace) GetLabels() map[string]string {
101 if x != nil {
102 return x.Labels
103 }
104 return nil
105 }
106
107 func (x *Namespace) GetCreateTime() *timestamppb.Timestamp {
108 if x != nil {
109 return x.CreateTime
110 }
111 return nil
112 }
113
114 func (x *Namespace) GetUpdateTime() *timestamppb.Timestamp {
115 if x != nil {
116 return x.UpdateTime
117 }
118 return nil
119 }
120
121 func (x *Namespace) GetUid() string {
122 if x != nil {
123 return x.Uid
124 }
125 return ""
126 }
127
128 var File_google_cloud_servicedirectory_v1beta1_namespace_proto protoreflect.FileDescriptor
129
130 var file_google_cloud_servicedirectory_v1beta1_namespace_proto_rawDesc = []byte{
131 0x0a, 0x35, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
132 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f,
133 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63,
134 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
135 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72,
136 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1f,
137 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64,
138 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
139 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f,
140 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
141 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65,
142 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc5, 0x03, 0x0a, 0x09,
143 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
144 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x05, 0x52, 0x04, 0x6e, 0x61,
145 0x6d, 0x65, 0x12, 0x59, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03,
146 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75,
147 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f,
148 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x73,
149 0x70, 0x61, 0x63, 0x65, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79,
150 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x40, 0x0a,
151 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01,
152 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
153 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03,
154 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12,
155 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05,
156 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
157 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
158 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d,
159 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,
160 0xe0, 0x41, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65,
161 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
162 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
163 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
164 0x02, 0x38, 0x01, 0x3a, 0x6e, 0xea, 0x41, 0x6b, 0x0a, 0x29, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
165 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
166 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70,
167 0x61, 0x63, 0x65, 0x12, 0x3e, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70,
168 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
169 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x6e, 0x61, 0x6d,
170 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61,
171 0x63, 0x65, 0x7d, 0x42, 0x8f, 0x02, 0x0a, 0x29, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
172 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
173 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
174 0x31, 0x42, 0x0e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74,
175 0x6f, 0x50, 0x01, 0x5a, 0x55, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
176 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
177 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62,
178 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65,
179 0x63, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64,
180 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x70, 0x62, 0xaa, 0x02, 0x25, 0x47, 0x6f, 0x6f,
181 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
182 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74,
183 0x61, 0x31, 0xca, 0x02, 0x25, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75,
184 0x64, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f,
185 0x72, 0x79, 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x28, 0x47, 0x6f, 0x6f,
186 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76,
187 0x69, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31,
188 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
189 }
190
191 var (
192 file_google_cloud_servicedirectory_v1beta1_namespace_proto_rawDescOnce sync.Once
193 file_google_cloud_servicedirectory_v1beta1_namespace_proto_rawDescData = file_google_cloud_servicedirectory_v1beta1_namespace_proto_rawDesc
194 )
195
196 func file_google_cloud_servicedirectory_v1beta1_namespace_proto_rawDescGZIP() []byte {
197 file_google_cloud_servicedirectory_v1beta1_namespace_proto_rawDescOnce.Do(func() {
198 file_google_cloud_servicedirectory_v1beta1_namespace_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_servicedirectory_v1beta1_namespace_proto_rawDescData)
199 })
200 return file_google_cloud_servicedirectory_v1beta1_namespace_proto_rawDescData
201 }
202
203 var file_google_cloud_servicedirectory_v1beta1_namespace_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
204 var file_google_cloud_servicedirectory_v1beta1_namespace_proto_goTypes = []any{
205 (*Namespace)(nil), // 0: google.cloud.servicedirectory.v1beta1.Namespace
206 nil, // 1: google.cloud.servicedirectory.v1beta1.Namespace.LabelsEntry
207 (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
208 }
209 var file_google_cloud_servicedirectory_v1beta1_namespace_proto_depIdxs = []int32{
210 1, // 0: google.cloud.servicedirectory.v1beta1.Namespace.labels:type_name -> google.cloud.servicedirectory.v1beta1.Namespace.LabelsEntry
211 2, // 1: google.cloud.servicedirectory.v1beta1.Namespace.create_time:type_name -> google.protobuf.Timestamp
212 2, // 2: google.cloud.servicedirectory.v1beta1.Namespace.update_time:type_name -> google.protobuf.Timestamp
213 3, // [3:3] is the sub-list for method output_type
214 3, // [3:3] is the sub-list for method input_type
215 3, // [3:3] is the sub-list for extension type_name
216 3, // [3:3] is the sub-list for extension extendee
217 0, // [0:3] is the sub-list for field type_name
218 }
219
220 func init() { file_google_cloud_servicedirectory_v1beta1_namespace_proto_init() }
221 func file_google_cloud_servicedirectory_v1beta1_namespace_proto_init() {
222 if File_google_cloud_servicedirectory_v1beta1_namespace_proto != nil {
223 return
224 }
225 type x struct{}
226 out := protoimpl.TypeBuilder{
227 File: protoimpl.DescBuilder{
228 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
229 RawDescriptor: file_google_cloud_servicedirectory_v1beta1_namespace_proto_rawDesc,
230 NumEnums: 0,
231 NumMessages: 2,
232 NumExtensions: 0,
233 NumServices: 0,
234 },
235 GoTypes: file_google_cloud_servicedirectory_v1beta1_namespace_proto_goTypes,
236 DependencyIndexes: file_google_cloud_servicedirectory_v1beta1_namespace_proto_depIdxs,
237 MessageInfos: file_google_cloud_servicedirectory_v1beta1_namespace_proto_msgTypes,
238 }.Build()
239 File_google_cloud_servicedirectory_v1beta1_namespace_proto = out.File
240 file_google_cloud_servicedirectory_v1beta1_namespace_proto_rawDesc = nil
241 file_google_cloud_servicedirectory_v1beta1_namespace_proto_goTypes = nil
242 file_google_cloud_servicedirectory_v1beta1_namespace_proto_depIdxs = nil
243 }