Debian Codegraph @

servicedirectory/apiv1beta1/servicedirectorypb/service.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/service.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 // An individual service. A service contains a name and optional metadata.
40 // A service must exist before
41 // [endpoints][google.cloud.servicedirectory.v1beta1.Endpoint] can be
42 // added to it.
43 type Service struct {
44 state protoimpl.MessageState
45 sizeCache protoimpl.SizeCache
46 unknownFields protoimpl.UnknownFields
47
48 // Immutable. The resource name for the service in the format
49 // `projects/*/locations/*/namespaces/*/services/*`.
50 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
51 // Optional. Metadata for the service. This data can be consumed by service
52 // clients.
53 //
54 // Restrictions:
55 //
56 // - The entire metadata dictionary may contain up to 2000 characters,
57 // spread accoss all key-value pairs. Metadata that goes beyond this
58 // limit are rejected
59 // - Valid metadata keys have two segments: an optional prefix and name,
60 // separated by a slash (/). The name segment is required and must be 63
61 // characters or less, beginning and ending with an alphanumeric character
62 // ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and
63 // alphanumerics between. The prefix is optional. If specified, the prefix
64 // must be a DNS subdomain: a series of DNS labels separated by dots (.),
65 // not longer than 253 characters in total, followed by a slash (/).
66 // Metadata that fails to meet these requirements are rejected
67 //
68 // Note: This field is equivalent to the `annotations` field in the v1 API.
69 // They have the same syntax and read/write to the same location in Service
70 // Directory.
71 Metadata map[string]string `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
72 // Output only. Endpoints associated with this service. Returned on
73 // [LookupService.ResolveService][google.cloud.servicedirectory.v1beta1.LookupService.ResolveService].
74 // Control plane clients should use
75 // [RegistrationService.ListEndpoints][google.cloud.servicedirectory.v1beta1.RegistrationService.ListEndpoints].
76 Endpoints []*Endpoint `protobuf:"bytes,3,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
77 // Output only. The timestamp when the service was created.
78 CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
79 // Output only. The timestamp when the service was last updated. Note:
80 // endpoints being created/deleted/updated within the service are not
81 // considered service updates for the purpose of this timestamp.
82 UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
83 // Output only. A globally unique identifier (in UUID4 format) for this
84 // service.
85 Uid string `protobuf:"bytes,8,opt,name=uid,proto3" json:"uid,omitempty"`
86 }
87
88 func (x *Service) Reset() {
89 *x = Service{}
90 mi := &file_google_cloud_servicedirectory_v1beta1_service_proto_msgTypes[0]
91 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
92 ms.StoreMessageInfo(mi)
93 }
94
95 func (x *Service) String() string {
96 return protoimpl.X.MessageStringOf(x)
97 }
98
99 func (*Service) ProtoMessage() {}
100
101 func (x *Service) ProtoReflect() protoreflect.Message {
102 mi := &file_google_cloud_servicedirectory_v1beta1_service_proto_msgTypes[0]
103 if x != nil {
104 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
105 if ms.LoadMessageInfo() == nil {
106 ms.StoreMessageInfo(mi)
107 }
108 return ms
109 }
110 return mi.MessageOf(x)
111 }
112
113 // Deprecated: Use Service.ProtoReflect.Descriptor instead.
114 func (*Service) Descriptor() ([]byte, []int) {
115 return file_google_cloud_servicedirectory_v1beta1_service_proto_rawDescGZIP(), []int{0}
116 }
117
118 func (x *Service) GetName() string {
119 if x != nil {
120 return x.Name
121 }
122 return ""
123 }
124
125 func (x *Service) GetMetadata() map[string]string {
126 if x != nil {
127 return x.Metadata
128 }
129 return nil
130 }
131
132 func (x *Service) GetEndpoints() []*Endpoint {
133 if x != nil {
134 return x.Endpoints
135 }
136 return nil
137 }
138
139 func (x *Service) GetCreateTime() *timestamppb.Timestamp {
140 if x != nil {
141 return x.CreateTime
142 }
143 return nil
144 }
145
146 func (x *Service) GetUpdateTime() *timestamppb.Timestamp {
147 if x != nil {
148 return x.UpdateTime
149 }
150 return nil
151 }
152
153 func (x *Service) GetUid() string {
154 if x != nil {
155 return x.Uid
156 }
157 return ""
158 }
159
160 var File_google_cloud_servicedirectory_v1beta1_service_proto protoreflect.FileDescriptor
161
162 var file_google_cloud_servicedirectory_v1beta1_service_proto_rawDesc = []byte{
163 0x0a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
164 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f,
165 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
166 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c,
167 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63,
168 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1f, 0x67, 0x6f,
169 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62,
170 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67,
171 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
172 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x34, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
173 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69,
174 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
175 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f,
176 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
177 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
178 0xae, 0x04, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x17, 0x0a, 0x04, 0x6e,
179 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x05, 0x52, 0x04,
180 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x5d, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
181 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
182 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72,
183 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53,
184 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45,
185 0x6e, 0x74, 0x72, 0x79, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64,
186 0x61, 0x74, 0x61, 0x12, 0x52, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73,
187 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
188 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72,
189 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x45,
190 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x65, 0x6e,
191 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74,
192 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67,
193 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54,
194 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x63,
195 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64,
196 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
197 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
198 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52,
199 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x15, 0x0a, 0x03, 0x75,
200 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x03, 0x75,
201 0x69, 0x64, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e,
202 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
203 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
204 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x3a,
205 0x7f, 0xea, 0x41, 0x7c, 0x0a, 0x27, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72,
206 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
207 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x51, 0x70,
208 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
209 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63,
210 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65,
211 0x73, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x7d, 0x2f, 0x73, 0x65,
212 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x7d,
213 0x42, 0x8d, 0x02, 0x0a, 0x29, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
214 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72,
215 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0c,
216 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x55,
217 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
218 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63,
219 0x74, 0x6f, 0x72, 0x79, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f,
220 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79,
221 0x70, 0x62, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74,
222 0x6f, 0x72, 0x79, 0x70, 0x62, 0xaa, 0x02, 0x25, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43,
223 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65,
224 0x63, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x56, 0x31, 0x42, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x25,
225 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x53, 0x65, 0x72,
226 0x76, 0x69, 0x63, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x5c, 0x56, 0x31,
227 0x62, 0x65, 0x74, 0x61, 0x31, 0xea, 0x02, 0x28, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a,
228 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x44, 0x69,
229 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x79, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31,
230 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
231 }
232
233 var (
234 file_google_cloud_servicedirectory_v1beta1_service_proto_rawDescOnce sync.Once
235 file_google_cloud_servicedirectory_v1beta1_service_proto_rawDescData = file_google_cloud_servicedirectory_v1beta1_service_proto_rawDesc
236 )
237
238 func file_google_cloud_servicedirectory_v1beta1_service_proto_rawDescGZIP() []byte {
239 file_google_cloud_servicedirectory_v1beta1_service_proto_rawDescOnce.Do(func() {
240 file_google_cloud_servicedirectory_v1beta1_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_servicedirectory_v1beta1_service_proto_rawDescData)
241 })
242 return file_google_cloud_servicedirectory_v1beta1_service_proto_rawDescData
243 }
244
245 var file_google_cloud_servicedirectory_v1beta1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
246 var file_google_cloud_servicedirectory_v1beta1_service_proto_goTypes = []any{
247 (*Service)(nil), // 0: google.cloud.servicedirectory.v1beta1.Service
248 nil, // 1: google.cloud.servicedirectory.v1beta1.Service.MetadataEntry
249 (*Endpoint)(nil), // 2: google.cloud.servicedirectory.v1beta1.Endpoint
250 (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
251 }
252 var file_google_cloud_servicedirectory_v1beta1_service_proto_depIdxs = []int32{
253 1, // 0: google.cloud.servicedirectory.v1beta1.Service.metadata:type_name -> google.cloud.servicedirectory.v1beta1.Service.MetadataEntry
254 2, // 1: google.cloud.servicedirectory.v1beta1.Service.endpoints:type_name -> google.cloud.servicedirectory.v1beta1.Endpoint
255 3, // 2: google.cloud.servicedirectory.v1beta1.Service.create_time:type_name -> google.protobuf.Timestamp
256 3, // 3: google.cloud.servicedirectory.v1beta1.Service.update_time:type_name -> google.protobuf.Timestamp
257 4, // [4:4] is the sub-list for method output_type
258 4, // [4:4] is the sub-list for method input_type
259 4, // [4:4] is the sub-list for extension type_name
260 4, // [4:4] is the sub-list for extension extendee
261 0, // [0:4] is the sub-list for field type_name
262 }
263
264 func init() { file_google_cloud_servicedirectory_v1beta1_service_proto_init() }
265 func file_google_cloud_servicedirectory_v1beta1_service_proto_init() {
266 if File_google_cloud_servicedirectory_v1beta1_service_proto != nil {
267 return
268 }
269 file_google_cloud_servicedirectory_v1beta1_endpoint_proto_init()
270 type x struct{}
271 out := protoimpl.TypeBuilder{
272 File: protoimpl.DescBuilder{
273 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
274 RawDescriptor: file_google_cloud_servicedirectory_v1beta1_service_proto_rawDesc,
275 NumEnums: 0,
276 NumMessages: 2,
277 NumExtensions: 0,
278 NumServices: 0,
279 },
280 GoTypes: file_google_cloud_servicedirectory_v1beta1_service_proto_goTypes,
281 DependencyIndexes: file_google_cloud_servicedirectory_v1beta1_service_proto_depIdxs,
282 MessageInfos: file_google_cloud_servicedirectory_v1beta1_service_proto_msgTypes,
283 }.Build()
284 File_google_cloud_servicedirectory_v1beta1_service_proto = out.File
285 file_google_cloud_servicedirectory_v1beta1_service_proto_rawDesc = nil
286 file_google_cloud_servicedirectory_v1beta1_service_proto_goTypes = nil
287 file_google_cloud_servicedirectory_v1beta1_service_proto_depIdxs = nil
288 }